cfe80269a1740b0ca446965881330f183daafe58
[gnulib.git] / ChangeLog
1 2011-09-23  Bruno Haible  <bruno@clisp.org>
2
3         close: Support for MSVC 9.
4         * lib/close.c: Include <errno.h>, msvc-inval.h.
5         (close_nothrow): New function.
6         (rpl_close): Use it.
7         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8         invalid parameter handler.
9         * modules/close (Depends-on): Add msvc-inval.
10         * modules/dup2-tests (Depends-on): Add close.
11         * modules/dup3-tests (Depends-on): Likewise.
12         * modules/fcntl-tests (Depends-on): Likewise.
13         * modules/spawn-pipe-tests (Depends-on): Likewise.
14         * modules/unistd-safer-tests (Depends-on): Likewise.
15         * doc/posix-functions/close.texi: Mention the problem on MSVC.
16
17 2011-09-23  Bruno Haible  <bruno@clisp.org>
18
19         New module 'dup'.
20         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
21         Allow replacement.
22         * lib/dup.c: New file.
23         * lib/fchdir.c (rpl_dup): Remove function.
24         * m4/dup.m4: New file.
25         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
26         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
27         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
28         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29         * modules/dup: New file.
30         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31         'dup' module is in use.
32         * modules/fdopendir (Depends-on): Add dup.
33         * modules/fdutimensat-tests (Depends-on): Likewise.
34         * modules/fts (Depends-on): Likewise.
35         * modules/futimens-tests (Depends-on): Likewise.
36         * modules/posix_spawnp-tests (Depends-on): Likewise.
37         * modules/unistd-safer-tests (Depends-on): Likewise.
38         * modules/utimens-tests (Depends-on): Likewise.
39         * doc/posix-functions/dup.texi: Mention the new module and the problem
40         on MSVC.
41
42 2011-09-23  Bruno Haible  <bruno@clisp.org>
43
44         getdtablesize: Support for MSVC 9.
45         * lib/getdtablesize.c: Include msvc-inval.h.
46         (_setmaxstdio_nothrow): New function.
47         (_setmaxstdio): Redefine it.
48         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
49         * modules/getdtablesize (Depends-on): Add msvc-inval.
50         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
51
52 2011-09-23  Bruno Haible  <bruno@clisp.org>
53
54         signal-h: Rename from signal.
55         * modules/signal-h: Renamed from modules/signal.
56         * modules/pthread_sigmask (Depends-on): Update.
57         * modules/raise (Depends-on): Likewise.
58         * modules/sigaction (Depends-on): Likewise.
59         * modules/sigpipe (Depends-on): Likewise.
60         * modules/sigprocmask (Depends-on): Likewise.
61         * modules/sys_select (Depends-on): Likewise.
62         * modules/signal-h-tests: Renamed from modules/signal-tests.
63         (Files, Depends-on, Makefile.am): Update.
64         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
65         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
66         (Files, Makefile.am): Update.
67         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
68         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
69         * modules/signal: New placeholder file.
70         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
71         * doc/posix-headers/signal.texi: Update.
72         * NEWS: Mention the change.
73
74 2011-09-23  Bruno Haible  <bruno@clisp.org>
75
76         sigprocmask: Avoid crashes through signal() on MSVC 9.
77         * lib/sigprocmask.c: Include msvc-inval.h.
78         (signal_nothrow): New function.
79         (signal): Redefine it.
80         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
81         * modules/sigprocmask (Depends-on): Add msvc-inval.
82         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
83
84 2011-09-23  Bruno Haible  <bruno@clisp.org>
85
86         Tests for module 'raise'.
87         * modules/raise-tests: New file.
88         * tests/test-raise.c: New file.
89
90         raise: Support for MSVC.
91         * lib/signal.in.h (raise): New declaration.
92         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
93         for native Windows platforms.
94         * m4/raise.m4: New file.
95         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
96         HAVE_RAISE, REPLACE_RAISE.
97         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
98         REPLACE_RAISE.
99         * modules/raise (Status, Notice): Remove fields.
100         (Files): Add m4/raise.m4.
101         (Depends-on): Add signal, msvc-inval.
102         (configure.ac): Use the common idioms.
103         (Maintainer): Add me.
104         * tests/test-signal-c++.cc: Check the signature of raise.
105         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
106
107 2011-09-23  Bruno Haible  <bruno@clisp.org>
108
109         pipe2: Fix compilation on pre-C99 compilers.
110         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
111
112 2011-09-23  Bruno Haible  <bruno@clisp.org>
113
114         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
115         * lib/msvc-nothrow.h: New file.
116         * lib/msvc-nothrow.c: New file.
117         * m4/msvc-nothrow.m4: New file.
118         * modules/msvc-nothrow: New file.
119         * lib/dup2.c: Include msvc-nothrow.h.
120         (rpl_dup2): No need to protect _get_osfhandle call here.
121         * lib/accept4.c: Include msvc-nothrow.h.
122         * lib/error.c: Likewise.
123         * lib/fcntl.c: Likewise.
124         * lib/lseek.c: Likewise.
125         * lib/nonblocking.c: Likewise.
126         * lib/poll.c: Likewise.
127         * lib/read.c: Likewise.
128         * lib/select.c: Likewise.
129         * lib/sockets.h: Likewise.
130         * lib/sockets.c: Likewise.
131         * lib/stdio-read.c: Likewise.
132         * lib/stdio-write.c: Likewise.
133         * lib/write.c: Likewise.
134         * lib/w32sock.h: Likewise.
135         * lib/w32spawn.h: Likewise.
136         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
137         * lib/fsync.c: Likewise.
138         * lib/isapipe.c: Likewise.
139         * modules/dup2 (Depends-on): Add msvc-nothrow.
140         * modules/accept4 (Depends-on): Likewise.
141         * modules/error (Depends-on): Likewise.
142         * modules/fcntl (Depends-on): Likewise.
143         * modules/lseek (Depends-on): Likewise.
144         * modules/nonblocking (Depends-on): Likewise.
145         * modules/poll (Depends-on): Likewise.
146         * modules/read (Depends-on): Likewise.
147         * modules/select (Depends-on): Likewise.
148         * modules/sockets (Depends-on): Likewise.
149         * modules/sigpipe (Depends-on): Likewise.
150         * modules/write (Depends-on): Likewise.
151         * modules/accept (Depends-on): Likewise.
152         * modules/bind (Depends-on): Likewise.
153         * modules/connect (Depends-on): Likewise.
154         * modules/gethostname (Depends-on): Likewise.
155         * modules/getpeername (Depends-on): Likewise.
156         * modules/getsockname (Depends-on): Likewise.
157         * modules/getsockopt (Depends-on): Likewise.
158         * modules/ioctl (Depends-on): Likewise.
159         * modules/listen (Depends-on): Likewise.
160         * modules/recv (Depends-on): Likewise.
161         * modules/recvfrom (Depends-on): Likewise.
162         * modules/send (Depends-on): Likewise.
163         * modules/sendto (Depends-on): Likewise.
164         * modules/setsockopt (Depends-on): Likewise.
165         * modules/shutdown (Depends-on): Likewise.
166         * modules/socket (Depends-on): Likewise.
167         * modules/execute (Depends-on): Likewise.
168         * modules/spawn-pipe (Depends-on): Likewise.
169         * modules/flock (Depends-on): Likewise.
170         * modules/fsync (Depends-on): Likewise.
171         * modules/isapipe (Depends-on): Likewise.
172         * tests/test-cloexec.c: Include msvc-nothrow.h.
173         * tests/test-dup-safer.c: Likewise.
174         * tests/test-dup2.c: Likewise.
175         * tests/test-dup3.c: Likewise.
176         * tests/test-fcntl.c: Likewise.
177         * tests/test-pipe.c: Likewise.
178         * tests/test-pipe2.c: Likewise.
179         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
180         * modules/unistd-safer-tests (Depends-on): Likewise.
181         * modules/dup2-tests (Depends-on): Likewise.
182         * modules/dup3-tests (Depends-on): Likewise.
183         * modules/fcntl-tests (Depends-on): Likewise.
184         * modules/pipe-posix-tests (Depends-on): Likewise.
185         * modules/pipe2-tests (Depends-on): Likewise.
186
187 2011-09-23  Bruno Haible  <bruno@clisp.org>
188
189         dup2: Make code more maintainable.
190         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
191         (rpl_dup2): Use it.
192         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
193         * modules/dup2 (configure.ac): Invoke it.
194         Reported by Paul Eggert.
195
196 2011-09-23  Bruno Haible  <bruno@clisp.org>
197
198         msvc-inval: Fix compilation error.
199         * lib/msvc-inval.h: Include <excpt.h>.
200
201 2011-09-23  Bruno Haible  <bruno@clisp.org>
202
203         mkdir: Tweak for MSVC 9.
204         * lib/sys_stat.in.h: Update comments.
205         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
206
207         Tests for module 'chdir'.
208         * modules/chdir-tests: New file.
209         * tests/test-chdir.c: New file.
210
211         New module 'chdir'.
212         * modules/chdir: New file.
213         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
214         (chdir): New declaration.
215         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
216         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
217         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
218         * tests/test-unistd-c++.cc: Check signature of chdir.
219         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
220         * modules/chdir-long (Depends-on): Add chdir.
221         * modules/fchdir (Depends-on): Likewise.
222         * modules/rename (Depends-on): Likewise.
223         * modules/savewd (Depends-on): Likewise.
224
225         rmdir: Support for mingw, MSVC 9.
226         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
227         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
228
229         getcwd: Tweak for MSVC 9.
230         * lib/unistd.in.h: Update comments.
231         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
232
233 2011-09-22  Bruno Haible  <bruno@clisp.org>
234
235         strerror_r-posix: Avoid a link error on MSVC.
236         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
237         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
238
239 2011-09-22  Bruno Haible  <bruno@clisp.org>
240
241         select: Avoid link errors on MSVC.
242         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
243         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
244         * modules/pselect (Link): Likewise.
245         * NEWS: Mention the change.
246         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
247         test-select-stdin against $(LIB_SELECT).
248         * modules/pselect-tests (Makefile.am): Link test-pselect against
249         $(LIB_SELECT).
250
251 2011-09-22  Bruno Haible  <bruno@clisp.org>
252
253         select: Avoid compilation error on MSVC.
254         * lib/select.c: Don't include <stdbool.h>.
255
256 2011-09-21  Bruno Haible  <bruno@clisp.org>
257
258         Consolidate all uses of PATH_MAX in *.m4 files.
259         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
260         macros.
261         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
262         and gl_PATHMAX_SNIPPET.
263         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
265         * modules/chdir-long (Files): Add m4/pathmax.m4.
266         * modules/getcwd (Files): Likewise.
267
268 2011-09-21  Bruno Haible  <bruno@clisp.org>
269
270         ftruncate: Un-deprecate, concentrate on Win32 support.
271         * modules/ftruncate (Status, Notice): Remove sections.
272         (Depends-on): Add largefile.
273         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
274         non-mingw platforms.
275         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
276         include <io.h>.
277         * modules/perror-tests (Depends-on): Add ftruncate.
278         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
279         'ftruncate' module.
280
281 2011-09-21  Bruno Haible  <bruno@clisp.org>
282
283         Add dependencies to new dirent related modules.
284         * modules/opendir (Depends-on): Add closedir.
285         * modules/getcwd (Depends-on): Add opendir, closedir.
286         * modules/dirent-safer-tests (Depends-on): Likewise.
287         * modules/fdopendir-tests (Depends-on): Likewise.
288         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
289         * modules/renameat-tests (Depends-on): Likewise.
290
291 2011-09-21  Bruno Haible  <bruno@clisp.org>
292
293         opendir: Avoid compilation error on mingw.
294         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
295         * modules/opendir (Depends-on): Add unistd.
296
297 2011-09-21  Bruno Haible  <bruno@clisp.org>
298
299         ftruncate tests: Avoid a test failure on mingw.
300         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
301
302 2011-09-21  Bruno Haible  <bruno@clisp.org>
303
304         select tests: Avoid test failures on OSF/1 5.1 and mingw.
305         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
306         native Windows.
307
308 2011-09-21  Bruno Haible  <bruno@clisp.org>
309
310         New module 'fdopen'.
311         * lib/stdio.in.h (fdopen): New declaration.
312         * lib/fdopen.c: New file.
313         * m4/fdopen.m4: New file.
314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
315         REPLACE_FDOPEN.
316         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
317         REPLACE_FDOPEN.
318         * modules/fdopen: New file.
319         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
320         * tests/test-stdio-c++.cc: Check signature of fdopen.
321         * doc/posix-functions/fdopen.texi: Mention the new module.
322
323 2011-09-21  Bruno Haible  <bruno@clisp.org>
324
325         unlockpt tests: Avoid test failure on NetBSD 5.1.
326         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
327         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
328
329 2011-09-21  Bruno Haible  <bruno@clisp.org>
330
331         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
332         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
333         * tests/test-getlogin_r.c (main): Likewise.
334
335 2011-09-20  Bruno Haible  <bruno@clisp.org>
336
337         time tests: Don't require pid_t.
338         * doc/posix-headers/time.texi: Revert last change.
339         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
340         * tests/test-time.c: Comment out the check for pid_t.
341
342 2011-09-20  Bruno Haible  <bruno@clisp.org>
343
344         fsync tests: Avoid a test failure on mingw.
345         * tests/test-fsync.c (main): Allow a failure with EIO.
346
347 2011-09-20  Bruno Haible  <bruno@clisp.org>
348
349         euidaccess: Update comments.
350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
351
352 2011-09-20  Bruno Haible  <bruno@clisp.org>
353
354         Ensure EBADF returns for socket functions on mingw.
355         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
356         descriptor is invalid.
357         * lib/bind.c (rpl_bind): Likewise.
358         * lib/connect.c (rpl_connect): Likewise.
359         * lib/getpeername.c (rpl_getpeername): Likewise.
360         * lib/getsockname.c (rpl_getsockname): Likewise.
361         * lib/getsockopt.c (rpl_getsockopt): Likewise.
362         * lib/listen.c (rpl_listen): Likewise.
363         * lib/recv.c (rpl_recv): Likewise.
364         * lib/recvfrom.c (rpl_recvfrom): Likewise.
365         * lib/send.c (rpl_send): Likewise.
366         * lib/sendto.c (rpl_sendto): Likewise.
367         * lib/setsockopt.c (rpl_setsockopt): Likewise.
368         * lib/shutdown.c (rpl_shutdown): Likewise.
369
370 2011-09-20  Bruno Haible  <bruno@clisp.org>
371
372         select tests: EBADF tests.
373         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
374         test_bad_fd): New functions.
375         (test_function): Invoke also test_bad_fd.
376
377 2011-09-20  Bruno Haible  <bruno@clisp.org>
378
379         Tests for module 'posix_spawn_file_actions_addopen.
380         * modules/posix_spawn_file_actions_addopen-tests: New file.
381         * tests/test-posix_spawn_file_actions_addopen.c: New file.
382
383         Tests for module 'posix_spawn_file_actions_adddup2'.
384         * modules/posix_spawn_file_actions_adddup2-tests: New file.
385         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
386
387         Tests for module 'posix_spawn_file_actions_addclose'.
388         * modules/posix_spawn_file_actions_addclose-tests: New file.
389         * tests/test-posix_spawn_file_actions_addclose.c: New file.
390
391 2011-09-20  Bruno Haible  <bruno@clisp.org>
392
393         Tests for module 'unlockpt'.
394         * modules/unlockpt-tests: New file.
395         * tests/test-unlockpt.c: New file.
396         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
397
398         Tests for module 'grantpt'.
399         * modules/grantpt-tests: New file.
400         * tests/test-grantpt.c: New file.
401         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
402
403 2011-09-20  Bruno Haible  <bruno@clisp.org>
404
405         freopen tests: EBADF tests.
406         * tests/test-freopen.c: Include errno.h, unistd.h.
407         (main): Add tests for EBADF, commented out for the moment.
408
409         fclose tests: EBADF tests.
410         * tests/test-fclose.c (main): Add tests for EBADF.
411
412         fflush tests: EBADF tests.
413         * tests/test-fflush.c: Include errno.h, macros.h.
414         (main): Add tests for EBADF.
415
416         ftello tests: EBADF tests.
417         * tests/test-ftello4.sh: New file.
418         * tests/test-ftello4.c: New file.
419         * modules/ftello-tests (Files): Add them.
420         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
421
422         fseeko tests: EBADF tests.
423         * tests/test-fseeko4.sh: New file.
424         * tests/test-fseeko4.c: New file.
425         * modules/fseeko-tests (Files): Add them.
426         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
427
428         Tests for function fputc().
429         * modules/fputc-tests: New file.
430         * tests/test-fputc.c: New file.
431         * modules/stdio-tests (Depends-on): Add fputc-tests.
432
433         Tests for function fgetc().
434         * modules/fgetc-tests: New file.
435         * tests/test-fgetc.c: New file.
436         * modules/stdio-tests (Depends-on): Add fgetc-tests.
437
438         Tests for function fdopen().
439         * modules/fdopen-tests: New file.
440         * tests/test-fdopen.c: New file.
441         * modules/stdio-tests (Depends-on): Add fdopen-tests.
442
443         Tests for module 'vdprintf'.
444         * modules/vdprintf-tests: New file.
445         * tests/test-vdprintf.c: New file.
446
447         Tests for module 'dprintf'.
448         * modules/dprintf-tests: New file.
449         * tests/test-dprintf.c: New file.
450
451 2011-09-20  Bruno Haible  <bruno@clisp.org>
452
453         Tests for module 'ioctl'.
454         * modules/ioctl-tests: New file.
455         * tests/test-ioctl.c: New file.
456
457 2011-09-20  Bruno Haible  <bruno@clisp.org>
458
459         fcntl tests: EBADF tests.
460         * tests/test-fcntl.c (main): Add more tests for EBADF.
461
462 2011-09-20  Bruno Haible  <bruno@clisp.org>
463
464         utimensat tests: EBADF tests.
465         * tests/test-utimensat.c (main): Add tests for EBADF.
466
467         renameat tests: EBADF tests.
468         * tests/test-renameat.c (main): Add tests for EBADF.
469
470         mkfifoat tests: EBADF tests.
471         * tests/test-mkfifoat.c (main): Add tests for EBADF.
472
473         readlinkat tests: EBADF tests.
474         * tests/test-readlinkat.c (main): Add tests for EBADF.
475
476         symlinkat tests: EBADF tests.
477         * tests/test-symlinkat.c (main): Add tests for EBADF.
478
479         linkat tests: EBADF tests.
480         * tests/test-linkat.c (main): Add tests for EBADF.
481
482         Tests for module 'faccessat'.
483         * modules/faccessat-tests: New file.
484         * tests/test-faccessat.c: New file.
485
486         fdopendir tests: EBADF tests.
487         * tests/test-fdopendir.c (main): Add more tests for EBADF.
488
489         openat tests: EBADF tests.
490         * tests/test-fchownat.c (main): Add tests for EBADF.
491         * tests/test-fstatat.c (main): Likewise.
492         * tests/test-mkdirat.c (main): Likewise.
493         * tests/test-openat.c (main): Likewise.
494         * tests/test-unlinkat.c (main): Likewise.
495         * tests/test-fchmodat.c: New file.
496         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
497         (Makefile.am): Also run 'test-fchmodat'.
498
499 2011-09-20  Bruno Haible  <bruno@clisp.org>
500
501         utimens, futimens, fdutimensat tests: EBADF tests.
502         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
503
504         Tests for function fstat().
505         * modules/fstat-tests: New file.
506         * tests/test-fstat.c: New file.
507         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
508
509 2011-09-20  Bruno Haible  <bruno@clisp.org>
510
511         test-ttyname_r tests: EBADF tests.
512         * tests/test-ttyname_r.c (main): Add tests for EBADF.
513
514         Tests for module 'isatty'.
515         * modules/isatty-tests: New file.
516         * tests/test-isatty.c: New file.
517
518         Tests for module 'write'.
519         * modules/write-tests: New file.
520         * tests/test-write.c: New file.
521
522         Tests for module 'read'.
523         * modules/read-tests: New file.
524         * tests/test-read.c: New file.
525
526         pwrite tests: EBADF tests.
527         * tests/test-pwrite.c (main): Add tests for EBADF.
528
529         pread tests: EBADF tests.
530         * tests/test-pread.c (main): Add tests for EBADF.
531
532         lseek tests: EBADF tests.
533         * tests/test-lseek.c (main): Add more tests for EBADF.
534
535         Tests for module 'ftruncate'.
536         * modules/ftruncate-tests: New file.
537         * tests/test-ftruncate.sh: New file.
538         * tests/test-ftruncate.c: New file.
539
540         fsync tests: EBADF tests.
541         * tests/test-fsync.c (main): Add more tests for EBADF.
542
543         fdatasync tests: EBADF tests.
544         * tests/test-fdatasync.c (main): Add more tests for EBADF.
545
546         Tests for module 'fchown'.
547         * modules/fchown-tests: New file.
548         * tests/test-fchown.c: New file.
549
550         Tests for module 'fchmod'.
551         * modules/fchmod-tests: New file.
552         * tests/test-fchmod.c: New file.
553
554         fchdir tests: EBADF tests.
555         * tests/test-fchdir.c (main): Add more tests for EBADF.
556
557         dup2 tests: EBADF tests.
558         * tests/test-dup2.c (main): Add more tests for EBADF.
559
560         Tests for module 'dup'.
561         * modules/dup-tests: New file.
562         * tests/test-dup.c: New file.
563
564         Tests for module 'close'.
565         * modules/close-tests: New file.
566         * tests/test-close.c: New file.
567
568 2011-09-20  Bruno Haible  <bruno@clisp.org>
569
570         Tests for module 'shutdown'.
571         * modules/shutdown-tests: New file.
572         * tests/test-shutdown.c: New file.
573
574         Tests for module 'setsockopt'.
575         * modules/setsockopt-tests: New file.
576         * tests/test-setsockopt.c: New file.
577
578         Tests for module 'sendto'.
579         * modules/sendto-tests: New file.
580         * tests/test-sendto.c: New file.
581
582         Tests for module 'send'.
583         * modules/send-tests: New file.
584         * tests/test-send.c: New file.
585
586         Tests for module 'recvfrom'.
587         * modules/recvfrom-tests: New file.
588         * tests/test-recvfrom.c: New file.
589
590         Tests for module 'recv'.
591         * modules/recv-tests: New file.
592         * tests/test-recv.c: New file.
593
594         Tests for module 'listen'.
595         * modules/listen-tests: New file.
596         * tests/test-listen.c: New file.
597
598         Tests for module 'getsockopt'.
599         * modules/getsockopt-tests: New file.
600         * tests/test-getsockopt.c: New file.
601
602         Tests for module 'getsockname'.
603         * modules/getsockname-tests: New file.
604         * tests/test-getsockname.c: New file.
605
606         Tests for module 'getpeername'.
607         * modules/getpeername-tests: New file.
608         * tests/test-getpeername.c: New file.
609
610         Tests for module 'connect'.
611         * modules/connect-tests: New file.
612         * tests/test-connect.c: New file.
613
614         Tests for module 'bind'.
615         * modules/bind-tests: New file.
616         * tests/test-bind.c: New file.
617
618         accept4 tests: Fix for native Windows.
619         * tests/test-accept4.c: Include sockets.h.
620         (main): Invoke gl_sockets_startup.
621         * modules/accept4-tests (Depends-on): Add sockets.
622
623         accept tests: Fix for native Windows.
624         * tests/test-accept.c: Include sockets.h.
625         (main): Invoke gl_sockets_startup.
626         * modules/accept-tests (Depends-on): Add sockets.
627
628 2011-09-19  Bruno Haible  <bruno@clisp.org>
629
630         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
631         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
632         do...while(0).
633         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
634         Suggested by Paul Eggert.
635
636 2011-09-19  Bruno Haible  <bruno@clisp.org>
637
638         sched: Ensure pid_t is defined.
639         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
640         not define pid_t.
641         * lib/sched.in.h: Include <sys/types.h>.
642         * doc/posix-headers/sched.texi: Mention the pid_t problem.
643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
644
645 2011-09-19  Bruno Haible  <bruno@clisp.org>
646
647         msvc-inval: Ensure the entire expansion is a single statement.
648         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
649         of braces.
650
651 2011-09-19  Jim Meyering  <meyering@redhat.com>
652
653         tests: use printf, not echo in init.sh's warn_ function
654         * tests/init.sh (warn_): Use printf, not echo.  The latter would
655         misbehave when given strings containing a backslash or starting
656         with e.g., -n.  James Youngman suggested setting IFS.
657
658 2011-09-19  Eric Blake  <eblake@redhat.com>
659
660         futimens: enhance test
661         * tests/test-futimens.h (test_futimens): Also check for EBADF on
662         closed non-negative fd.
663
664         date: accept 'hence' as opposite of 'ago'
665         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
666         * tests/test-parse-datetime.c (main): Enhance test.
667         Suggested by Jesse Wilson.
668
669 2011-09-19  Jim Meyering  <meyering@redhat.com>
670
671         getcwd: don't fail in a deep directory on a system without openat
672         Before this change, getcwd would fail when called from a directory
673         of depth PATH_MAX / 3 or greater.  That was due to the fact that
674         the non-openat implementation used "..", "../..", "../../..", etc.
675         to access ancestor directories.  With too many, that string would
676         be longer than PATH_MAX.
677         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
678         using gnulib's openat replacement.
679         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
680         we're using the replacement function.
681
682 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
683
684         maint.mk: avoid warnings from perl about missing files
685         * top/maint.mk (def_sym_regex): Ignore files listed in
686         $(gl_other_headers_) that do not exist, say because a project
687         does not use a corresponding module.
688
689 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
690
691         stat: use pathmax.h only if needed
692         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
693         This is better for Emacs, which does not have a mingw port and
694         therefore can avoid the pathmax module.
695
696         utimens: remove dependency on dup2
697         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
698         to work around the Linux kernel bug.
699         * modules/utimens (Depends-on): Remove dup2.
700
701 2011-09-18  Bruno Haible  <bruno@clisp.org>
702
703         inet_ntop, inet_pton: Look for it also in libresolv.
704         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
705         libnsl, search for it in libresolv.
706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
707         Needed on Solaris 7.
708
709 2011-09-18  Bruno Haible  <bruno@clisp.org>
710
711         accept, accept4 tests: Avoid link error on Solaris.
712         * modules/accept-tests (Makefile.am): Link test-accept against
713         $(LIBSOCKET).
714         * modules/accept4-tests (Makefile.am): Link test-accept4 against
715         $(LIBSOCKET).
716
717         accept4: Avoid link error on Solaris.
718         * modules/accept4 (Link): New section.
719
720         socket functions: Avoid link errors on Solaris.
721         * modules/accept (Depends-on): Add socketlib.
722         (Link): New section.
723         * modules/bind (Depends-on): Add socketlib.
724         (Link): New section.
725         * modules/connect (Depends-on): Add socketlib.
726         (Link): New section.
727         * modules/getpeername (Depends-on): Add socketlib.
728         (Link): New section.
729         * modules/getsockname (Depends-on): Add socketlib.
730         (Link): New section.
731         * modules/getsockopt (Depends-on): Add socketlib.
732         (Link): New section.
733         * modules/listen (Depends-on): Add socketlib.
734         (Link): New section.
735         * modules/recv (Depends-on): Add socketlib.
736         (Link): New section.
737         * modules/recvfrom (Depends-on): Add socketlib.
738         (Link): New section.
739         * modules/send (Depends-on): Add socketlib.
740         (Link): New section.
741         * modules/sendto (Depends-on): Add socketlib.
742         (Link): New section.
743         * modules/setsockopt (Depends-on): Add socketlib.
744         (Link): New section.
745         * modules/shutdown (Depends-on): Add socketlib.
746         (Link): New section.
747         * modules/socket (Depends-on): Add socketlib.
748         (Link): New section.
749
750 2011-09-18  Bruno Haible  <bruno@clisp.org>
751
752         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
753         * tests/test-ptsname.c (main): Terminate the test if it takes longer
754         than 5 seconds.
755         * modules/ptsname-tests (configure.ac): Test for alarm.
756
757 2011-09-18  Bruno Haible  <bruno@clisp.org>
758
759         posix_spawn_file_actions_add*: Fix module dependencies.
760         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
761         posix_spawn_file_actions_init.
762         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
763         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
764
765 2011-09-18  Bruno Haible  <bruno@clisp.org>
766
767         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
768         * tests/test-rename.h (test_rename): Allow error code EEXIST.
769         * tests/test-renameat.c (main): Likewise.
770
771 2011-09-18  Bruno Haible  <bruno@clisp.org>
772
773         Tests for module 'accept4'.
774         * modules/accept4-tests: New file.
775         * tests/test-accept4.c: New file.
776
777 2011-09-18  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'accept'.
780         * modules/accept-tests: New file.
781         * tests/test-accept.c: New file.
782
783 2011-09-18  Bruno Haible  <bruno@clisp.org>
784
785         dup2: Support for MSVC.
786         * lib/dup2.c: Include msvc-inval.h.
787         (rpl_dup2): Handle invalid parameter notifications during dup2 and
788         _get_osfhandle calls.
789         * modules/dup2 (Depends-on): Add msvc-inval.
790         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
791
792         New module 'msvc-inval'.
793         * lib/msvc-inval.h: New file.
794         * lib/msvc-inval.c: New file.
795         * m4/msvc-inval.m4: New file.
796         * modules/msvc-inval: New file.
797
798 2011-09-17  Bruno Haible  <bruno@clisp.org>
799
800         Tests for module 'pclose'.
801         * modules/pclose-tests: New file.
802
803         New module 'pclose'.
804         * lib/stdio.in.h (pclose): New declaration.
805         * lib/pclose.c: New file.
806         * m4/pclose.m4: New file.
807         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
808         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
809         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
810         * modules/pclose: New file.
811         * modules/popen-tests (Depends-on): Add pclose.
812         * modules/popen-safer-tests (Depends-on): Likewise.
813         * doc/posix-functions/pclose.texi: Mention the new module.
814
815 2011-09-17  Bruno Haible  <bruno@clisp.org>
816
817         popen: Support for MSVC.
818         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
819         * lib/popen.c (popen): Provide alternate definition for native Windows.
820         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
822         * modules/popen (Depends-on, configure.ac): Update condition.
823         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
824         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
825         fixed.
826
827 2011-09-17  Bruno Haible  <bruno@clisp.org>
828
829         isnanl, isnand, isnanf: Work around MSVC bug.
830         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
831
832 2011-09-17  Bruno Haible  <bruno@clisp.org>
833
834         sys_socket tests: Fix recent mistake.
835         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
836
837 2011-09-17  Bruno Haible  <bruno@clisp.org>
838
839         putenv: Support for MSVC.
840         * modules/putenv (Depends-on): Add environ.
841         * lib/putenv.c (environ): Disable declaration.
842         * lib/unistd.in.h: Update comment.
843
844 2011-09-17  Bruno Haible  <bruno@clisp.org>
845
846         math: Avoid macro redefinition warnings on MSVC.
847         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
848         Undefine before redefining.
849
850 2011-09-17  Bruno Haible  <bruno@clisp.org>
851
852         doc: Mention functions which are declared as macros.
853         * doc/posix-functions/*[fl].texi: Mention that some functions are
854         defined as macros with arguments only.
855
856 2011-09-17  Bruno Haible  <bruno@clisp.org>
857
858         Add dependencies to new dirent related modules.
859         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
860         * modules/fts (Depends-on): Likewise.
861         * modules/glob (Depends-on): Likewise.
862         * modules/savedir (Depends-on): Likewise.
863         * modules/scandir (Depends-on): Likewise.
864         * modules/dirent-safer (Depends-on): Add opendir, closedir.
865         * modules/fdopendir (Depends-on): Add opendir.
866
867 2011-09-17  Bruno Haible  <bruno@clisp.org>
868
869         inet_pton: Support for MSVC on Windows Vista or newer.
870         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
871         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
872         HAVE_DECL_INET_PTON is defined.
873         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
874         On platforms with <winsock2.h>, test whether inet_pton is declared in
875         <ws2tcpip.h>. If so, arrange to replace it.
876         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
877         REPLACE_INET_PTON.
878         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
879         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
880         (Depends-on, configure.ac): Update condition.
881         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
882
883 2011-09-17  Bruno Haible  <bruno@clisp.org>
884
885         inet_ntop: Support for MSVC on Windows Vista or newer.
886         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
887         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
888         HAVE_DECL_INET_NTOP is defined.
889         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
890         On platforms with <winsock2.h>, test whether inet_ntop is declared in
891         <ws2tcpip.h>. If so, arrange to replace it.
892         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
893         REPLACE_INET_NTOP.
894         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
895         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
896         (Depends-on, configure.ac): Update condition.
897         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
898
899 2011-09-16  Eric Blake  <eblake@redhat.com>
900
901         test-fsync: yet another enhancement
902         * tests/test-fsync.c (main): Also test behavior on read-only text
903         file.
904
905 2011-09-16  Bruno Haible  <bruno@clisp.org>
906
907         Enhance fsync, fdatasync tests.
908         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
909         * tests/test-fdatasync.c (main): Likewise.
910
911 2011-09-16  Bruno Haible  <bruno@clisp.org>
912
913         Support for MSVC compiler: Ensure mode_t gets defined.
914         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
915         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
917         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
918         * tests/test-fcntl-h.c: Check that mode_t is defined.
919         * tests/test-sys_stat.c: Likewise.
920         * tests/test-sys_types.c: Likewise.
921         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
922         * doc/posix-headers/sys_stat.texi: Likewise.
923         * doc/posix-headers/sys_types.texi: Likewise.
924
925 2011-09-16  Bruno Haible  <bruno@clisp.org>
926
927         sys_stat: Support for MSVC.
928         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
929         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
930         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
931         MSVC.
932
933 2011-09-16  Bruno Haible  <bruno@clisp.org>
934
935         Support for MSVC compiler: Ensure off_t gets defined.
936         * lib/unistd.in.h: Include <sys/types.h>.
937         * tests/test-fcntl-h.c: Check that off_t is defined.
938         * tests/test-sys_stat.c: Likewise.
939         * tests/test-sys_types.c: Likewise.
940
941 2011-09-16  Eric Blake  <eblake@redhat.com>
942
943         fdatasync: port to Solaris
944         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
945         * modules/fdatasync (Link): Document it.
946         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
947
948         fdatasync: port to MacOS X 10.7
949         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
950         declared.
951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
952         * modules/unistd (Makefile.am): Substitute it.
953         * lib/unistd.in.h (fdatasync): Declare on MacOS.
954         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
955
956         fdatasync: minor improvements
957         * modules/fdatasync (Depends-on): Add condition for fsync.
958         * lib/fdatasync.c (fdatasync): Add comment.
959         * tests/test-unistd-c++.cc: Test fdatasync.
960
961         unistd: update refs to newer POSIX
962         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
963         Suggested by Bruno Haible.
964
965         fdatasync: new module
966         * modules/fsync (Description): Document difference to fdatasync.
967         * modules/fdatasync: New module.
968         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
969         * lib/fdatasync.c (fdatasync): Likewise.
970         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
971         defaults.
972         * modules/unistd (Makefile.am): Set witnesses.
973         * lib/unistd.in.h (fdatasync): Declare.
974         * MODULES.html.sh: Document it.
975         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
976         * modules/fdatasync-tests: New test.
977         * tests/test-fdatasync.c: Likewise.
978
979 2011-09-16  Eric Blake  <eblake@redhat.com>
980
981         test-fsync: enhance tests
982         * modules/fsync-tests (Depends-on): Add errno, for mingw.
983         * tests/test-fsync.c (main): Enhance test.
984
985 2011-09-15  Bruno Haible  <bruno@clisp.org>
986
987         Support for MSVC compiler: Ensure ssize_t gets defined.
988         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
989         * doc/posix-headers/stdio.texi: Likewise.
990         * modules/stdio (Depends-on): Add ssize_t.
991         * modules/sys_socket (Depends-on): Likewise.
992         * modules/sys_types (Depends-on): Likewise.
993         * modules/sys_uio (Depends-on): Likewise.
994         * modules/unistd (Depends-on): Likewise.
995         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
996         * tests/test-sys_types.c: Check that ssize_t is defined.
997
998 2011-09-14  Bruno Haible  <bruno@clisp.org>
999
1000         Avoid using #, the m4 comment starter character, near brackets.
1001         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1002         delimiter character in sed expressions.
1003         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1004         Suggested by Eric Blake.
1005
1006         Properly quote AC_CHECK_DECLS' 4th argument.
1007         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1008         argument.
1009         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1010         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1012         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1013         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1014         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1016         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1017         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1019         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1020         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1021         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1022         * m4/isinf.m4 (gl_ISINF): Likewise.
1023         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1024         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1025         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1028         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1029         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1030         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1031         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1032         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1033         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1034         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1036         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1038         Reported by Eric Blake.
1039
1040         Properly quote AC_CHECK_DECL's 4th argument.
1041         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1042         argument.
1043         * m4/argp.m4 (gl_ARGP): Likewise.
1044         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1045         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1046         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1047         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1048         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1049         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1050         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1051         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1052         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1053         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1054         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1055         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1056         Reported by Eric Blake.
1057
1058 2011-09-14  Eric Blake  <eblake@redhat.com>
1059
1060         opendir: avoid compile warning
1061         * lib/opendir.c (includes): Always include errno.h.
1062         Reported by Tatsuro MATSUOKA.
1063
1064 2011-09-14  Jim Meyering  <meyering@redhat.com>
1065
1066         maint.mk: sc_tight_scope: propagate failure from sub-make
1067         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1068         Reported by Martin von Gagern.
1069
1070 2011-09-13  Bruno Haible  <bruno@clisp.org>
1071
1072         tempname: Support for MSVC.
1073         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1074         MSVC.
1075         * modules/tempname (Depends-on): Add fcntl-h.
1076
1077 2011-09-13  Bruno Haible  <bruno@clisp.org>
1078
1079         sys_time: Support for MSVC.
1080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1081         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1082         include <winsock2.h>.
1083         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1084         function declarations that collide with POSIX.
1085         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1086         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1087
1088 2011-09-13  Bruno Haible  <bruno@clisp.org>
1089
1090         stat: Support for MSVC.
1091         * lib/stat.c: Include pathmax.h.
1092         * modules/stat (Depends-on): Add pathmax.
1093
1094         pathmax: Support for native Windows.
1095         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1096
1097 2011-09-12  Bruno Haible  <bruno@clisp.org>
1098
1099         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1100         * lib/dirent.in.h (struct dirent): New type.
1101         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1102         DT_WHT): New macros.
1103         (DIR): New type.
1104         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1105         (readdir, rewinddir): New declarations.
1106         * lib/dirent-private.h: New file.
1107         * lib/opendir.c: New file.
1108         * lib/readdir.c: New file.
1109         * lib/rewinddir.c: New file.
1110         * lib/closedir.c: New file.
1111         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1112         * m4/opendir.m4: New file.
1113         * m4/readdir.m4: New file.
1114         * m4/rewinddir.m4: New file.
1115         * m4/closedir.m4: New file.
1116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1117         REPLACE_CLOSEDIR here.
1118         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1119         readdir, rewinddir are declared.
1120         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1121         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1122         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1123         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1124         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1125         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1126         * modules/opendir: New file.
1127         * modules/readdir: New file.
1128         * modules/rewinddir: New file.
1129         * modules/closedir: New file.
1130         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1131         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1132         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1133         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1134         * NEWS: Mention the 'fchdir' change.
1135
1136 2011-09-11  Bruno Haible  <bruno@clisp.org>
1137
1138         asm-underscore.m4: Support for MSVC.
1139         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1140         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1141
1142 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1143
1144         Doc about crypt functions.
1145         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1146         needing for _GNU_SOURCE to get crypt.
1147         * doc/posix-functions/encrypt.texi: Likewise.
1148         * doc/posix-functions/setkey.texi: Likewise.
1149
1150 2011-09-11  Bruno Haible  <bruno@clisp.org>
1151
1152         doc: Update regarding MSVC 9.
1153         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1154         tested".
1155         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1156         * doc/posix-headers/*.texi: Likewise.
1157         * doc/pastposix-functions/*.texi: Likewise.
1158         * doc/glibc-functions/*.texi: Likewise.
1159         * doc/glibc-headers/*.texi: Likewise.
1160
1161 2011-09-11  Bruno Haible  <bruno@clisp.org>
1162
1163         unistd et al.: Don't assume <unistd.h> exists.
1164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1165         does not exist.
1166         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1167         exist. But include <stdlib.h>.
1168         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1169         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1170         symlink() does not exist.
1171         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1172         include <io.h> instead.
1173         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1174         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1175         include <direct.h> instead.
1176         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1178         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1179         <io.h> instead.
1180         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1181         correctly if the system does not have hard links.
1182         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1183         <direct.h> instead.
1184         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1185         it when looking for function declarations.
1186         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1187         <direct.h> and <io.h> instead.
1188         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1189
1190 2011-09-11  Bruno Haible  <bruno@clisp.org>
1191
1192         strcase: Support for MSVC.
1193         * modules/strcase (Status, Notice): Remove obsoletion mark.
1194         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1195         * doc/posix-functions/strncasecmp.texi: Likewise.
1196
1197         strings: Don't assume <strings.h> exists.
1198         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1199         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1200         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1201         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1202
1203 2011-09-11  Bruno Haible  <bruno@clisp.org>
1204
1205         dirent: Don't assume <dirent.h> exists.
1206         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1207         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1208         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1209         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1210
1211 2011-09-11  Bruno Haible  <bruno@clisp.org>
1212
1213         Fix wint_t on MSVC.
1214         * lib/wchar.in.h (wint_t): On MSVC, override it.
1215         * lib/wctype.in.h (wint_t): Likewise.
1216         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1217         MSVC.
1218         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1219         * doc/posix-headers/wctype.texi: Likewise.
1220
1221 2011-09-11  Bruno Haible  <bruno@clisp.org>
1222
1223         sys_types: Fix typo.
1224         * lib/sys_types.in.h: Fix typo in comment.
1225         Reported by Paul Eggert.
1226
1227         Support for MSVC compiler: Ensure size_t gets defined.
1228         * modules/strings (Depends-on): Add 'sys_types'.
1229         * modules/sys_uio (Depends-on): Likewise.
1230         * lib/sys_uio.in.h: Update comment.
1231
1232         C++ tests for module 'sys_types'.
1233         * modules/sys_types-c++-tests: New file.
1234         * tests/test-sys_types-c++.cc: New file.
1235
1236         Tests for module 'sys_types'.
1237         * modules/sys_types-tests: New file.
1238         * tests/test-sys_types.c: New file.
1239
1240         New module 'sys_types'.
1241         * lib/sys_types.in.h: New file.
1242         * m4/sys_types_h.m4: New file.
1243         * modules/sys_types: New file.
1244         * doc/posix-headers/sys_types.texi: Mention the new module and the
1245         size_t problem on MSVC 9.
1246
1247 2011-09-11  Bruno Haible  <bruno@clisp.org>
1248
1249         Support for MSVC compiler: Avoid division by a literal 0.
1250         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1251         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1252         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1253         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1254         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1255         * tests/infinity.h: New file.
1256         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1257         on MSVC.
1258         * tests/test-ceilf1.c: Include infinity.h.
1259         (main): Use Infinityf.
1260         * tests/test-ceil1.c: Include infinity.h.
1261         (main): Use Infinityd.
1262         * tests/test-ceill.c: Include infinity.h.
1263         (main): Use Infinityl.
1264         * tests/test-dprintf-posix.c: Include infinity.h.
1265         (test_function): Use Infinityd.
1266         * tests/test-floorf1.c: Include infinity.h.
1267         (main): Use Infinityf.
1268         * tests/test-floor1.c: Include infinity.h.
1269         (main): Use Infinityd.
1270         * tests/test-floorl.c: Include infinity.h.
1271         (main): Use Infinityl.
1272         * tests/test-fprintf-posix.c: Include infinity.h.
1273         (test_function): Use Infinityd.
1274         * tests/test-frexp.c: Include infinity.h.
1275         (main): Use Infinityd.
1276         * tests/test-frexpl.c: Include infinity.h.
1277         (main): Use Infinityl.
1278         * tests/test-isfinite.c: Include infinity.h.
1279         (test_isfinitef): Use Infinityf.
1280         (test_isfinited): Use Infinityd.
1281         (test_isfinitel): Use Infinityl.
1282         * tests/test-isinf.c: Include infinity.h.
1283         (test_isinff): Use Infinityf.
1284         (test_isinfd): Use Infinityd.
1285         (test_isinfl): Use Infinityl.
1286         * tests/test-isnan.c: Include infinity.h.
1287         (test_float): Use Infinityf.
1288         (test_double): Use Infinityd.
1289         (test_long_double): Use Infinityl.
1290         * tests/test-isnanf.h: Include infinity.h.
1291         (main): Use Infinityf.
1292         * tests/test-isnand.h: Include infinity.h.
1293         (main): Use Infinityd.
1294         * tests/test-isnanl.h: Include infinity.h.
1295         (main): Use Infinityl.
1296         * tests/test-ldexpl.c: Include infinity.h.
1297         (main): Use Infinityl.
1298         * tests/test-printf-posix.h: Include infinity.h.
1299         (test_function): Use Infinityd.
1300         * tests/test-roundf1.c: Include infinity.h.
1301         (main): Use Infinityf.
1302         * tests/test-round1.c: Include infinity.h.
1303         (main): Use Infinityd.
1304         * tests/test-roundl.c: Include infinity.h.
1305         (main): Use Infinityl.
1306         * tests/test-signbit.c: Include infinity.h.
1307         (test_signbitf): Use Infinityf.
1308         (test_signbitd): Use Infinityd.
1309         (test_signbitl): Use Infinityl.
1310         * tests/test-snprintf-posix.h: Include infinity.h.
1311         (test_function): Use Infinityd, Infinityl.
1312         * tests/test-sprintf-posix.h: Include infinity.h.
1313         (test_function): Use Infinityd, Infinityl.
1314         * tests/test-truncf1.c: Include infinity.h.
1315         (main): Use Infinityf.
1316         * tests/test-trunc1.c: Include infinity.h.
1317         (main): Use Infinityd.
1318         * tests/test-truncl.c: Include infinity.h.
1319         (main): Use Infinityl.
1320         * tests/test-vasnprintf-posix.c: Include infinity.h.
1321         (test_function): Use Infinityd, Infinityl.
1322         * tests/test-vasprintf-posix.c: Include infinity.h.
1323         (test_function): Use Infinityd, Infinityl.
1324         * modules/ceilf-tests (Files): Add tests/infinity.h.
1325         * modules/ceil-tests (Files): Likewise.
1326         * modules/ceill-tests (Files): Likewise.
1327         * modules/dprintf-posix-tests (Files): Likewise.
1328         * modules/floorf-tests (Files): Likewise.
1329         * modules/floor-tests (Files): Likewise.
1330         * modules/floorl-tests (Files): Likewise.
1331         * modules/fprintf-posix-tests (Files): Likewise.
1332         * modules/frexp-tests (Files): Likewise.
1333         * modules/frexp-nolibm-tests (Files): Likewise.
1334         * modules/frexpl-tests (Files): Likewise.
1335         * modules/frexpl-nolibm-tests (Files): Likewise.
1336         * modules/isfinite-tests (Files): Likewise.
1337         * modules/isinf-tests (Files): Likewise.
1338         * modules/isnan-tests (Files): Likewise.
1339         * modules/isnanf-tests (Files): Likewise.
1340         * modules/isnanf-nolibm-tests (Files): Likewise.
1341         * modules/isnand-tests (Files): Likewise.
1342         * modules/isnand-nolibm-tests (Files): Likewise.
1343         * modules/isnanl-tests (Files): Likewise.
1344         * modules/isnanl-nolibm-tests (Files): Likewise.
1345         * modules/ldexpl-tests (Files): Likewise.
1346         * modules/printf-posix-tests (Files): Likewise.
1347         * modules/roundf-tests (Files): Likewise.
1348         * modules/round-tests (Files): Likewise.
1349         * modules/roundl-tests (Files): Likewise.
1350         * modules/signbit-tests (Files): Likewise.
1351         * modules/snprintf-posix-tests (Files): Likewise.
1352         * modules/sprintf-posix-tests (Files): Likewise.
1353         * modules/truncf-tests (Files): Likewise.
1354         * modules/trunc-tests (Files): Likewise.
1355         * modules/truncl-tests (Files): Likewise.
1356         * modules/vasnprintf-posix-tests (Files): Likewise.
1357         * modules/vasprintf-posix-tests (Files): Likewise.
1358         * modules/vdprintf-posix-tests (Files): Likewise.
1359         * modules/vfprintf-posix-tests (Files): Likewise.
1360         * modules/vprintf-posix-tests (Files): Likewise.
1361         * modules/vsnprintf-posix-tests (Files): Likewise.
1362         * modules/vsprintf-posix-tests (Files): Likewise.
1363         * modules/xprintf-posix-tests (Files): Likewise.
1364
1365 2011-09-11  Bruno Haible  <bruno@clisp.org>
1366
1367         Ensure pid_t gets defined.
1368         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1369         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1370         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1371         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1372         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1373         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1374         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1375         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1376         * tests/test-fcntl-h.c: Check that pid_t is defined.
1377         * tests/test-sched.c: Likewise.
1378         * tests/test-termios.c: Likewise.
1379         * tests/test-time.c: Likewise.
1380         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1381         * doc/posix-headers/signal.texi: Likewise.
1382         * doc/posix-headers/sys_types.texi: Likewise.
1383         * doc/posix-headers/time.texi: Likewise.
1384
1385 2011-09-11  Bruno Haible  <bruno@clisp.org>
1386
1387         acl: Fix compilation on Solaris 10 (older version).
1388         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1389         of ACE_EVERYONE.
1390         * lib/set-mode-acl.c (qset_acl): Likewise.
1391         Reported by Christian Jullien <eligis@orange.fr>.
1392
1393 2011-09-10  Bruno Haible  <bruno@clisp.org>
1394
1395         iconv, unsetenv: Add support for MSVC compiler.
1396         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1397         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1398
1399 2011-09-10  Bruno Haible  <bruno@clisp.org>
1400
1401         *printf: Add support for MSVC compiler.
1402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1403         handles the exception caused by the %n directive. When cross-compiling,
1404         guess no on native Windows.
1405         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1406         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1407         emulate it through vsnprintf.
1408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1409         * doc/posix-functions/dprintf.texi: Update documentation regarding
1410         MSVC 9.
1411         * doc/posix-functions/fprintf.texi: Likewise.
1412         * doc/posix-functions/printf.texi: Likewise.
1413         * doc/posix-functions/snprintf.texi: Likewise.
1414         * doc/posix-functions/sprintf.texi: Likewise.
1415         * doc/posix-functions/swprintf.texi: Likewise.
1416         * doc/posix-functions/vdprintf.texi: Likewise.
1417         * doc/posix-functions/vfprintf.texi: Likewise.
1418         * doc/posix-functions/vprintf.texi: Likewise.
1419         * doc/posix-functions/vsnprintf.texi: Likewise.
1420         * doc/posix-functions/vsprintf.texi: Likewise.
1421         * doc/glibc-functions/asprintf.texi: Likewise.
1422         * doc/glibc-functions/obstack_printf.texi: Likewise.
1423         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1424         * doc/glibc-functions/vasprintf.texi: Likewise.
1425
1426 2011-09-10  Bruno Haible  <bruno@clisp.org>
1427
1428         nocrash: Add support for native Windows.
1429         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1430
1431 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1432             Bruno Haible  <bruno@clisp.org>
1433
1434         absolute-header, include-next: Add support for MSVC compiler.
1435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1436         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1437         directory separator in #line directives.
1438         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1439         recognize also backslash as directory separator in #line directives.
1440
1441 2011-09-08  Jim Meyering  <meyering@redhat.com>
1442
1443         maint.mk: mark the post-release commit log with "maint: " prefix
1444         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1445         one-line commit-log summary.
1446
1447 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1448             Bruno Haible  <bruno@clisp.org>
1449
1450         Doc about crypt functions.
1451         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1452         systems.
1453         * doc/posix-functions/encrypt.texi: Likewise.
1454         * doc/posix-functions/setkey.texi: Likewise.
1455
1456 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1457
1458         * lib/gc.h: Fix copyright header.
1459
1460 2011-09-07  Bruno Haible  <bruno@clisp.org>
1461
1462         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1463         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1464         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1465
1466 2011-09-07  Bruno Haible  <bruno@clisp.org>
1467
1468         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1469         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1470         * lib/freopen.c: Likewise.
1471         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1472         * lib/lstat.c: Likewise.
1473         * lib/stat.c: Likewise.
1474         * lib/open.c: Use different syntax for include of <fcntl.h>.
1475         * lib/openat.c: Include fcntl.h again, explicitly.
1476
1477 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1478
1479         parse-datetime: document the newly accepted format
1480         * doc/parse-datetime.texi (Combined date and time of day items):
1481         New section.
1482
1483 2011-09-06  Bruno Haible  <bruno@clisp.org>
1484
1485         acl: Fix a test failure on newer Solaris 10 with ZFS.
1486         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1487         ENOSYS as no ACL.
1488         Reported by Jim Meyering.
1489
1490 2011-09-06  Bruno Haible  <bruno@clisp.org>
1491
1492         acl: Update for AIX >= 5.3 with NFS.
1493         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1494         ENOSYS as no ACL.
1495
1496         acl: Fix a test failure on AIX >= 5.3 with NFS.
1497         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1498         as no ACL.
1499
1500 2011-09-06  Bruno Haible  <bruno@clisp.org>
1501
1502         acl: Fix a test failure on IRIX 6.5 with NFS.
1503         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1504         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1505         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1506         * lib/copy-acl.c (qcopy_acl): Likewise.
1507
1508 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1509
1510         openat: port to AIX 7.1 with large files
1511         AIX 7.1 does a "#define openat open64at" if large files are in use,
1512         so we can't simply #undef openat.  Use the orig_openat trick (similar
1513         to orig_open in lib/open.c) to work around the problem.  Problem
1514         reported by Kevin Brott for GNU tar, in the thread containing
1515         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1516         * lib/openat.c (__need_system_fcntl_h): Define first.
1517         Include <fcntl.h> and <sys/types.h> before undefining.
1518         (orig_openat) [HAVE_OPENAT]: New inline function.
1519         (openat) [HAVE_OPENAT]: Do not undef.
1520         (rpl_openat): Use orig_openat, not openat.
1521
1522 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1523             Bruno Haible  <bruno@clisp.org>
1524
1525         acl: Avoid errors on NonStop Kernel.
1526         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1527         ENOTSUP errors.
1528
1529 2011-09-05  Bruno Haible  <bruno@clisp.org>
1530
1531         acl: Clean up Solaris code.
1532         * lib/acl-internal.h: Remove no-op #if.
1533         * lib/file-has-acl.c: Likewise.
1534         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1535         * lib/copy-acl.c (qcopy_acl): Likewise.
1536
1537 2011-09-05  Bruno Haible  <bruno@clisp.org>
1538
1539         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1540         binaries built on the original Solaris 10.
1541         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1542         trivial.
1543
1544 2011-09-05  Bruno Haible  <bruno@clisp.org>
1545
1546         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1547         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1548         10.
1549         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1550         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1551         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1552         instead of acl_get, facl_get, acl_set, facl_set.
1553
1554 2011-09-05  Bruno Haible  <bruno@clisp.org>
1555
1556         copy-file: Try unit tests on more file systems.
1557         * tests/test-copy-file-1.sh: New file.
1558         * tests/test-copy-file-2.sh: New file.
1559         * modules/copy-file-tests (Files): Add them.
1560         (Makefile.am): Add them to TESTS.
1561
1562         acl: Try unit tests on more file systems.
1563         * tests/test-file-has-acl-1.sh: New file.
1564         * tests/test-file-has-acl-2.sh: New file.
1565         * tests/test-set-mode-acl-1.sh: New file.
1566         * tests/test-set-mode-acl-2.sh: New file.
1567         * tests/test-copy-acl-1.sh: New file.
1568         * tests/test-copy-acl-2.sh: New file.
1569         * modules/acl-tests (Files): Add them.
1570         (Makefile.am): Add them to TESTS.
1571
1572 2011-09-04  Bruno Haible  <bruno@clisp.org>
1573
1574         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1575         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1576         10.
1577         (OLD_ALLOW, OLD_DENY): New macros.
1578         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1579         ACE_ACCESS_ALLOWED_ACE_TYPE.
1580         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1581         ACE_ACCESS_DENIED_ACE_TYPE.
1582         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1583         (NEW_ACE_EXECUTE): Fix value.
1584         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1585         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1586         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1587         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1588         NEW_ACE_SYNCHRONIZE): New macros.
1589         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1590         instead of acl_fromtext, acl_set, facl_set.
1591         Fixes a coreutils/tests/cp/perm failure.
1592
1593 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         openat: test for fstatat (..., 0) bug
1596         Further testing with tar suggests that fstatat (..., 0)
1597         does not work in general, on AIX 7.1; see
1598         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1599         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1600         replacement fstatat (which is what older AIX releases were using
1601         anyway).
1602         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1603         use is now changed to orig_fstatat.  This was probably the right
1604         thing to do anyway.
1605         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1606         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1607         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1608         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1609         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1610         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1611         if the bug is found.
1612
1613         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1614         This tests for another fstatat bug on AIX 7.1:
1615         fstatat (AT_FDCWD, ..., 0) does not work.  See
1616         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1617         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1618         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1619         (rpl_fstatat): Adjust so that it works around either (or both)
1620         bugs if present.
1621         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1622
1623 2011-09-03  Karl Berry  <karl@gnu.org>
1624
1625         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1626         in index entries.
1627
1628 2011-09-02  Bruno Haible  <bruno@clisp.org>
1629
1630         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1631         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1632         values of AR, ARFLAGS, RANLIB.
1633         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1634
1635 2011-09-02  Bruno Haible  <bruno@clisp.org>
1636
1637         Find 'ar' program that fits with --host argument.
1638         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1639
1640 2011-09-02  Bruno Haible  <bruno@clisp.org>
1641
1642         tests: init.sh: Support any non-GNU diff.
1643         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1644         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1645         Solaris 8.
1646
1647 2011-09-02  Bruno Haible  <bruno@clisp.org>
1648
1649         tests: init.sh: work also with any non-GNU diff that supports -u
1650         * tests/init.sh: Relax check for diff -u support.
1651         Rather than checking for GNU diff via --version, simply check
1652         for support for -u itself.  Useful at least on OpenBSD 4.9,
1653         AIX 7.1, IRIX 6.5, and Solaris 10.
1654
1655 2011-09-01  Bruno Haible  <bruno@clisp.org>
1656
1657         strtoimax, strtoumax: Document problem on HP-UX 11.
1658         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1659         * doc/posix-functions/strtoumax.texi: Likewise.
1660
1661 2011-09-01  Bruno Haible  <bruno@clisp.org>
1662
1663         strtoumax: Avoid link error on OSF/1 with DTK cc.
1664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1665         defined as a function.
1666         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1667         strtoumax is defined, not whether it is declared.
1668
1669 2011-09-01  Bruno Haible  <bruno@clisp.org>
1670
1671         strtoimax: Avoid link error on OSF/1 with DTK cc.
1672         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1673         defined as a function.
1674         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1675         strtoimax is defined, not whether it is declared.
1676
1677 2011-09-01  Bruno Haible  <bruno@clisp.org>
1678
1679         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1680         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1681         as a function.
1682         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1683         whether it is declared.
1684
1685 2011-09-01  Bruno Haible  <bruno@clisp.org>
1686
1687         imaxabs: Avoid link error on OSF/1 with DTK cc.
1688         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1689         as a function.
1690         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1691         whether it is declared.
1692
1693 2011-09-01  Bruno Haible  <bruno@clisp.org>
1694
1695         Tests for module 'strtoumax'.
1696         * modules/strtoumax-tests: New file.
1697         * tests/test-strtoumax.c: New file.
1698
1699         Tests for module 'strtoimax'.
1700         * modules/strtoimax-tests: New file.
1701         * tests/test-strtoimax.c: New file.
1702
1703         Tests for module 'imaxdiv'.
1704         * modules/imaxdiv-tests: New file.
1705         * tests/test-imaxdiv.c: New file.
1706
1707         Tests for module 'imaxabs'.
1708         * modules/imaxabs-tests: New file.
1709         * tests/test-imaxabs.c: New file.
1710
1711 2011-09-01  Bruno Haible  <bruno@clisp.org>
1712
1713         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1714         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1715         pthread_create.
1716
1717 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1718
1719         openat: work around AIX 7.1 fstatat issue
1720         This should fix the problem that was not properly fixed
1721         in the previous change, dated 2011-08-30.
1722         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1723         __need_system_stat_h defined.
1724         (orig_fstatat) [HAVE_FSTATAT]: New function.
1725         (rpl_fstatat): Go back to the old way of doing things,
1726         except call orig_fstatat instead of fstatat.
1727         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1728         Remove unnecessary check whether fstatat fills in st_size etc.
1729
1730 2011-09-01  Bruno Haible  <bruno@clisp.org>
1731
1732         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1733         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1734         just include the system's header.
1735
1736 2011-08-31  Jim Meyering  <meyering@redhat.com>
1737
1738         tests: avoid spurious assertion failure in test-float.c on ppc64
1739         * tests/test-float.c (test_long_double): Comment out an assertion,
1740         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1741         with gcc-4.4.4.
1742
1743         maint: indent with spaces, not TABs
1744         I need to get in the habit of running gnulib's "make check".
1745         Both of these would have been caught.
1746         * m4/largefile.m4: Indent with spaces, not TABs.
1747         * lib/parse-datetime.y (iso_8601_time): Likewise.
1748         Spotted by Pádraig Brady.
1749
1750         test-parse-datetime.c: accommodate a relatively strict gcc warning
1751         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1752         to avoid a warning from gcc's -Werror=missing-declarations.
1753         Insert a few spaces-before-funcall-parenthesis.
1754
1755 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1756
1757         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1758         The parser now accepts ISO 8601 date-time strings with "T" as the
1759         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1760         with a space between the date and time strings.  Now it also parses
1761         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1762         variants like "2004-02-29T16:21:42.333-07:00"
1763         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1764         of day representation using the 'T' separator character.
1765         * doc/parse-datetime.texi (General date syntax): replace use of
1766         deprecated --iso-8601 option with --rfc-3339 in example of date
1767         command output formats that can be parsed.
1768         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1769         lib/parse-datetime.y.
1770         (gmt_offset): New function.
1771         (main): Add additional test cases to validate ISO8601 extended
1772         date and time of day parsing.
1773
1774 2011-08-31  Bruno Haible  <bruno@clisp.org>
1775
1776         freopen: Documentation.
1777         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1778         name.
1779         Reported by Claudio Bley <claudio.bley@gmail.com>.
1780
1781 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1782
1783         freopen: Don't crash if the filename argument is NULL.
1784         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1785         NULL.
1786
1787 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1788
1789         openat: work around AIX 7.1 fstatat bug
1790         Problem reported by Kevin Brott for GNU tar, in the thread containing
1791         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1792         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1793         FSTATAT_ST_SIZE_ETC_BROKEN.
1794         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1795         rpl_fstatat.
1796         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1797         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1798         AC_CHECK_FUNCS_ONCE for fstatat.
1799         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1800         fchmodat, mkdirat, openat and unlinkat.
1801
1802 2011-08-30  Bruno Haible  <bruno@clisp.org>
1803
1804         Avoid endless recursions if config.h includes some header files.
1805         * lib/fopen.c (__need_FILE): Define already before including config.h.
1806         * lib/freopen.c (__need_FILE): Likewise.
1807         * lib/open.c (__need_system_fcntl_h): Likewise.
1808         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1809         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1810         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1811
1812 2011-08-25  Karl Berry  <karl@gnu.org>
1813
1814         * config/srclist.txt (ylwrap): new try.
1815         * build-aux/ylwrap: new file.
1816
1817 2011-08-23  Bruno Haible  <bruno@clisp.org>
1818
1819         tmpdir: Use a good default directory on native Windows.
1820         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1821         (P_tmpdir): Default to _P_tmpdir on native Windows.
1822         (path_search): On native Windows, try the value returned by GetTempPath
1823         before trying P_tmpdir.
1824         * modules/tmpdir (Depends-on): Add pathmax.
1825         Suggested by John Darrington <john@darrington.wattle.id.au>.
1826
1827 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1828
1829         doc: fix typo in README-release
1830         * top/README-release: Capitalize first word of a sentence.
1831
1832 2011-08-19  Jim Meyering  <meyering@redhat.com>
1833
1834         fts: do not exhaust memory when processing million-entry directories
1835         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1836         directory would require about 256*N bytes of memory.  Thus, it was
1837         easy to construct a directory too large to be processed by any of
1838         those tools.  With this change, fts' maximum memory utilization is
1839         now limited to around 30MB.
1840         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1841         (fts_read): When we've processed the final entry (i.e., when
1842         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1843         using the parent entry to read any remaining entries.  Dispatch
1844         depending on what fts_build returns:
1845         - NULL+stop, aka failure: stop
1846         - NULL otherwise: move up in the dir hierarchy
1847         - non-NULL: handle this new entry
1848         (fts_build): Declare and use new local, continue_readdir.
1849         Prepare to be called from fts_read, when the entries
1850         from a partially-read directory have just been exhausted.
1851         In that case, we'll skip the opendir and instead use the parent's
1852         fts_dirp and derive dir_fd from that.
1853         Finally, in the readdir loop, if we read max_entries entries,
1854         exit the loop ensuring *not* to call closedir.  This is required
1855         so that fts_dirp can be reused on a subsequent call.
1856         Prompted by Ben England's report of memory exhaustion in find
1857         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1858
1859         maint: fts: move decl of `dp' down into while loop; split a long line
1860         * lib/fts.c (fts_build): No semantic change.
1861
1862         fts: add/use new struct member, fts_dirp
1863         We are about to use this to manage any directory with
1864         too many entries to read all of them into memory at once.
1865         To do that, we'll need to save the DIR* pointer in each
1866         affected FTSENT struct.
1867         * lib/fts_.h: Include <dirent.h>.
1868         (struct FTSENT) [fts_dirp]: New member.
1869         * lib/fts.c (closedir_and_clear): Define.
1870         Use it in place of closedir so that we are sure to
1871         clear the new fts_dirp member when done with it.
1872         (fts_alloc): Initialize the new member.
1873         (fts_lfree): Free, if needed.
1874
1875         maint: fts: give __opendir2 a new parameter and rename
1876         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1877         than surreptitiously using sole caller's "dir_fd".
1878         (fts_opendir): Rename from __opendir2.
1879
1880         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1881         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1882
1883         maint: fts.c: correct off-by-one indentation
1884         * lib/fts.c (fts_build): Correct indentation, change style
1885         of a couple of block comments, and bracing style.
1886
1887         maint: fts.c: move __opendir2 #define "up" out of function body
1888         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1889
1890         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1891         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1892         out for a long time and besides was useful only on BSD systems.
1893
1894 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1895
1896         regex: port to Stratus OpenVOS
1897         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1898         define to empty, rather than attempting nonportable optimizations.
1899         Problem reported by Paul Green in:
1900         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1901         and fix suggested by Eric Blake in:
1902         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1903
1904 2011-08-17  Eric Blake  <eblake@redhat.com>
1905
1906         getcwd: fix test failures on mingw
1907         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1908         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1909         test if long directory cannot be created, and allow mingw errno.
1910
1911         getcwd-lgpl: fix m4 to match relaxed test for BSD
1912         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1913         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1914         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1915         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1916         signature problem.
1917
1918         getcwd: fix compilation on mingw64
1919         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1920         getcwd.
1921         Reported by Marc-André Lureau.
1922
1923         pipe2: silence compiler warning
1924         * lib/pipe2.c (pipe2): Hide label if it is not used.
1925
1926 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1927
1928         relocatable-prog: fix link error
1929         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1930         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1931         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1932         into modules/relocatable-lib without noticing that
1933         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1934         also needs to build relocatable.c.
1935
1936 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1937
1938         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1939         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1940         shell code: it contained a 'break' that was not in a loop.
1941         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1942         via a shell-language loop; this may have been true in old Autoconf
1943         versions, but it's not true in Autoconf 2.68.  I found this bug
1944         when testing coreutils git on Solaris 8, whose shell complains
1945         about the syntax error.
1946
1947 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1948
1949         * lib/base64.c: Fix comment to reference RFC 4648.
1950         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1951         <gvtulder@gmail.com>.
1952
1953 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1954
1955         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1956
1957         po/Makefile.in.in: fix make -q problem
1958         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1959         rule, since there's no file named 'check-macro-version' and its
1960         use as a file breaks make -q.
1961         (all): Don't depend on check-macro-version.
1962         (CHECK_MACRO_VERSION): New macro.
1963         (stamp-po): Use it.
1964
1965         configmake: fix make -q problem
1966         * modules/configmake (configmake.h): Update configmake.h's time stamp
1967         even if the file does not change.  Otherwise, 'make -q' fails.
1968         Problem reported by Simon Josefsson in
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1970
1971 2011-08-11  Jim Meyering  <meyering@redhat.com>
1972
1973         git-version-gen: correct the advice in a comment
1974         * build-aux/git-version-gen: Correct comment.
1975         Don't recommend to list .tarball-version in .gitignore.
1976
1977 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         base64: fix off-by-one buffer size bug
1980         Problem and (trivial) fix reported by Gijs van Tulder in
1981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1982         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1983         * tests/test-base64.c (main): Catch the bug.
1984
1985 2011-08-10  Eric Blake  <eblake@redhat.com>
1986
1987         closein: correct comments
1988         * lib/closein.c (close_stdin): Improve comments.
1989
1990 2011-08-09  Bruno Haible  <bruno@clisp.org>
1991
1992         More tests for 'fseeko'.
1993         * tests/test-fseeko3.c: New file, from Eric Blake.
1994         * tests/test-fseeko3.sh: New file.
1995         * modules/fseeko-tests (Files): Add them.
1996         (TESTS): Add test-fseeko3.sh.
1997         (check_PROGRAMS): Add test-fseeko3.
1998
1999 2011-08-09  Eric Blake  <eblake@redhat.com>
2000
2001         fseeko: remove unneeded hack
2002         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2003
2004         fseeko: fix bug on glibc
2005         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2006         Reported by John W. Eaton.
2007
2008 2011-08-08  Bruno Haible  <bruno@clisp.org>
2009
2010         unictype/base: Fix interoperability with preinstalled libunistring.
2011         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2012         Reported by Simon Josefsson.
2013
2014 2011-08-08  Bruno Haible  <bruno@clisp.org>
2015
2016         iswblank: Detect declaration correctly.
2017         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2018         AC_CHECK_DECLS invocation.
2019
2020 2011-08-08  Bruno Haible  <bruno@clisp.org>
2021
2022         tcgetsid: Detect declaration correctly.
2023         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2024         AC_CHECK_DECLS invocation.
2025         Reported by Simon Josefsson.
2026
2027 2011-08-08  Eric Blake  <eblake@redhat.com>
2028
2029         largefile: fix typo that regressed large file support
2030         * modules/largefile (configure.ac-early): Fix section name.
2031
2032 2011-08-06  Karl Berry  <karl@gnu.org>
2033
2034         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2035         a separate module.
2036
2037 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2038
2039         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2040         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2041         get prototype for free.
2042
2043 2011-08-04  Bruno Haible  <bruno@clisp.org>
2044
2045         Tests for module 'pathmax'.
2046         * modules/pathmax-tests: New file.
2047         * tests/test-pathmax.c: New file.
2048
2049         canonicalize-lgpl: Support larger filenames on the Hurd.
2050         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2051         Reported by Paul Eggert.
2052
2053         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2054         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2055         * lib/chdir-long.h: Include pathmax.h.
2056         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2057         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2058         (PATH_MAX): Remove code that is done by pathmax.h.
2059         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2060         * lib/tmpfile.c: Add a comment.
2061         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2062         * modules/chdir-long (Depends-on): Add pathmax.
2063         * modules/getcwd (Depends-on): Add pathmax.
2064         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2065         is not defined.
2066         * doc/posix-headers/limits.texi: Mention the pathmax module.
2067         * NEWS: Mention the change.
2068
2069 2011-08-02  Bruno Haible  <bruno@clisp.org>
2070
2071         pthread_sigmask: Actually use results of gl_THREADLIB.
2072         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2073         gl_THREADLIB, not gl_[]THREADLIB.
2074         Reported by Eric Blake.
2075
2076 2011-08-02  Jim Meyering  <meyering@redhat.com>
2077
2078         maint.mk: relax the default _gl_TS_function_match regexp
2079         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2080         space between function name and "(" in an "extern" declaration.
2081         That would fail to match a decl with no space there: extern void foo();
2082
2083 2011-07-31  Iain Nicol  <iain@thenicols.net>
2084
2085         git-version-gen: document that EXTRA_DIST must include .version
2086         * build-aux/git-version-gen: In the how-to-use comment, document
2087         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2088         will fail when run from an unpacked distribution tarball.
2089
2090 2011-08-01  Bruno Haible  <bruno@clisp.org>
2091
2092         wctype-h: Fix last change.
2093         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2094         REPLACE_TOWLOWER to 0.
2095         Reported by Sam Steingold <sds@gnu.org>.
2096
2097 2011-07-31  Bruno Haible  <bruno@clisp.org>
2098
2099         frexpl: Update autoconf test.
2100         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2101         according to changes of 2011-06-20.
2102
2103 2011-07-31  Bruno Haible  <bruno@clisp.org>
2104
2105         sys_utsname: Add support for Minix.
2106         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2107         <sys/utsname.h>.
2108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2109         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2110
2111 2011-07-31  Bruno Haible  <bruno@clisp.org>
2112
2113         strings: Add support for Minix.
2114         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2115         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2116         * doc/posix-headers/strings.texi: Document the Minix problem.
2117
2118 2011-07-31  Bruno Haible  <bruno@clisp.org>
2119
2120         wctype-h: Add support for Minix.
2121         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2122         REPLACE_TOWLOWER.
2123         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2124         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2125         REPLACE_ISWCNTRL.
2126
2127 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2130         This is a performance improvement for 64-bit hosts: it causes the
2131         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2132
2133 2011-07-31  Bruno Haible  <bruno@clisp.org>
2134
2135         stdioext: Add support for Minix.
2136         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2137         * lib/fpurge.c (fpurge): Likewise.
2138         * lib/freadahead.c (freadahead): Likewise.
2139         * lib/freadable.c (freadable): Likewise.
2140         * lib/freading.c (freading): Likewise.
2141         * lib/freadptr.c (freadptr): Likewise.
2142         * lib/freadseek.c (freadptrinc): Likewise.
2143         * lib/fseeko.c (rpl_fseeko): Likewise.
2144         * lib/fseterr.c (fseterr): Likewise.
2145         * lib/fwritable.c (fwritable): Likewise.
2146         * lib/fwriting.c (fwriting): Likewise.
2147         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2148         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2149
2150 2011-07-31  Bruno Haible  <bruno@clisp.org>
2151
2152         errno: Port to Minix.
2153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2154         ECONNABORTED are defined.
2155         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2156         GNULIB_defined_ECONNABORTED): New macros.
2157         * lib/strerror-override.h (strerror_override): Test also
2158         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2159         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2160         ECONNABORTED.
2161         * doc/posix-headers/errno.texi: Mention the Minix problem.
2162
2163 2011-07-31  Bruno Haible  <bruno@clisp.org>
2164
2165         Work around declaration collisions on Minix.
2166         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2167         defined, set REPLACE_MBSINIT.
2168         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2169         defined, set REPLACE_MBRTOWC.
2170         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2171         set REPLACE_MBRLEN.
2172         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2173         defined, set REPLACE_MBSRTOWCS.
2174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2175         defined, set REPLACE_WCRTOMB.
2176         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2177         defined, set REPLACE_WCSRTOMBS.
2178
2179 2011-07-31  Bruno Haible  <bruno@clisp.org>
2180
2181         Add support for Minix with ACK compiler.
2182         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2183         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2184         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2185
2186 2011-07-31  Bruno Haible  <bruno@clisp.org>
2187
2188         Documentation about Minix.
2189         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2190         * doc/glibc-headers/*.texi: Likewise.
2191         * doc/posix-functions/*.texi: Likewise.
2192         * doc/glibc-functions/*.texi: Likewise.
2193
2194 2011-07-31  Bruno Haible  <bruno@clisp.org>
2195
2196         snippet/warn-on-use: Fix indentation.
2197         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2198
2199 2011-07-25  Jim Meyering  <meyering@redhat.com>
2200
2201         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2202         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2203         commands.
2204
2205 2011-07-27  Jim Meyering  <meyering@redhat.com>
2206
2207         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2208         * top/maint.mk (gl_extract_significant_defines_): Now that
2209         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2210         gnulib/lib/signal.in.h, and now that we recommend to
2211         define-if-undefined those two symbols in application code,
2212         we must filter them out of the "significant" list.
2213         This avoids a "make syntax-check" failure in coreutils.
2214
2215 2011-07-26  Eric Blake  <eblake@redhat.com>
2216
2217         warnings: add comments about previous patch
2218         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2219         * m4/include_next.m4: Likewise.
2220         * m4/warn-on-use.m4: Likewise.
2221         * m4/warnings.m4: Likewise, and simplify use.
2222         Suggested by Stefano Lattarini.
2223
2224         include-next, warnings: support older autoconf
2225         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2226         AS_VAR_PUSHDEF in a way that works with older autoconf.
2227         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2228         Reported by Daniel P. Berrange.
2229
2230 2011-07-25  Bruno Haible  <bruno@clisp.org>
2231
2232         fseek, ftell: Fix doc.
2233         * doc/posix-functions/fseek.texi: Reword statement about
2234         AC_SYS_LARGEFILE.
2235         * doc/posix-functions/ftell.texi: Likewise.
2236
2237 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2238             Bruno Haible  <bruno@clisp.org>
2239
2240         Add dependencies to the 'largefile' module.
2241         * modules/fopen (Depends-on): Add 'largefile'.
2242         * modules/freopen (Depends-on): Likewise.
2243         * modules/fseeko (Depends-on): Likewise.
2244         * modules/ftello (Depends-on): Likewise.
2245         * modules/glob (Depends-on): Likewise.
2246         * modules/lseek (Depends-on): Likewise.
2247         * modules/lstat (Depends-on): Likewise.
2248         * modules/mkostemp (Depends-on): Likewise.
2249         * modules/mkostemps (Depends-on): Likewise.
2250         * modules/mkstemp (Depends-on): Likewise.
2251         * modules/mkstemps (Depends-on): Likewise.
2252         * modules/open (Depends-on): Likewise.
2253         * modules/openat (Depends-on): Likewise.
2254         * modules/pread (Depends-on): Likewise.
2255         * modules/pwrite (Depends-on): Likewise.
2256         * modules/scandir (Depends-on): Likewise.
2257         * modules/stat (Depends-on): Likewise.
2258         * modules/tmpfile (Depends-on): Likewise.
2259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2260         since the containing module now depends on the largefile module.
2261         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2262         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2263         off_t is fixed by gnulib.
2264         * doc/posix-functions/freopen.texi: Likewise.
2265         * doc/posix-functions/fseeko.texi: Likewise.
2266         * doc/posix-functions/fstatat.texi: Likewise.
2267         * doc/posix-functions/ftello.texi: Likewise.
2268         * doc/posix-functions/glob.texi: Likewise.
2269         * doc/posix-functions/lseek.texi: Likewise.
2270         * doc/posix-functions/lstat.texi: Likewise.
2271         * doc/posix-functions/mkstemp.texi: Likewise.
2272         * doc/posix-functions/open.texi: Likewise.
2273         * doc/posix-functions/openat.texi: Likewise.
2274         * doc/posix-functions/pread.texi: Likewise.
2275         * doc/posix-functions/pwrite.texi: Likewise.
2276         * doc/posix-functions/scandir.texi: Likewise.
2277         * doc/posix-functions/stat.texi: Likewise.
2278         * doc/posix-functions/tmpfile.texi: Likewise.
2279         * doc/glibc-functions/mkostemp.texi: Likewise.
2280         * doc/glibc-functions/mkostemps.texi: Likewise.
2281         * doc/glibc-functions/mkstemps.texi: Likewise.
2282
2283 2011-07-25  Bruno Haible  <bruno@clisp.org>
2284
2285         fcntl: Move AC_LIBOBJ invocation to module description.
2286         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2287         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2288
2289         fcntl: Remove call-in from fchdir.m4.
2290         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2292
2293         dup3: Remove potential call-in from fchdir.m4.
2294         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2296
2297         dup2: Move AC_LIBOBJ invocation to module description.
2298         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2299         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2300         Don't invoke AC_LIBOBJ.
2301         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2302
2303         dup2: Remove call-in from fchdir.m4.
2304         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2306
2307         fclose: Move AC_LIBOBJ invocation to module description.
2308         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2309         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2310         to 1.
2311         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2312
2313         fclose: Remove call-in from close.m4.
2314         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2315         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2316
2317         close: Move AC_LIBOBJ invocation to module description.
2318         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2319         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2320         1.
2321         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2322
2323         close: Remove call-in from fchdir.m4.
2324         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2326
2327         open: Move AC_LIBOBJ invocation to module description.
2328         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2329         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2330         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2331
2332         open: Remove call-in from fchdir.m4.
2333         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2335
2336         fchdir: Start to remove gl_REPLACE_* idiom.
2337         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2338         (gl_FUNC_FCHDIR): Invoke it.
2339
2340 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2341
2342         * lib/ftell.c (ftell): Comment out cast.
2343
2344         close: use gl_REPLACE_FCLOSE only if defined
2345         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2346         is defined.  The close module doesn't depend on the fclose module
2347         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2349         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2350
2351 2011-07-24  Jim Meyering  <meyering@redhat.com>
2352
2353         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2354         * tests/test-select.h (test_function): Declare as "static".
2355
2356 2011-07-24  Bruno Haible  <bruno@clisp.org>
2357
2358         doc: Mention the effects of AC_SYS_LARGEFILE.
2359         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2360         on this function.
2361         * doc/posix-functions/aio_error.texi: Likewise.
2362         * doc/posix-functions/aio_fsync.texi: Likewise.
2363         * doc/posix-functions/aio_read.texi: Likewise.
2364         * doc/posix-functions/aio_return.texi: Likewise.
2365         * doc/posix-functions/aio_suspend.texi: Likewise.
2366         * doc/posix-functions/aio_write.texi: Likewise.
2367         * doc/posix-functions/fgetpos.texi: Likewise.
2368         * doc/posix-functions/fopen.texi: Likewise.
2369         * doc/posix-functions/freopen.texi: Likewise.
2370         * doc/posix-functions/fsetpos.texi: Likewise.
2371         * doc/posix-functions/fstatvfs.texi: Likewise.
2372         * doc/posix-functions/ftruncate.texi: Likewise.
2373         * doc/posix-functions/ftw.texi: Likewise.
2374         * doc/posix-functions/getrlimit.texi: Likewise.
2375         * doc/posix-functions/glob.texi: Likewise.
2376         * doc/posix-functions/lio_listio.texi: Likewise.
2377         * doc/posix-functions/lockf.texi: Likewise.
2378         * doc/posix-functions/mkstemp.texi: Likewise.
2379         * doc/posix-functions/mmap.texi: Likewise.
2380         * doc/posix-functions/nftw.texi: Likewise.
2381         * doc/posix-functions/openat.texi: Likewise.
2382         * doc/posix-functions/opendir.texi: Likewise.
2383         * doc/posix-functions/posix_fadvise.texi: Likewise.
2384         * doc/posix-functions/posix_fallocate.texi: Likewise.
2385         * doc/posix-functions/pread.texi: Likewise.
2386         * doc/posix-functions/pwrite.texi: Likewise.
2387         * doc/posix-functions/readdir.texi: Likewise.
2388         * doc/posix-functions/readdir_r.texi: Likewise.
2389         * doc/posix-functions/rewinddir.texi: Likewise.
2390         * doc/posix-functions/scandir.texi: Likewise.
2391         * doc/posix-functions/seekdir.texi: Likewise.
2392         * doc/posix-functions/setrlimit.texi: Likewise.
2393         * doc/posix-functions/statvfs.texi: Likewise.
2394         * doc/posix-functions/telldir.texi: Likewise.
2395         * doc/posix-functions/tmpfile.texi: Likewise.
2396         * doc/posix-functions/truncate.texi: Likewise.
2397         * doc/glibc-functions/fallocate.texi: Likewise.
2398         * doc/glibc-functions/fstatfs.texi: Likewise.
2399         * doc/glibc-functions/fts_children.texi: Likewise.
2400         * doc/glibc-functions/fts_read.texi: Likewise.
2401         * doc/glibc-functions/getdirentries.texi: Likewise.
2402         * doc/glibc-functions/mkostemp.texi: Likewise.
2403         * doc/glibc-functions/mkostemps.texi: Likewise.
2404         * doc/glibc-functions/mkstemps.texi: Likewise.
2405         * doc/glibc-functions/preadv.texi: Likewise.
2406         * doc/glibc-functions/pwritev.texi: Likewise.
2407         * doc/glibc-functions/sendfile.texi: Likewise.
2408         * doc/glibc-functions/statfs.texi: Likewise.
2409
2410 2011-07-24  Bruno Haible  <bruno@clisp.org>
2411
2412         doc: Fix typo.
2413         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2414
2415 2011-07-24  Bruno Haible  <bruno@clisp.org>
2416
2417         doc: Mention fsusage.
2418         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2419
2420 2011-07-24  Bruno Haible  <bruno@clisp.org>
2421
2422         doc: Mention new glibc headers and functions.
2423         * doc/glibc-headers/gshadow.texi: New file.
2424         * doc/glibc-functions/endsgent.texi: New file.
2425         * doc/glibc-functions/fgetsgent.texi: New file.
2426         * doc/glibc-functions/fgetsgent_r.texi: New file.
2427         * doc/glibc-functions/getsgent.texi: New file.
2428         * doc/glibc-functions/getsgent_r.texi: New file.
2429         * doc/glibc-functions/getsgnam.texi: New file.
2430         * doc/glibc-functions/getsgnam_r.texi: New file.
2431         * doc/glibc-functions/putsgent.texi: New file.
2432         * doc/glibc-functions/setsgent.texi: New file.
2433         * doc/glibc-functions/sgetsgent.texi: New file.
2434         * doc/glibc-functions/sgetsgent_r.texi: New file.
2435         * doc/glibc-functions/malloc_info.texi: New file.
2436         * doc/glibc-functions/preadv.texi: New file.
2437         * doc/glibc-functions/pwritev.texi: New file.
2438         * doc/glibc-functions/register_printf_modifier.texi: New file.
2439         * doc/glibc-functions/register_printf_specifier.texi: New file.
2440         * doc/glibc-functions/register_printf_type.texi: New file.
2441         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2442         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2443         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2444         * doc/glibc-functions/pthread_getname_np.texi: New file.
2445         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2446         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2447         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2448         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2449         * doc/glibc-functions/pthread_setname_np.texi: New file.
2450         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2451         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2452         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2453         * doc/glibc-functions/qsort_r.texi: New file.
2454         * doc/glibc-functions/quick_exit.texi: New file.
2455         * doc/glibc-functions/syncfs.texi: New file.
2456         * doc/gnulib.texi: Include them.
2457         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2458         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2459         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2460         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2461         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2462         * doc/glibc-functions/execvpe.texi: Likewise.
2463
2464 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2465
2466         ftell: don't include <unistd.h>
2467         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2468         guaranteed to define off_t, and the ftell module depends on the
2469         stdio module.
2470
2471         ftell: do not assume wraparound signed arithmetic
2472         * lib/ftell.c: Include <limits.h>.
2473         (ftell): Don't assume wraparound signed arithmetic.
2474
2475 2011-07-24  Bruno Haible  <bruno@clisp.org>
2476
2477         close: No longer depend on module 'fclose'.
2478         * modules/close (Depends-on): Remove fclose.
2479         * NEWS: Mention the change.
2480         Suggested by Sam Steingold <sds@gnu.org>.
2481
2482 2011-07-24  Bruno Haible  <bruno@clisp.org>
2483
2484         fsusage: Enable large volume support on AIX >= 5.2.
2485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2486         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2487         instead of STAT_STATVFS.
2488         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2489
2490         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2492         f_blocks field only on MacOS X.
2493
2494         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2496         * modules/fsusage (Depends-on): Add largefile.
2497
2498 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2499
2500         * README: Modernize discussion of signed integers.
2501         Assuming overflow wraparound is no longer safe.
2502         Mention ones' complement and signed magnitude.
2503
2504 2011-07-22  Bruno Haible  <bruno@clisp.org>
2505
2506         select tests, pselect tests: Refactor.
2507         * tests/test-select.h: New file, extracted from tests/test-select.c.
2508         (select_fn): New type.
2509         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2510         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2511         test_pipe): Add my_select argument.
2512         (test_function): Renamed from main. Add my_select argument.
2513         * tests/test-select.c: Move most code to tests/test-select.h. Include
2514         test-select.h.
2515         * modules/select-tests (Files): Add tests/test-select.h.
2516         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2517         (my_select, main): New functions.
2518         * modules/pselect-tests (Files): Add tests/test-select.h,
2519         tests/macros.h, tests/signature.h.
2520         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2521         (configure.ac): Check for <sys/wait.h>.
2522
2523 2011-07-22  Bruno Haible  <bruno@clisp.org>
2524
2525         sys_select tests: Check the signature of FD_*.
2526         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2527         signature tests from here...
2528         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2529         here.
2530         * modules/sys_select-tests (Files): Add tests/signature.h.
2531
2532 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2533
2534         largefile: new module, replacing large-inode
2535         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2536         * MODULES.html.sh: Add largefile, remove large-inode.
2537         * modules/largefile, m4/largefile.m4: New files.
2538         * modules/large-inode, m4/large-inode.m4: Remove.
2539
2540         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2542         implementations that use only 32 bits to count blocks.
2543         On typical hosts with 1024-byte blocks, this fails with file
2544         systems as small as 4 TiB.  Problem reported by Herb Wartens
2545         <http://debbugs.gnu.org/9140> and this should also fix a similar
2546         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2547
2548         large-inode: New module
2549         * MODULES.html.sh: Add it.
2550         * modules/large-inode, m4/large-inode.m4: New files.
2551
2552         extensions: Enable extensions on MacOS X 10.5 and later.
2553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2554
2555 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2556
2557         file-has-acl: use acl_extended_file_nofollow if available
2558         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2559         (acl_extended_file): New macro.
2560         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2561         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2562
2563 2011-07-21  Bruno Haible  <bruno@clisp.org>
2564
2565         Declare system functions in a way that works with C++.
2566         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2567         declare fdopendir as extern "C".
2568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2569         declare frexpl as extern "C".
2570         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2571         declare gai_strerror as extern "C".
2572         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2573         programs, declare gai_strerror as extern "C".
2574         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2575         declare getlogin_r as extern "C".
2576         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2577         as extern "C".
2578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2579         declare ldexpl as extern "C".
2580         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2581         as extern "C".
2582         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2583         program, declare getmntinfo as extern "C".
2584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2585         stpncpy as extern "C".
2586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2587         program, declare __xpg_strerror_r as extern "C".
2588         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2589         strndup as extern "C".
2590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2591         declare memset and bzero as extern "C".
2592         Reported by Sam Steingold <sds@gnu.org>.
2593
2594 2011-07-12  Jim Meyering  <meyering@redhat.com>
2595
2596         maint.mk: prohibit inclusion of "verify.h" without use
2597         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2598
2599 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2600
2601         timer-time: A new module to check for timer_settime()
2602         * m4/timer_time.m4: Check for the posix function.
2603         * modules/timer-time: Add the new module.
2604         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2605         Mention it.
2606
2607 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2608             Bruno Haible  <bruno@clisp.org>
2609
2610         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2611         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2612         not defined, assume POSIX threads and look for pthread_sigmask in
2613         $LIBS, without changing $CPPFLAGS.
2614
2615 2011-07-19  Bruno Haible  <bruno@clisp.org>
2616
2617         strstr: Update cross-compilation guess.
2618         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2619         CPUs, guess no, in view of glibc
2620         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2621         Suggested by Eric Blake. Reported by Reuben Thomas.
2622
2623 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2624
2625         getopt-gnu: suppress core dumps from detection code
2626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2627         to suppress core dumps that may well occur on glibc systems.
2628         * modules/getopt-gnu: Depend on nocrash.
2629
2630 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         pthread_sigmask: ensure usleep is declared
2633         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2634         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2635
2636 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         doc: Document NonStop portability issues.
2639         * doc/posix-functions/sigaction.texi (sigaction):
2640         * doc/posix-headers/signal.texi (signal.h):
2641         Document NonStop.  See Joachim Schmitz in
2642         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2643
2644 2011-07-15  Bruno Haible  <bruno@clisp.org>
2645
2646         ffsl, ffsll: Avoid unportable behaviour.
2647         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2648
2649 2011-07-15  Bruno Haible  <bruno@clisp.org>
2650
2651         ffs: More tests.
2652         * tests/test-ffs.c (NBITS): New macro.
2653         (main): Add more tests.
2654         * tests/test-ffsl.c (NBITS): New macro.
2655         (main): Add more tests.
2656         * tests/test-ffsll.c (NBITS): New macro.
2657         (main): Add more tests.
2658
2659 2011-07-15  Eric Blake  <eblake@redhat.com>
2660
2661         ffsl, ffsll: new modules
2662         * modules/ffsl: New file.
2663         * modules/ffsll: Likewise.
2664         * m4/ffsl.m4: Likewise.
2665         * m4/ffsll.m4: Likewise.
2666         * lib/ffsl.c: Likewise.
2667         * lib/ffsl.h: Likewise.
2668         * lib/ffsll.c: Likewise.
2669         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2670         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2671         * modules/string (Makefile.am): Substitute witnesses.
2672         * lib/strings.in.h (ffsl, ffsll): Declare.
2673         * modules/ffsl-tests: New test file.
2674         * modules/ffsll-tests: Likewise.
2675         * tests/test-ffsl.c: Likewise.
2676         * tests/test-ffsll.c: Likewise.
2677         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2678         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2679         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2680
2681         ffs: fix m4 prerequisite
2682         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2683
2684         ffs: avoid undefined behavior
2685         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2686         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2687         Reported by Bruno Haible.
2688
2689 2011-07-12  Bruno Haible  <bruno@clisp.org>
2690
2691         pthread_sigmask: Rely on module 'threadlib'.
2692         * modules/pthread_sigmask (Depends-on): Add threadlib.
2693         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2694         is defined.
2695
2696 2011-07-12  Bruno Haible  <bruno@clisp.org>
2697
2698         regex: Depend on module 'strcase'.
2699         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2700
2701 2011-07-12  Jim Meyering  <meyering@redhat.com>
2702
2703         warn-on-use: fix typo in file name
2704         * modules/snippet/warn-on-use (Files): Correct file name:
2705         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2706
2707 2011-07-12  Bruno Haible  <bruno@clisp.org>
2708
2709         strings: Document module.
2710         * doc/posix-headers/strings.texi: Mention module 'strings'.
2711
2712 2011-07-12  Bruno Haible  <bruno@clisp.org>
2713
2714         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2715         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2716         (Files, Makefile.am): Update.
2717         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2718         * modules/stdlib (Depends-on): Update.
2719
2720 2011-07-12  Bruno Haible  <bruno@clisp.org>
2721
2722         * NEWS: Mention the changes.
2723
2724         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2725         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2726         (Files, Makefile.am): Update.
2727         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2728         * modules/arpa_inet (Depends-on): Update.
2729         * modules/ctype (Depends-on): Update.
2730         * modules/dirent (Depends-on): Update.
2731         * modules/fcntl-h (Depends-on): Update.
2732         * modules/glob (Depends-on): Update.
2733         * modules/iconv-h (Depends-on): Update.
2734         * modules/inttypes-incomplete (Depends-on): Update.
2735         * modules/langinfo (Depends-on): Update.
2736         * modules/locale (Depends-on): Update.
2737         * modules/math (Depends-on): Update.
2738         * modules/netdb (Depends-on): Update.
2739         * modules/poll-h (Depends-on): Update.
2740         * modules/pty (Depends-on): Update.
2741         * modules/search (Depends-on): Update.
2742         * modules/signal (Depends-on): Update.
2743         * modules/spawn (Depends-on): Update.
2744         * modules/stdio (Depends-on): Update.
2745         * modules/stdlib (Depends-on): Update.
2746         * modules/string (Depends-on): Update.
2747         * modules/strings (Depends-on): Update.
2748         * modules/sys_file (Depends-on): Update.
2749         * modules/sys_ioctl (Depends-on): Update.
2750         * modules/sys_select (Depends-on): Update.
2751         * modules/sys_socket (Depends-on): Update.
2752         * modules/sys_stat (Depends-on): Update.
2753         * modules/sys_time (Depends-on): Update.
2754         * modules/sys_times (Depends-on): Update.
2755         * modules/sys_utsname (Depends-on): Update.
2756         * modules/sys_wait (Depends-on): Update.
2757         * modules/termios (Depends-on): Update.
2758         * modules/time (Depends-on): Update.
2759         * modules/unistd (Depends-on): Update.
2760         * modules/wchar (Depends-on): Update.
2761         * modules/wctype-h (Depends-on): Update.
2762         * MODULES.html.sh (Support for building libraries and executables):
2763         Update.
2764
2765         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2766         * modules/snippet/unused-parameter: Renamed from
2767         modules/unused-parameter.
2768         (Files, Makefile.am): Update.
2769         * build-aux/snippet/unused-parameter.h: Renamed from
2770         build-aux/unused-parameter.h.
2771         * modules/selinux-h (Depends-on): Update.
2772         * modules/unistr/base (Depends-on): Update.
2773         * MODULES.html.sh (Core language properties): Update.
2774
2775         Rename module 'link-warning' to 'snippet/link-warning'.
2776         * modules/snippet/link-warning: Renamed from modules/link-warning.
2777         (Files, Makefile.am): Update.
2778         * build-aux/snippet/link-warning.h: Renamed from
2779         build-aux/link-warning.h.
2780         * MODULES.html.sh (Support for building libraries and executables):
2781         Update.
2782
2783         Rename module 'c++defs' to 'snippet/c++defs'.
2784         * modules/snippet/c++defs: Renamed from modules/c++defs.
2785         (Files, Makefile.am): Update.
2786         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2787         * modules/arpa_inet (Depends-on): Update.
2788         * modules/ctype (Depends-on): Update.
2789         * modules/dirent (Depends-on): Update.
2790         * modules/fcntl-h (Depends-on): Update.
2791         * modules/glob (Depends-on): Update.
2792         * modules/iconv-h (Depends-on): Update.
2793         * modules/langinfo (Depends-on): Update.
2794         * modules/locale (Depends-on): Update.
2795         * modules/math (Depends-on): Update.
2796         * modules/netdb (Depends-on): Update.
2797         * modules/poll-h (Depends-on): Update.
2798         * modules/pty (Depends-on): Update.
2799         * modules/search (Depends-on): Update.
2800         * modules/signal (Depends-on): Update.
2801         * modules/spawn (Depends-on): Update.
2802         * modules/stdio (Depends-on): Update.
2803         * modules/stdlib (Depends-on): Update.
2804         * modules/string (Depends-on): Update.
2805         * modules/strings (Depends-on): Update.
2806         * modules/sys_ioctl (Depends-on): Update.
2807         * modules/sys_select (Depends-on): Update.
2808         * modules/sys_socket (Depends-on): Update.
2809         * modules/sys_stat (Depends-on): Update.
2810         * modules/sys_time (Depends-on): Update.
2811         * modules/sys_wait (Depends-on): Update.
2812         * modules/termios (Depends-on): Update.
2813         * modules/time (Depends-on): Update.
2814         * modules/unistd (Depends-on): Update.
2815         * modules/wchar (Depends-on): Update.
2816         * modules/wctype-h (Depends-on): Update.
2817
2818         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2819         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2820         (Files, Makefile.am): Update.
2821         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2822         * modules/argv-iter (Depends-on): Update.
2823         * modules/arpa_inet (Depends-on): Update.
2824         * modules/dirent (Depends-on): Update.
2825         * modules/fcntl-h (Depends-on): Update.
2826         * modules/fnmatch (Depends-on): Update.
2827         * modules/getopt-posix (Depends-on): Update.
2828         * modules/glob (Depends-on): Update.
2829         * modules/iconv-h (Depends-on): Update.
2830         * modules/inttypes-incomplete (Depends-on): Update.
2831         * modules/locale (Depends-on): Update.
2832         * modules/math (Depends-on): Update.
2833         * modules/netdb (Depends-on): Update.
2834         * modules/search (Depends-on): Update.
2835         * modules/signal (Depends-on): Update.
2836         * modules/spawn (Depends-on): Update.
2837         * modules/stdio (Depends-on): Update.
2838         * modules/stdlib (Depends-on): Update.
2839         * modules/string (Depends-on): Update.
2840         * modules/strings (Depends-on): Update.
2841         * modules/sys_socket (Depends-on): Update.
2842         * modules/sys_stat (Depends-on): Update.
2843         * modules/sys_time (Depends-on): Update.
2844         * modules/sys_times (Depends-on): Update.
2845         * modules/sys_utsname (Depends-on): Update.
2846         * modules/time (Depends-on): Update.
2847         * modules/unistd (Depends-on): Update.
2848         * modules/wchar (Depends-on): Update.
2849         * MODULES.html.sh (Support for building libraries and executables):
2850         Update.
2851
2852 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2853
2854         Improvements on _Noreturn and related modules.
2855
2856         modules/_Exit-tests: test _Noreturn too
2857         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2858         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2859         (main): Use them.
2860
2861         stdnoreturn, stdnoreturn-tests: remove modules
2862         They're not needed here and a bit premature for use elsewhere.  See
2863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2864         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2865         * tests/test-stdnoreturn.c: Remove files.
2866         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2867         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2868         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2869         and using noreturn.
2870         * modules/openat, modules/sigpipe-die, modules/xalloc:
2871         * modules/xmemdup0, modules/xstrtol:
2872         Remove dependency on stdnoreturn.
2873
2874         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2875         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2876         Reparenthesize to avoid GCC warning.
2877         Support Microsoft's syntax.
2878         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2879
2880         _Noreturn-tests: remove module
2881         * modules/_Noreturn-tests: Remove.
2882         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2883         * tests/test-_Noreturn.c: Remove.
2884         * tests/test-stdnoreturn.c: Merge from the old
2885         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2886
2887 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2888
2889         _Noreturn, stdnoreturn, and related modules.
2890
2891         * top/maint.mk: Adjust to new noreturn support.
2892         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2893         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2894
2895         xalloc: use stdnoreturn.h
2896         * lib/xalloc.h: Include <stdnoreturn.h>.
2897         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2898         * modules/xalloc (Depends-on): Add stdnoreturn.
2899
2900         xstrtol: use stdnoreturn.h
2901         * lib/xstrtol.h: Include <stdnoreturn.h>.
2902         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2903         * modules/xstrtol (Depends-on): Add stdnoreturn.
2904
2905         xmemdup0: use stdnoreturn.h
2906         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2907         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2908         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2909
2910         sigpipe-die: use stdnoreturn.h
2911         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2912         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2913         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2914
2915         openat: use stdnoreturn.h
2916         * lib/openat.h: Include <stdnoreturn.h>.
2917         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2918         * modules/openat (Depends-on): Add stdnoreturn.
2919
2920         * lib/openat-die.c (openat_save_fail): Modernize comment.
2921
2922         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2923
2924         * lib/glthread/thread.h: Modernize comment.
2925
2926         obstack: use _Noreturn
2927         * lib/obstack.c (__attribute__): Remove macro.
2928         (print_and_abort): Use _Noreturn.
2929
2930         c-stack: use _Noreturn
2931         * lib/c-stack.c (die, overflow_handler, segv_handler):
2932         Use _Noreturn rather than __attribute__((noreturn)).
2933
2934         argmatch-tests, exclude_tests: use _Noreturn
2935         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2936         Remove.
2937         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2938
2939         stdlib: use _Noreturn
2940         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2941         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2942         * modules/stdlib (Depends-on): Add _Noreturn.
2943         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2944
2945         stdnoreturn-tests: new module
2946         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2947
2948         stdnoreturn: new module
2949         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2950         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2951
2952         _Noreturn-tests: new module
2953         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2954
2955         _Noreturn: new module
2956         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2957         New section, mentioning it.
2958         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2959
2960         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2961
2962 2011-07-11  Eric Blake  <eblake@redhat.com>
2963
2964         ffs: new module
2965         * modules/ffs: New file.
2966         * m4/ffs.m4: Likewise.
2967         * lib/ffs.c: Likewise.
2968         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2969         * modules/strings (Makefile.am): Substitute witness.
2970         (Depends-on): Add c++defs.
2971         * lib/strings.in.h (ffs): Declare.
2972         * modules/ffs-tests: New test file.
2973         * tests/test-ffs.c: Test new module.
2974         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2975         * doc/posix-functions/ffs.texi (ffs): Likewise.
2976
2977         regex: avoid compiler warning
2978         * lib/regex.c (includes): Include <strings.h>, for use of
2979         strcasecmp in regcomp.c.
2980         Reported by Joachim Schmitz.
2981
2982 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         stdint: respect system's intmax_t if INTMAX_MAX
2985         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2986         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2987         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2988         long but int64_t is long long, and where we will clash with the
2989         system intmax_t if we override it.  See
2990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2991         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2992         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2993         similarly for UINTMAX_C.
2994
2995 2011-07-08  Bruno Haible  <bruno@clisp.org>
2996
2997         pthread_sigmask tests: Avoid a compiler warning.
2998         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2999         non-zero.
3000
3001         sigprocmask tests: A better way to avoid a compiler warning.
3002         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3003         (main): Complain if system() returns non-zero.
3004         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3005
3006 2011-07-08  Bruno Haible  <bruno@clisp.org>
3007
3008         pthread_sigmask: Work around IRIX bug.
3009         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3010         bug.
3011         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3012         there may be unblocked pending signals.
3013         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3014
3015 2011-07-08  Bruno Haible  <bruno@clisp.org>
3016
3017         pthread_sigmask: Work around Cygwin bug.
3018         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3019         bug.
3020         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3021         the system's pthread_sigmask function.
3022         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3023
3024 2011-07-08  Bruno Haible  <bruno@clisp.org>
3025
3026         pthread_sigmask: Work around bug in single-threaded implementation.
3027         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3028         FreeBSD, HP-UX, Solaris bug.
3029         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3030         * lib/pthread_sigmask.c: Include <stddef.h>.
3031         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3032         the system's pthread_sigmask function.
3033         * modules/pthread_sigmask (configure.ac): Invoke
3034         gl_PREREQ_PTHREAD_SIGMASK.
3035         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3036         HP-UX, Solaris.
3037
3038 2011-07-08  Eric Blake  <eblake@redhat.com>
3039
3040         test-sigprocmask: avoid compiler warning
3041         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3042         * tests/test-sigprocmask.c (main): Use it to silence warning.
3043         Reported by Jim Meyering.
3044
3045         test-snprintf: avoid compiler warning
3046         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3047         * tests/test-vsnprintf.c (main): Likewise.
3048         Reported by Jim Meyering.
3049
3050 2011-07-08  Bruno Haible  <bruno@clisp.org>
3051
3052         Tests for module 'pthread_sigmask'.
3053         * modules/pthread_sigmask-tests: New file.
3054         * tests/test-pthread_sigmask1.c: New file, based on
3055         tests/test-sigprocmask.c.
3056         * tests/test-pthread_sigmask2.c: New file.
3057
3058 2011-07-08  Jim Meyering  <meyering@redhat.com>
3059
3060         test-getopt.h: avoid warning about an unused variable
3061         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3062
3063 2011-07-07  Jim Meyering  <meyering@redhat.com>
3064
3065         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3066         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3067         now that it no longer contains leading TABs.
3068         Remove unused "url=FIXME" statement.
3069
3070 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3071
3072         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3073         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3074         When gl_THREADLIB is not in use, assume that the POSIX sematics
3075         are desired.  This is better for Emacs, which uses POSIX semantics
3076         on GNUish and/or POSIXish platforms, and does not use threads at
3077         all otherwise.
3078
3079         pthread_sigmask: fix typo when testing for libraries
3080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3081         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3082
3083 2011-07-08  Eric Blake  <eblake@redhat.com>
3084
3085         fts: introduce FTS_NOATIME
3086         * lib/fts_.h (FTS_NOATIME): New bit flag.
3087         (FTS_OPTIONMASK): Adjust.
3088         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3089         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3090
3091 2011-07-08  Bruno Haible  <bruno@clisp.org>
3092
3093         Tests for module 'thread'.
3094         * modules/thread-tests: New file.
3095         * tests/test-thread_self.c: New file.
3096         * tests/test-thread_create.cc: New file.
3097
3098 2011-07-08  Bruno Haible  <bruno@clisp.org>
3099
3100         thread: Avoid gcc warnings when using gl_thread_self().
3101         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3102         'void *'.
3103         (gl_thread_self_pointer): Update.
3104
3105 2011-07-07  Bruno Haible  <bruno@clisp.org>
3106
3107         signal-c++-tests: Check declaration of pthread_sigmask.
3108         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3109         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3110         $(LIB_PTHREAD_SIGMASK).
3111
3112 2011-07-07  Bruno Haible  <bruno@clisp.org>
3113
3114         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3115         * lib/signal.in.h (pthread_sigmask): Override if
3116         REPLACE_PTHREAD_SIGMASK is 1.
3117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3118         REPLACE_PTHREAD_SIGMASK.
3119         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3120         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3121         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3122         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3123         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3124
3125 2011-07-07  Bruno Haible  <bruno@clisp.org>
3126
3127         pthread_sigmask: Ensure declaration in <signal.h>.
3128         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3129         include <pthread.h>.
3130         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3131         problem.
3132
3133 2011-07-07  Bruno Haible  <bruno@clisp.org>
3134
3135         pthread_sigmask: Document the module.
3136         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3137
3138 2011-07-07  Bruno Haible  <bruno@clisp.org>
3139
3140         pthread_sigmask: Follow gnulib conventions.
3141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3142         gl_PTHREAD_SIGMASK.
3143         * modules/pthread_sigmask (configure.ac): Update.
3144
3145 2011-07-07  Bruno Haible  <bruno@clisp.org>
3146
3147         pthread_sigmask: Make declaration C++ safe.
3148         * lib/signal.in.h: In two special conditions, just do an #include_next.
3149         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3150         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3151         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3152         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3153         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3154         not REPLACE_PTHREAD_MASK.
3155         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3156         not REPLACE_PTHREAD_MASK.
3157         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3158
3159 2011-07-07  Bruno Haible  <bruno@clisp.org>
3160
3161         pthread_sigmask: Fix return value.
3162         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3163         * lib/pthread_sigmask.c: New file.
3164         * modules/pthread_sigmask (Files): Add it.
3165         (configure.ac): Invoke AC_LIBOBJ.
3166
3167 2011-07-07  Eric Blake  <eblake@redhat.com>
3168
3169         getopt: more portable argv creation
3170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3171         const, use char arrays rather than strings.
3172         Suggested by Paul Eggert.
3173
3174 2011-07-07  Bruno Haible  <bruno@clisp.org>
3175
3176         Tests for module 'sigprocmask'.
3177         * modules/sigprocmask-tests: New file.
3178         * tests/test-sigprocmask.c: New file.
3179
3180 2011-07-07  Bruno Haible  <bruno@clisp.org>
3181
3182         float tests: Tweak.
3183         * tests/test-float.c (main): Tweak skip message.
3184
3185 2011-07-07  Eric Blake  <eblake@redhat.com>
3186
3187         getopt: avoid compiler warning during configure
3188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3189         assigning string literals to non-const pointer.
3190
3191         getopt-gnu: avoid crash in glibc getopt
3192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3193         * tests/test-getopt.h (test_getopt): Enhance test.
3194         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3195         * doc/posix-functions/getopt.texi (getopt): Document it.
3196         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3198         Likewise.
3199
3200 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3201
3202         getopt: handle W; without long options in getopt [BZ #12922]
3203         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3204         but no long options are defined, just return 'W'.
3205
3206 2011-07-07  Bruno Haible  <bruno@clisp.org>
3207
3208         Avoid literal tabs.
3209         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3210         variable containing a tab instead of a literal tab.
3211         Reported by Jim Meyering.
3212
3213 2011-07-07  Bruno Haible  <bruno@clisp.org>
3214
3215         Comments.
3216         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3217
3218 2011-07-06  Bruno Haible  <bruno@clisp.org>
3219
3220         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3221         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3222         <winsock2.h>.
3223         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3224         lib/sys_socket.in.h.
3225         (close, gethostname): Hide declarations from <winsock2.h>.
3226         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3227         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3228         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3229         (select): Don't override if gnulib's <sys/select.h> was already
3230         included.
3231         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3232         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3233         setsockopt, shutdown, select): Tweak indentation.
3234
3235 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3238         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3239         in an application that does not use the sys_select module.
3240
3241 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3242
3243         poll: do not return 0 on timeout=-1
3244         * lib/poll.c: Loop with yield if no events occured
3245
3246 2011-07-06  Eric Blake  <eblake@redhat.com>
3247
3248         pthread_sigmask: always replace when not using pthread
3249         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3250         replacement when using some threading other than pthread.  Fix
3251         logic bug.
3252
3253 2011-07-06  Bruno Haible  <bruno@clisp.org>
3254
3255         Comments.
3256         * m4/printf.m4: Update comments about mingw.
3257
3258 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         sys_select: define sigset_t more portably
3261         * lib/sys_select.in.h: Always include <sys/types.h>, since
3262         we now need sigset_t and mingw defines it there.
3263         Include <signal.h> before split inclusion guard, to avoid
3264         mishaps on Solaris, whose <signal.h> eventually includes us.
3265         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3266         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3267         which come from ...
3268         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3269         gl_CHECK_TYPE_SIGSET_T.
3270         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3271         does the real work.
3272         * modules/sys_select (Depends-on): Add 'signal'.
3273
3274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3275         Suggested by Bruno Haible.
3276
3277         pselect: Use pthread_sigmask, not sigprocmask.
3278         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3279         multithreaded apps better than sigprocmask does.
3280         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3281         sigprocmask directly.
3282
3283 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3284
3285         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3286         Don't #undef,  since we don't need any underlying pselect.
3287         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3288         (Depends-on): Add select.
3289         (Link): Add $(LIBSOCKET).
3290         These changes suggested by Bruno Haible.
3291
3292         pselect: document better
3293         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3294         * doc/posix-functions/pselect.texi (pselect): Document new module.
3295
3296         pthread_sigmask: new module
3297         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3298         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3299         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3300         This is done only as a macro; I don't know how well that'll
3301         work for C++.  Move <sys/types.h> include before the include_next,
3302         to avoid mishap on Solaris.
3303         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3304         * modules/signal (Makefile.am): Substitute the check's results.
3305         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3306
3307         test-pselect: new module
3308         * modules/pselect-tests, tests/test-pselect.c: New files.
3309         * tests/test-select.c, tests/test-sys_select-c++.cc:
3310         If TEST_PSELECT is defined, test pselect instead of testing select.
3311
3312         * tests/test-sys_select.c (sigset_t): Test for it, too.
3313         Suggested by Bruno Haible.
3314
3315 2011-07-05  Eric Blake  <eblake@redhat.com>
3316
3317         snprintf: guarantee %1$d, for libintl
3318         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3319         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3320         * doc/posix-functions/snprintf.texi (snprintf): Update.
3321         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3322         * tests/test-snprintf.c (main): Enhance test.
3323         * tests/test-vsnprintf.c (main): Likewise.
3324
3325 2011-07-05  Jim Meyering  <meyering@redhat.com>
3326
3327         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3328         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3329         per Bruno's request, to accommodate this idiom (no space after "#")
3330         even when the function is inside an #if block:
3331         char *
3332         gets (char *s)
3333         #undef gets
3334         {
3335           ...
3336         }
3337
3338 2011-07-04  Jim Meyering  <meyering@redhat.com>
3339
3340         maint: indent with spaces, not TABs, and add a rule to check this
3341         * tests/test-userspec.c: Indent with spaces, not TABs.
3342         * tests/test-argp.c: Likewise.
3343         * tests/test-c-stack2.sh: Likewise.
3344         * tests/test-parse-duration.sh: Likewise
3345         * m4/strtod.m4: Likewise.
3346         * m4/alloca.m4: Likewise.
3347         * m4/pselect.m4: Likewise.
3348         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3349
3350 2011-07-03  Jim Meyering  <meyering@redhat.com>
3351
3352         maint.mk: correct omissions in prohibit_argmatch_without_use check
3353         This rule would mistakenly report that argmatch.h is included without
3354         use even when both the argmatch and invalid_arg macro were used.
3355         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3356         of argmatch and invalid_arg.
3357
3358 2011-07-03  Bruno Haible  <bruno@clisp.org>
3359
3360         Comments about EINTR.
3361         * lib/safe-read.h: Explain the purpose of this module.
3362         * lib/safe-write.h: Likewise.
3363         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3364         module.
3365         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3366         module.
3367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3368
3369 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3370
3371         xnanosleep: Rewrite to use new dtotimespec module.
3372         It has the conversion code that used to be in xnanosleep.
3373         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3374         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3375         (TIME_T_MAX): Remove.
3376         (xnanosleep): Rewrite in terms of dtotimespec.
3377         * modules/xnanosleep (Depends-on): Add dtotimespec.
3378         Remove intprops, stdbool.
3379
3380         timespec-add, timespec-sub: new modules
3381         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3382         * lib/timespec-add.c, lib/timespec-sub.c:
3383         * modules/timespec-add, modules/timespec-sub: New files.
3384
3385         dtotimespec: new module
3386         * lib/timespec.h (dtotimespec): New decl.
3387         * lib/dtotimespec.c, modules/dtotimespec: New files.
3388
3389         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3390
3391         pselect: new module
3392         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3393         (pselect): New decls.
3394         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3395         since the standard pselect decl uses 'restrict'.
3396         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3397         HAVE_PSELECT, REPLACE_PSELECT.
3398         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3399         HAVE_PSELECT, REPLACE_PSELECT.
3400         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3401
3402         sys_select: don't depend on sys_socket
3403         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3405         This fix works on GNU and GNU-like platforms, but has not been tested
3406         on native Windows.
3407         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3409         gl_HEADER_SYS_SOCKET.
3410         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3411         gl_PREREQ_SYS_H_WINSOCK2.
3412
3413 2011-06-29  Eric Blake  <eblake@redhat.com>
3414
3415         pipe2: fix C89 compile problem
3416         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3417         Reported by Bruno Haible.
3418
3419         pipe, pipe2: don't corrupt fd on error
3420         * lib/pipe.c (pipe): Leave fd unchanged on error.
3421         * lib/pipe2.c (pipe2): Likewise.
3422         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3423         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3424
3425 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3426
3427         mmap-anon: do not use regular expressions inadvertently
3428         * m4/mmap-anon.m4: Remove trailing period from strings sought
3429         in the output.
3430
3431 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         nanosleep: fix integer overflow problem
3434         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3435         arithmetic wraps around on overflow.
3436
3437         nanosleep: simplify carrying
3438         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3439         first call to the underyling nanosleep, not for the last one.
3440         This doesn't fix any bugs, but it simplifies the computation of
3441         the remaining delay.  Found while auditing integer overflow issues.
3442
3443         dup2: remove test for existence of fcntl
3444         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3445         "#if HAVE_FCNTL", in the configure-time test program.
3446         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3447         and therefore speeds up "configure" a bit.  Found while
3448         adding the dup2 module to Emacs.
3449
3450 2011-06-24  Eric Blake  <eblake@redhat.com>
3451
3452         maint.mk: enhance useless header checks
3453         * top/maint.mk (_sc_header_without_use): Check both include
3454         styles.
3455         (sc_prohibit_assert_without_use)
3456         (sc_prohibit_close_stream_without_use)
3457         (sc_prohibit_getopt_without_use)
3458         (sc_prohibit_quotearg_without_use)
3459         (sc_prohibit_quote_without_use)
3460         (sc_prohibit_long_options_without_use)
3461         (sc_prohibit_inttostr_without_use)
3462         (sc_prohibit_ignore_value_without_use)
3463         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3464         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3465         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3466         (sc_prohibit_hash_pjw_without_use)
3467         (sc_prohibit_safe_read_without_use)
3468         (sc_prohibit_argmatch_without_use)
3469         (sc_prohibit_canonicalize_without_use)
3470         (sc_prohibit_root_dev_ino_without_use)
3471         (sc_prohibit_openat_without_use)
3472         (sc_prohibit_c_ctype_without_use)
3473         (sc_prohibit_signal_without_use)
3474         (sc_prohibit_stdio--_without_use)
3475         (sc_prohibit_stdio-safer_without_use)
3476         (sc_prohibit_strings_without_use)
3477         (sc_prohibit_intprops_without_use)
3478         (sc_prohibit_stddef_without_use)
3479         (sc_prohibit_xfreopen_without_use): Update clients.
3480
3481 2011-06-24  Jim Meyering  <meyering@redhat.com>
3482
3483         syntax-check: keep one maint.mk rule in sync with its header
3484         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3485         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3486         I prefer to avoid temporary files here, so use <(...), but that
3487         is not supported by /bin/sh, so...
3488         (SHELL): Define to /bin/bash.
3489
3490 2011-06-24  Eric Blake  <eblake@redhat.com>
3491
3492         maint.mk: update sc_prohibit_intprops_without_use
3493         * top/maint.mk (_intprops_names): Match recent changes.
3494
3495 2011-06-24  Bruno Haible  <bruno@clisp.org>
3496
3497         strerror-override: No-op tweak.
3498         * lib/strerror-override.h (strerror_override): Reorder conditions,
3499         for consistency with lib/strerror-override.c.
3500
3501 2011-06-23  Eric Blake  <eblake@redhat.com>
3502
3503         maint.mk: test further PATH_MAX issues
3504         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3505         (sc_prohibit_path_max_allocation): ...and also test alloca.
3506         Suggested by Jim Meyering.
3507
3508 2011-06-22  Eric Blake  <eblake@redhat.com>
3509
3510         maint.mk: add syntax-check to avoid char[PATH_MAX]
3511         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3512
3513         stat: be robust to PATH_MAX definition
3514         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3515         * modules/stat (Depends-on): Add verify.
3516
3517         link: work around IRIX bug
3518         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3519         * lib/link.c (rpl_link): Work around it.
3520         * tests/test-link.h (test_link): Enhance test.
3521         * doc/posix-functions/link.texi (link): Document the bug.
3522
3523         getopt: silence clang warning
3524         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3525         dereference.
3526         Reported by Gustavo Martin Domato.
3527
3528 2011-06-22  Jim Meyering  <meyering@redhat.com>
3529
3530         bootstrap: do not insert a blank line into each .gitignore file
3531         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3532
3533 2011-06-21  Eric Blake  <eblake@redhat.com>
3534
3535         perror: test for output mismatch
3536         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3537         perror on IRIX.
3538
3539         strerror_r: fix OpenBSD behavior on out-of-range
3540         * lib/strerror_r.c (strerror_r): Always use maximal string.
3541         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3542
3543         strerror_r: fix OpenBSD behavior on 0
3544         * lib/strerror-override.c (strerror_override): Also override 0
3545         when needed.
3546         * lib/strerror-override.h (strerror_override): Likewise.
3547         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3548         earlier.
3549         * lib/strerror_r.c (strerror_r): Likewise.
3550         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3551         behavior...
3552         (gl_FUNC_STRERROR_0): ...into new macro.
3553         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3554         is overridden.
3555         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3556         * modules/strerror-override (Files): Add strerror.m4.
3557         (configure.ac): Also provide override for 0 when needed.
3558         * doc/posix-functions/strerror.texi (strerror): Document this.
3559         * doc/posix-functions/perror.texi (perror): Likewise.
3560
3561         perror: adjust array size
3562         * modules/perror (Depends-on): Add strerror-override.
3563         * lib/perror.c (perror): Use it to avoid magic number.
3564
3565         strerror-override: reduce size
3566         * lib/strerror-override.c (strerror_override): Use fewer lines.
3567
3568 2011-06-20  Bruno Haible  <bruno@clisp.org>
3569
3570         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3571         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3572
3573 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3574
3575         alloca: port to compilers that can optimize like GCC 4.6.0
3576         * lib/alloca.c (find_stack_direction): New signature, taken from
3577         Autoconf git.  This works with GCC 4.6.0.  This code should never
3578         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3579         be used with other compilers that optimize as well as GCC 4.6.0 does.
3580         (alloca): Adjust to new signature.
3581         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3582         New macro, which patches Autoconf in a similar way.
3583
3584         c-stack: stop worrying about stack direction
3585         * lib/c-stack.c (find_stack_direction): Remove.
3586         (segv_handler): Don't worry about stack direction growth, as it's
3587         too much of a pain to configure this correctly, given how compilers
3588         are optimizing-away our stack-growth detection code.  Instead, assume
3589         that any access to just before or just after the stack is OK.
3590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3591         Don't require AC_FUNC_ALLOCA; no longer needed.
3592
3593 2011-06-20  Eric Blake  <eblake@redhat.com>
3594
3595         test-stat: don't allocate PATH_MAX bytes
3596         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3597         PATH_MAX-sized buffer.
3598         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3599         * modules/stat-tests (Depends-on): Likewise.
3600         * tests/test-fstatat.c (includes): Drop pathmax.h.
3601         * tests/test-stat.c (includes): Likewise.
3602         Reported by Bruno Haible.
3603
3604 2011-06-20  Bruno Haible  <bruno@clisp.org>
3605
3606         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3607         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3608         * lib/float.c: New file.
3609         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3610         REPLACE_FLOAT_LDBL.
3611         * modules/float (Files): Add lib/float.c.
3612         (configure.ac): Invoke AC_LIBOBJ.
3613         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3614
3615 2011-06-20  Bruno Haible  <bruno@clisp.org>
3616
3617         Tests for module 'float'.
3618         * modules/float-tests: New file.
3619         * tests/test-float.c: New file.
3620
3621 2011-06-19  Bruno Haible  <bruno@clisp.org>
3622
3623         isinf: Coding style.
3624         * lib/isinf.c: Use GNU coding style.
3625
3626 2011-06-19  Bruno Haible  <bruno@clisp.org>
3627
3628         linkat test: Avoid test failure on AIX 7.1.
3629         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3630         * tests/test-link.h (test_link): Likewise.
3631
3632 2011-06-19  Bruno Haible  <bruno@clisp.org>
3633
3634         pread test: Avoid test failure on OpenBSD 4.9.
3635         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3636
3637 2011-06-19  Bruno Haible  <bruno@clisp.org>
3638
3639         sprintf-posix: Fix test failure on AIX 7.1.
3640         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3641         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3642         on AIX.
3643         * doc/posix-functions/fprintf.texi: Likewise.
3644         * doc/posix-functions/printf.texi: Likewise.
3645         * doc/posix-functions/snprintf.texi: Likewise.
3646         * doc/posix-functions/sprintf.texi: Likewise.
3647         * doc/posix-functions/vdprintf.texi: Likewise.
3648         * doc/posix-functions/vfprintf.texi: Likewise.
3649         * doc/posix-functions/vprintf.texi: Likewise.
3650         * doc/posix-functions/vsnprintf.texi: Likewise.
3651         * doc/posix-functions/vsprintf.texi: Likewise.
3652
3653 2011-06-19  Bruno Haible  <bruno@clisp.org>
3654
3655         roundl-ieee: Fix test failure on AIX 7.1.
3656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3657         * doc/posix-functions/roundl.texi: Mention problem with negative
3658         arguments.
3659
3660 2011-06-19  Bruno Haible  <bruno@clisp.org>
3661
3662         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3663         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3664         * doc/posix-functions/round.texi: Mention problem with negative
3665         arguments.
3666         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3667
3668 2011-06-19  Bruno Haible  <bruno@clisp.org>
3669
3670         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3672         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3673         * doc/posix-functions/roundf.texi: Mention problem with negative
3674         arguments.
3675         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3676
3677 2011-06-19  Bruno Haible  <bruno@clisp.org>
3678
3679         ceilf-ieee: Work around bug on MacOS X 10.5.
3680         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3681
3682         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3683         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3684         IEEE compliant, avoid compiler optimizations.
3685         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3686         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3687         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3688         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3690         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3691         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3693         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3695
3696 2011-06-19  Bruno Haible  <bruno@clisp.org>
3697
3698         ceilf-ieee: Work around bug on AIX 7.1.
3699         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3700         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3701
3702 2011-06-19  Bruno Haible  <bruno@clisp.org>
3703
3704         ceil-ieee: Work around bug on AIX 7.1.
3705         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3706         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3707
3708 2011-06-18  Bruno Haible  <bruno@clisp.org>
3709
3710         fsync test: Avoid test failure on MacOS X and AIX.
3711         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3712         EINVAL.
3713
3714 2011-06-18  Bruno Haible  <bruno@clisp.org>
3715
3716         openat, fdopendir tests: Fix link errors.
3717         * modules/openat-tests (Depends-on): Add progname.
3718         * modules/fdopendir-tests (Depends-on): Likewise.
3719         * tests/test-fchownat.c: Include progname.h.
3720         (main): Call set_program_name.
3721         * tests/test-fstatat.c: Include progname.h.
3722         (main): Call set_program_name.
3723         * tests/test-mkdirat.c: Include progname.h.
3724         (main): Call set_program_name.
3725         * tests/test-openat.c: Include progname.h.
3726         (main): Call set_program_name.
3727         * tests/test-unlinkat.c: Include progname.h.
3728         (main): Call set_program_name.
3729         * tests/test-fdopendir.c: Include progname.h.
3730         (main): Call set_program_name.
3731
3732 2011-06-18  Bruno Haible  <bruno@clisp.org>
3733
3734         Doc update.
3735         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3736         HP-UX.
3737         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3738
3739 2011-06-18  Bruno Haible  <bruno@clisp.org>
3740
3741         getcwd tests: Avoid compilation error on HP-UX 11.31.
3742         * modules/getcwd-tests (Depends-on): Add pathmax.
3743         * tests/test-getcwd.c: Include pathmax.h.
3744
3745 2011-06-18  Bruno Haible  <bruno@clisp.org>
3746
3747         isfinite, isinf: Fix link error on AIX 6 and 7.
3748         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3749         needed, also test the macro with a 'float' argument.
3750         * m4/isinf.m4 (gl_ISINF): Likewise.
3751
3752 2011-06-18  Bruno Haible  <bruno@clisp.org>
3753
3754         getloadavg: Don't clobber LIBS. Regression from previous commit.
3755         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3756         AC_CHECK_LIB from here...
3757         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3758         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3759         gl_func_getloadavg_done.
3760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3761
3762 2011-06-18  Bruno Haible  <bruno@clisp.org>
3763
3764         clean-temp: Improve documentation.
3765         * lib/clean-temp.h: Explain better how to use this module.
3766         Reported by John Darrington <john@darrington.wattle.id.au>.
3767
3768 2011-06-17  Bruno Haible  <bruno@clisp.org>
3769
3770         pread, pwrite: Avoid cc warning on AIX.
3771         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3772         (pwrite): Likewise.
3773
3774 2011-06-17  Bruno Haible  <bruno@clisp.org>
3775
3776         spawn-pipe tests: Fix link error.
3777         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3779
3780 2011-06-17  Bruno Haible  <bruno@clisp.org>
3781
3782         Tests: Remove unnecessary dependency.
3783         * modules/canonicalize-tests (Depends-on): Remove progname.
3784         * modules/chown-tests (Depends-on): Likewise.
3785         * modules/dirname-tests (Depends-on): Likewise.
3786         * modules/fdopendir-tests (Depends-on): Likewise.
3787         * modules/fdutimensat-tests (Depends-on): Likewise.
3788         * modules/hash-tests (Depends-on): Likewise.
3789         * modules/lchown-tests (Depends-on): Likewise.
3790         * modules/linkat-tests (Depends-on): Likewise.
3791         * modules/renameat-tests (Depends-on): Likewise.
3792         * modules/spawn-pipe-tests (Depends-on): Likewise.
3793         * modules/utimensat-tests (Depends-on): Likewise.
3794
3795 2011-06-17  Bruno Haible  <bruno@clisp.org>
3796
3797         spawn-pipe tests: Fix link error.
3798         * tests/test-spawn-pipe-child.c: Undefine fflush.
3799
3800 2011-06-17  Bruno Haible  <bruno@clisp.org>
3801
3802         Fix tests link errors.
3803         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3804         * modules/chown-tests (Makefile.am): Don't link test-chown with
3805         LIBINTL.
3806         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3807         LIBINTL.
3808         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3809         LIBINTL.
3810         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3811         LIBINTL.
3812
3813 2011-06-16  Bruno Haible  <bruno@clisp.org>
3814
3815         crypto/gc-sha1: Fix recent regression.
3816         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3817         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3818
3819         crypto/gc-md5: Fix recent regression.
3820         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3821
3822         crypto/gc-md4: Fix recent regression.
3823         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3824         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3825
3826         crypto/gc-arctwo: Fix recent regression.
3827         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3828         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3829
3830         crypto/gc-rijndael: Fix recent regression.
3831         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3832         (configure.ac): Invoke AC_LIBOBJ here.
3833         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3835
3836         crypto/gc-hmac-sha1: Fix recent regression.
3837         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3838         (configure.ac): Invoke AC_LIBOBJ here.
3839         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3841
3842         crypto/gc-hmac-md5: Fix recent regression.
3843         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3844         (configure.ac): Invoke AC_LIBOBJ here.
3845         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3847
3848         crypto/gc-des: Fix recent regression.
3849         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3850         (configure.ac): Invoke AC_LIBOBJ here.
3851         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3853
3854         crypto/gc-arcfour: Fix recent regression.
3855         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3856         (configure.ac): Invoke AC_LIBOBJ here.
3857         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3859
3860 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3861
3862         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3863         After the 2011-05-21 change, this macro requires
3864         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3865         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3866
3867 2011-06-16  Bruno Haible  <bruno@clisp.org>
3868
3869         fprintftime: Move AC_LIBOBJ invocations to module description.
3870         * m4/fprintftime.m4: Remove file.
3871         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3872         (configure.ac): Remove gl_FPRINTFTIME call.
3873         (Makefile.am): Augment lib_SOURCES.
3874         Reported by Jim Meyering.
3875
3876 2011-06-16  Bruno Haible  <bruno@clisp.org>
3877
3878         tmpfile-safer: Finish 2011-05-23 commit.
3879         * m4/stdio-safer.m4: Really remove file.
3880         Reported by Jim Meyering.
3881
3882 2011-06-16  Bruno Haible  <bruno@clisp.org>
3883
3884         syntax-check: Fix typo.
3885         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3886         printf-posix.m4.
3887         Reported by Jim Meyering.
3888
3889 2011-06-13  Jim Meyering  <meyering@redhat.com>
3890
3891         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3892         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3893
3894 2011-05-23  Bruno Haible  <bruno@clisp.org>
3895
3896         yesno: Move AC_LIBOBJ invocations to module description.
3897         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3898         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3899
3900 2011-05-23  Bruno Haible  <bruno@clisp.org>
3901
3902         xstrtol: Move AC_LIBOBJ invocations to module description.
3903         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3904         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3905
3906 2011-05-23  Bruno Haible  <bruno@clisp.org>
3907
3908         xstrtold: Move AC_LIBOBJ invocations to module description.
3909         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3910         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3911
3912 2011-05-23  Bruno Haible  <bruno@clisp.org>
3913
3914         xstrtod: Move AC_LIBOBJ invocations to module description.
3915         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3916         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3917
3918 2011-05-23  Bruno Haible  <bruno@clisp.org>
3919
3920         xnanosleep: Move AC_LIBOBJ invocations to module description.
3921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3922         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3923
3924 2011-05-23  Bruno Haible  <bruno@clisp.org>
3925
3926         xgetcwd: Move AC_LIBOBJ invocations to module description.
3927         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3928         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3929
3930 2011-05-23  Bruno Haible  <bruno@clisp.org>
3931
3932         xalloc: Move AC_LIBOBJ invocations to module description.
3933         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3934         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3935
3936 2011-05-23  Bruno Haible  <bruno@clisp.org>
3937
3938         write-any-file: Move AC_LIBOBJ invocations to module description.
3939         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3940         invocation.
3941         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3942
3943 2011-05-23  Bruno Haible  <bruno@clisp.org>
3944
3945         utimens: Move AC_LIBOBJ invocations to module description.
3946         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3947         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3948
3949 2011-05-23  Bruno Haible  <bruno@clisp.org>
3950
3951         utimecmp: Move AC_LIBOBJ invocations to module description.
3952         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3953         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3954
3955 2011-05-23  Bruno Haible  <bruno@clisp.org>
3956
3957         userspec: Move AC_LIBOBJ invocations to module description.
3958         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3959         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3960
3961 2011-05-23  Bruno Haible  <bruno@clisp.org>
3962
3963         unlinkdir: Move AC_LIBOBJ invocations to module description.
3964         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3965         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3966
3967 2011-05-23  Bruno Haible  <bruno@clisp.org>
3968
3969         unistd-safer: Move AC_LIBOBJ invocations to module description.
3970         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3971         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3972
3973 2011-05-23  Bruno Haible  <bruno@clisp.org>
3974
3975         tempname: Move AC_LIBOBJ invocations to module description.
3976         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3977         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3978
3979 2011-05-23  Bruno Haible  <bruno@clisp.org>
3980
3981         strftime: Move AC_LIBOBJ invocations to module description.
3982         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3983         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3984
3985 2011-05-23  Bruno Haible  <bruno@clisp.org>
3986
3987         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3988         * m4/stdlib-safer.m4: Remove file.
3989         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3990         (configure.ac): Remove gl_STDLIB_SAFER call.
3991         (Makefile.am): Augment lib_SOURCES.
3992
3993 2011-05-23  Bruno Haible  <bruno@clisp.org>
3994
3995         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3996         * m4/stdio-safer.m4: Remove file.
3997         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3998         (configure.ac): Remove gl_TMPFILE_SAFER call.
3999         (Makefile.am): Augment lib_SOURCES.
4000
4001 2011-05-23  Bruno Haible  <bruno@clisp.org>
4002
4003         popen-safer: Move AC_LIBOBJ invocations to module description.
4004         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4005         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4006         (configure.ac): Remove gl_POPEN_SAFER call.
4007         (Makefile.am): Augment lib_SOURCES.
4008
4009 2011-05-23  Bruno Haible  <bruno@clisp.org>
4010
4011         freopen-safer: Move AC_LIBOBJ invocations to module description.
4012         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4013         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4014         (configure.ac): Remove gl_FREOPEN_SAFER call.
4015         (Makefile.am): Augment lib_SOURCES.
4016
4017 2011-05-23  Bruno Haible  <bruno@clisp.org>
4018
4019         fopen-safer: Move AC_LIBOBJ invocations to module description.
4020         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4021         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4022         (configure.ac): Remove gl_FOPEN_SAFER call.
4023         (Makefile.am): Augment lib_SOURCES.
4024
4025 2011-05-23  Bruno Haible  <bruno@clisp.org>
4026
4027         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4028         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4029         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4030
4031 2011-05-23  Bruno Haible  <bruno@clisp.org>
4032
4033         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4034         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4035         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4036
4037 2011-05-23  Bruno Haible  <bruno@clisp.org>
4038
4039         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4040         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4041         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4042
4043 2011-05-23  Bruno Haible  <bruno@clisp.org>
4044
4045         settime: Move AC_LIBOBJ invocations to module description.
4046         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4047         * modules/settime (Makefile.am): Augment lib_SOURCES.
4048
4049 2011-05-23  Bruno Haible  <bruno@clisp.org>
4050
4051         savedir: Move AC_LIBOBJ invocations to module description.
4052         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4053         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4054
4055 2011-05-23  Bruno Haible  <bruno@clisp.org>
4056
4057         save-cwd: Move AC_LIBOBJ invocations to module description.
4058         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4059         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4060
4061 2011-05-23  Bruno Haible  <bruno@clisp.org>
4062
4063         same: Move AC_LIBOBJ invocations to module description.
4064         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4065         * modules/same (Makefile.am): Augment lib_SOURCES.
4066
4067 2011-05-23  Bruno Haible  <bruno@clisp.org>
4068
4069         safe-write: Move AC_LIBOBJ invocations to module description.
4070         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4071         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4072         instead of gl_SAFE_WRITE.
4073         (Makefile.am): Augment lib_SOURCES.
4074
4075 2011-05-23  Bruno Haible  <bruno@clisp.org>
4076
4077         safe-read: Move AC_LIBOBJ invocations to module description.
4078         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4079         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4080         of gl_SAFE_READ.
4081         (Makefile.am): Augment lib_SOURCES.
4082
4083 2011-05-23  Bruno Haible  <bruno@clisp.org>
4084
4085         safe-alloc: Move AC_LIBOBJ invocations to module description.
4086         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4087         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4088
4089 2011-05-23  Bruno Haible  <bruno@clisp.org>
4090
4091         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4092         * m4/rijndael.m4: Remove file.
4093         * modules/crypto/rijndael (Files): Remove it.
4094         (configure.ac): Remove gl_RIJNDAEL call.
4095         (Makefile.am): Augment lib_SOURCES.
4096
4097 2011-05-23  Bruno Haible  <bruno@clisp.org>
4098
4099         readtokens: Move AC_LIBOBJ invocations to module description.
4100         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4101         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4102
4103 2011-05-23  Bruno Haible  <bruno@clisp.org>
4104
4105         read-file: Move AC_LIBOBJ invocations to module description.
4106         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4107         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4108         of gl_FUNC_READ_FILE.
4109         (Makefile.am): Augment lib_SOURCES.
4110
4111 2011-05-23  Bruno Haible  <bruno@clisp.org>
4112
4113         quotearg: Move AC_LIBOBJ invocations to module description.
4114         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4115         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4116
4117 2011-05-23  Bruno Haible  <bruno@clisp.org>
4118
4119         quote: Move AC_LIBOBJ invocations to module description.
4120         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4121         * modules/quote (Makefile.am): Augment lib_SOURCES.
4122
4123 2011-05-23  Bruno Haible  <bruno@clisp.org>
4124
4125         posixver: Move AC_LIBOBJ invocations to module description.
4126         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4127         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4128
4129 2011-05-23  Bruno Haible  <bruno@clisp.org>
4130
4131         posixtm: Move AC_LIBOBJ invocations to module description.
4132         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4133         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4134
4135 2011-05-23  Bruno Haible  <bruno@clisp.org>
4136
4137         physmem: Move AC_LIBOBJ invocations to module description.
4138         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4139         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4140
4141 2011-05-23  Bruno Haible  <bruno@clisp.org>
4142
4143         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4145         invocation.
4146         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4147
4148 2011-05-23  Bruno Haible  <bruno@clisp.org>
4149
4150         mpsort: Move AC_LIBOBJ invocations to module description.
4151         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4152         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4153
4154 2011-05-23  Bruno Haible  <bruno@clisp.org>
4155
4156         modechange: Move AC_LIBOBJ invocations to module description.
4157         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4158         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4159
4160 2011-05-23  Bruno Haible  <bruno@clisp.org>
4161
4162         mkdir-p: Move AC_LIBOBJ invocations to module description.
4163         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4164         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4165
4166 2011-05-23  Bruno Haible  <bruno@clisp.org>
4167
4168         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4169         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4170         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4171
4172 2011-05-23  Bruno Haible  <bruno@clisp.org>
4173
4174         mgetgroups: Move AC_LIBOBJ invocations to module description.
4175         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4176         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4177
4178 2011-05-23  Bruno Haible  <bruno@clisp.org>
4179
4180         memxor: Move AC_LIBOBJ invocations to module description.
4181         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4182         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4183
4184 2011-05-23  Bruno Haible  <bruno@clisp.org>
4185
4186         memcoll: Move AC_LIBOBJ invocations to module description.
4187         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4188         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4189
4190 2011-05-23  Bruno Haible  <bruno@clisp.org>
4191
4192         memcasecmp: Move AC_LIBOBJ invocations to module description.
4193         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4194         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4195
4196 2011-05-23  Bruno Haible  <bruno@clisp.org>
4197
4198         crypto/md5: Move AC_LIBOBJ invocations to module description.
4199         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4200         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4201
4202 2011-05-23  Bruno Haible  <bruno@clisp.org>
4203
4204         crypto/md4: Move AC_LIBOBJ invocations to module description.
4205         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4206         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4207
4208 2011-05-23  Bruno Haible  <bruno@clisp.org>
4209
4210         crypto/md2: Move AC_LIBOBJ invocations to module description.
4211         * m4/md2.m4: Remove file.
4212         * modules/crypto/md2 (Files): Remove it.
4213         (configure.ac): Remove gl_MD2 call.
4214         (Makefile.am): Augment lib_SOURCES.
4215
4216 2011-05-23  Bruno Haible  <bruno@clisp.org>
4217
4218         long-options: Move AC_LIBOBJ invocations to module description.
4219         * m4/long-options.m4: Remove file.
4220         * modules/long-options (Files): Remove it.
4221         (configure.ac): Remove gl_LONG_OPTIONS call.
4222         (Makefile.am): Augment lib_SOURCES.
4223
4224 2011-05-23  Bruno Haible  <bruno@clisp.org>
4225
4226         i-ring: Move AC_LIBOBJ invocations to module description.
4227         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4228         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4229
4230 2011-05-23  Bruno Haible  <bruno@clisp.org>
4231
4232         idcache: Move AC_LIBOBJ invocations to module description.
4233         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4234         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4235
4236 2011-05-23  Bruno Haible  <bruno@clisp.org>
4237
4238         human: Move AC_LIBOBJ invocations to module description.
4239         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4240         * modules/human (Makefile.am): Augment lib_SOURCES.
4241
4242 2011-05-23  Bruno Haible  <bruno@clisp.org>
4243
4244         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4245         * m4/hmac-sha1.m4: Remove file.
4246         * modules/crypto/hmac-sha1 (Files): Remove it.
4247         (configure.ac): Remove gl_HMAC_SHA1 call.
4248         (Makefile.am): Augment lib_SOURCES.
4249
4250 2011-05-23  Bruno Haible  <bruno@clisp.org>
4251
4252         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4253         * m4/hmac-md5.m4: Remove file.
4254         * modules/crypto/hmac-md5 (Files): Remove it.
4255         (configure.ac): Remove gl_HMAC_MD5 call.
4256         (Makefile.am): Augment lib_SOURCES.
4257
4258 2011-05-23  Bruno Haible  <bruno@clisp.org>
4259
4260         hash: Move AC_LIBOBJ invocations to module description.
4261         * m4/hash.m4: Remove file.
4262         * modules/hash (Files): Remove it.
4263         (configure.ac): Remove gl_HASH call.
4264         (Makefile.am): Augment lib_SOURCES.
4265
4266 2011-05-23  Bruno Haible  <bruno@clisp.org>
4267
4268         hard-locale: Move AC_LIBOBJ invocations to module description.
4269         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4270         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4271
4272 2011-05-23  Bruno Haible  <bruno@clisp.org>
4273
4274         getugroups: Move AC_LIBOBJ invocations to module description.
4275         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4276         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4277
4278 2011-05-23  Bruno Haible  <bruno@clisp.org>
4279
4280         gettime: Move AC_LIBOBJ invocations to module description.
4281         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4282         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4283
4284 2011-05-23  Bruno Haible  <bruno@clisp.org>
4285
4286         getndelim2: Move AC_LIBOBJ invocations to module description.
4287         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4288         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4289
4290 2011-05-23  Bruno Haible  <bruno@clisp.org>
4291
4292         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4293         * m4/gc-pbkdf2-sha1.m4: Remove file.
4294         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4295         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4296         (Makefile.am): Augment lib_SOURCES.
4297
4298 2011-05-23  Bruno Haible  <bruno@clisp.org>
4299
4300         fts: Move AC_LIBOBJ invocations to module description.
4301         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4302         * modules/fts (configure.ac): ... to here.
4303
4304 2011-05-23  Bruno Haible  <bruno@clisp.org>
4305
4306         file-type: Move AC_LIBOBJ invocations to module description.
4307         * m4/file-type.m4: Remove file.
4308         * modules/file-type (Files): Remove it.
4309         (configure.ac): Remove gl_FILE_TYPE call.
4310         (Makefile.am): Augment lib_SOURCES.
4311
4312 2011-05-23  Bruno Haible  <bruno@clisp.org>
4313
4314         filenamecat*: Respect rules for use of AC_LIBOBJ.
4315         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4316         Remove AC_LIBOBJ invocation.
4317         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4318         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4319
4320 2011-05-23  Bruno Haible  <bruno@clisp.org>
4321
4322         filemode: Move AC_LIBOBJ invocations to module description.
4323         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4324         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4325
4326 2011-05-23  Bruno Haible  <bruno@clisp.org>
4327
4328         openat-safer: Move AC_LIBOBJ invocations to module description.
4329         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4330         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4331
4332 2011-05-23  Bruno Haible  <bruno@clisp.org>
4333
4334         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4336         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4337
4338 2011-05-23  Bruno Haible  <bruno@clisp.org>
4339
4340         exclude: Move AC_LIBOBJ invocations to module description.
4341         * m4/exclude.m4: Remove file.
4342         * modules/exclude (Files): Remove it.
4343         (configure.ac): Remove gl_EXCLUDE call.
4344         (Makefile.am): Augment lib_SOURCES.
4345
4346 2011-05-23  Bruno Haible  <bruno@clisp.org>
4347
4348         dirname*: Respect rules for use of AC_LIBOBJ.
4349         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4350         invocations.
4351         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4352         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4353
4354 2011-05-23  Bruno Haible  <bruno@clisp.org>
4355
4356         dirent-safer: Move AC_LIBOBJ invocations to module description.
4357         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4358         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4359
4360 2011-05-23  Bruno Haible  <bruno@clisp.org>
4361
4362         crypto/des: Move AC_LIBOBJ invocations to module description.
4363         * m4/des.m4: Remove file.
4364         * modules/crypto/des (Files): Remove it.
4365         (configure.ac): Remove gl_DES call.
4366         (Makefile.am): Augment lib_SOURCES.
4367
4368 2011-05-23  Bruno Haible  <bruno@clisp.org>
4369
4370         cycle-check: Move AC_LIBOBJ invocations to module description.
4371         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4372         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4373
4374 2011-05-23  Bruno Haible  <bruno@clisp.org>
4375
4376         c-strtold: Move AC_LIBOBJ invocations to module description.
4377         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4378         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4379
4380 2011-05-23  Bruno Haible  <bruno@clisp.org>
4381
4382         c-strtod: Move AC_LIBOBJ invocations to module description.
4383         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4384         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4385
4386 2011-05-23  Bruno Haible  <bruno@clisp.org>
4387
4388         crc: Move AC_LIBOBJ invocations to module description.
4389         * m4/crc.m4: Remove file.
4390         * modules/crc (Files): Remove it.
4391         (configure.ac): Remove gl_CRC call.
4392         (Makefile.am): Augment lib_SOURCES.
4393
4394 2011-05-23  Bruno Haible  <bruno@clisp.org>
4395
4396         close-stream: Move AC_LIBOBJ invocations to module description.
4397         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4398         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4399
4400 2011-05-23  Bruno Haible  <bruno@clisp.org>
4401
4402         closeout: Move AC_LIBOBJ invocations to module description.
4403         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4404         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4405
4406 2011-05-23  Bruno Haible  <bruno@clisp.org>
4407
4408         closein: Move AC_LIBOBJ invocations to module description.
4409         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4410         * modules/closein (Makefile.am): Augment lib_SOURCES.
4411
4412 2011-05-23  Bruno Haible  <bruno@clisp.org>
4413
4414         cloexec: Move AC_LIBOBJ invocations to module description.
4415         * m4/cloexec.m4: Remove file.
4416         * modules/cloexec (Files): Remove it.
4417         (configure.ac): Remove gl_CLOEXEC call.
4418         (Makefile.am): Augment lib_SOURCES.
4419
4420 2011-05-23  Bruno Haible  <bruno@clisp.org>
4421
4422         check-version: Move AC_LIBOBJ invocations to module description.
4423         * m4/check-version.m4: Remove file.
4424         * modules/check-version (Files): Remove it.
4425         (configure.ac): Remove gl_CHECK_VERSION call.
4426         (Makefile.am): Augment lib_SOURCES.
4427
4428 2011-05-23  Bruno Haible  <bruno@clisp.org>
4429
4430         chdir-safer: Move AC_LIBOBJ invocations to module description.
4431         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4432         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4433
4434 2011-05-23  Bruno Haible  <bruno@clisp.org>
4435
4436         canonicalize: Move AC_LIBOBJ invocations to module description.
4437         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4438         AC_LIBOBJ invocation.
4439         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4440
4441 2011-05-23  Bruno Haible  <bruno@clisp.org>
4442
4443         canon-host: Move AC_LIBOBJ invocations to module description.
4444         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4445         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4446         instead of gl_CANON_HOST.
4447         (Makefile.am): Augment lib_SOURCES.
4448
4449 2011-05-23  Bruno Haible  <bruno@clisp.org>
4450
4451         backupfile: Move AC_LIBOBJ invocations to module description.
4452         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4453         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4454
4455 2011-05-23  Bruno Haible  <bruno@clisp.org>
4456
4457         argmatch: Move AC_LIBOBJ invocations to module description.
4458         * m4/argmatch.m4: Remove file.
4459         * modules/argmatch (Files): Remove it.
4460         (configure.ac): Remove gl_ARGMATCH call.
4461         (Makefile.am): Augment lib_SOURCES.
4462
4463 2011-05-23  Bruno Haible  <bruno@clisp.org>
4464
4465         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4466         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4467         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4468
4469 2011-05-23  Bruno Haible  <bruno@clisp.org>
4470
4471         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4472         * m4/arcfour.m4: Remove file.
4473         * modules/crypto/arcfour (Files): Remove it.
4474         (configure.ac): Remove gl_ARCFOUR call.
4475         (Makefile.am): Augment lib_SOURCES.
4476
4477 2011-05-22  Bruno Haible  <bruno@clisp.org>
4478
4479         write: Move AC_LIBOBJ invocations to module description.
4480         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4481         * modules/write (configure.ac): ... to here.
4482
4483 2011-05-22  Bruno Haible  <bruno@clisp.org>
4484
4485         wmemset: Move AC_LIBOBJ invocations to module description.
4486         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4487         here...
4488         * modules/wmemset (configure.ac): ... to here.
4489
4490 2011-05-22  Bruno Haible  <bruno@clisp.org>
4491
4492         wmemmove: Move AC_LIBOBJ invocations to module description.
4493         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4494         here...
4495         * modules/wmemmove (configure.ac): ... to here.
4496
4497 2011-05-22  Bruno Haible  <bruno@clisp.org>
4498
4499         wmemcpy: Move AC_LIBOBJ invocations to module description.
4500         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4501         here...
4502         * modules/wmemcpy (configure.ac): ... to here.
4503
4504 2011-05-22  Bruno Haible  <bruno@clisp.org>
4505
4506         wmemcmp: Move AC_LIBOBJ invocations to module description.
4507         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4508         here...
4509         * modules/wmemcmp (configure.ac): ... to here.
4510
4511 2011-05-22  Bruno Haible  <bruno@clisp.org>
4512
4513         wmemchr: Move AC_LIBOBJ invocations to module description.
4514         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4515         here...
4516         * modules/wmemchr (configure.ac): ... to here.
4517
4518 2011-05-22  Bruno Haible  <bruno@clisp.org>
4519
4520         wcswidth: Move AC_LIBOBJ invocations to module description.
4521         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4522         here...
4523         * modules/wcswidth (configure.ac): ... to here.
4524
4525 2011-05-22  Bruno Haible  <bruno@clisp.org>
4526
4527         wcwidth: Respect rules for use of AC_LIBOBJ.
4528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4529         invocation from here...
4530         * modules/wcwidth (configure.ac): ... to here.
4531         (Depends-on): Update conditions.
4532
4533 2011-05-22  Bruno Haible  <bruno@clisp.org>
4534
4535         wctype: Move AC_LIBOBJ invocations to module description.
4536         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4537         invocation from here...
4538         * modules/wctype (configure.ac): ... to here.
4539         (Depends-on): Update conditions.
4540
4541 2011-05-22  Bruno Haible  <bruno@clisp.org>
4542
4543         wctrans: Move AC_LIBOBJ invocations to module description.
4544         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4545         invocation from here...
4546         * modules/wctrans (configure.ac): ... to here.
4547
4548 2011-05-22  Bruno Haible  <bruno@clisp.org>
4549
4550         wctomb: Move AC_LIBOBJ invocations to module description.
4551         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4552         invocations from here...
4553         * modules/wctomb (configure.ac): ... to here.
4554
4555 2011-05-22  Bruno Haible  <bruno@clisp.org>
4556
4557         wctob: Move AC_LIBOBJ invocations to module description.
4558         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4559         gl_PREREQ_WCTOB invocations from here...
4560         * modules/wctob (configure.ac): ... to here.
4561         (Depends-on): Update conditions.
4562
4563 2011-05-22  Bruno Haible  <bruno@clisp.org>
4564
4565         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4566         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4567         here...
4568         * modules/wcsxfrm (configure.ac): ... to here.
4569
4570 2011-05-22  Bruno Haible  <bruno@clisp.org>
4571
4572         wcstok: Move AC_LIBOBJ invocations to module description.
4573         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4574         * modules/wcstok (configure.ac): ... to here.
4575
4576 2011-05-22  Bruno Haible  <bruno@clisp.org>
4577
4578         wcsstr: Move AC_LIBOBJ invocations to module description.
4579         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4580         * modules/wcsstr (configure.ac): ... to here.
4581
4582 2011-05-22  Bruno Haible  <bruno@clisp.org>
4583
4584         wcsspn: Move AC_LIBOBJ invocations to module description.
4585         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4586         * modules/wcsspn (configure.ac): ... to here.
4587
4588 2011-05-22  Bruno Haible  <bruno@clisp.org>
4589
4590         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4591         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4592         gl_PREREQ_WCSRTOMBS invocations from here...
4593         * modules/wcsrtombs (configure.ac): ... to here.
4594
4595 2011-05-22  Bruno Haible  <bruno@clisp.org>
4596
4597         wcsrchr: Move AC_LIBOBJ invocations to module description.
4598         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4599         here...
4600         * modules/wcsrchr (configure.ac): ... to here.
4601
4602 2011-05-22  Bruno Haible  <bruno@clisp.org>
4603
4604         wcspbrk: Move AC_LIBOBJ invocations to module description.
4605         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4606         here...
4607         * modules/wcspbrk (configure.ac): ... to here.
4608
4609 2011-05-22  Bruno Haible  <bruno@clisp.org>
4610
4611         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4612         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4613         gl_PREREQ_WCSNRTOMBS invocations from here...
4614         * modules/wcsnrtombs (configure.ac): ... to here.
4615
4616 2011-05-22  Bruno Haible  <bruno@clisp.org>
4617
4618         wcsnlen: Move AC_LIBOBJ invocations to module description.
4619         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4620         here...
4621         * modules/wcsnlen (configure.ac): ... to here.
4622
4623 2011-05-22  Bruno Haible  <bruno@clisp.org>
4624
4625         wcsncpy: Move AC_LIBOBJ invocations to module description.
4626         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4627         here...
4628         * modules/wcsncpy (configure.ac): ... to here.
4629
4630 2011-05-22  Bruno Haible  <bruno@clisp.org>
4631
4632         wcsncmp: Move AC_LIBOBJ invocations to module description.
4633         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4634         here...
4635         * modules/wcsncmp (configure.ac): ... to here.
4636
4637 2011-05-22  Bruno Haible  <bruno@clisp.org>
4638
4639         wcsncat: Move AC_LIBOBJ invocations to module description.
4640         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4641         here...
4642         * modules/wcsncat (configure.ac): ... to here.
4643
4644 2011-05-22  Bruno Haible  <bruno@clisp.org>
4645
4646         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4647         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4648         from here...
4649         * modules/wcsncasecmp (configure.ac): ... to here.
4650
4651 2011-05-22  Bruno Haible  <bruno@clisp.org>
4652
4653         wcslen: Move AC_LIBOBJ invocations to module description.
4654         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4655         * modules/wcslen (configure.ac): ... to here.
4656
4657 2011-05-22  Bruno Haible  <bruno@clisp.org>
4658
4659         wcsdup: Move AC_LIBOBJ invocations to module description.
4660         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4661         * modules/wcsdup (configure.ac): ... to here.
4662
4663 2011-05-22  Bruno Haible  <bruno@clisp.org>
4664
4665         wcscspn: Move AC_LIBOBJ invocations to module description.
4666         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4667         here...
4668         * modules/wcscspn (configure.ac): ... to here.
4669
4670 2011-05-22  Bruno Haible  <bruno@clisp.org>
4671
4672         wcscpy: Move AC_LIBOBJ invocations to module description.
4673         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4674         * modules/wcscpy (configure.ac): ... to here.
4675
4676 2011-05-22  Bruno Haible  <bruno@clisp.org>
4677
4678         wcscoll: Move AC_LIBOBJ invocations to module description.
4679         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4680         here...
4681         * modules/wcscoll (configure.ac): ... to here.
4682
4683 2011-05-22  Bruno Haible  <bruno@clisp.org>
4684
4685         wcscmp: Move AC_LIBOBJ invocations to module description.
4686         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4687         * modules/wcscmp (configure.ac): ... to here.
4688
4689 2011-05-22  Bruno Haible  <bruno@clisp.org>
4690
4691         wcschr: Move AC_LIBOBJ invocations to module description.
4692         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4693         * modules/wcschr (configure.ac): ... to here.
4694
4695 2011-05-22  Bruno Haible  <bruno@clisp.org>
4696
4697         wcscat: Move AC_LIBOBJ invocations to module description.
4698         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4699         * modules/wcscat (configure.ac): ... to here.
4700
4701 2011-05-22  Bruno Haible  <bruno@clisp.org>
4702
4703         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4704         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4705         here...
4706         * modules/wcscasecmp (configure.ac): ... to here.
4707
4708 2011-05-22  Bruno Haible  <bruno@clisp.org>
4709
4710         wcrtomb: Move AC_LIBOBJ invocations to module description.
4711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4712         invocations from here...
4713         * modules/wcrtomb (configure.ac): ... to here.
4714
4715 2011-05-22  Bruno Haible  <bruno@clisp.org>
4716
4717         wcpncpy: Move AC_LIBOBJ invocations to module description.
4718         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4719         here...
4720         * modules/wcpncpy (configure.ac): ... to here.
4721
4722 2011-05-22  Bruno Haible  <bruno@clisp.org>
4723
4724         wcpcpy: Move AC_LIBOBJ invocations to module description.
4725         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4726         * modules/wcpcpy (configure.ac): ... to here.
4727
4728 2011-05-22  Bruno Haible  <bruno@clisp.org>
4729
4730         waitpid: Move AC_LIBOBJ invocations to module description.
4731         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4732         invocation from here...
4733         * modules/waitpid (configure.ac): ... to here.
4734
4735 2011-05-22  Bruno Haible  <bruno@clisp.org>
4736
4737         utimensat: Move AC_LIBOBJ invocations to module description.
4738         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4739         here...
4740         * modules/utimensat (configure.ac): ... to here.
4741
4742 2011-05-22  Bruno Haible  <bruno@clisp.org>
4743
4744         usleep: Move AC_LIBOBJ invocations to module description.
4745         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4746         here...
4747         * modules/usleep (configure.ac): ... to here.
4748
4749 2011-05-22  Bruno Haible  <bruno@clisp.org>
4750
4751         unlockpt: Move AC_LIBOBJ invocations to module description.
4752         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4753         gl_PREREQ_UNLOCKPT invocations from here...
4754         * modules/unlockpt (configure.ac): ... to here.
4755
4756 2011-05-22  Bruno Haible  <bruno@clisp.org>
4757
4758         unlink: Respect rules for use of AC_LIBOBJ.
4759         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4760         * modules/unlink (configure.ac): ... to here.
4761
4762 2011-05-22  Bruno Haible  <bruno@clisp.org>
4763
4764         uname: Move AC_LIBOBJ invocations to module description.
4765         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4767         here...
4768         * modules/uname (configure.ac): ... to here.
4769
4770 2011-05-22  Bruno Haible  <bruno@clisp.org>
4771
4772         ttyname_r: Move AC_LIBOBJ invocations to module description.
4773         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4774         gl_PREREQ_TTYNAME_R invocations from here...
4775         * modules/ttyname_r (configure.ac): ... to here.
4776
4777 2011-05-22  Bruno Haible  <bruno@clisp.org>
4778
4779         tsearch: Move AC_LIBOBJ invocations to module description.
4780         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4781         invocations from here...
4782         * modules/tsearch (configure.ac): ... to here.
4783
4784 2011-05-22  Bruno Haible  <bruno@clisp.org>
4785
4786         towctrans: Move AC_LIBOBJ invocations to module description.
4787         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4788         AC_LIBOBJ invocation from here...
4789         * modules/towctrans (configure.ac): ... to here.
4790
4791 2011-05-22  Bruno Haible  <bruno@clisp.org>
4792
4793         tmpfile: Move AC_LIBOBJ invocations to module description.
4794         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4795         invocations from here...
4796         * modules/tmpfile (configure.ac): ... to here.
4797
4798 2011-05-22  Bruno Haible  <bruno@clisp.org>
4799
4800         times: Move AC_LIBOBJ invocations to module description.
4801         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4802         * modules/times (configure.ac): ... to here.
4803
4804 2011-05-22  Bruno Haible  <bruno@clisp.org>
4805
4806         time_r: Move AC_LIBOBJ invocations to module description.
4807         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4808         invocations from here...
4809         * modules/time_r (configure.ac): ... to here.
4810
4811 2011-05-22  Bruno Haible  <bruno@clisp.org>
4812
4813         timegm: Move AC_LIBOBJ invocations to module description.
4814         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4815         invocations from here...
4816         * modules/timegm (configure.ac): ... to here.
4817
4818 2011-05-22  Bruno Haible  <bruno@clisp.org>
4819
4820         tcgetsid: Move AC_LIBOBJ invocations to module description.
4821         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4822         and gl_PREREQ_TCGETSID invocations from here...
4823         * modules/tcgetsid (configure.ac): ... to here.
4824         (Depends-on): Update conditions.
4825
4826 2011-05-22  Bruno Haible  <bruno@clisp.org>
4827
4828         symlinkat: Move AC_LIBOBJ invocations to module description.
4829         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4830         here...
4831         * modules/symlinkat (configure.ac): ... to here.
4832
4833 2011-05-22  Bruno Haible  <bruno@clisp.org>
4834
4835         symlink: Move AC_LIBOBJ invocations to module description.
4836         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4837         here...
4838         * modules/symlink (configure.ac): ... to here.
4839
4840 2011-05-22  Bruno Haible  <bruno@clisp.org>
4841
4842         strverscmp: Move AC_LIBOBJ invocations to module description.
4843         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4845         from here...
4846         * modules/strverscmp (configure.ac): ... to here.
4847
4848 2011-05-22  Bruno Haible  <bruno@clisp.org>
4849
4850         strtok_r: Move AC_LIBOBJ invocations to module description.
4851         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4852         and gl_PREREQ_STRTOK_R invocations from here...
4853         * modules/strtok_r (configure.ac): ... to here.
4854         (Depends-on): Update conditions.
4855
4856 2011-05-22  Bruno Haible  <bruno@clisp.org>
4857
4858         strtoumax: Move AC_LIBOBJ invocations to module description.
4859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4861         from here...
4862         * modules/strtoumax (configure.ac): ... to here.
4863
4864 2011-05-22  Bruno Haible  <bruno@clisp.org>
4865
4866         strtoimax: Move AC_LIBOBJ invocations to module description.
4867         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4869         from here...
4870         * modules/strtoimax (configure.ac): ... to here.
4871
4872 2011-05-22  Bruno Haible  <bruno@clisp.org>
4873
4874         strtoull: Move AC_LIBOBJ invocations to module description.
4875         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4877         from here...
4878         * modules/strtoull (configure.ac): ... to here.
4879
4880 2011-05-22  Bruno Haible  <bruno@clisp.org>
4881
4882         strtoll: Move AC_LIBOBJ invocations to module description.
4883         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4884         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4885         here...
4886         * modules/strtoll (configure.ac): ... to here.
4887
4888 2011-05-22  Bruno Haible  <bruno@clisp.org>
4889
4890         strtoul: Move AC_LIBOBJ invocations to module description.
4891         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4892         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4893         * modules/strtoul (configure.ac): ... to here.
4894
4895 2011-05-22  Bruno Haible  <bruno@clisp.org>
4896
4897         strtol: Move AC_LIBOBJ invocations to module description.
4898         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4899         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4900         * modules/strtol (configure.ac): ... to here.
4901
4902 2011-05-22  Bruno Haible  <bruno@clisp.org>
4903
4904         strtod: Move AC_LIBOBJ invocations to module description.
4905         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4906         invocations from here...
4907         * modules/strtod (configure.ac): ... to here.
4908
4909 2011-05-22  Bruno Haible  <bruno@clisp.org>
4910
4911         strstr*: Move AC_LIBOBJ invocations to module description.
4912         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4913         invocations from here...
4914         * modules/strstr-simple (configure.ac): ... to here.
4915         * modules/strstr (configure.ac): ... and here.
4916
4917 2011-05-22  Bruno Haible  <bruno@clisp.org>
4918
4919         strsignal: Move AC_LIBOBJ invocations to module description.
4920         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4921         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4922         * modules/strsignal (configure.ac): ... to here.
4923         (Depends-on): Update conditions.
4924
4925 2011-05-22  Bruno Haible  <bruno@clisp.org>
4926
4927         strsep: Move AC_LIBOBJ invocations to module description.
4928         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4930         here...
4931         * modules/strsep (configure.ac): ... to here.
4932
4933 2011-05-22  Bruno Haible  <bruno@clisp.org>
4934
4935         strptime: Move AC_LIBOBJ invocations to module description.
4936         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4937         gl_PREREQ_STRPTIME invocations from here...
4938         * modules/strptime (configure.ac): ... to here.
4939
4940 2011-05-22  Bruno Haible  <bruno@clisp.org>
4941
4942         strpbrk: Move AC_LIBOBJ invocations to module description.
4943         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4944         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4945         here...
4946         * modules/strpbrk (configure.ac): ... to here.
4947
4948 2011-05-22  Bruno Haible  <bruno@clisp.org>
4949
4950         strnlen: Move AC_LIBOBJ invocations to module description.
4951         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4952         invocations from here...
4953         * modules/strnlen (configure.ac): ... to here.
4954
4955 2011-05-22  Bruno Haible  <bruno@clisp.org>
4956
4957         strndup: Move AC_LIBOBJ invocations to module description.
4958         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4959         invocations from here...
4960         * modules/strndup (configure.ac): ... to here.
4961         (Depends-on): Update conditions.
4962
4963 2011-05-22  Bruno Haible  <bruno@clisp.org>
4964
4965         strncat: Move AC_LIBOBJ invocations to module description.
4966         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4967         invocations from here...
4968         * modules/strncat (configure.ac): ... to here.
4969
4970 2011-05-22  Bruno Haible  <bruno@clisp.org>
4971
4972         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4973         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4974         invocations from here...
4975         * modules/strdup (configure.ac): ... to here.
4976         * modules/strdup-posix (configure.ac): ... and here.
4977
4978 2011-05-22  Bruno Haible  <bruno@clisp.org>
4979
4980         strcspn: Move AC_LIBOBJ invocations to module description.
4981         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4983         here...
4984         * modules/strcspn (configure.ac): ... to here.
4985
4986 2011-05-22  Bruno Haible  <bruno@clisp.org>
4987
4988         strchrnul: Move AC_LIBOBJ invocations to module description.
4989         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4990         gl_PREREQ_STRCHRNUL invocations from here...
4991         * modules/strchrnul (configure.ac): ... to here.
4992
4993 2011-05-22  Bruno Haible  <bruno@clisp.org>
4994
4995         strcasestr*: Move AC_LIBOBJ invocations to module description.
4996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4997         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4998         * modules/strcasestr-simple (configure.ac): ... to here.
4999         * modules/strcasestr (configure.ac): ... and here.
5000
5001 2011-05-22  Bruno Haible  <bruno@clisp.org>
5002
5003         strcase: Move AC_LIBOBJ invocations to module description.
5004         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5005         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5006         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5007         gl_PREREQ_STRNCASECMP invocations from here...
5008         * modules/strcase (configure.ac): ... to here.
5009
5010 2011-05-22  Bruno Haible  <bruno@clisp.org>
5011
5012         stpncpy: Move AC_LIBOBJ invocations to module description.
5013         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5014         here...
5015         * modules/stpncpy (configure.ac): ... to here.
5016
5017 2011-05-22  Bruno Haible  <bruno@clisp.org>
5018
5019         stpcpy: Move AC_LIBOBJ invocations to module description.
5020         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5022         here...
5023         * modules/stpcpy (configure.ac): ... to here.
5024
5025 2011-05-21  Bruno Haible  <bruno@clisp.org>
5026
5027         stat: Move AC_LIBOBJ invocations to module description.
5028         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5029         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5030         here...
5031         * modules/stat (configure.ac): ... to here.
5032
5033 2011-05-21  Bruno Haible  <bruno@clisp.org>
5034
5035         sleep: Move AC_LIBOBJ invocations to module description.
5036         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5037         * modules/sleep (configure.ac): ... to here.
5038
5039 2011-05-21  Bruno Haible  <bruno@clisp.org>
5040
5041         signbit: Move AC_LIBOBJ invocations to module description.
5042         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5043         * modules/signbit (configure.ac): ... to here.
5044
5045 2011-05-21  Bruno Haible  <bruno@clisp.org>
5046
5047         sigprocmask: Move AC_LIBOBJ invocations to module description.
5048         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5049         gl_PREREQ_SIGPROMASK invocations from here...
5050         * modules/sigprocmask (configure.ac): ... to here.
5051
5052 2011-05-21  Bruno Haible  <bruno@clisp.org>
5053
5054         sigaction: Move AC_LIBOBJ invocations to module description.
5055         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5056         gl_PREREQ_SIGACTION invocations from here...
5057         * modules/sigaction (configure.ac): ... to here.
5058
5059 2011-05-21  Bruno Haible  <bruno@clisp.org>
5060
5061         sig2str: Move AC_LIBOBJ invocations to module description.
5062         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5064         here...
5065         * modules/sig2str (configure.ac): ... to here.
5066
5067 2011-05-21  Bruno Haible  <bruno@clisp.org>
5068
5069         setlocale: Move AC_LIBOBJ invocations to module description.
5070         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5071         gl_PREREQ_SETLOCALE invocations from here...
5072         * modules/setlocale (configure.ac): ... to here.
5073
5074 2011-05-21  Bruno Haible  <bruno@clisp.org>
5075
5076         unsetenv: Move AC_LIBOBJ invocations to module description.
5077         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5078         and gl_PREREQ_UNSETENV invocations from here...
5079         * modules/unsetenv (configure.ac): ... to here.
5080         (Depends-on): Update.
5081
5082 2011-05-21  Bruno Haible  <bruno@clisp.org>
5083
5084         setenv: Move AC_LIBOBJ invocations to module description.
5085         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5086         here...
5087         * modules/setenv (configure.ac): ... to here.
5088
5089 2011-05-21  Bruno Haible  <bruno@clisp.org>
5090
5091         selinux-h: Move AC_LIBOBJ invocations to module description.
5092         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5093         AC_LIBOBJ invocation from here...
5094         * modules/selinux-h (configure.ac): ... to here.
5095
5096 2011-05-21  Bruno Haible  <bruno@clisp.org>
5097
5098         select: Respect rules for use of AC_LIBOBJ.
5099         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5100         here...
5101         * modules/select (configure.ac): ... to here.
5102
5103 2011-05-21  Bruno Haible  <bruno@clisp.org>
5104
5105         scandir: Move AC_LIBOBJ invocations to module description.
5106         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5107         invocations from here...
5108         * modules/scandir (configure.ac): ... to here.
5109
5110 2011-05-21  Bruno Haible  <bruno@clisp.org>
5111
5112         rpmatch: Move AC_LIBOBJ invocations to module description.
5113         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5115         here...
5116         * modules/rpmatch (configure.ac): ... to here.
5117
5118 2011-05-21  Bruno Haible  <bruno@clisp.org>
5119
5120         rmdir: Respect rules for use of AC_LIBOBJ.
5121         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5122         * modules/rmdir (configure.ac): ... to here.
5123
5124 2011-05-21  Bruno Haible  <bruno@clisp.org>
5125
5126         renameat: Move AC_LIBOBJ invocations to module description.
5127         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5128         here...
5129         * modules/renameat (configure.ac): ... to here.
5130
5131 2011-05-21  Bruno Haible  <bruno@clisp.org>
5132
5133         rename: Respect rules for use of AC_LIBOBJ.
5134         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5135         here...
5136         * modules/rename (configure.ac): ... to here.
5137
5138 2011-05-21  Bruno Haible  <bruno@clisp.org>
5139
5140         remove: Move AC_LIBOBJ invocations to module description.
5141         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5142         here...
5143         * modules/remove (configure.ac): ... to here.
5144
5145 2011-05-21  Bruno Haible  <bruno@clisp.org>
5146
5147         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5148         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5149         macro.
5150         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5151         * modules/relocatable-lib (configure.ac): ... to here.
5152         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5153         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5154
5155 2011-05-21  Bruno Haible  <bruno@clisp.org>
5156
5157         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5158         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5159         here...
5160         * modules/relocatable-prog (configure.ac): ... to here.
5161
5162 2011-05-21  Bruno Haible  <bruno@clisp.org>
5163
5164         regex: Move AC_LIBOBJ invocations to module description.
5165         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5166         invocations from here...
5167         * modules/regex (configure.ac): ... to here.
5168
5169 2011-05-21  Bruno Haible  <bruno@clisp.org>
5170
5171         realloc-*: Move AC_LIBOBJ invocations to module description.
5172         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5173         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5174         AC_LIBOBJ invocations from here...
5175         * modules/realloc-gnu (configure.ac): ... to here.
5176         * modules/realloc-posix (configure.ac): ... and here.
5177
5178 2011-05-21  Bruno Haible  <bruno@clisp.org>
5179
5180         readutmp: Move AC_LIBOBJ invocations to module description.
5181         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5182         * modules/readutmp (configure.ac): ... to here.
5183
5184 2011-05-21  Bruno Haible  <bruno@clisp.org>
5185
5186         readlinkat: Move AC_LIBOBJ invocations to module description.
5187         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5188         here...
5189         * modules/readlinkat (configure.ac): ... to here.
5190
5191 2011-05-21  Bruno Haible  <bruno@clisp.org>
5192
5193         readlink: Move AC_LIBOBJ invocations to module description.
5194         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5195         gl_PREREQ_READLINK invocations from here...
5196         * modules/readlink (configure.ac): ... to here.
5197
5198 2011-05-21  Bruno Haible  <bruno@clisp.org>
5199
5200         readline: Move AC_LIBOBJ invocations to module description.
5201         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5202         gl_PREREQ_READLINE invocations from here...
5203         * modules/readline (configure.ac): ... to here.
5204
5205 2011-05-21  Bruno Haible  <bruno@clisp.org>
5206
5207         read: Move AC_LIBOBJ invocations to module description.
5208         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5209         * modules/read (configure.ac): ... to here.
5210
5211 2011-05-21  Bruno Haible  <bruno@clisp.org>
5212
5213         rawmemchr: Move AC_LIBOBJ invocations to module description.
5214         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5216         from here...
5217         * modules/rawmemchr (configure.ac): ... to here.
5218
5219 2011-05-21  Bruno Haible  <bruno@clisp.org>
5220
5221         random_r: Move AC_LIBOBJ invocations to module description.
5222         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5223         gl_PREREQ_RANDOM_R invocations from here...
5224         * modules/random_r (configure.ac): ... to here.
5225
5226 2011-05-21  Bruno Haible  <bruno@clisp.org>
5227
5228         pwrite: Move AC_LIBOBJ invocations to module description.
5229         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5230         * modules/pwrite (configure.ac): ... to here.
5231
5232 2011-05-21  Bruno Haible  <bruno@clisp.org>
5233
5234         putenv: Move AC_LIBOBJ invocations to module description.
5235         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5236         * modules/putenv (configure.ac): ... to here.
5237
5238 2011-05-21  Bruno Haible  <bruno@clisp.org>
5239
5240         login_tty: Move AC_LIBOBJ invocations to module description.
5241         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5242         * modules/login_tty (configure.ac): ... to here.
5243
5244 2011-05-21  Bruno Haible  <bruno@clisp.org>
5245
5246         openpty: Move AC_LIBOBJ invocations to module description.
5247         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5248         * modules/openpty (configure.ac): ... to here.
5249
5250 2011-05-21  Bruno Haible  <bruno@clisp.org>
5251
5252         forkpty: Move AC_LIBOBJ invocations to module description.
5253         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5254         * modules/forkpty (configure.ac): ... to here.
5255
5256 2011-05-21  Bruno Haible  <bruno@clisp.org>
5257
5258         ptsname: Move AC_LIBOBJ invocations to module description.
5259         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5260         invocations from here...
5261         * modules/ptsname (configure.ac): ... to here.
5262
5263 2011-05-21  Bruno Haible  <bruno@clisp.org>
5264
5265         pread: Move AC_LIBOBJ invocations to module description.
5266         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5267         * modules/pread (configure.ac): ... to here.
5268
5269 2011-05-21  Bruno Haible  <bruno@clisp.org>
5270
5271         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5272         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5273         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5274         * modules/posix_spawn (configure.ac): ... to here.
5275         * modules/posix_spawnp (configure.ac): ... and here.
5276
5277 2011-05-21  Bruno Haible  <bruno@clisp.org>
5278
5279         popen: Move AC_LIBOBJ invocations to module description.
5280         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5281         invocations from here...
5282         * modules/popen (configure.ac): ... to here.
5283
5284 2011-05-21  Bruno Haible  <bruno@clisp.org>
5285
5286         poll: Move AC_LIBOBJ invocations to module description.
5287         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5288         invocations from here...
5289         * modules/poll (configure.ac): ... to here.
5290
5291 2011-05-21  Bruno Haible  <bruno@clisp.org>
5292
5293         pipe-posix: Move AC_LIBOBJ invocations to module description.
5294         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5295         * modules/pipe-posix (configure.ac): ... to here.
5296
5297 2011-05-21  Bruno Haible  <bruno@clisp.org>
5298
5299         openat: Respect rules for use of AC_LIBOBJ.
5300         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5301         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5302         * modules/openat (configure.ac): ... to here.
5303
5304 2011-05-21  Bruno Haible  <bruno@clisp.org>
5305
5306         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5307         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5308         invocation from here...
5309         * modules/obstack-printf (configure.ac): ... to here.
5310         * modules/obstack-printf-posix (configure.ac): ... and here.
5311
5312 2011-05-21  Bruno Haible  <bruno@clisp.org>
5313
5314         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5315         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5316         from here...
5317         * modules/nl_langinfo (configure.ac): ... to here.
5318
5319 2011-05-21  Bruno Haible  <bruno@clisp.org>
5320
5321         nanosleep: Move AC_LIBOBJ invocations to module description.
5322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5323         gl_PREREQ_NANOSLEEP invocations from here...
5324         * modules/nanosleep (configure.ac): ... to here.
5325
5326 2011-05-21  Bruno Haible  <bruno@clisp.org>
5327
5328         mountlist: Move AC_LIBOBJ invocations to module description.
5329         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5330         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5331         * modules/mountlist (configure.ac): ... to here.
5332
5333 2011-05-21  Bruno Haible  <bruno@clisp.org>
5334
5335         mktime: Respect rules for use of AC_LIBOBJ.
5336         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5337         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5338         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5339         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5340         * modules/mktime (configure.ac): ... to here.
5341         * modules/mktime-internal (configure.ac): ... and here.
5342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         mkstemps: Move AC_LIBOBJ invocations to module description.
5347         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5348         here...
5349         * modules/mkstemps (configure.ac): ... to here.
5350
5351 2011-05-21  Bruno Haible  <bruno@clisp.org>
5352
5353         mkstemp: Move AC_LIBOBJ invocations to module description.
5354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5355         gl_PREREQ_MKSTEMP invocations from here...
5356         * modules/mkstemp (configure.ac): ... to here.
5357
5358 2011-05-21  Bruno Haible  <bruno@clisp.org>
5359
5360         mkostemps: Move AC_LIBOBJ invocations to module description.
5361         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5362         here...
5363         * modules/mkostemps (configure.ac): ... to here.
5364
5365 2011-05-21  Bruno Haible  <bruno@clisp.org>
5366
5367         mkostemp: Move AC_LIBOBJ invocations to module description.
5368         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5369         gl_PREREQ_MKOSTEMP invocations from here...
5370         * modules/mkostemp (configure.ac): ... to here.
5371
5372 2011-05-21  Bruno Haible  <bruno@clisp.org>
5373
5374         mknod: Move AC_LIBOBJ invocations to module description.
5375         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5376         * modules/mknod (configure.ac): ... to here.
5377
5378 2011-05-21  Bruno Haible  <bruno@clisp.org>
5379
5380         mkfifoat: Move AC_LIBOBJ invocations to module description.
5381         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5382         here...
5383         * modules/mkfifoat (configure.ac): ... to here.
5384
5385 2011-05-21  Bruno Haible  <bruno@clisp.org>
5386
5387         mkfifo: Respect rules for use of AC_LIBOBJ.
5388         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5389         here...
5390         * modules/mkfifo (configure.ac): ... to here.
5391
5392 2011-05-21  Bruno Haible  <bruno@clisp.org>
5393
5394         mkdtemp: Move AC_LIBOBJ invocations to module description.
5395         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5396         invocations from here...
5397         * modules/mkdtemp (configure.ac): ... to here.
5398
5399 2011-05-21  Bruno Haible  <bruno@clisp.org>
5400
5401         mkdir: Move AC_LIBOBJ invocations to module description.
5402         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5403         * modules/mkdir (configure.ac): ... to here.
5404
5405 2011-05-21  Bruno Haible  <bruno@clisp.org>
5406
5407         memset: Move AC_LIBOBJ invocations to module description.
5408         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5410         here...
5411         * modules/memset (configure.ac): ... to here.
5412
5413 2011-05-21  Bruno Haible  <bruno@clisp.org>
5414
5415         memrchr: Move AC_LIBOBJ invocations to module description.
5416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5418         here...
5419         * modules/memrchr (configure.ac): ... to here.
5420
5421 2011-05-21  Bruno Haible  <bruno@clisp.org>
5422
5423         mempcpy: Move AC_LIBOBJ invocations to module description.
5424         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5426         here...
5427         * modules/mempcpy (configure.ac): ... to here.
5428
5429 2011-05-21  Bruno Haible  <bruno@clisp.org>
5430
5431         memmove: Move AC_LIBOBJ invocations to module description.
5432         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5434         here...
5435         * modules/memmove (configure.ac): ... to here.
5436
5437 2011-05-21  Bruno Haible  <bruno@clisp.org>
5438
5439         memmem*: Move AC_LIBOBJ invocations to module description.
5440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5441         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5442         here...
5443         (gl_FUNC_MEMMEM): ... and here...
5444         * modules/memmem-simple (configure.ac): ... to here.
5445         * modules/memmem (configure.ac): ... and here.
5446
5447 2011-05-21  Bruno Haible  <bruno@clisp.org>
5448
5449         memcpy: Move AC_LIBOBJ invocations to module description.
5450         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5451         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5452         here...
5453         * modules/memcpy (configure.ac): ... to here.
5454
5455 2011-05-21  Bruno Haible  <bruno@clisp.org>
5456
5457         memcmp: Simplify autoconf macro.
5458         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5459         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5460         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5461
5462 2011-05-21  Bruno Haible  <bruno@clisp.org>
5463
5464         memcmp: Move AC_LIBOBJ invocations to module description.
5465         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5466         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5467         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5468         * modules/memcmp (configure.ac): ... to here.
5469         (Depends-on): Update conditions.
5470
5471 2011-05-21  Bruno Haible  <bruno@clisp.org>
5472
5473         memchr: Respect rules for use of AC_LIBOBJ.
5474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5475         invocations from here...
5476         * modules/memchr (configure.ac): ... to here.
5477
5478 2011-05-21  Bruno Haible  <bruno@clisp.org>
5479
5480         mbtowc: Move AC_LIBOBJ invocations to module description.
5481         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5482         invocations from here...
5483         * modules/mbtowc (configure.ac): ... to here.
5484
5485 2011-05-21  Bruno Haible  <bruno@clisp.org>
5486
5487         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5488         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5489         gl_PREREQ_MBSRTOWCS invocations from here...
5490         * modules/mbsrtowcs (configure.ac): ... to here.
5491
5492 2011-05-21  Bruno Haible  <bruno@clisp.org>
5493
5494         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5495         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5496         gl_PREREQ_MBSNRTOWCS invocations from here...
5497         * modules/mbsnrtowcs (configure.ac): ... to here.
5498
5499 2011-05-21  Bruno Haible  <bruno@clisp.org>
5500
5501         mbsinit: Move AC_LIBOBJ invocations to module description.
5502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5503         invocations from here...
5504         * modules/mbsinit (configure.ac): ... to here.
5505
5506 2011-05-21  Bruno Haible  <bruno@clisp.org>
5507
5508         mbrlen: Move AC_LIBOBJ invocations to module description.
5509         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5510         invocations from here...
5511         * modules/mbrlen (configure.ac): ... to here.
5512
5513 2011-05-21  Bruno Haible  <bruno@clisp.org>
5514
5515         mbrtowc: Respect rules for use of AC_LIBOBJ.
5516         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5517         invocations from here...
5518         * modules/mbrtowc (configure.ac): ... to here.
5519
5520 2011-05-21  Bruno Haible  <bruno@clisp.org>
5521
5522         malloc-*: Move AC_LIBOBJ invocations to module description.
5523         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5524         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5525         AC_LIBOBJ invocations from here...
5526         * modules/malloc-gnu (configure.ac): ... to here.
5527         * modules/malloc-posix (configure.ac): ... and here.
5528
5529 2011-05-21  Bruno Haible  <bruno@clisp.org>
5530
5531         lstat, openat: Respect rules for use of AC_LIBOBJ.
5532         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5533         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5534         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5535         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5536         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5537         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5538         here.
5539         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5540
5541 2011-05-21  Bruno Haible  <bruno@clisp.org>
5542
5543         lseek: Move AC_LIBOBJ invocations to module description.
5544         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5545         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5546         * modules/lseek (configure.ac): ... to here.
5547
5548 2011-05-21  Bruno Haible  <bruno@clisp.org>
5549
5550         linkat: Move AC_LIBOBJ invocations to module description.
5551         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5552         here...
5553         * modules/linkat (configure.ac): ... to here.
5554
5555 2011-05-21  Bruno Haible  <bruno@clisp.org>
5556
5557         link: Respect rules for use of AC_LIBOBJ.
5558         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5559         * modules/link (configure.ac): ... to here.
5560
5561 2011-05-21  Bruno Haible  <bruno@clisp.org>
5562
5563         lchown: Move AC_LIBOBJ invocations to module description.
5564         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5565         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5566         * modules/lchown (configure.ac): ... to here.
5567
5568 2011-05-21  Bruno Haible  <bruno@clisp.org>
5569
5570         iswctype: Move AC_LIBOBJ invocations to module description.
5571         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5572         here...
5573         * modules/iswctype (configure.ac): ... to here.
5574
5575 2011-05-21  Bruno Haible  <bruno@clisp.org>
5576
5577         iswblank: Move AC_LIBOBJ invocations to module description.
5578         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5579         here...
5580         * modules/iswblank (configure.ac): ... to here.
5581
5582 2011-05-21  Bruno Haible  <bruno@clisp.org>
5583
5584         atanl: Move AC_LIBOBJ invocations to module description.
5585         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5586         * modules/atanl (configure.ac): ... to here.
5587
5588 2011-05-21  Bruno Haible  <bruno@clisp.org>
5589
5590         acosl: Move AC_LIBOBJ invocations to module description.
5591         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5592         * modules/acosl (configure.ac): ... to here.
5593
5594 2011-05-21  Bruno Haible  <bruno@clisp.org>
5595
5596         asinl: Respect rules for use of AC_LIBOBJ.
5597         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5598         * modules/asinl (configure.ac): ... to here.
5599
5600 2011-05-21  Bruno Haible  <bruno@clisp.org>
5601
5602         tanl: Move AC_LIBOBJ invocations to module description.
5603         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5604         * modules/tanl (configure.ac): ... to here.
5605
5606 2011-05-21  Bruno Haible  <bruno@clisp.org>
5607
5608         cosl: Move AC_LIBOBJ invocations to module description.
5609         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5610         * modules/cosl (configure.ac): ... to here.
5611
5612 2011-05-21  Bruno Haible  <bruno@clisp.org>
5613
5614         sinl: Move AC_LIBOBJ invocations to module description.
5615         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5616         * modules/sinl (configure.ac): ... to here.
5617
5618 2011-05-21  Bruno Haible  <bruno@clisp.org>
5619
5620         logl: Move AC_LIBOBJ invocations to module description.
5621         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5622         * modules/logl (configure.ac): ... to here.
5623
5624 2011-05-21  Bruno Haible  <bruno@clisp.org>
5625
5626         expl: Move AC_LIBOBJ invocations to module description.
5627         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5628         * modules/expl (configure.ac): ... to here.
5629
5630 2011-05-21  Bruno Haible  <bruno@clisp.org>
5631
5632         roundl: Move AC_LIBOBJ invocations to module description.
5633         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5634         * modules/roundl (configure.ac): ... to here.
5635
5636 2011-05-21  Bruno Haible  <bruno@clisp.org>
5637
5638         round: Move AC_LIBOBJ invocations to module description.
5639         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5640         * modules/round (configure.ac): ... to here.
5641
5642 2011-05-21  Bruno Haible  <bruno@clisp.org>
5643
5644         roundf: Move AC_LIBOBJ invocations to module description.
5645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5646         * modules/roundf (configure.ac): ... to here.
5647
5648 2011-05-21  Bruno Haible  <bruno@clisp.org>
5649
5650         truncl: Move AC_LIBOBJ invocations to module description.
5651         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5652         * modules/truncl (configure.ac): ... to here.
5653
5654 2011-05-21  Bruno Haible  <bruno@clisp.org>
5655
5656         trunc: Move AC_LIBOBJ invocations to module description.
5657         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5658         * modules/trunc (configure.ac): ... to here.
5659
5660 2011-05-21  Bruno Haible  <bruno@clisp.org>
5661
5662         truncf: Move AC_LIBOBJ invocations to module description.
5663         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5664         * modules/truncf (configure.ac): ... to here.
5665
5666 2011-05-21  Bruno Haible  <bruno@clisp.org>
5667
5668         ceill: Move AC_LIBOBJ invocations to module description.
5669         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5670         * modules/ceill (configure.ac): ... to here.
5671
5672 2011-05-21  Bruno Haible  <bruno@clisp.org>
5673
5674         ceil: Move AC_LIBOBJ invocations to module description.
5675         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5676         * modules/ceil (configure.ac): ... to here.
5677
5678 2011-05-21  Bruno Haible  <bruno@clisp.org>
5679
5680         ceilf: Move AC_LIBOBJ invocations to module description.
5681         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5682         * modules/ceilf (configure.ac): ... to here.
5683
5684 2011-05-21  Bruno Haible  <bruno@clisp.org>
5685
5686         floorl: Respect rules for use of AC_LIBOBJ.
5687         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5688         * modules/floorl (configure.ac): ... to here.
5689
5690 2011-05-21  Bruno Haible  <bruno@clisp.org>
5691
5692         floor: Respect rules for use of AC_LIBOBJ.
5693         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5694         * modules/floor (configure.ac): ... to here.
5695
5696 2011-05-21  Bruno Haible  <bruno@clisp.org>
5697
5698         floorf: Move AC_LIBOBJ invocations to module description.
5699         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5700         * modules/floorf (configure.ac): ... to here.
5701
5702 2011-05-20  Bruno Haible  <bruno@clisp.org>
5703
5704         sqrtl: Respect rules for use of AC_LIBOBJ.
5705         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5706         * modules/sqrtl (configure.ac): ... to here.
5707
5708 2011-05-20  Bruno Haible  <bruno@clisp.org>
5709
5710         ldexpl: Respect rules for use of AC_LIBOBJ.
5711         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5712         * modules/ldexpl (configure.ac): ... to here.
5713
5714 2011-05-20  Bruno Haible  <bruno@clisp.org>
5715
5716         frexpl*: Respect rules for use of AC_LIBOBJ.
5717         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5718         invocation from here...
5719         * modules/frexpl (configure.ac): ... to here.
5720         * modules/frexpl-nolibm (configure.ac): ... and here.
5721
5722 2011-05-20  Bruno Haible  <bruno@clisp.org>
5723
5724         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5725         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5726         invocation from here...
5727         * modules/frexp (configure.ac): ... to here.
5728         * modules/frexp-nolibm (configure.ac): ... and here.
5729
5730 2011-05-20  Bruno Haible  <bruno@clisp.org>
5731
5732         isnan: Respect rules for use of AC_LIBOBJ.
5733         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5734         invocations here.
5735         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5736         REPLACE_ISNAN.
5737         * modules/isnand (configure.ac): Likewise.
5738         * modules/isnanl (configure.ac): Likewise.
5739
5740 2011-05-20  Bruno Haible  <bruno@clisp.org>
5741
5742         isnanl*: Respect rules for use of AC_LIBOBJ.
5743         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5744         invocation from here...
5745         * modules/isnanl (configure.ac): ... to here.
5746         * modules/isnanl-nolibm (configure.ac): ... and here.
5747
5748 2011-05-20  Bruno Haible  <bruno@clisp.org>
5749
5750         isnand*: Move AC_LIBOBJ invocations to module description.
5751         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5752         invocation from here...
5753         * modules/isnand (configure.ac): ... to here.
5754         * modules/isnand-nolibm (configure.ac): ... and here.
5755
5756 2011-05-20  Bruno Haible  <bruno@clisp.org>
5757
5758         isnanf*: Move AC_LIBOBJ invocations to module description.
5759         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5760         invocation from here...
5761         * modules/isnanf (configure.ac): ... to here.
5762         * modules/isnanf-nolibm (configure.ac): ... and here.
5763
5764 2011-05-20  Bruno Haible  <bruno@clisp.org>
5765
5766         isnan*: Separate the AC_LIBOBJ invocations.
5767         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5768         AC_LIBOBJ invocation.
5769         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5770         here.
5771         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5772         AC_LIBOBJ invocation.
5773         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5774         here.
5775         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5776         AC_LIBOBJ invocation.
5777         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5778         here.
5779         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5780
5781 2011-05-08  Bruno Haible  <bruno@clisp.org>
5782
5783         isinf: Move AC_LIBOBJ invocations to module description.
5784         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5785         * modules/isinf (configure.ac): ... to here.
5786
5787 2011-05-08  Bruno Haible  <bruno@clisp.org>
5788
5789         isfinite: Move AC_LIBOBJ invocations to module description.
5790         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5791         * modules/isfinite (configure.ac): ... to here.
5792
5793 2011-05-08  Bruno Haible  <bruno@clisp.org>
5794
5795         isblank: Move AC_LIBOBJ invocations to module description.
5796         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5797         here...
5798         * modules/isblank (configure.ac): ... to here.
5799
5800 2011-05-08  Bruno Haible  <bruno@clisp.org>
5801
5802         isapipe: Move AC_LIBOBJ invocations to module description.
5803         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5804         gl_PREREQ_ISAPIPE invocations from here...
5805         * modules/isapipe (configure.ac): ... to here.
5806         (Depends-on): Update condition.
5807
5808 2011-05-08  Bruno Haible  <bruno@clisp.org>
5809
5810         ioctl: Move AC_LIBOBJ invocations to module description.
5811         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5812         invocations from here...
5813         * modules/ioctl (configure.ac): ... to here.
5814         (Depends-on): Update condition.
5815
5816 2011-05-08  Bruno Haible  <bruno@clisp.org>
5817
5818         imaxdiv: Move AC_LIBOBJ invocations to module description.
5819         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5820         invocations from here...
5821         * modules/imaxdiv (configure.ac): ... to here.
5822
5823 2011-05-08  Bruno Haible  <bruno@clisp.org>
5824
5825         imaxabs: Move AC_LIBOBJ invocations to module description.
5826         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5827         invocations from here...
5828         * modules/imaxabs (configure.ac): ... to here.
5829
5830 2011-05-08  Bruno Haible  <bruno@clisp.org>
5831
5832         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5833         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5834         AC_LIBOBJ invocations from here...
5835         * modules/getaddrinfo (configure.ac): ... to here.
5836         (Depends-on): Add conditions.
5837
5838 2011-05-08  Bruno Haible  <bruno@clisp.org>
5839
5840         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5841         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5842         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5843         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5844         (gl_PREREQ_INET_PTON): ... from here.
5845         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5846         gl_PREREQ_INET_PTON here.
5847         (Depends-on): Update condition.
5848
5849 2011-05-08  Bruno Haible  <bruno@clisp.org>
5850
5851         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5852         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5853         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5854         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5855         (gl_PREREQ_INET_NTOP): ... from here.
5856         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5857         gl_PREREQ_INET_NTOP here.
5858         (Depends-on): Update condition.
5859
5860 2011-05-08  Bruno Haible  <bruno@clisp.org>
5861
5862         iconv_open: Move AC_LIBOBJ invocations to module description.
5863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5864         AC_LIBOBJ invocations from here...
5865         * modules/iconv_open (configure.ac): ... to here.
5866
5867 2011-05-08  Bruno Haible  <bruno@clisp.org>
5868
5869         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5870         If module 'iconv_open' is among the main modules and module
5871         'iconv_open-utf' is among the tests dependencies, then
5872         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5873         return the special iconv_t values. Therefore iconv() and iconv_close()
5874         must support these special iconv_t values, already in lib, not only in
5875         tests.
5876         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5878         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5879         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5880         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5881         (Depends-on): Add the dependencies of iconv_open-utf.
5882         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5883         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5884         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5885
5886 2011-05-08  Bruno Haible  <bruno@clisp.org>
5887
5888         group-member: Move AC_LIBOBJ invocations to module description.
5889         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5890         gl_PREREQ_GROUP_MEMBER invocations from here...
5891         * modules/group-member (configure.ac): ... to here.
5892
5893 2011-05-08  Bruno Haible  <bruno@clisp.org>
5894
5895         grantpt: Move AC_LIBOBJ invocations to module description.
5896         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5897         invocations from here...
5898         * modules/grantpt (configure.ac): ... to here.
5899
5900 2011-05-08  Bruno Haible  <bruno@clisp.org>
5901
5902         glob: Move AC_LIBOBJ invocations to module description.
5903         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5904         from here...
5905         * modules/glob (configure.ac): ... to here.
5906
5907 2011-05-08  Bruno Haible  <bruno@clisp.org>
5908
5909         getusershell: Move AC_LIBOBJ invocations to module description.
5910         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5911         Move AC_LIBOBJ invocation from here...
5912         * modules/getusershell (configure.ac): ... to here.
5913         (Depends-on): Update condition.
5914
5915 2011-05-08  Bruno Haible  <bruno@clisp.org>
5916
5917         gettimeofday: Move AC_LIBOBJ invocations to module description.
5918         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5919         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5920         gl_PREREQ_GETTIMEOFDAY invocations from here...
5921         * modules/gettimeofday (configure.ac): ... to here.
5922
5923 2011-05-08  Bruno Haible  <bruno@clisp.org>
5924
5925         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5926         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5927         just gl_FUNC_TZSET.
5928         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5929         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5931         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5932
5933 2011-05-08  Bruno Haible  <bruno@clisp.org>
5934
5935         getsubopt: Move AC_LIBOBJ invocations to module description.
5936         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5937         gl_PREREQ_GETSUBOPT invocations from here...
5938         * modules/getsubopt (configure.ac): ... to here.
5939
5940 2011-05-08  Bruno Haible  <bruno@clisp.org>
5941
5942         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5943         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5944         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5945         * modules/getpass-gnu (configure.ac): ... to here.
5946
5947 2011-05-08  Bruno Haible  <bruno@clisp.org>
5948
5949         getpass: Move AC_LIBOBJ invocations to module description.
5950         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5951         gl_PREREQ_GETPASS invocations from here...
5952         * modules/getpass (configure.ac): ... to here.
5953
5954 2011-05-08  Bruno Haible  <bruno@clisp.org>
5955
5956         getpagesize: Move AC_LIBOBJ invocations to module description.
5957         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5958         from here...
5959         * modules/getpagesize (configure.ac): ... to here.
5960
5961 2011-05-08  Bruno Haible  <bruno@clisp.org>
5962
5963         getopt: Move AC_LIBOBJ invocations to module description.
5964         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5965         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5966         invocations from here...
5967         * modules/getopt-gnu (configure.ac): ... to here.
5968         * modules/getopt-posix (configure.ac): ... and here.
5969         (Depends-on): Update condition.
5970
5971 2011-05-08  Bruno Haible  <bruno@clisp.org>
5972
5973         getopt, argp: Respect rules for use of AC_LIBOBJ.
5974         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5975         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5976         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5977         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5978
5979 2011-05-08  Bruno Haible  <bruno@clisp.org>
5980
5981         getlogin_r: Move AC_LIBOBJ invocations to module description.
5982         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5983         gl_PREREQ_GETLOGIN_R invocations from here...
5984         * modules/getlogin_r (configure.ac): ... to here.
5985
5986 2011-05-08  Bruno Haible  <bruno@clisp.org>
5987
5988         getlogin: Move AC_LIBOBJ invocations to module description.
5989         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5990         here...
5991         * modules/getlogin (configure.ac): ... to here.
5992
5993 2011-05-08  Bruno Haible  <bruno@clisp.org>
5994
5995         getloadavg: Move AC_LIBOBJ invocations to module description.
5996         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5997         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5998         * modules/getloadavg (configure.ac): ... to here.
5999
6000 2011-05-08  Bruno Haible  <bruno@clisp.org>
6001
6002         gethrxtime: Move AC_LIBOBJ invocations to module description.
6003         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6004         LIB_GETHRXTIME from here...
6005         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6006         invocations from here...
6007         * modules/gethrxtime (configure.ac): ... to here.
6008
6009 2011-05-08  Bruno Haible  <bruno@clisp.org>
6010
6011         gethostname: Move AC_LIBOBJ invocations to module description.
6012         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6013         gl_PREREQ_GETHOSTNAME invocations from here...
6014         * modules/gethostname (configure.ac): ... to here.
6015
6016 2011-05-08  Bruno Haible  <bruno@clisp.org>
6017
6018         getgroups: Move AC_LIBOBJ invocations to module description.
6019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6020         here...
6021         * modules/getgroups (configure.ac): ... to here.
6022
6023 2011-05-08  Bruno Haible  <bruno@clisp.org>
6024
6025         getdtablesize: Move AC_LIBOBJ invocations to module description.
6026         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6027         invocation from here...
6028         * modules/getdtablesize (configure.ac): ... to here.
6029
6030 2011-05-08  Bruno Haible  <bruno@clisp.org>
6031
6032         getdomainname: Move AC_LIBOBJ invocations to module description.
6033         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6034         gl_PREREQ_GETDOMAINNAME invocations from here...
6035         * modules/getdomainname (configure.ac): ... to here.
6036
6037 2011-05-08  Bruno Haible  <bruno@clisp.org>
6038
6039         getline: Move AC_LIBOBJ invocations to module description.
6040         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6041         invocations from here...
6042         * modules/getline (configure.ac): ... to here.
6043
6044 2011-05-08  Bruno Haible  <bruno@clisp.org>
6045
6046         getline: Simplify.
6047         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6048         It's already handled through the module dependency.
6049
6050 2011-05-08  Bruno Haible  <bruno@clisp.org>
6051
6052         getdelim: Move AC_LIBOBJ invocations to module description.
6053         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6054         and gl_PREREQ_GETDELIM invocations from here...
6055         * modules/getdelim (configure.ac): ... to here.
6056         (Depends-on): Fix condition.
6057
6058 2011-05-08  Bruno Haible  <bruno@clisp.org>
6059
6060         getcwd: Move AC_LIBOBJ invocations to module description.
6061         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6062         invocations from here...
6063         * modules/getcwd (configure.ac): ... to here.
6064
6065 2011-05-08  Bruno Haible  <bruno@clisp.org>
6066
6067         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6068         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6069         here...
6070         * modules/getcwd-lgpl (configure.ac): ... to here.
6071
6072 2011-05-07  Bruno Haible  <bruno@clisp.org>
6073
6074         crypto/gc: Move AC_LIBOBJ invocations to module description.
6075         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6076         * modules/crypto/gc (configure.ac): ... to here.
6077
6078 2011-05-07  Bruno Haible  <bruno@clisp.org>
6079
6080         fwriting: Move AC_LIBOBJ invocations to module description.
6081         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6082         here...
6083         * modules/fwriting (configure.ac): ... to here.
6084
6085 2011-05-07  Bruno Haible  <bruno@clisp.org>
6086
6087         fwritable: Move AC_LIBOBJ invocations to module description.
6088         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6089         here...
6090         * modules/fwritable (configure.ac): ... to here.
6091
6092 2011-05-07  Bruno Haible  <bruno@clisp.org>
6093
6094         futimens: Move AC_LIBOBJ invocations to module description.
6095         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6096         here...
6097         * modules/futimens (configure.ac): ... to here.
6098
6099 2011-05-07  Bruno Haible  <bruno@clisp.org>
6100
6101         ftruncate: Move AC_LIBOBJ invocations to module description.
6102         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6103         gl_PREREQ_FTRUNCATE invocations from here...
6104         * modules/ftruncate (configure.ac): ... to here.
6105
6106 2011-05-07  Bruno Haible  <bruno@clisp.org>
6107
6108         fsync: Move AC_LIBOBJ invocations to module description.
6109         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6110         invocations from here...
6111         * modules/fsync (configure.ac): ... to here.
6112
6113 2011-05-07  Bruno Haible  <bruno@clisp.org>
6114
6115         fsusage: Move AC_LIBOBJ invocations to module description.
6116         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6117         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6118         * modules/fsusage (configure.ac): ... to here.
6119
6120 2011-05-07  Bruno Haible  <bruno@clisp.org>
6121
6122         freopen: Move AC_LIBOBJ invocations to module description.
6123         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6124         invocations from here...
6125         * modules/freopen (configure.ac): ... to here.
6126
6127 2011-05-07  Bruno Haible  <bruno@clisp.org>
6128
6129         free: Move AC_LIBOBJ invocations to module description.
6130         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6131         invocations from here...
6132         * modules/free (configure.ac): ... to here.
6133
6134 2011-05-07  Bruno Haible  <bruno@clisp.org>
6135
6136         freadable: Move AC_LIBOBJ invocations to module description.
6137         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6138         here...
6139         * modules/freadable (configure.ac): ... to here.
6140
6141 2011-05-07  Bruno Haible  <bruno@clisp.org>
6142
6143         fpurge: Move AC_LIBOBJ invocations to module description.
6144         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6145         invocations from here...
6146         * modules/fpurge (configure.ac): ... to here.
6147
6148 2011-05-07  Bruno Haible  <bruno@clisp.org>
6149
6150         fpending: Move AC_LIBOBJ invocations to module description.
6151         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6152         gl_FUNC_FPENDING.
6153         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6154         invocations from here...
6155         * modules/fpending (configure.ac): ... to here.
6156
6157 2011-05-07  Bruno Haible  <bruno@clisp.org>
6158
6159         fopen: Move AC_LIBOBJ invocations to module description.
6160         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6161         invocations from here...
6162         * modules/fopen (configure.ac): ... to here.
6163
6164 2011-05-07  Bruno Haible  <bruno@clisp.org>
6165
6166         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6167         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6168         gl_FUNC_FNMATCH_POSIX.
6169         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6170         invocations from here...
6171         * modules/fnmatch (configure.ac): ... to here.
6172         * modules/fnmatch-gnu (configure.ac): ... and here.
6173
6174 2011-05-07  Bruno Haible  <bruno@clisp.org>
6175
6176         flock: Move AC_LIBOBJ invocations to module description.
6177         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6178         invocations from here...
6179         * modules/flock (configure.ac): ... to here.
6180
6181 2011-05-07  Bruno Haible  <bruno@clisp.org>
6182
6183         fileblocks: Move AC_LIBOBJ invocations to module description.
6184         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6185         gl_PREREQ_FILEBLOCKS invocations from here...
6186         * modules/fileblocks (configure.ac): ... to here.
6187
6188 2011-05-06  Bruno Haible  <bruno@clisp.org>
6189
6190         fflush: Move AC_LIBOBJ invocations to module description.
6191         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6192         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6193         invocations from here...
6194         * modules/fflush (configure.ac): ... to here.
6195
6196 2011-05-06  Bruno Haible  <bruno@clisp.org>
6197
6198         fdopendir: Move AC_LIBOBJ invocations to module description.
6199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6200         here...
6201         * modules/fdopendir (configure.ac): ... to here.
6202         (Depends-on): Improve conditions.
6203
6204 2011-05-06  Bruno Haible  <bruno@clisp.org>
6205
6206         _Exit: Move AC_LIBOBJ invocations to module description.
6207         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6208         invocations from here...
6209         * modules/_Exit (configure.ac): ... to here.
6210
6211 2011-05-21  Bruno Haible  <bruno@clisp.org>
6212
6213         euidaccess: Respect rules for use of AC_LIBOBJ.
6214         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6216         from here...
6217         * modules/euidaccess (configure.ac): ... to here.
6218
6219 2011-05-06  Bruno Haible  <bruno@clisp.org>
6220
6221         error: Move AC_LIBOBJ invocations to module description.
6222         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6223         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6224         invocations from here...
6225         * modules/error (configure.ac): ... to here.
6226
6227 2011-05-06  Bruno Haible  <bruno@clisp.org>
6228
6229         duplocale: Move AC_LIBOBJ invocations to module description.
6230         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6231         gl_PREREQ_DUPLOCALE invocations from here...
6232         * modules/duplocale (configure.ac): ... to here.
6233
6234 2011-05-05  Bruno Haible  <bruno@clisp.org>
6235
6236         dirfd: Move AC_LIBOBJ invocations to module description.
6237         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6238         gl_FUNC_DIRFD.
6239         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6240         here...
6241         * modules/dirfd (configure.ac): ... to here.
6242         (Depends-on): Fix condition.
6243
6244 2011-05-05  Bruno Haible  <bruno@clisp.org>
6245
6246         chown: Respect rules for use of AC_LIBOBJ.
6247         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6248         * modules/chown (configure.ac): ... to here.
6249
6250 2011-05-05  Bruno Haible  <bruno@clisp.org>
6251
6252         chdir-long: Move AC_LIBOBJ invocations to module description.
6253         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6254         gl_PREREQ_CHDIR_LONG invocations from here...
6255         * modules/chdir-long (configure.ac): ... to here.
6256
6257 2011-05-05  Bruno Haible  <bruno@clisp.org>
6258
6259         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6260         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6261         from here...
6262         * modules/canonicalize-lgpl (configure.ac): ... to here.
6263
6264 2011-05-05  Bruno Haible  <bruno@clisp.org>
6265
6266         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6267         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6268         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6269         REPLACE_CALLOC.
6270         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6271         * modules/calloc-gnu (configure.ac): Likewise.
6272
6273 2011-05-05  Bruno Haible  <bruno@clisp.org>
6274
6275         btowc: Move AC_LIBOBJ invocations to module description.
6276         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6277         invocations from here...
6278         * modules/btowc (configure.ac): ... to here.
6279
6280 2011-05-21  Bruno Haible  <bruno@clisp.org>
6281
6282         atexit: Move AC_LIBOBJ invocations to module description.
6283         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6285         here...
6286         * modules/atexit (configure.ac): ... to here.
6287
6288 2011-05-05  Bruno Haible  <bruno@clisp.org>
6289
6290         atoll: Move AC_LIBOBJ invocations to module description.
6291         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6292         invocations from here...
6293         * modules/atoll (configure.ac): ... to here.
6294
6295 2011-05-05  Bruno Haible  <bruno@clisp.org>
6296
6297         argz: Move AC_LIBOBJ invocations to module description.
6298         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6299         * modules/argz (configure.ac): ... to here.
6300
6301 2011-05-05  Bruno Haible  <bruno@clisp.org>
6302
6303         alphasort: Move AC_LIBOBJ invocations to module description.
6304         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6305         gl_PREREQ_ALPHASORT invocations from here...
6306         * modules/alphasort (configure.ac): ... to here.
6307
6308 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6309
6310         verify: new macro verify_expr; verify_true deprecated
6311         * NEWS: Mention this.
6312         * doc/verify.texi (Compile-time Assertions): Document this.
6313         * lib/verify.h (verify_true): Deprecate.
6314         (verify_expr): New macro.
6315         * tests/test-verify.c (function): Test verify_expr.
6316
6317 2011-06-14  Jim Meyering  <meyering@redhat.com>
6318
6319         init.sh: give more portable redirection-related advice in a comment
6320         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6321         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6322         for lots of discussion.  Stefano Lattarini suggested the solution
6323         of putting "9>&2" after the command.  Reported by Bruno Haible.
6324
6325 2011-06-13  Bruno Haible  <bruno@clisp.org>
6326
6327         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6329         'none'.
6330
6331 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         ftoastr: use strtof only if HAVE_STRTOF
6334         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6336         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6337         * modules/ftoastr (configure.ac): Check for strtof.
6338
6339 2011-06-13  Bruno Haible  <bruno@clisp.org>
6340
6341         gnulib-tool: Addendum to 2011-06-08 commit.
6342         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6343         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6344
6345 2011-06-13  Bruno Haible  <bruno@clisp.org>
6346
6347         fseeko: Provide a non-inline replacement of fseek().
6348         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6349         * modules/fseeko (Depends-on): Add fseek.
6350         * modules/fseek (License): Change to LGPLv2+.
6351
6352 2011-06-13  Bruno Haible  <bruno@clisp.org>
6353
6354         ftello: Provide a non-inline replacement of ftell().
6355         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6356         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6357         not have ftello() (such as on mingw).
6358         * modules/ftello (Depends-on): Add ftell.
6359         * modules/ftell (License): Change to LGPLv2+.
6360
6361 2011-05-07  Bruno Haible  <bruno@clisp.org>
6362
6363         ftell: Move AC_LIBOBJ invocations to module description.
6364         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6365         * modules/ftell (configure.ac): ... to here.
6366
6367 2011-05-07  Bruno Haible  <bruno@clisp.org>
6368
6369         ftello: Respect rules for use of AC_LIBOBJ.
6370         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6371         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6372         here...
6373         * modules/ftello (configure.ac): ... to here.
6374
6375 2011-05-07  Bruno Haible  <bruno@clisp.org>
6376
6377         fseeko: Simplify.
6378         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6379         (gl_FUNC_FSEEKO): Inline it here.
6380
6381 2011-05-07  Bruno Haible  <bruno@clisp.org>
6382
6383         fseek: Move AC_LIBOBJ invocations to module description.
6384         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6385         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6386         * modules/fseek (configure.ac): ... to here.
6387
6388 2011-05-07  Bruno Haible  <bruno@clisp.org>
6389
6390         fseek: Respect rules for use of AC_LIBOBJ.
6391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6392         here...
6393         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6394
6395 2011-05-07  Bruno Haible  <bruno@clisp.org>
6396
6397         fseeko: Respect rules for use of AC_LIBOBJ.
6398         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6399         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6400         here...
6401         * modules/fseeko (configure.ac): ... to here.
6402
6403 2011-06-13  Bruno Haible  <bruno@clisp.org>
6404
6405         gnulib-tool: Allow comments in the 'Depends-on' section.
6406         * doc/gnulib.texi (Module description): Mention comment syntax in the
6407         Depends-on section.
6408         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6409
6410 2011-06-13  Bruno Haible  <bruno@clisp.org>
6411
6412         file-set.h: guard __attibute__ use, now that it's not always defined
6413         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6414         versions that support it.  This fixes a coreutils build failure with
6415         the vendor cc on HP-UX 11.31.
6416
6417 2011-06-12  Bruno Haible  <bruno@clisp.org>
6418
6419         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6420         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6421         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6422         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6423         (acl, aclsort): New declarations.
6424         (aclv_nontrivial): New declaration.
6425         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6426         (file_has_acl): Read also the second kind of HP-UX ACLs.
6427         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6428         kind of HP-UX ACLs if the first kind fails.
6429         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6430         second kind of HP-UX ACLs.
6431         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6432         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6433         agree.
6434         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6435         hpuxjfs.
6436         Handle hpuxjfs.
6437         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6438         hpuxjfs.
6439         Handle hpuxjfs.
6440         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6441         (func_test_same_acls): Use both lsacl and getacl.
6442         Handle hpuxjfs.
6443         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6444         (func_test_same_acls): Use both lsacl and getacl.
6445         Handle hpuxjfs.
6446
6447 2011-06-12  Bruno Haible  <bruno@clisp.org>
6448
6449         acl: Complete the 2010-08-10 fix.
6450         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6451         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6452         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6453         explicitly.
6454         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6455         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6456
6457 2011-06-12  Bruno Haible  <bruno@clisp.org>
6458
6459         spawn-pipe tests: Comments.
6460         * tests/test-spawn-pipe-child.c (main): Update comment.
6461         Reported by James Youngman <jay@gnu.org>.
6462
6463 2011-06-11  James Youngman  <jay@gnu.org>
6464
6465         New module 'stat-size'.
6466         * modules/stat-size: New module.  Provides macros for accessing
6467         file size information in instances of struct stat.  Depends on the
6468         fileblocks module because it calls st_blocks.
6469         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6470         * doc/gnulib.texi: Include stat-size.texi.
6471         * doc/stat-size.texi: Documentation for this module.
6472         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6473         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6474         AC_STRUCT_ST_BLOCKS.
6475
6476 2011-06-09  Bruno Haible  <bruno@clisp.org>
6477
6478         thread: Support pthreads-win32.
6479         * lib/glthread/thread.h (gl_thread_self): Define differently on
6480         pthreads-win32.
6481         (gl_null_thread): New declaration.
6482         (gl_thread_self_pointer): New macro.
6483         * lib/glthread/thread.c (gl_null_thread): New constant.
6484         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6485         gl_thread_self.
6486         * tests/test-tls.c: Likewise.
6487         Suggested by Paul Eggert. Reported by Eric Blake.
6488
6489 2011-06-09  Bruno Haible  <bruno@clisp.org>
6490
6491         thread: Fix confusion between NULL and 0.
6492         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6493         Reported by Paul Eggert.
6494
6495 2011-06-09  Bruno Haible  <bruno@clisp.org>
6496
6497         spawn-pipe tests: Avoid test failure on HP-UX 11.
6498         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6499         is closed.
6500
6501 2011-06-09  Bruno Haible  <bruno@clisp.org>
6502
6503         acl tests: Fix compilation error on HP-UX 11.
6504         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6505
6506 2011-06-09  Bruno Haible  <bruno@clisp.org>
6507
6508         rmdir: Avoid test failure on HP-UX 10.20.
6509         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6510         EEXIST.
6511
6512 2011-06-08  Eric Blake  <eblake@redhat.com>
6513
6514         perror: fix test on mingw
6515         * modules/perror-tests (Depends-on): Add dup2.
6516
6517         strerror_r-posix: fix on MacOS
6518         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6520         logic bug.
6521         * lib/strerror_r.c (strerror_r): Fix the bug.
6522         * lib/strerror.c (strerror): Likewise.
6523         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6524         problem.
6525         * doc/posix-functions/strerror.texi (strerror): Likewise.
6526         * doc/posix-functions/perror.texi (perror): Likewise.
6527         * tests/test-strerror.c (main): Enhance test.
6528         * tests/test-strerror_r.c (main): Likewise.
6529
6530 2011-06-08  Bruno Haible  <bruno@clisp.org>
6531
6532         gnulib-tool: Better isolation between different gnulib-tool invocations.
6533         * gnulib-tool: New option --witness-c-macro.
6534         (witness_c_macro): New variable.
6535         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6536         AM_CPPFLAGS define it as a C macro.
6537         (func_emit_tests_Makefile_am): Likewise.
6538         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6539         read it from there.
6540         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6541         m4_define, not AC_DEFUN.
6542         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6543         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6544         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6545         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6546         s|...|...|, to substitute the values of the GNULIB_* module indicator
6547         variables.
6548         * modules/dirent (Makefile.am): Likewise.
6549         * modules/fcntl-h (Makefile.am): Likewise.
6550         * modules/iconv-h (Makefile.am): Likewise.
6551         * modules/langinfo (Makefile.am): Likewise.
6552         * modules/locale (Makefile.am): Likewise.
6553         * modules/math (Makefile.am): Likewise.
6554         * modules/netdb (Makefile.am): Likewise.
6555         * modules/poll-h (Makefile.am): Likewise.
6556         * modules/pty (Makefile.am): Likewise.
6557         * modules/search (Makefile.am): Likewise.
6558         * modules/signal (Makefile.am): Likewise.
6559         * modules/spawn (Makefile.am): Likewise.
6560         * modules/stdio (Makefile.am): Likewise.
6561         * modules/stdlib (Makefile.am): Likewise.
6562         * modules/string (Makefile.am): Likewise.
6563         * modules/sys_ioctl (Makefile.am): Likewise.
6564         * modules/sys_select (Makefile.am): Likewise.
6565         * modules/sys_socket (Makefile.am): Likewise.
6566         * modules/sys_stat (Makefile.am): Likewise.
6567         * modules/sys_times (Makefile.am): Likewise.
6568         * modules/sys_utsname (Makefile.am): Likewise.
6569         * modules/sys_wait (Makefile.am): Likewise.
6570         * modules/termios (Makefile.am): Likewise.
6571         * modules/time (Makefile.am): Likewise.
6572         * modules/unistd (Makefile.am): Likewise.
6573         * modules/wchar (Makefile.am): Likewise.
6574
6575 2011-06-08  Eric Blake  <eblake@redhat.com>
6576
6577         strerror: simplify replacement
6578         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6579         * modules/strerror (configure.ac): No prereqs needed here...
6580         * modules/strerror-override (configure.ac): ...but this needs it.
6581         (Files): Add file for needed prereq macro.
6582
6583 2011-06-08  Bruno Haible  <bruno@clisp.org>
6584
6585         strerror_r-posix: Tweaks.
6586         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6587         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6588         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6589         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6590         (gl_FUNC_STRERROR_R): ... to here.
6591         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6592
6593 2011-06-07  Eric Blake  <eblake@redhat.com>
6594
6595         perror: document fixed bugs
6596         * doc/posix-functions/perror.texi (perror): Document recent
6597         patches.
6598
6599 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6600
6601         stat-time: get_stat_birthtime failure is better-defined
6602         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6603         return a timestamp whose tv_sec and tv_nsec values are both -1.
6604         Previously, the spec said only that the tv_nsec value was negative.
6605         This upward-compatible change simplifies GNU tar a bit.
6606
6607 2011-06-07  Eric Blake  <eblake@redhat.com>
6608
6609         strerror_r-posix: work around cygwin 1.7.9
6610         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6611         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6612         bug without replacing strerror_r.
6613         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6614         strerror_r is buggy, but without requiring strerror_r compilation.
6615         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6616
6617         test-perror: relax test to ignore cygwin bug
6618         * tests/test-perror2.c (main): Relax test on requiring detection
6619         of stream errors, and use unbuffered stream.
6620         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6621         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6622         * doc/posix-functions/fputc.texi (fputc): Likewise.
6623         * doc/posix-functions/fputs.texi (fputs): Likewise.
6624         * doc/posix-functions/fputws.texi (fputws): Likewise.
6625         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6626         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6627         * doc/posix-functions/getopt.texi (getopt): Likewise.
6628         * doc/posix-functions/perror.texi (perror): Likewise.
6629         * doc/posix-functions/printf.texi (printf): Likewise.
6630         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6631         * doc/posix-functions/psignal.texi (psignal): Likewise.
6632         * doc/posix-functions/putc.texi (putc): Likewise.
6633         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6634         Likewise.
6635         * doc/posix-functions/putchar.texi (putchar): Likewise.
6636         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6637         Likewise.
6638         * doc/posix-functions/puts.texi (puts): Likewise.
6639         * doc/posix-functions/putwc.texi (putwc): Likewise.
6640         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6641         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6642         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6643         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6644         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6645         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6646         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6647         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6648
6649 2011-05-22  Bruno Haible  <bruno@clisp.org>
6650
6651         strerror: Move AC_LIBOBJ invocations to module description.
6652         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6653         gl_PREREQ_STRERROR invocations from here...
6654         * modules/strerror (configure.ac): ... to here.
6655
6656 2011-05-21  Bruno Haible  <bruno@clisp.org>
6657
6658         perror: Use common idiom.
6659         * modules/perror (configure.ac): Reorder statements.
6660
6661 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6662
6663         tests: fix usage message in 'mktempd_'
6664         * tests/init.sh (mktempd_): In the usage message, use literal
6665         'mktempd_', not '$ME' (which is even undefined), as the name of
6666         the subroutine.
6667
6668 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6669
6670         tests init: new function 'fatal_', for hard errors
6671         Before this patch, the only way offered by tests/init.sh to
6672         properly signal a hard error was the `framework_failure_'
6673         function.  But the error message issued by that function,
6674         as its name would suggest, refers to a set-up failure in the
6675         testsuite, while hard errors can obviously also be due to
6676         other reasons.  The best way to fix this inconsistency is to
6677         introduce a new function with a more general error message.
6678         * tests/init.sh (fatal_): New function.
6679
6680 2011-06-06  Eric Blake  <eblake@redhat.com>
6681
6682         canonicalize-lgpl: use common idiom
6683         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6684         over newer POSIX -Rf.
6685         Reported by Bruno Haible.
6686
6687         canonicalize-lgpl: work around AIX realpath bug
6688         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6689         * doc/posix-functions/realpath.texi (realpath): Document it.
6690         Reported by Bruno Haible.
6691
6692         strerror: work around FreeBSD bug
6693         * lib/strerror.c (strerror): Special case 0.
6694         Reported by Bruno Haible.
6695
6696         strerror-override: avoid bloating errno module
6697         * modules/errno (Files, configure.ac): Move replacement strings...
6698         * modules/strerror-override: ...to new module.
6699         * modules/strerror (Depends-on): Add strerror-override.
6700         * modules/strerror_r-posix (Depends-on): Likewise.
6701         * MODULES.html.sh: Document new module.
6702         Reported by Bruno Haible.
6703
6704 2011-06-06  Bruno Haible  <bruno@clisp.org>
6705
6706         spawn-pipe tests: Rename program.
6707         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6708         * tests/test-spawn-pipe-child.c: Update comment.
6709         * tests/test-spawn-pipe.sh: Update.
6710         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6711
6712         spawn-pipe tests: Link the child program only against libc.
6713         * tests/test-spawn-pipe-child.c: New file, extracted from
6714         tests/test-spawn-pipe.c.
6715         (main): Expect only one argument.
6716         (is_open): New function, copied from tests/test-pipe.c.
6717         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6718         (child_main): Remove function.
6719         (test_pipe): Pass only one argument to the child program.
6720         (main): Remove child process code. Expect the child program's name as
6721         first argument.
6722         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6723         argument.
6724         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6725         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6726         test-spawn-pipe-child against no libraries.
6727
6728 2011-06-06  Bruno Haible  <bruno@clisp.org>
6729
6730         careadlinkat: Avoid mismatch between ssize_t and int.
6731         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6732         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6733
6734 2011-06-06  Jim Meyering  <meyering@redhat.com>
6735
6736         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6737         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6738         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6739
6740 2011-06-05  Bruno Haible  <bruno@clisp.org>
6741
6742         ansi-c++-opt: Interoperability with libtool.
6743         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6744         set the variable to "no", not to ":".
6745         * NEWS: Mention the change.
6746
6747 2011-06-05  Bruno Haible  <bruno@clisp.org>
6748
6749         acl: Fix test failure on AIX 7.
6750         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6751         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6752
6753 2011-06-05  Bruno Haible  <bruno@clisp.org>
6754
6755         pipe-filter-ii: Fix test failure on AIX and IRIX.
6756         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6757         with EAGAIN, retry with a smaller buffer size.
6758
6759 2011-06-05  Bruno Haible  <bruno@clisp.org>
6760
6761         localename: Fix link dependencies.
6762         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6763         * modules/localename-tests (Makefile.am): Link test-localename with
6764         $(LIBTHREAD).
6765
6766 2011-06-05  Bruno Haible  <bruno@clisp.org>
6767
6768         error: Avoid gcc warning.
6769         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6770
6771 2011-06-05  Bruno Haible  <bruno@clisp.org>
6772
6773         unsetenv: Avoid gcc warning.
6774         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6775
6776 2011-06-05  Bruno Haible  <bruno@clisp.org>
6777
6778         setenv: Avoid gcc warning.
6779         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6780
6781 2011-06-05  Bruno Haible  <bruno@clisp.org>
6782
6783         sys_select: Ensure memset is declared also on AIX 7.
6784         * lib/sys_select.in.h: Include <string.h> also on AIX.
6785         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6786         self-contained also on AIX 7.1.
6787
6788 2011-06-04  Jim Meyering  <meyering@redhat.com>
6789
6790         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6791         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6792         function name, "error".
6793         (_gl_translatable_diag_func_re): New configurable variable.
6794
6795 2011-06-04  Bruno Haible  <bruno@clisp.org>
6796
6797         getopt: Avoid gcc warning.
6798         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6799
6800 2011-06-04  Bruno Haible  <bruno@clisp.org>
6801
6802         strerror_r: Fix comments.
6803         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6804         commit.
6805
6806 2011-06-04  Bruno Haible  <bruno@clisp.org>
6807
6808         perror: Fix compilation error.
6809         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6810         Undefine fprintf, not sprintf.
6811         * modules/perror (Depends-on): Remove intprops, verify.
6812
6813 2011-06-04  Bruno Haible  <bruno@clisp.org>
6814
6815         setlocale: Enable replacement on Cygwin 1.5.
6816         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6817         Cygwin 1.5.x.
6818         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6819         LC_CTYPE category also exists on Cygwin 1.5.x.
6820
6821 2011-06-04  Bruno Haible  <bruno@clisp.org>
6822
6823         strerror-override: Don't disable symbol renamings.
6824         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6825         * lib/strerror-override.c: Include config.h.
6826         (strerror_override): Don't undefine.
6827
6828 2011-06-03  Bruno Haible  <bruno@clisp.org>
6829
6830         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6831         * lib/localename.h: Update copyright header.
6832         * lib/localename.c: Likewise.
6833         * lib/relocatable.h: Likewise.
6834         * lib/relocatable.c: Likewise.
6835
6836 2011-06-02  Bruno Haible  <bruno@clisp.org>
6837
6838         doc: Fix a module name.
6839         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6840
6841 2011-06-02  Bruno Haible  <bruno@clisp.org>
6842
6843         pipe2: Remove dependency on 'nonblocking' module.
6844         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6845         O_NONBLOCK is defined by gnulib.
6846         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6847         is zero.
6848         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6849         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6850         defined by gnulib.
6851         (get_nonblocking_flag): New function.
6852         (main): Test O_NONBLOCK flag only if it is nonzero.
6853         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6854
6855 2011-06-03  Jim Meyering  <meyering@redhat.com>
6856
6857         maint: three new prohibit-header-without-use rules
6858         Prohibit use of cloexec.h, posixver.h, same.h without use.
6859         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6860         (sc_prohibit_posixver_without_use): Likewise.
6861         (sc_prohibit_same_without_use): Likewise.
6862
6863 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6864
6865         allocator: 'die' routine is now given requested size
6866         * lib/allocator.h (struct allocator.die): New size arg.
6867         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6868         If the actual problem is an ssize_t limitation, not a size_t or
6869         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6870
6871 2011-06-01  Eric Blake  <eblake@redhat.com>
6872
6873         strerror: drop strerror_r dependency
6874         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6875         * lib/strerror-override.c (strerror_override): ...to new file.
6876         * lib/strerror-override.h: Add prototype.
6877         * lib/strerror-impl.h: Delete.
6878         * lib/strerror.c (strerror): New implementation.
6879         * modules/errno (Files): Add new files.
6880         (configure.ac): Compile new file as appropriate.
6881         * modules/strerror (Files): Drop unused file.
6882         (Depends-on): Drop strerror_r-posix.
6883         * MODULES.html.sh: Document strerror_r-posix.
6884         Requested by Sam Steingold.
6885
6886         perror: call strerror_r directly
6887         * modules/perror (Files): Drop strerror-impl.h.
6888         * lib/perror.c (perror): Use our own stack buffer, rather than
6889         calling a wrapper that uses static storage.
6890         * doc/posix-functions/perror.texi (perror): Document a limitation
6891         of our replacement.
6892
6893         strerror_r: fix includes for FreeBSD
6894         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6895         since we use abort on some platforms.
6896         Reported by Matthias Bolte.
6897
6898 2011-05-31  Bruno Haible  <bruno@clisp.org>
6899
6900         Fix link errors in tests: openat-die uses gettext-h.
6901         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6902         against $(LIBINTL).
6903         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6904         against $(LIBINTL).
6905         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6906         $(LIBINTL).
6907         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6908         against $(LIBINTL).
6909         * modules/linkat-tests (Makefile.am): Link test-linkat against
6910         $(LIBINTL).
6911         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6912         $(LIBINTL).
6913         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6914         against $(LIBINTL).
6915         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6916         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6917         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6918         $(LIBINTL).
6919         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6920         $(LIBINTL).
6921         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6922         $(LIBINTL).
6923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6924
6925 2011-05-31  Bruno Haible  <bruno@clisp.org>
6926
6927         Fix link errors in tests: wait-process uses gettext-h.
6928         * modules/nonblocking-pipe-tests (Makefile.am): Set
6929         test_nonblocking_pipe_main_LDADD.
6930         * modules/nonblocking-socket-tests (Makefile.am): Link
6931         test-nonblocking-socket-main against $(LIBINTL).
6932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6933
6934 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6935
6936         assert-h: work around 'verify' incompatibility
6937         * lib/verify.h: Use @...@ directives, not ifdef.
6938         * modules/assert-h (assert.h): Implement the directives.
6939         (assert.h): Substitute the symbol-prefix more consistently.
6940
6941 2011-05-29  Jim Meyering  <meyering@redhat.com>
6942
6943         trim: remove three superfluous assignments
6944         * lib/trim.c (trim2): Remove three superfluous assignments
6945         and correct brace positioning.
6946
6947 2011-05-29  Bruno Haible  <bruno@clisp.org>
6948
6949         wctype-h: Avoid namespace pollution on Solaris 2.6.
6950         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6951         identifiers.
6952         * doc/posix-headers/wctype.texi: Mention the problem.
6953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6954
6955 2011-05-28  Jim Meyering  <meyering@redhat.com>
6956
6957         parse-datetime.y: accommodate -Wstrict-overflow
6958         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6959         placate -Wstrict-overflow.
6960
6961         trim: avoid a warning from -O2 -Wstrict-overflow
6962         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6963
6964 2011-05-29  Bruno Haible  <bruno@clisp.org>
6965
6966         gnulib-tool: Fix bug in yesterday's commit.
6967         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6968         twice.
6969
6970 2011-05-29  Bruno Haible  <bruno@clisp.org>
6971
6972         Allow multiple gnulib generated include files to be combined.
6973         * gnulib-tool (func_compute_include_guard_prefix): New function.
6974         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6975         ${gl_include_guard_prefix} references.
6976         (func_import, func_create_testdir): Invoke
6977         func_compute_include_guard_prefix.
6978         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6979         * lib/ctype.in.h: Likewise.
6980         * lib/dirent.in.h: Likewise.
6981         * lib/errno.in.h: Likewise.
6982         * lib/fcntl.in.h: Likewise.
6983         * lib/float.in.h: Likewise.
6984         * lib/getopt.in.h: Likewise.
6985         * lib/iconv.in.h: Likewise.
6986         * lib/langinfo.in.h: Likewise.
6987         * lib/locale.in.h: Likewise.
6988         * lib/math.in.h: Likewise.
6989         * lib/netdb.in.h: Likewise.
6990         * lib/netinet_in.in.h: Likewise.
6991         * lib/poll.in.h: Likewise.
6992         * lib/pthread.in.h: Likewise.
6993         * lib/pty.in.h: Likewise.
6994         * lib/sched.in.h: Likewise.
6995         * lib/se-selinux.in.h: Likewise.
6996         * lib/search.in.h: Likewise.
6997         * lib/signal.in.h: Likewise.
6998         * lib/spawn.in.h: Likewise.
6999         * lib/stdarg.in.h: Likewise.
7000         * lib/stddef.in.h: Likewise.
7001         * lib/stdint.in.h: Likewise.
7002         * lib/stdio.in.h: Likewise.
7003         * lib/stdlib.in.h: Likewise.
7004         * lib/string.in.h: Likewise.
7005         * lib/strings.in.h: Likewise.
7006         * lib/sys_file.in.h: Likewise.
7007         * lib/sys_ioctl.in.h: Likewise.
7008         * lib/sys_select.in.h: Likewise.
7009         * lib/sys_socket.in.h: Likewise.
7010         * lib/sys_stat.in.h: Likewise.
7011         * lib/sys_time.in.h: Likewise.
7012         * lib/sys_times.in.h: Likewise.
7013         * lib/sys_uio.in.h: Likewise.
7014         * lib/sys_utsname.in.h: Likewise.
7015         * lib/sys_wait.in.h: Likewise.
7016         * lib/sysexits.in.h: Likewise.
7017         * lib/termios.in.h: Likewise.
7018         * lib/time.in.h: Likewise.
7019         * lib/unistd.in.h: Likewise.
7020         * lib/wchar.in.h: Likewise.
7021         * lib/wctype.in.h: Likewise.
7022         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7023         * modules/ctype (Makefile.am): Likewise.
7024         * modules/dirent (Makefile.am): Likewise.
7025         * modules/errno (Makefile.am): Likewise.
7026         * modules/fcntl-h (Makefile.am): Likewise.
7027         * modules/float (Makefile.am): Likewise.
7028         * modules/getopt-posix (Makefile.am): Likewise.
7029         * modules/iconv-h (Makefile.am): Likewise.
7030         * modules/langinfo (Makefile.am): Likewise.
7031         * modules/locale (Makefile.am): Likewise.
7032         * modules/math (Makefile.am): Likewise.
7033         * modules/netdb (Makefile.am): Likewise.
7034         * modules/netinet_in (Makefile.am): Likewise.
7035         * modules/poll-h (Makefile.am): Likewise.
7036         * modules/pthread (Makefile.am): Likewise.
7037         * modules/pty (Makefile.am): Likewise.
7038         * modules/sched (Makefile.am): Likewise.
7039         * modules/search (Makefile.am): Likewise.
7040         * modules/selinux-h (Makefile.am): Likewise.
7041         * modules/signal (Makefile.am): Likewise.
7042         * modules/spawn (Makefile.am): Likewise.
7043         * modules/stdarg (Makefile.am): Likewise.
7044         * modules/stddef (Makefile.am): Likewise.
7045         * modules/stdint (Makefile.am): Likewise.
7046         * modules/stdio (Makefile.am): Likewise.
7047         * modules/stdlib (Makefile.am): Likewise.
7048         * modules/string (Makefile.am): Likewise.
7049         * modules/strings (Makefile.am): Likewise.
7050         * modules/sys_file (Makefile.am): Likewise.
7051         * modules/sys_ioctl (Makefile.am): Likewise.
7052         * modules/sys_select (Makefile.am): Likewise.
7053         * modules/sys_socket (Makefile.am): Likewise.
7054         * modules/sys_stat (Makefile.am): Likewise.
7055         * modules/sys_time (Makefile.am): Likewise.
7056         * modules/sys_times (Makefile.am): Likewise.
7057         * modules/sys_uio (Makefile.am): Likewise.
7058         * modules/sys_utsname (Makefile.am): Likewise.
7059         * modules/sys_wait (Makefile.am): Likewise.
7060         * modules/sysexits (Makefile.am): Likewise.
7061         * modules/termios (Makefile.am): Likewise.
7062         * modules/time (Makefile.am): Likewise.
7063         * modules/unistd (Makefile.am): Likewise.
7064         * modules/wchar (Makefile.am): Likewise.
7065         * modules/wctype-h (Makefile.am): Likewise.
7066         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7067
7068 2011-05-29  Bruno Haible  <bruno@clisp.org>
7069
7070         assert-h: Allow multiple gnulib generated replacements to coexist.
7071         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7072
7073 2011-05-29  Bruno Haible  <bruno@clisp.org>
7074
7075         argp: Allow coexistence with strerror_r-posix module.
7076         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7077         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7078         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7079         not the glibc signature.
7080
7081 2011-05-28  Bruno Haible  <bruno@clisp.org>
7082
7083         gnulib-tool: Alternative structure of testdirs, similar to --import.
7084         * gnulib-tool: New option --single-configure.
7085         (func_usage): Document it.
7086         (single_configure): New variable.
7087         (func_modules_transitive_closure_separately,
7088         func_modules_transitive_closure_separately,
7089         func_determine_use_libtests, func_modules_add_dummy_separately,
7090         func_modules_to_filelist_separately): New functions, extracted from
7091         func_import.
7092         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7093         (func_import): Use the new functions.
7094         (func_create_testdir): Set final_modules. Handle $single_configure =
7095         true case.
7096
7097 2011-05-28  Bruno Haible  <bruno@clisp.org>
7098
7099         getloadavg: Remove an unreliable safety check.
7100         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7101         getloadavg.c is in place.
7102         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7103         Reported by Sam Steingold <sds@gnu.org>.
7104
7105 2011-05-28  Bruno Haible  <bruno@clisp.org>
7106
7107         doc: Cleanup yet another file produced by texinfo.tex.
7108         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7109
7110 2011-05-28  Bruno Haible  <bruno@clisp.org>
7111
7112         Finish the conditional dependencies mechanism.
7113         * gnulib-tool: New option --no-conditional-dependencies.
7114         (func_usage): Document it. Don't mark --conditional-dependencies as
7115         experimental.
7116         (cond_dependencies): The possible values can now be true, false, empty.
7117         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7118         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7119         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7120
7121 2011-05-28  Bruno Haible  <bruno@clisp.org>
7122
7123         doc: Use a recent texinfo.tex.
7124         * doc/Makefile (tex_opts): New variable.
7125         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7126
7127 2011-05-28  Jim Meyering  <meyering@redhat.com>
7128
7129         intprops.h: adjust comment to match code change
7130         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7131         only once, it *may* have side effects.  Also fix an unrelated typo.
7132         (_GL_INT_SIGNED): Likewise.
7133
7134 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7135
7136         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7137
7138 2011-05-26  Bruno Haible  <bruno@clisp.org>
7139
7140         mbsrchr: Avoid collision with system function on Interix.
7141         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7142         Reported by Markus Duft <mduft@gentoo.org>.
7143
7144 2011-05-15  James Youngman  <jay@gnu.org>
7145
7146         getopt: for ambiguous options, enumerate the possibilities.
7147         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7148         the ambiguous options when an ambiguous prefix is given. This was
7149         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7150         glibc change was
7151         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7152
7153 2011-05-25  Eric Blake  <eblake@redhat.com>
7154
7155         getcwd: work around mingw bug
7156         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7157         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7158         Reported by Matthias Bolte.
7159
7160 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7161
7162         test-intprops: disable -Wtype-limits diagnostics
7163         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7164         diagnostics.  Otherwise, the integer overflow macros generate many
7165         diagnostics.  Reported by Jim Meyering in
7166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7167
7168         intprops: shorten, to pacify gcc -Woverlength-strings
7169         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7170         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7171         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7172         likely to run afoul of C compiler limits for string constant lengths.
7173         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7174
7175 2011-05-24  Eric Blake  <eblake@redhat.com>
7176
7177         docs: document recently fixed glibc printf bug
7178         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7179         * doc/posix-functions/printf.texi (printf): Likewise.
7180         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7181         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7182
7183         closein-tests: convert to init.sh
7184         * modules/closein-tests (Files): Add init.sh
7185         * tests/test-closein.sh Use it.
7186
7187         yesno-tests: convert to init.sh
7188         * modules/yesno-tests (Files): Add init.sh.
7189         * tests/test-yesno.sh: Use it.
7190
7191         atexit-tests: ensure reliable exit status
7192         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7193         Reported by Bruno Haible.
7194
7195 2011-05-24  Bruno Haible  <bruno@clisp.org>
7196
7197         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7199         gl_PREREQ_STRERROR_R invocations from here...
7200         * modules/strerror_r-posix (configure.ac): ... to here.
7201
7202 2011-05-24  Eric Blake  <eblake@redhat.com>
7203
7204         strerror_r: fix missing header
7205         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7206
7207         strerror_r: fix AIX test failures
7208         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7209         ERANGE failure.
7210
7211         strerror_r: fix Solaris test failures
7212         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7213         failures.
7214         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7215
7216         strerror_r: enforce POSIX recommendations
7217         * lib/strerror_r.c (safe_copy): New helper method.
7218         (strerror_r): Guarantee a non-empty string.
7219         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7220         recent POSIX rulings and to match our strerror guarantees.
7221         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7222
7223 2011-05-24  Jim Meyering  <meyering@redhat.com>
7224
7225         test-perror2.c: avoid warning about unused variable
7226         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7227
7228 2011-05-24  Eric Blake  <eblake@redhat.com>
7229
7230         perror: avoid spurious test failure on HP-UX
7231         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7232
7233         tests: fix logic bug in init.sh
7234         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7235         shell.
7236
7237 2011-05-24  Jim Meyering  <meyering@redhat.com>
7238
7239         utimensat: do not reference an out-of-scope buffer
7240         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7241         declared in an inner scope, yet "times" would be dereferenced outside
7242         the scope in which "ts" was valid.
7243         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7244         of ts[2] "out/up", so that the use of aliased "times" (via
7245         "times = ts;") does not end up referencing an out-of-scope "ts"
7246
7247         opendir-safer.c: don't clobber errno; don't close negative FD
7248         * lib/opendir-safer.c (opendir_safer):
7249         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7250         file descriptor, and more importantly, don't clobber the
7251         offending errno value with EINVAL.  Before, upon failure
7252         of dup_safer, we would pass the negative file descriptor to
7253         fdopendir, which would clobber errno.
7254
7255 2011-05-23  Bruno Haible  <bruno@clisp.org>
7256
7257         idcache: Fix module description.
7258         * modules/idcache (Include): Set to "idcache.h".
7259
7260 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7261
7262         gnulib-tool: fix portability problem with MacOS sed
7263         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7264         before the "}".  Problem reported by Leo in
7265         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7266         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7267         sed_extract_condition1, sed_extract_condition2.
7268
7269 2011-05-23  Bruno Haible  <bruno@clisp.org>
7270
7271         hash: Simplify autoconf macro.
7272         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7273
7274 2011-05-23  Bruno Haible  <bruno@clisp.org>
7275
7276         getugroups: Fix module description.
7277         * modules/getugroups (Include): Set to "getugroups.h".
7278
7279 2011-05-23  Bruno Haible  <bruno@clisp.org>
7280
7281         linkat: Simplify autoconf macro.
7282         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7283
7284 2011-05-23  Bruno Haible  <bruno@clisp.org>
7285             Eric Blake  <eblake@redhat.com>
7286
7287         linkat, renameat: Update dependencies.
7288         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7289         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7290         symlinkat.
7291
7292 2011-05-23  Jim Meyering  <meyering@redhat.com>
7293
7294         maint.mk: more tight_scope improvements
7295         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7296         (_gl_TS_headers): Define only in if-0'd block.
7297         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7298         sometimes we must *not* use it.  Adjust uses accordingly.
7299         (sc_tight_scope): Use much simpler grep-based test to determine
7300         whether we skip this rule.
7301
7302         maint.mk: generalize/improve the tight-scope rule
7303         * top/maint.mk: Emit a warning when the test is skipped.
7304         (_gl_TS_dir): Add $(srcdir)/ prefix.
7305         (_gl_TS_function_match): Simplify, rather than trying
7306         to enumerate common types.  Otherwise, it would fail to match an
7307         "extern unsigned char const *" declaration in idutils.
7308         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7309         a way to support use of that type of macro.
7310         (_gl_TS_var_match): Simplify regexp.
7311         (_gl_TS_obj_files): New configurable variable.
7312         (_gl_TS_headers): Likewise.
7313
7314 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7315
7316         verify: fix bug when gnulib <assert.h> is also included
7317         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7318         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7319         Perhaps there's a better way, but this fixes the immediate problem.
7320         Problem reported by Bruno Haible in
7321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7322
7323 2011-05-22  Bruno Haible  <bruno@clisp.org>
7324
7325         xgetcwd: Simplify autoconf macro.
7326         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7327
7328 2011-05-22  Bruno Haible  <bruno@clisp.org>
7329
7330         New module 'mktime-internal'.
7331         * modules/mktime-internal: New file.
7332         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7333         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7334         mktime_internal as a C macro if libc has __mktime_internal.
7335         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7336         conditions.
7337         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7338
7339 2011-05-22  Bruno Haible  <bruno@clisp.org>
7340
7341         timegm: Correct mktime replacement statements.
7342         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7343         defining mktime as a C macro. This completes a 2009-07-28 commit.
7344
7345 2011-05-22  Bruno Haible  <bruno@clisp.org>
7346
7347         timegm: Simplify autoconf macro.
7348         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7349
7350 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         clock-time: change to LGPLv2+.
7353         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7354         BSD-like but we have no mark for that; this is good enough for now.
7355
7356 2011-05-21  Bruno Haible  <bruno@clisp.org>
7357
7358         strerror_r: Fix comments.
7359         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7360
7361 2011-05-21  Bruno Haible  <bruno@clisp.org>
7362
7363         relocatable-prog-wrapper: Fix possible link error.
7364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7365         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7366         (gl_FUNC_SETENV): ... to here.
7367         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7368         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7369
7370 2011-05-21  Bruno Haible  <bruno@clisp.org>
7371
7372         relocatable-prog-wrapper: Assume strerror() exists.
7373         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7374         m4/strerror.m4.
7375         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7376         * lib/relocwrapper.c: Remove mention of strerror module.
7377         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7379         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7380         C macro.
7381
7382 2011-05-21  Bruno Haible  <bruno@clisp.org>
7383
7384         select: Simplify replacement idiom.
7385         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7386         Win32 platforms.
7387         * lib/sys_select.in.h (select): Simplify accordingly.
7388         * modules/select (Depends-on): Likewise.
7389
7390 2011-05-21  Bruno Haible  <bruno@clisp.org>
7391
7392         mkdir-p: Simplify autoconf macro.
7393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7394         gl_FUNC_LCHOWN.
7395
7396 2011-05-21  Eric Blake  <eblake@redhat.com>
7397
7398         strerror_r: avoid clobbering strerror on cygwin
7399         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7400         fall back instead to sys_errlist.
7401         * modules/strerror (configure.ac): Add witness.
7402         * tests/test-strerror_r.c (main): Enhance test.
7403         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7404         * tests/test-perror2.c (main): Free memory before exit.
7405
7406 2011-05-21  Bruno Haible  <bruno@clisp.org>
7407
7408         mkdtemp: Use gnulib naming conventions.
7409         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7410         * modules/mkdtemp (configure.ac): Update.
7411
7412 2011-05-20  Eric Blake  <eblake@redhat.com>
7413
7414         strerror_r: avoid corrupting errno on Solaris
7415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7416         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7417
7418         strerror_r: avoid compiler warning
7419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7420
7421         strerror_r: simplify AIX code
7422         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7423
7424         test-perror: avoid spurious failure on FreeBSD
7425         * modules/perror-tests (Depends-on): Add strerror, now that
7426         strerror_r no longer pulls it in.
7427
7428 2011-05-20  Bruno Haible  <bruno@clisp.org>
7429
7430         strerror_r-posix: Remove unused dependencies.
7431         * modules/strerror_r-posix (Depends-on): Remove strerror.
7432         Reported by Eric Blake.
7433
7434 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         intprops: remove assumption about A|B representation
7437         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7438         is a valid integer if both A and B are.  Although this is true for
7439         all known practical hosts, the C standard doesn't guarantee it,
7440         and the code need not assume it.  Also, this change may work around
7441         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7443
7444 2011-05-20  Eric Blake  <eblake@redhat.com>
7445
7446         perror: work around FreeBSD bug
7447         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7448         is broken.  Move AC_LIBOBJ...
7449         * modules/perror (configure.ac): Here.
7450         * doc/posix-functions/perror.texi (perror): Document this.
7451         * tests/test-perror2.c (main): Enhance test.
7452
7453         test-perror: check for strerror interactions
7454         * tests/macros.h (STREQ): Add macro.
7455         * modules/perror-tests (Files): Add second test.
7456         * tests/test-perror2.c (main): New file.
7457         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7458
7459         test-perror: rewrite to use init script
7460         * modules/perror-tests (Files): Add init.sh.
7461         * tests/test-perror.sh: Use temporary directory.
7462
7463 2011-05-20  Jim Meyering  <meyering@redhat.com>
7464
7465         maint: replace misused "a" with "an"
7466         * doc/intprops.texi: "a integer"
7467         * doc/regex.texi: "a explanation"
7468         * lib/alignof.h: "a object"
7469         * lib/argmatch.h: "a explanation"
7470         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7471         * lib/stdint.in.h: "a integer"
7472         * lib/userspec.c: "a owner"
7473         * doc/gnulib.texi: Fix "a idea", and reword.
7474
7475 2011-05-19  Jim Meyering  <meyering@redhat.com>
7476
7477         maint: correct misuse of "a" and "an"
7478         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7479         * lib/argp-help.c: "an docum...": s/an/a/
7480         * lib/argp-parse.c: "An vector": s/An/A/
7481         * lib/execute.c: "an native": s/an/a/
7482         * lib/spawn-pipe.c: Likewise.
7483         * lib/gc.h: "an Gc_rc": s/an/a/
7484         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7485         * lib/fts.c: "an stat.st_dev": s/an/a/
7486
7487 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7488
7489         intprops-tests: work around HP-UX 11.23 cc bug with constants
7490         * tests/test-intprops.c (VERIFY): New macro.
7491         (main): Use it, instead of verify, to work around the compiler bug; see
7492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7493
7494         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7495         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7496         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7497         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7498         (_GL_REMAINDER_OVERFLOW): Use it.
7499
7500         intprops-tests: revert unsigned part of previous change
7501         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7502         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7503         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7505
7506 2011-05-19  Bruno Haible  <bruno@clisp.org>
7507
7508         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7509         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7510         strerror_r() returned without filling the buffer.
7511         Reported by Eric Blake.
7512
7513 2011-05-19  Eric Blake  <eblake@redhat.com>
7514
7515         strerror_r: guarantee unchanged errno
7516         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7517         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7518         failure.
7519         * tests/test-strerror_r.c (main): Enhance test.
7520
7521 2011-05-19  Bruno Haible  <bruno@clisp.org>
7522
7523         strerror_r: Reorder #if blocks.
7524         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7525         for consistency with the previous commit.
7526
7527 2011-05-19  Bruno Haible  <bruno@clisp.org>
7528
7529         perror: Avoid clobbering the strerror buffer when possible.
7530         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7531         * lib/strerror.c: Include it.
7532         * modules/strerror (Files): Add lib/strerror-impl.h.
7533         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7534         (my_strerror): New function, defined through lib/strerror-impl.h.
7535         (perror): Use it instead of strerror.
7536         * modules/perror (Files): Add lib/strerror-impl.h.
7537         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7538
7539 2011-05-19  Eric Blake  <eblake@redhat.com>
7540
7541         strerror_r: fix on newer cygwin
7542         * lib/strerror_r.c (strerror_r): Cygwin now has
7543         __xpg_strerror_r, use it.
7544
7545 2011-05-19  Bruno Haible  <bruno@clisp.org>
7546
7547         strerror_r: Avoid clobbering the strerror buffer when possible.
7548         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7549         (sys_nerr, sys_errlist): New declarations.
7550         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7551         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7552         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7553
7554 2011-05-19  Bruno Haible  <bruno@clisp.org>
7555
7556         strerror_r: Fix test failure on mingw.
7557         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7558         EXTEND_STRERROR_R.
7559         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7560         macros from errno.in.h instead.
7561
7562 2011-05-19  Eric Blake  <eblake@redhat.com>
7563
7564         strerror: relax test for Solaris
7565         * tests/test-strerror.c (main): Permit Solaris behavior.
7566         * tests/test-strerror_r.c (main): Likewise.
7567
7568         strerror: enforce POSIX ruling on strerror(0)
7569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7571         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7572         * doc/posix-functions/strerror.texi (strerror): Document it.
7573         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7574         * tests/test-strerror.c (main): Strengthen test.
7575         * tests/test-strerror_r.c (main): Likewise.
7576
7577 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7578
7579         intprop-tests: port to older and more-pedantic compilers
7580         * modules/intprops-tests (Files): Add tests/macros.h.
7581         * tests/test-intprops.c: Include macros.h.
7582         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7583         it's no longer documented to expand to an integer constant expression.
7584         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7585         argument is floating point, as it's no longer documented to expand
7586         to an integer constant expression in that case.
7587         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7588         compiler bugs reported by Bruno Haible.  See
7589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7590         (U0, U1): New constants, to work around the same bugs.  Also,
7591         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7592
7593         intprops: work around C compiler bugs
7594         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7595         bug in Sun C 5.11 2010/08/13 and other compilers; see
7596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7597
7598         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7599         * doc/intprops.texi (Integer Type Determination): Fix
7600         documentation for TYPE_IS_INTEGER: it returns an constant
7601         expression, not an integer constant expression.  Fix doc for
7602         TYPE_SIGNED: it returns an integer constant expression only if its
7603         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7604         hardly worth documented that way....)
7605
7606 2011-05-18  Bruno Haible  <bruno@clisp.org>
7607
7608         strerror_r: Avoid clobbering the strerror buffer when possible.
7609         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7610         Handle gnulib defined errno values here. When strerror() returns NULL
7611         or an empty string, return EINVAL.
7612         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7613         gnulib defined errno values here.
7614         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7615
7616 2011-05-18  Eric Blake  <eblake@redhat.com>
7617
7618         fnmatch: avoid compiler warning
7619         * lib/fnmatch_loop.c (FCT): Use correct type.
7620         Reported by Matthias Bolte.
7621
7622 2011-05-13  Jim Meyering  <meyering@redhat.com>
7623
7624         maint.mk: three new prohibit_<HDR>_without_use rules
7625         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7626         (sc_prohibit_stdio-safer_without_use): Likewise.
7627         (sc_prohibit_xfreopen_without_use): Likewise.
7628
7629 2011-05-17  Jim Meyering  <meyering@redhat.com>
7630
7631         announce-gen: fail if the NEWS delta is empty
7632         If there's nothing noteworthy in NEWS, then either you forgot
7633         or you shouldn't be releasing.
7634         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7635
7636 2011-05-17  Pádraig Brady <P@draigBrady.com>
7637
7638         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7639         reserved symbols starting with double underscore from the check.
7640
7641 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7642
7643         intprops: add doc
7644         * doc/intprops.texi: New file, documenting intprops.
7645         * doc/gnulib.texi (Particular Modules): Include it.
7646
7647         verify: add doc to gnulib manual and fix example
7648         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7649         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7650         (Compile-time Assertions): Fix example so it can't overflow.
7651
7652 2011-05-17  Jim Meyering  <meyering@redhat.com>
7653
7654         warnings.m4: don't usurp save_CPPFLAGS variable name
7655         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7656
7657         doc: fix typo
7658         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7659
7660 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7661             Bruno Haible  <bruno@clisp.org>
7662
7663         doc: Tweak recent change.
7664         * README (Portability guidelines): Tweak new text.
7665         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7666         Interix 6.1.
7667
7668 2011-05-16  Eric Blake  <eblake@redhat.com>
7669
7670         inttypes: avoid autoconf warning
7671         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7672         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7673
7674 2011-05-16  Sam Steingold <sds@gnu.org>
7675         and Eric Blake  <eblake@redhat.com>
7676
7677         vc-list-files: accept multiple directory operands
7678         * build-aux/vc-list-files: Iterate over all remaining operands.
7679
7680 2011-05-16  Bruno Haible  <bruno@clisp.org>
7681
7682         Fix confusion regarding deprecated modules.
7683         * modules/calloc (Status, Notice): Mark module as deprecated, not
7684         obsolete.
7685         * modules/fnmatch-posix (Status, Notice): Likewise.
7686         * modules/getdate (Status, Notice): Likewise.
7687         * modules/getopt (Status, Notice): Likewise.
7688         * modules/malloc (Status, Notice): Likewise.
7689         * modules/pipe (Status, Notice): Likewise.
7690         * modules/realloc (Status, Notice): Likewise.
7691         * modules/rename-dest-slash (Status, Notice): Likewise.
7692         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7693         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7694         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7695         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7696         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7697
7698 2011-05-16  Bruno Haible  <bruno@clisp.org>
7699
7700         doc: List the target platforms.
7701         * doc/gnulib-intro.texi (Target Platforms): New section.
7702         * doc/gnulib.texi (Introduction): Update menu.
7703         * README (Portability guidelines): Refer to the new section. Update
7704         statement about oldest supported environment. Remove rationale why
7705         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7706         unportable C89 function.
7707         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7708         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7709
7710 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7711
7712         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7713
7714 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7715
7716         intprops-tests: new module
7717         * modules/intprops-tests, tests/test-intprops.c: New files.
7718
7719         intprops: add safe, portable integer overflow checking
7720         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7721         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7722         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7723         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7724         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7725         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7726         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7727         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7728         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7729         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7730         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7731
7732 2011-05-12  James Youngman  <jay@gnu.org>
7733
7734         Add a test for glibc's Bugzilla bug #12378.
7735         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7736         doesn't allow the literal matching of a lone "[" (which is
7737         required by POSIX).
7738         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7739
7740 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7741
7742         Sync glibc change fixing Bugzilla bug #12378.
7743         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7744         beginning and fall back to matching as normal character if the
7745         string ends before the matching ']' is found.  This is what POSIX
7746         requires.
7747
7748 2011-05-13  Eric Blake  <eblake@redhat.com>
7749
7750         getcwd-lgpl: relax test for FreeBSD
7751         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7752         issue.
7753         * tests/test-getcwd-lgpl.c (main): Relax test.
7754         Reported by Matthias Bolte.
7755
7756 2011-05-11  Eric Blake  <eblake@redhat.com>
7757
7758         test-fflush: silence compiler warning
7759         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7760
7761 2011-05-11  Bruno Haible  <bruno@clisp.org>
7762
7763         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7764         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7765         * modules/canonicalize (Depends-on): Add 'nocrash'.
7766         * modules/canonicalize-lgpl (Depends-on): Likewise.
7767         * doc/posix-functions/realpath.texi: Update platforms list.
7768         Reported by Ryan Schmidt <ryandesign@macports.org>.
7769
7770 2011-05-11  Bruno Haible  <bruno@clisp.org>
7771
7772         group-member: Declare function in <unistd.h>.
7773         * lib/unistd.in.h (group_member): New declaration.
7774         * lib/group-member.h: Remove file.
7775         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7776         * tests/test-unistd-c++.cc: Check signature of group_member.
7777         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7778         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7779         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7780         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7781         HAVE_GROUP_MEMBER.
7782         * modules/group-member (Files): Remove lib/group-member.h.
7783         (Depends-on): Add unistd. Specify conditions.
7784         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7785         (Include): Change to <unistd.h>.
7786         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7787         HAVE_GROUP_MEMBER.
7788         * NEWS: Mention the change.
7789         * lib/euidaccess.c: Don't include group-member.h.
7790
7791 2011-05-11  Bruno Haible  <bruno@clisp.org>
7792
7793         group-member: Document module.
7794         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7795         module.
7796
7797 2011-05-11  Bruno Haible  <bruno@clisp.org>
7798
7799         fclose: Fix mistake earlier today.
7800         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7801
7802 2011-05-11  Eric Blake  <eblake@redhat.com>
7803
7804         fclose: preserve fflush errors
7805         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7806         Reported by Jim Meyering.
7807
7808         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7809         * build-aux/bootstrap (check_versions): When no specific version
7810         is required, merely check that the app produces an exit status
7811         that indicates its existence.
7812
7813         maint.mk: drop redundant check
7814         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7815         the same but better.
7816
7817 2011-05-11  Bruno Haible  <bruno@clisp.org>
7818
7819         fclose: Fix possible link error.
7820         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7821         unregister_shadow_fd. Improve comments.
7822         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7823         Eric Blake.
7824
7825 2011-05-11  Jim Meyering  <meyering@redhat.com>
7826
7827         maint.mk: improve "can not" detection and generalize rule name
7828         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7829         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7830         Use the same technique as in sc_prohibit_doubled_word, so that
7831         we recognize "can not" also when the words are separated by a newline.
7832         Suggested by Eric Blake.
7833         (perl_filename_lineno_text_): Define.  Factored out of...
7834         (prohibit_doubled_word_): ...here.  Use the new definition.
7835         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7836         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7837         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7838
7839 2011-05-10  Eric Blake  <eblake@redhat.com>
7840
7841         fclose: avoid double close race when possible
7842         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7843         all but WINDOWS_SOCKETS.
7844
7845 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7846
7847         openat: correct new comment
7848         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7849
7850 2011-05-10  Jim Meyering  <meyering@redhat.com>
7851
7852         openat: add comments
7853         * lib/openat-proc.c (openat_proc_name): Add comments,
7854         mostly from Eric Blake.
7855
7856 2011-05-09  Eric Blake  <eblake@redhat.com>
7857
7858         openat: reduce syscalls in first probe of /proc
7859         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7860         be a directory.  Simplify the probe for .. bugs.
7861         * modules/openat (Depends-on): Drop same-inode.
7862         Reported by Bastien ROUCARIES.
7863
7864 2011-05-09  Jim Meyering  <meyering@redhat.com>
7865
7866         maint.mk: change semantics/name of tight_scope variables
7867         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7868         Rename variables to align with semantics that make them more useful.
7869
7870         maint.mk: tweak new rule's name not to impinge
7871         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7872         (sc_tight_scope): Use new rule name rather than $@-0.
7873
7874         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7875         * top/maint.mk (sc_tight_scope): New rule.
7876         (sc_tight_scope-0): New rule, ifdef'd out.
7877         (_gl_TS_dir): Default.
7878         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7879         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7880
7881 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7882
7883         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7884         Haible <bruno@clisp.org>.
7885
7886 2011-05-08  Bruno Haible  <bruno@clisp.org>
7887
7888         Comments.
7889         * m4/isnanf.m4: Add comment.
7890         * m4/isnanl.m4: Likewise.
7891
7892 2011-05-08  Bruno Haible  <bruno@clisp.org>
7893
7894         glob: Remove obsolete macro.
7895         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7896
7897 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7898
7899         intprops: Sun C 5.11 supports __typeof__
7900         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7901         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7902         which is new.
7903         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7904
7905         intprops: switch to usual gnulib indenting and naming
7906         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7907         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7908
7909         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7910
7911 2011-05-08  Jim Meyering  <meyering@redhat.com>
7912
7913         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7914         * top/maint.mk (release-prep): Use make's --no-print-directory
7915         option when generating the announcement.  This eliminates the
7916         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7917         generated announcement template.
7918
7919 2011-05-08  Bruno Haible  <bruno@clisp.org>
7920
7921         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7922         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7923         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7924
7925 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         ignore-value, verify: Omit include files from lib_SOURCES.
7928         * modules/ignore-value, modules/verify (Makefile.am):
7929         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7930         that leads Automake to duplicate use of am__objects_... variables
7931         in Makefile.in.  See
7932         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7933
7934 2011-05-07  Bruno Haible  <bruno@clisp.org>
7935
7936         fclose: Simplify autoconf macro.
7937         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7938         defined.
7939
7940 2011-05-07  Bruno Haible  <bruno@clisp.org>
7941
7942         canonicalize-lgpl: Fix autoconf macro ordering bug.
7943         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7944         gl_STDLIB_H_DEFAULTS.
7945
7946 2011-05-06  Eric Blake  <eblake@redhat.com>
7947
7948         maintainer-makefile: make sc_po_check easier to tune
7949         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7950         to probe for strings, such as an alternate location for gnulib.
7951
7952         fclose: guarantee behavior on seekable stdin
7953         * modules/fclose (Depends-on): Add fflush.
7954         * doc/posix-functions/fclose.texi (fclose): Document this.
7955         * tests/test-fclose.c (main): Make test for this unconditional.
7956
7957 2011-05-06  Bruno Haible  <bruno@clisp.org>
7958
7959         fflush, fpurge: Relicense under LGPLv2+.
7960         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7961         * modules/fpurge (License): Likewise.
7962         With permission from Eric Blake and Jim Meyering.
7963         Suggested by Eric Blake.
7964
7965 2011-05-06  Karl Berry  <karl@gnu.org>
7966
7967         * MODULES.html.sh (func_all_modules): remove exit.
7968
7969 2011-05-06  Jim Meyering  <meyering@redhat.com>
7970
7971         maint.mk: use info-gnu@ as the default only for a stable release
7972         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7973         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7974         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7975         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7976
7977 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7978
7979         assert-h: new module, which supports C1X-style static_assert
7980         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7981         * lib/verify.h: Revamp so that this can be copied into assert.h,
7982         while retaining the ability to use it standalone as before.
7983         Rename private identifiers so as not to encroach on the
7984         standard C namespace, since this is now used by assert.h.
7985         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7986         the old verify_true.
7987         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7988         the old verify_true.  Use _GL_VERIFY_TYPE.
7989         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7990         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7991         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7992         defined when this file is copied into the replacement assert.h.
7993         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7994         and _Static_assert is not built in.
7995         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7996         defined, and use the new macros mentioned above.
7997         * doc/posix-headers/assert.texi: Document this.
7998
7999 2011-05-05  Bruno Haible  <bruno@clisp.org>
8000
8001         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8002         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8003         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8004         gl_REPLACE_FCLOSE here.
8005         * modules/fflush (Depends-on): Remove fclose.
8006         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8007         combination with module 'fclose'.
8008
8009 2011-05-05  Bruno Haible  <bruno@clisp.org>
8010
8011         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8012         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8013         gl_FUNC_FFLUSH.
8014         (gl_FUNC_FFLUSH): Use it.
8015         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8017         gl_REPLACE_FSEEKO here.
8018
8019 2011-05-05  Bruno Haible  <bruno@clisp.org>
8020
8021         tzset: Relicense under LGPL.
8022         * modules/tzset (License): Change to LGPL.
8023         No agreement needed; it's a no-op.
8024
8025         strtoimax, strtoumax: Relicense under LGPL.
8026         * modules/strtoimax (License): Change to LGPL.
8027         * modules/strtoumax (License): Likewise.
8028         With permission from Jim Meyering, Paul Eggert:
8029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8031
8032         getgroups: Relicense under LGPL.
8033         * modules/getgroups (License): Change to LGPL.
8034         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8038
8039         nanosleep: Relicense under LGPL.
8040         * modules/nanosleep (License): Change to LGPL.
8041         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8042         Haible:
8043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8047
8048         futimens: Relicense under LGPL.
8049         * modules/futimens (License): Change to LGPL.
8050         With permission from Eric Blake:
8051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8052
8053         fflush: Relicense under LGPL.
8054         * modules/fflush (License): Change to LGPL.
8055         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8059
8060         tmpfile: Relicense under LGPL.
8061         * modules/tmpfile (License): Change to LGPL.
8062         With permission from Ben Pfaff:
8063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8064
8065         isfinite: Relicense under LGPL.
8066         * modules/isfinite (License): Change to LGPL.
8067         With permission from Ben Pfaff, Bruno Haible:
8068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8070
8071         acosl..tanl: Relicense under LGPL.
8072         * modules/acosl (License): Change to LGPL.
8073         * modules/asinl (License): Likewise.
8074         * modules/atanl (License): Likewise.
8075         * modules/cosl (License): Likewise.
8076         * modules/expl (License): Likewise.
8077         * modules/logl (License): Likewise.
8078         * modules/sinl (License): Likewise.
8079         * modules/sqrtl (License): Likewise.
8080         * modules/tanl (License): Likewise.
8081         Source code originally from glibc and Paolo Bonzini. Agreements:
8082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8084
8085 2011-05-05  Bruno Haible  <bruno@clisp.org>
8086
8087         signal: Define sighandler_t.
8088         * lib/signal.in.h (sighandler_t): New type.
8089         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8090         whether sighandler_t is defined.
8091         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8092         * modules/signal (Depends-on): Add extensions.
8093         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8094         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8095         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8096
8097 2011-05-05  Eric Blake  <eblake@redhat.com>
8098
8099         maint: remove useless REPLACE_*_H macros
8100         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8101         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8102         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8103         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8104         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8105         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8106         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8107         * m4/btowc.m4: Update callers.
8108         * m4/dirfd.m4: Likewise.
8109         * m4/duplocale.m4: Likewise.
8110         * m4/fchdir.m4: Likewise.
8111         * m4/fdopendir.m4: Likewise.
8112         * m4/inet_ntop.m4: Likewise.
8113         * m4/inet_pton.m4: Likewise.
8114         * m4/ioctl.m4: Likewise.
8115         * m4/mbrlen.m4: Likewise.
8116         * m4/mbrtowc.m4: Likewise.
8117         * m4/mbsinit.m4: Likewise.
8118         * m4/mbsnrtowcs.m4: Likewise.
8119         * m4/mbsrtowcs.m4: Likewise.
8120         * m4/poll.m4: Likewise.
8121         * m4/setlocale.m4: Likewise.
8122         * m4/wcrtomb.m4: Likewise.
8123         * m4/wcsnrtombs.m4: Likewise.
8124         * m4/wcsrtombs.m4: Likewise.
8125         * m4/wctob.m4: Likewise.
8126         * m4/wcwidth.m4: Likewise.
8127         * modules/posix_spawn: Likewise.
8128         * modules/posix_spawn_file_actions_addclose: Likewise.
8129         * modules/posix_spawn_file_actions_adddup2: Likewise.
8130         * modules/posix_spawn_file_actions_addopen: Likewise.
8131         * modules/posix_spawn_file_actions_destroy: Likewise.
8132         * modules/posix_spawn_file_actions_init: Likewise.
8133         * modules/posix_spawnattr_destroy: Likewise.
8134         * modules/posix_spawnattr_getflags: Likewise.
8135         * modules/posix_spawnattr_getpgroup: Likewise.
8136         * modules/posix_spawnattr_getschedparam: Likewise.
8137         * modules/posix_spawnattr_getschedpolicy: Likewise.
8138         * modules/posix_spawnattr_getsigdefault: Likewise.
8139         * modules/posix_spawnattr_getsigmask: Likewise.
8140         * modules/posix_spawnattr_init: Likewise.
8141         * modules/posix_spawnattr_setflags: Likewise.
8142         * modules/posix_spawnattr_setpgroup: Likewise.
8143         * modules/posix_spawnattr_setschedparam: Likewise.
8144         * modules/posix_spawnattr_setschedpolicy: Likewise.
8145         * modules/posix_spawnattr_setsigdefault: Likewise.
8146         * modules/posix_spawnattr_setsigmask: Likewise.
8147         * modules/posix_spawnp: Likewise.
8148
8149 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8150
8151         Add option to do-release-commit-and-tag to specify branch.
8152         * build-aux/do-release-commit-and-tag: Add --branch.
8153
8154 2011-05-03  Bruno Haible  <bruno@clisp.org>
8155
8156         Avoid unnecessary compilation units, through conditional dependencies.
8157         * modules/accept (Depends-on): Add conditions to the dependencies.
8158         * modules/acosl (Depends-on): Likewise.
8159         * modules/argz (Depends-on): Likewise.
8160         * modules/asinl (Depends-on): Likewise.
8161         * modules/atanl (Depends-on): Likewise.
8162         * modules/atoll (Depends-on): Likewise.
8163         * modules/bind (Depends-on): Likewise.
8164         * modules/btowc (Depends-on): Likewise.
8165         * modules/canonicalize-lgpl (Depends-on): Likewise.
8166         * modules/ceil (Depends-on): Likewise.
8167         * modules/ceilf (Depends-on): Likewise.
8168         * modules/ceill (Depends-on): Likewise.
8169         * modules/chdir-long (Depends-on): Likewise.
8170         * modules/chown (Depends-on): Likewise.
8171         * modules/close (Depends-on): Likewise.
8172         * modules/connect (Depends-on): Likewise.
8173         * modules/cosl (Depends-on): Likewise.
8174         * modules/dirfd (Depends-on): Likewise.
8175         * modules/dprintf (Depends-on): Likewise.
8176         * modules/dprintf-posix (Depends-on): Likewise.
8177         * modules/error (Depends-on): Likewise.
8178         * modules/euidaccess (Depends-on): Likewise.
8179         * modules/expl (Depends-on): Likewise.
8180         * modules/faccessat (Depends-on): Likewise.
8181         * modules/fchdir (Depends-on): Likewise.
8182         * modules/fclose (Depends-on): Likewise.
8183         * modules/fcntl (Depends-on): Likewise.
8184         * modules/fdopendir (Depends-on): Likewise.
8185         * modules/fflush (Depends-on): Likewise.
8186         * modules/floor (Depends-on): Likewise.
8187         * modules/floorf (Depends-on): Likewise.
8188         * modules/floorl (Depends-on): Likewise.
8189         * modules/fnmatch (Depends-on): Likewise.
8190         * modules/fopen (Depends-on): Likewise.
8191         * modules/fprintf-posix (Depends-on): Likewise.
8192         * modules/frexp (Depends-on): Likewise.
8193         * modules/frexp-nolibm (Depends-on): Likewise.
8194         * modules/frexpl (Depends-on): Likewise.
8195         * modules/frexpl-nolibm (Depends-on): Likewise.
8196         * modules/fseek (Depends-on): Likewise.
8197         * modules/fsusage (Depends-on): Likewise.
8198         * modules/ftell (Depends-on): Likewise.
8199         * modules/ftello (Depends-on): Likewise.
8200         * modules/futimens (Depends-on): Likewise.
8201         * modules/getcwd (Depends-on): Likewise.
8202         * modules/getcwd-lgpl (Depends-on): Likewise.
8203         * modules/getdelim (Depends-on): Likewise.
8204         * modules/getdomainname (Depends-on): Likewise.
8205         * modules/getgroups (Depends-on): Likewise.
8206         * modules/gethostname (Depends-on): Likewise.
8207         * modules/getline (Depends-on): Likewise.
8208         * modules/getlogin_r (Depends-on): Likewise.
8209         * modules/getopt-posix (Depends-on): Likewise.
8210         * modules/getpeername (Depends-on): Likewise.
8211         * modules/getsockname (Depends-on): Likewise.
8212         * modules/getsockopt (Depends-on): Likewise.
8213         * modules/getsubopt (Depends-on): Likewise.
8214         * modules/getusershell (Depends-on): Likewise.
8215         * modules/glob (Depends-on): Likewise.
8216         * modules/grantpt (Depends-on): Likewise.
8217         * modules/iconv_open (Depends-on): Likewise.
8218         * modules/iconv_open-utf (Depends-on): Likewise.
8219         * modules/inet_ntop (Depends-on): Likewise.
8220         * modules/inet_pton (Depends-on): Likewise.
8221         * modules/ioctl (Depends-on): Likewise.
8222         * modules/isapipe (Depends-on): Likewise.
8223         * modules/isfinite (Depends-on): Likewise.
8224         * modules/isinf (Depends-on): Likewise.
8225         * modules/lchown (Depends-on): Likewise.
8226         * modules/ldexpl (Depends-on): Likewise.
8227         * modules/link (Depends-on): Likewise.
8228         * modules/linkat (Depends-on): Likewise.
8229         * modules/listen (Depends-on): Likewise.
8230         * modules/logl (Depends-on): Likewise.
8231         * modules/lstat (Depends-on): Likewise.
8232         * modules/mbrlen (Depends-on): Likewise.
8233         * modules/mbrtowc (Depends-on): Likewise.
8234         * modules/mbsinit (Depends-on): Likewise.
8235         * modules/mbsnrtowcs (Depends-on): Likewise.
8236         * modules/mbsrtowcs (Depends-on): Likewise.
8237         * modules/mbtowc (Depends-on): Likewise.
8238         * modules/memcmp (Depends-on): Likewise.
8239         * modules/mkdir (Depends-on): Likewise.
8240         * modules/mkdtemp (Depends-on): Likewise.
8241         * modules/mkfifo (Depends-on): Likewise.
8242         * modules/mkfifoat (Depends-on): Likewise.
8243         * modules/mknod (Depends-on): Likewise.
8244         * modules/mkostemp (Depends-on): Likewise.
8245         * modules/mkostemps (Depends-on): Likewise.
8246         * modules/mkstemp (Depends-on): Likewise.
8247         * modules/mkstemps (Depends-on): Likewise.
8248         * modules/mktime (Depends-on): Likewise.
8249         * modules/nanosleep (Depends-on): Likewise.
8250         * modules/open (Depends-on): Likewise.
8251         * modules/openat (Depends-on): Likewise.
8252         * modules/perror (Depends-on): Likewise.
8253         * modules/poll (Depends-on): Likewise.
8254         * modules/popen (Depends-on): Likewise.
8255         * modules/posix_spawn (Depends-on): Likewise.
8256         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8257         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8258         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8259         * modules/posix_spawnp (Depends-on): Likewise.
8260         * modules/pread (Depends-on): Likewise.
8261         * modules/printf-posix (Depends-on): Likewise.
8262         * modules/ptsname (Depends-on): Likewise.
8263         * modules/putenv (Depends-on): Likewise.
8264         * modules/pwrite (Depends-on): Likewise.
8265         * modules/readline (Depends-on): Likewise.
8266         * modules/readlink (Depends-on): Likewise.
8267         * modules/readlinkat (Depends-on): Likewise.
8268         * modules/recv (Depends-on): Likewise.
8269         * modules/recvfrom (Depends-on): Likewise.
8270         * modules/regex (Depends-on): Likewise.
8271         * modules/remove (Depends-on): Likewise.
8272         * modules/rename (Depends-on): Likewise.
8273         * modules/renameat (Depends-on): Likewise.
8274         * modules/rmdir (Depends-on): Likewise.
8275         * modules/round (Depends-on): Likewise.
8276         * modules/roundf (Depends-on): Likewise.
8277         * modules/roundl (Depends-on): Likewise.
8278         * modules/rpmatch (Depends-on): Likewise.
8279         * modules/select (Depends-on): Likewise.
8280         * modules/send (Depends-on): Likewise.
8281         * modules/sendto (Depends-on): Likewise.
8282         * modules/setenv (Depends-on): Likewise.
8283         * modules/setlocale (Depends-on): Likewise.
8284         * modules/setsockopt (Depends-on): Likewise.
8285         * modules/shutdown (Depends-on): Likewise.
8286         * modules/sigaction (Depends-on): Likewise.
8287         * modules/signbit (Depends-on): Likewise.
8288         * modules/sigprocmask (Depends-on): Likewise.
8289         * modules/sinl (Depends-on): Likewise.
8290         * modules/sleep (Depends-on): Likewise.
8291         * modules/snprintf (Depends-on): Likewise.
8292         * modules/snprintf-posix (Depends-on): Likewise.
8293         * modules/socket (Depends-on): Likewise.
8294         * modules/sprintf-posix (Depends-on): Likewise.
8295         * modules/sqrtl (Depends-on): Likewise.
8296         * modules/stat (Depends-on): Likewise.
8297         * modules/strchrnul (Depends-on): Likewise.
8298         * modules/strdup-posix (Depends-on): Likewise.
8299         * modules/strerror (Depends-on): Likewise.
8300         * modules/strerror_r-posix (Depends-on): Likewise.
8301         * modules/strndup (Depends-on): Likewise.
8302         * modules/strnlen (Depends-on): Likewise.
8303         * modules/strptime (Depends-on): Likewise.
8304         * modules/strsep (Depends-on): Likewise.
8305         * modules/strsignal (Depends-on): Likewise.
8306         * modules/strstr-simple (Depends-on): Likewise.
8307         * modules/strtod (Depends-on): Likewise.
8308         * modules/strtoimax (Depends-on): Likewise.
8309         * modules/strtok_r (Depends-on): Likewise.
8310         * modules/strtoumax (Depends-on): Likewise.
8311         * modules/symlink (Depends-on): Likewise.
8312         * modules/symlinkat (Depends-on): Likewise.
8313         * modules/tanl (Depends-on): Likewise.
8314         * modules/tcgetsid (Depends-on): Likewise.
8315         * modules/tmpfile (Depends-on): Likewise.
8316         * modules/trunc (Depends-on): Likewise.
8317         * modules/truncf (Depends-on): Likewise.
8318         * modules/truncl (Depends-on): Likewise.
8319         * modules/uname (Depends-on): Likewise.
8320         * modules/unlink (Depends-on): Likewise.
8321         * modules/unlockpt (Depends-on): Likewise.
8322         * modules/unsetenv (Depends-on): Likewise.
8323         * modules/usleep (Depends-on): Likewise.
8324         * modules/utimensat (Depends-on): Likewise.
8325         * modules/vasprintf (Depends-on): Likewise.
8326         * modules/vdprintf (Depends-on): Likewise.
8327         * modules/vdprintf-posix (Depends-on): Likewise.
8328         * modules/vfprintf-posix (Depends-on): Likewise.
8329         * modules/vprintf-posix (Depends-on): Likewise.
8330         * modules/vsnprintf (Depends-on): Likewise.
8331         * modules/vsnprintf-posix (Depends-on): Likewise.
8332         * modules/vsprintf-posix (Depends-on): Likewise.
8333         * modules/wcrtomb (Depends-on): Likewise.
8334         * modules/wcscasecmp (Depends-on): Likewise.
8335         * modules/wcscspn (Depends-on): Likewise.
8336         * modules/wcsdup (Depends-on): Likewise.
8337         * modules/wcsncasecmp (Depends-on): Likewise.
8338         * modules/wcsnrtombs (Depends-on): Likewise.
8339         * modules/wcspbrk (Depends-on): Likewise.
8340         * modules/wcsrtombs (Depends-on): Likewise.
8341         * modules/wcsspn (Depends-on): Likewise.
8342         * modules/wcsstr (Depends-on): Likewise.
8343         * modules/wcstok (Depends-on): Likewise.
8344         * modules/wcswidth (Depends-on): Likewise.
8345         * modules/wctob (Depends-on): Likewise.
8346         * modules/wctomb (Depends-on): Likewise.
8347         * modules/wctype (Depends-on): Likewise.
8348         * modules/wcwidth (Depends-on): Likewise.
8349         * modules/write (Depends-on): Likewise.
8350
8351 2011-05-03  Bruno Haible  <bruno@clisp.org>
8352
8353         Support for conditional dependencies.
8354         * doc/gnulib.texi (Module description): Document the syntax of
8355         conditional dependencies.
8356         * gnulib-tool: New option --conditional-dependencies.
8357         (func_usage): Document it.
8358         (cond_dependencies): New variable.
8359         (func_get_automake_snippet_conditional,
8360         func_get_automake_snippet_unconditional): New functions, extracted from
8361         func_get_automake_snippet.
8362         (func_get_automake_snippet): Use them.
8363         (sed_first_32_chars): New variable.
8364         (func_module_shellfunc_name): New function.
8365         (func_module_shellvar_name): New function.
8366         (func_module_conditional_name): New function.
8367         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8368         func_cond_module_condition): New functions.
8369         (func_modules_transitive_closure): Add support for conditional
8370         dependencies.
8371         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8372         conditional automake snippet in an automake conditional.
8373         (func_emit_autoconf_snippets): Emit shell functions that contain the
8374         code for conditional modules.
8375         (func_import, func_create_testdir): Update specification.
8376
8377 2011-05-03  Eric Blake  <eblake@redhat.com>
8378
8379         test-getaddrinfo: report error information
8380         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8381
8382 2011-05-03  Jim Meyering  <meyering@redhat.com>
8383
8384         bootstrap: avoid build failure when $GZIP is set
8385         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8386         program name.  If defined at all, it is supposed to list gzip options.
8387         Reported by Alan Curry in http://debbugs.gnu.org/8609
8388
8389 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8390
8391         readme-release: new module with release instructions
8392         * modules/readme-release: New module.
8393         * top/README-release: New file, from coreutils, grep, diffutils.
8394         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8395
8396 2011-05-02  Eric Blake  <eblake@redhat.com>
8397
8398         fflush: also replace fclose when fixing fflush
8399         * modules/fflush (Depends-on): Add fclose.
8400         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8401         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8402         memstreams with no backing fd.
8403         * doc/posix-functions/fclose.texi (fclose): Document the use of
8404         fflush module to fix the bug.
8405         * tests/test-fclose.c (main): Relax test when fclose is used in
8406         isolation.
8407
8408         fclose: add some tests
8409         * modules/fclose-tests: New test module.
8410         * tests/test-fclose.c: New file.
8411         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8412
8413         fclose: reduced dependencies
8414         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8415         simpler lseek.
8416         * lib/fclose.c (rpl_fclose): Likewise.
8417         Reported by Simon Josefsson.
8418
8419         exit: drop remaining clients
8420         * modules/argmatch (Depends-on): Replace exit with stdlib.
8421         * modules/copy-file (Depends-on): Likewise.
8422         * modules/execute (Depends-on): Likewise.
8423         * modules/exitfail (Depends-on): Likewise.
8424         * modules/obstack (Depends-on): Likewise.
8425         * modules/pagealign_alloc (Depends-on): Likewise.
8426         * modules/pipe-filter-gi (Depends-on): Likewise.
8427         * modules/pipe-filter-ii (Depends-on): Likewise.
8428         * modules/savewd (Depends-on): Likewise.
8429         * modules/spawn-pipe (Depends-on): Likewise.
8430         * modules/wait-process (Depends-on): Likewise.
8431         * modules/xsetenv (Depends-on): Likewise.
8432         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8433         * modules/git-merge-changelog (Depends-on): Likewise.
8434         * modules/long-options (Depends-on): Likewise.
8435         * modules/pt_chown (Depends-on): Likewise.
8436         * modules/sysexits (Depends-on): Likewise.
8437
8438         freading: relax license from LGPLv3+ to LGPLv2+
8439         * modules/freading (License): Relax LGPL version.
8440
8441 2011-05-02  Bruno Haible  <bruno@clisp.org>
8442
8443         fchdir: Remove unused dependencies.
8444         * modules/fchdir (Depends-on): Remove include_next.
8445
8446 2011-05-02  Bruno Haible  <bruno@clisp.org>
8447
8448         gnulib-tool: Refactor.
8449         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8450         from func_emit_autoconf_snippets.
8451         (func_emit_autoconf_snippets): Use it.
8452
8453 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8454
8455         * NEWS: Document removal of 'exit'.
8456         * modules/exit: Remove file.
8457
8458 2011-05-01  Bruno Haible  <bruno@clisp.org>
8459
8460         Update DEPENDENCIES.
8461         * DEPENDENCIES (gettext): Recommend the newest release.
8462         Reported by Simon Josefsson.
8463
8464 2011-05-01  Bruno Haible  <bruno@clisp.org>
8465
8466         gnulib-tool: Reduce code duplication.
8467         * gnulib-tool (func_emit_autoconf_snippets): New function.
8468         (func_import, func_create_testdir): Use it.
8469
8470 2011-04-30  Eric Blake  <eblake@redhat.com>
8471
8472         fclose: don't fail on non-seekable input stream
8473         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8474         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8475         since fflush is allowed to fail in that case.
8476
8477 2011-04-30  Bruno Haible  <bruno@clisp.org>
8478
8479         dup3: cleanup
8480         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8481
8482 2011-04-30  Bruno Haible  <bruno@clisp.org>
8483
8484         netdb: Make it work in C++ mode.
8485         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8486         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8487         module.
8488         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8489         gl_MODULE_INDICATOR_FOR_TESTS.
8490         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8491         * modules/netdb-c++-tests: New file.
8492         * tests/test-netdb-c++.cc: New file.
8493
8494 2011-04-30  Bruno Haible  <bruno@clisp.org>
8495
8496         New modules 'vfscanf', 'vscanf'.
8497         * modules/vfscanf: New file.
8498         * modules/vscanf: New file.
8499         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8500         here.
8501         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8502         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8503
8504 2011-04-30  Bruno Haible  <bruno@clisp.org>
8505
8506         passfd: Add comments.
8507         * lib/passfd.c: Add comments about platforms.
8508
8509 2011-04-30  Bruno Haible  <bruno@clisp.org>
8510
8511         sys_uio: Make <sys/uio.h> self-contained.
8512         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8513         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8514
8515 2011-04-30  Bruno Haible  <bruno@clisp.org>
8516
8517         sys_socket: Ensure 'struct iovec' definition.
8518         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8519         <sys/socket.h>.
8520         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8521
8522 2011-04-30  Bruno Haible  <bruno@clisp.org>
8523
8524         sys_uio: Protect definition of 'struct iovec'.
8525         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8526         it as a C struct.
8527
8528 2011-04-30  Bruno Haible  <bruno@clisp.org>
8529
8530         manywarnings: fix indentation
8531         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8532
8533 2011-04-30  Pádraig Brady <P@draigBrady.com>
8534
8535         manywarnings: add -Wno-missing-field-initializers if needed.
8536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8537         option if it's needed to allow initialization with { 0, }
8538
8539 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8540
8541         announce-gen: cosmetic improvement
8542         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8543
8544 2011-04-29  Jim Meyering  <meyering@redhat.com>
8545
8546         vc-list-files: indent with spaces, not TABs
8547         * build-aux/vc-list-files: Convert leading TABs to spaces,
8548         to match the style of most other files in gnulib.
8549
8550         announce-gen: indent with spaces, not TABs
8551         * build-aux/announce-gen: Convert all TABs to spaces, to match
8552         the style of most other files in gnulib.
8553
8554 2011-04-29  Eric Blake  <eblake@redhat.com>
8555
8556         quotearg: avoid uninitialized variable use
8557         * lib/quotearg.c (quoting_options_from_style): Initialize
8558         remaining fields, and ensure that custom styles are only used via
8559         quoting_options rather than quoting_style.
8560
8561 2011-04-29  Jim Meyering  <meyering@redhat.com>
8562
8563         maint.mk: remove unused VC-tag variable
8564         * top/maint.mk (VC-tag): Remove unused variable.
8565
8566 2011-04-29  Bruno Haible  <bruno@clisp.org>
8567
8568         netdb: fix gai_strerror replacements
8569         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8570         * modules/netdb: Substitute it.
8571
8572 2011-04-29  Jim Meyering  <meyering@redhat.com>
8573
8574         test-getcwd.c: avoid new set-but-not-used warning
8575         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8576         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8577         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8578         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8579
8580         test-hash.c: avoid a new shadowing warning
8581         * tests/test-hash.c (main): Don't shadow "dup".
8582
8583 2011-04-28  Eric Blake  <eblake@redhat.com>
8584
8585         getaddrinfo: fix gai_strerror signature
8586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8587         and work around mingw with UNICODE defined.
8588         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8589         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8590         * modules/netdb (Makefile.am): Substitute it.
8591         * lib/netdb.in.h (gai_strerror): Declare replacement.
8592         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8593         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8594         the fix.
8595
8596         getsockopt: avoid compiler warning
8597         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8598         Reported by Matthias Bolte.
8599
8600         tests: drop unused link dependency
8601         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8602         * modules/dirent-safer-tests (Makefile.am): Likewise.
8603         * modules/fdopendir-tests (Makefile.am): Likewise.
8604         * modules/mkfifoat-tests (Makefile.am): Likewise.
8605         * modules/openat-safer-tests (Makefile.am): Likewise.
8606         * modules/openat-tests (Makefile.am): Likewise.
8607         * modules/readlinkat-tests (Makefile.am): Likewise.
8608         * modules/symlinkat-tests (Makefile.am): Likewise.
8609         * modules/linkat-tests (Makefile.am): Likewise.
8610         (Depends-on): Switch to filenamecat-lgpl.
8611         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8612         LIBINTL.
8613         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8614         * tests/test-linkat.c (main): Don't require xalloc.
8615
8616         hash, mgetgroups: drop xalloc dependency
8617         * lib/hash.c (includes): Adjust includes.
8618         * lib/mgetgroups.c (includes): Likewise.
8619         (xgetgroups): Move...
8620         * lib/xgetgroups.c: ...to new file.
8621         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8622         * modules/xgetgroups: New file, split from...
8623         * modules/mgetgroups: ...here.
8624         (Depends-on): Add xalloc-oversized.
8625         * modules/hash (Depends-on): Likewise.
8626         * modules/hash-tests (Depends-on): Drop xalloc.
8627         (test_hash_LDADD): Drop unused library.
8628         * tests/test-hash.c (main): Break xalloc dependency.
8629         (includes): Drop unused include.
8630
8631         xalloc-oversized: new module
8632         * modules/xalloc-oversized: New module.
8633         * modules/xalloc (Depends-on): Add it.
8634         * lib/xalloc.h (xalloc_oversized): Move...
8635         * lib/xalloc-oversized.h: ...into new file.
8636
8637         utimecmp: drop dependency on xmalloc
8638         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8639         due to memory pressure.
8640         * modules/utimecmp (Depends-on): Drop xalloc.
8641
8642 2011-04-27  Eric Blake  <eblake@redhat.com>
8643
8644         getcwd: fix mingw bugs
8645         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8646         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8647         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8648
8649 2011-04-27  Bruno Haible  <bruno@clisp.org>
8650
8651         mkstemps: Ensure declaration on MacOS X 10.5.
8652         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8653         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8654         MacOS X.
8655
8656 2011-04-27  Bruno Haible  <bruno@clisp.org>
8657
8658         mkstemp: More documentation.
8659         * doc/posix-functions/mkstemp.texi: Document header file problem on
8660         MacOS X.
8661
8662 2011-04-27  Bruno Haible  <bruno@clisp.org>
8663
8664         mkstemp: Tweak configure message when cross-compiling.
8665         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8666         result as a guess.
8667
8668 2011-04-27  Bruno Haible  <bruno@clisp.org>
8669
8670         clean-temp: Clarify what it does.
8671         * lib/clean-temp.h: Add more comments.
8672         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8673         module.
8674         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8675         * doc/glibc-functions/mkstemps.texi: Likewise.
8676         * doc/glibc-functions/mkostemps.texi: Likewise.
8677
8678 2011-04-27  Eric Blake  <eblake@redhat.com>
8679
8680         fchdir: avoid extra chdir and fix test
8681         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8682         getcwd-lgpl.
8683         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8684         have to be canonical.
8685         (canonicalize_file_name): Drop unused macro.
8686         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8687
8688         filenamecat-lgpl: fix licence
8689         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8690         when it was first created.
8691
8692         linkat, renameat: add missing dependency
8693         * modules/linkat (Depends-on): Require getcwd-lgpl.
8694         * modules/renameat (Depends-on): Likewise.
8695
8696         tests: reduce dependencies
8697         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8698         * tests/test-renameat.c (main): Likewise.
8699         * modules/linkat-tests (Depends-on): Relax dependency.
8700         * modules/renameat-tests (Depends-on): Likewise.
8701         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8702         dependency explicit.
8703
8704         save-cwd: reduce default dependency
8705         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8706         * lib/save-cwd.c: Update comments.
8707         * NEWS: Document the semantic change.
8708
8709         getcwd: enhance tests
8710         * tests/test-getcwd-lgpl.c: New file, taken from...
8711         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8712         repeat long path stress tests from m4 probe.
8713         * modules/getcwd-lgpl-tests: New module.
8714         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8715         * m4/getcwd-abort-bug.m4: Update comment.
8716         * m4/getcwd-path-max.m4: Likewise.
8717
8718         getcwd-lgpl: new module
8719         * modules/getcwd-lgpl: New module.
8720         * lib/getcwd-lgpl.c: New file.
8721         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8722         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8723         * modules/getcwd (configure.ac): Set C witness.
8724         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8725
8726         getcwd: tweak comments
8727         * m4/getcwd-abort-bug.m4: Fix comments.
8728         * m4/getcwd-path-max.m4: Likewise.
8729         * m4/getcwd.m4: Likewise.
8730
8731 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8732         and Eric Blake  <eblake@redhat.com>
8733
8734         mkstemp: replace if system version uses wrong permissions
8735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8736         read/write mode bits set in file created by mkstemp.
8737         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8738
8739 2011-04-27  Eric Blake  <eblake@redhat.com>
8740
8741         passfd: avoid compiler warning
8742         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8743         Reported by Laine Stump.
8744
8745 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8746
8747         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8748         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8749
8750 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8751         and Eric Blake  <eblake@redhat.com>
8752
8753         mkstemp: mention clean-temp module
8754         * lib/mkstemp.c: Add comment.
8755         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8756
8757 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8758
8759         inttypes: also provide default values for 32-bit tests
8760         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8761         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8762
8763 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8764
8765         strtoumax: remove dependency on strtoimax
8766         This is like the strtoull change of yesterday.
8767         * modules/strtoumax (Files): Add lib/strtoimax.c.
8768         (Depends-on): Remove strtoimax and add verify.
8769
8770         inttypes-incomplete: new module
8771         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8772         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8773         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8774         of gl_INTTYPES_H.
8775         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8776         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8777         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8778         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8779         * modules/strtoumax, modules/xstrtol (Depends-on):
8780         Depend on inttypes-incomplete, not inttypes.
8781         * modules/inttypes-incomplete: New module, containing the contents
8782         of the old modules/inttypes module, except that the Files: section
8783         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8784         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8785         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8786         (Depends-on): Depend only on inttypes-incomplete.
8787         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8788
8789         inttypes: omit now-redundant strtoimax and strtoumax work
8790         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8791         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8792
8793         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8794         This supports apps that need pointers to strtoimax and strtoumax,
8795         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8796         nonexistent functions.  See
8797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8798         et seq.
8799         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8800         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8801         a macro.
8802         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8803
8804 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8805
8806         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8807
8808 2011-04-25  Bruno Haible  <bruno@clisp.org>
8809
8810         strtol, strtoul: Mark modules as obsolete.
8811         * modules/strtol (Status, Notice): New sections.
8812         * modules/strtoul (Status, Notice): New sections.
8813
8814 2011-04-25  Bruno Haible  <bruno@clisp.org>
8815
8816         strtod: Remove check for strtod, unless supporting old platforms.
8817         * modules/strtod-obsolete: New file.
8818         * m4/strtod-obsolete.m4: New file.
8819         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8820         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8821         * modules/strtod (Depends-on): Add strtod-obsolete.
8822         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8823
8824 2011-04-25  Bruno Haible  <bruno@clisp.org>
8825
8826         strcase: Make module obsolete.
8827         * modules/strcase (Status, Notice): New sections.
8828
8829 2011-04-25  Bruno Haible  <bruno@clisp.org>
8830
8831         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8832         * modules/dup2-obsolete: New file.
8833         * m4/dup2-obsolete.m4: New file.
8834         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8835         gl_FUNC_DUP2_OBSOLETE is not also defined.
8836         * modules/dup2 (Depends-on): Add dup2-obsolete.
8837         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8838
8839 2011-04-25  Bruno Haible  <bruno@clisp.org>
8840
8841         strnlen: Avoid memchr related link error on old obsolete platforms.
8842         * modules/memchr-obsolete: New file.
8843         * m4/memchr-obsolete.m4: New file.
8844         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8845         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8846         * modules/memchr (Depends-on): Add memchr-obsolete.
8847         * modules/strnlen (Depends-on): Likewise.
8848         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8849
8850 2011-04-25  Jim Meyering  <meyering@redhat.com>
8851
8852         maint.mk: makefile_at_at_check extend and clean up
8853         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8854         in addition to */Makefile.am.
8855         Exempt legitimate uses of @VAR@ notation, e.g.,
8856         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8857         Remove obsolete coreutils-specific comment.
8858         Prompted by discussion here:
8859         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8860
8861 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8862
8863         strtoul: remove dependency on strtol
8864         This is so that 'configure' need not check for strtol merely because
8865         the application needs strtoul.
8866         * modules/strtoul (Files): Add lib/strtol.c.
8867         (Depends-on): Remove strtol.
8868
8869         strtoull: remove dependency on strtoul
8870         This is like the strtoll change.
8871         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8872         (Depends-on): Remove strtoul.
8873
8874         strtoll: remove dependency on strtol
8875         This is so that 'configure' need not check for strtol merely because
8876         the application needs strtoll.
8877         * modules/strtoll (Files): Add lib/strtol.c.
8878         (Depends-on): Remove strtol.
8879
8880 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8881
8882         inttypes: Move some configure check to module 'imaxdiv'.
8883         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8884         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8885         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8886
8887 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8888
8889         inttypes: Move some configure check to module 'imaxabs'.
8890         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8891         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8892         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8893
8894 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         inttypes: Remove configure tests that are not needed since 2009-12-31.
8897         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8898         gl_cv_header_working_inttypes_h.
8899
8900 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8901
8902         * modules/strnlen (Depends-on): Remove memchr.
8903         The strnlen implementation doesn't need the memchr module's fixes; see
8904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8905
8906         strtol: remove dependency on wchar
8907         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8908         * modules/strtol (Depends-on): Remove wchar.
8909
8910 2011-04-21  Eric Blake  <eblake@redhat.com>
8911
8912         passfd: fix test regression on Linux
8913         * modules/passfd-tests (configure.ac): Correct socketpair check.
8914
8915         passfd: speed up configure and drop unused code
8916         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8917         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8918         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8919         Instead of probing at configure for unix_scm_rights_bsd44_way,
8920         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8921         check to a struct member probe.
8922         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8923         (sendfd, recvfd): Update preprocessor checks.
8924         * modules/passfd (Files): Reflect rename, and drop unused file.
8925         (Depends-on): Drop unused dependency.
8926
8927         passfd: allow compilation on mingw
8928         * modules/sys_socket (Depends-on): Add sys_uio.
8929         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8930         iovec and a minimal struct msghdr.
8931         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8932         * tests/test-sys_socket.c (main): Enhance test.
8933         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8934         guaranteed to provide what we need.
8935         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8936         * modules/passfd-tests (Depends-on): Add sys_wait.
8937         * tests/test-passfd.c (main): Skip test on mingw, for now.
8938         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8939         partial 'struct msghdr' implementation.
8940
8941         sys_uio: new module
8942         * modules/sys_uio: New module.
8943         * modules/sys_uio-tests: Likewise.
8944         * lib/sys_uio.in.h: New file.
8945         * m4/sys_uio_h.m4: Likewise.
8946         * tests/test-sys_uio.c: Likewise.
8947         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8948         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8949
8950 2011-04-20  Jim Meyering  <meyering@redhat.com>
8951
8952         useless-if-before-free: avoid false-positive
8953         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8954         disjunct so that it too requires a terminating ";".  Without that,
8955         this script would identify as useless one statement from gcc that
8956         was not:
8957           if (aligned_ptr)
8958             free (((void **) aligned_ptr) [-1]);
8959
8960 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8961
8962         doc: update users.txt.
8963         * users.txt: Add barcode.
8964
8965 2011-04-19  Bruno Haible  <bruno@clisp.org>
8966
8967         ioctl: Remove link dependency on native Windows.
8968         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8969         (gl_close_fn, gl_ioctl_fn): New types.
8970         (struct fd_hook): Renamed from struct close_hook. Change type of
8971         private_close_fn field. Add private_ioctl_fn field.
8972         (close_hook_fn): Add parameter for primary close method.
8973         (execute_close_hooks, execute_all_close_hooks): Likewise.
8974         (ioctl_hook_fn): New type.
8975         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8976         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8977         argument.
8978         (unregister_fd_hook): Renamed from unregister_close_hook.
8979         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8980         Don't include <unistd.h>.
8981         (close): Remove undef.
8982         (anchor): Update.
8983         (execute_close_hooks): Add argument for primary close method.
8984         (execute_all_close_hooks): Likewise.
8985         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8986         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8987         argument. Allow each argument to be NULL.
8988         (unregister_fd_hook): Renamed from unregister_close_hook.
8989         * lib/close.c (rpl_close): Pass 'close' function pointer to
8990         execute_all_close_hooks.
8991         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8992         (primary_ioctl): New function.
8993         (ioctl): Don't call ioctlsocket here. Instead, call
8994         execute_all_ioctl_hooks.
8995         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8996         close method.
8997         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8998         (fd_sockets_hook): Renamed from close_sockets_hook.
8999         (gl_sockets_startup, gl_sockets_cleanup): Update.
9000         * modules/fd-hook: Renamed from modules/close-hook. Update.
9001         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9002         * modules/sockets (Depends-on): Likewise.
9003         * modules/ioctl (Depends-on): Add fd-hook.
9004         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9005         GNULIB_SOCKET.
9006
9007 2011-04-19  Bruno Haible  <bruno@clisp.org>
9008
9009         Move the support of O_NONBLOCK in open() to the 'open' module.
9010         * modules/nonblocking (Depends-on): Remove 'open'.
9011         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9012         gl_cv_have_open_O_NONBLOCK.
9013         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9014         O_NONBLOCK support.
9015         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9016
9017 2011-04-17  Bruno Haible  <bruno@clisp.org>
9018
9019         pipe2: Simplify code.
9020         * lib/pipe2.c (pipe2): Reduce code duplication.
9021
9022 2011-04-17  Bruno Haible  <bruno@clisp.org>
9023
9024         nonblocking: Add comment.
9025         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9026
9027 2011-04-17  Bruno Haible  <bruno@clisp.org>
9028
9029         nonblocking: Add tests for sockets.
9030         * tests/test-nonblocking-socket.sh: New file.
9031         * tests/test-nonblocking-socket-main.c: New file.
9032         * tests/test-nonblocking-socket-child.c: New file.
9033         * tests/test-nonblocking-socket.h: New file.
9034         * tests/socket-server.h: New file.
9035         * tests/socket-client.h: New file.
9036         * modules/nonblocking-socket-tests: New file.
9037         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9038
9039 2011-04-17  Bruno Haible  <bruno@clisp.org>
9040
9041         nonblocking: Add tests for pipes.
9042         * tests/test-nonblocking-pipe.sh: New file.
9043         * tests/test-nonblocking-pipe-main.c: New file.
9044         * tests/test-nonblocking-pipe-child.c: New file.
9045         * tests/test-nonblocking-pipe.h: New file.
9046         * tests/test-nonblocking-writer.h: New file.
9047         * tests/test-nonblocking-reader.h: New file.
9048         * tests/test-nonblocking-misc.h: New file.
9049         * modules/nonblocking-pipe-tests: New file.
9050         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9051
9052 2011-04-16  Bruno Haible  <bruno@clisp.org>
9053
9054         gettext: Clarify the needed programmer actions.
9055         * modules/gettext (Notice): New field.
9056         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9057
9058 2011-04-16  Bruno Haible  <bruno@clisp.org>
9059
9060         strchrnul: Tweak last commit.
9061         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9062         bug.
9063         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9064         as in _GL_FUNCDECL_SYS.
9065         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9066         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9067
9068 2011-04-15  Eric Blake  <eblake@redhat.com>
9069
9070         strchrnul: work around cygwin bug
9071         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9072         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9074         * modules/string (Makefile.am): Substitute it.
9075         * lib/string.in.h (strchrnul): Use it.
9076
9077 2011-04-15  Bruno Haible  <bruno@clisp.org>
9078
9079         Don't require lib/stdio-write.c when only module 'stdio' is used.
9080         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9081         invocation.
9082         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9083
9084 2011-04-14  Bruno Haible  <bruno@clisp.org>
9085
9086         Support non-blocking pipe I/O in read() on native Windows.
9087         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9088         (read): New declaration.
9089         * lib/read.c: New file.
9090         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9091         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9092         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9093         vscanf): New declarations.
9094         * lib/stdio-read.c: New file.
9095         * m4/read.m4: New file.
9096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9097         REPLACE_READ.
9098         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9099         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9100         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9101         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9102         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9103         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9104         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9105         * modules/read: New file.
9106         * modules/nonblocking (Files): Add lib/stdio-read.c.
9107         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9108         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9109         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9110         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9111         * modules/pread (Depends-on): Add read.
9112         * modules/safe-read (Depends-on): Likewise.
9113         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9114         gets, scanf, vfscanf, vscanf): Verify signatures.
9115         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9116         problem with non-blocking pipes.
9117         * doc/posix-functions/fgetc.texi: Likewise.
9118         * doc/posix-functions/fgets.texi: Likewise.
9119         * doc/posix-functions/fread.texi: Likewise.
9120         * doc/posix-functions/fscanf.texi: Likewise.
9121         * doc/posix-functions/getc.texi: Likewise.
9122         * doc/posix-functions/getchar.texi: Likewise.
9123         * doc/posix-functions/gets.texi: Likewise.
9124         * doc/posix-functions/scanf.texi: Likewise.
9125         * doc/posix-functions/vfscanf.texi: Likewise.
9126         * doc/posix-functions/vscanf.texi: Likewise.
9127
9128 2011-04-14  Bruno Haible  <bruno@clisp.org>
9129
9130         Support non-blocking pipe I/O in write() on native Windows.
9131         * lib/write.c (rpl_write): Split a write request that failed merely
9132         because the byte count was larger than the pipe buffer's size.
9133         * doc/posix-functions/write.texi: Mention the problem with large byte
9134         counts.
9135
9136 2011-04-14  Bruno Haible  <bruno@clisp.org>
9137
9138         wchar: Ensure that wchar_t gets defined on uClibc.
9139         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9140         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9141
9142 2011-04-13  Bruno Haible  <bruno@clisp.org>
9143
9144         safe-write, full-read: Avoid unnecessary compilation units.
9145         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9146         (Depends-on): Remove safe-read. Add ssize_t.
9147         * modules/full-read (Files): Add lib/full-write.c.
9148         (Depends-on): Add full-write.
9149
9150 2011-04-13  Bruno Haible  <bruno@clisp.org>
9151
9152         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9153         * modules/pwrite (Depends-on): Add 'write'.
9154
9155 2011-04-13  Bruno Haible  <bruno@clisp.org>
9156
9157         Support non-blocking pipe I/O in write() on native Windows.
9158         * lib/unistd.in.h (write): Enable replacement also if
9159         GNULIB_UNISTD_H_NONBLOCKING is 1.
9160         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9161         (rpl_write): When failing to write on a non-blocking pipe, change
9162         errno from ENOSPC to EAGAIN.
9163         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9164         putchar, puts, vfprintf, vprintf): Enable replacement also if
9165         GNULIB_STDIO_H_NONBLOCKING is 1.
9166         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9167         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9168         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9169         CALL_WITH_SIGPIPE_EMULATION.
9170         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9171         * m4/nonblocking.m4: New file.
9172         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9173         for non-blocking I/O support.
9174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9175         GNULIB_UNISTD_H_NONBLOCKING.
9176         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9177         required for non-blocking I/O support.
9178         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9179         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9180         lib/stdio-write.c, m4/asm-underscore.m4.
9181         (Depends-on): Add stdio, unistd.
9182         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9183         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9184         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9185         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9186         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9187         problem with non-blocking pipes.
9188         * doc/posix-functions/fputc.texi: Likewise.
9189         * doc/posix-functions/fputs.texi: Likewise.
9190         * doc/posix-functions/fwrite.texi: Likewise.
9191         * doc/posix-functions/printf.texi: Likewise.
9192         * doc/posix-functions/putc.texi: Likewise.
9193         * doc/posix-functions/putchar.texi: Likewise.
9194         * doc/posix-functions/puts.texi: Likewise.
9195         * doc/posix-functions/vfprintf.texi: Likewise.
9196         * doc/posix-functions/vprintf.texi: Likewise.
9197         * doc/posix-functions/write.texi: Likewise.
9198
9199 2011-04-10  Jim Meyering  <meyering@redhat.com>
9200
9201         maint.mk: prohibit doubled words
9202         Detect them also when they're separated by a newline.
9203         There are 3 ways to customize it:
9204           - disable the test on a per file basis, as usual with rules using
9205             $(VC_LIST_EXCEPT)
9206           - replace the default doubled-word-selecting regexp (affects all files)
9207           - ignore a particular file-vs-doubled-word match
9208         I nearly used that last one to ignore the "is is" match in
9209         coreutils' NEWS file, since the text was "ls -is is ..."
9210         To do that, I would have added this line to cfg.mk:
9211           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9212         but it would have ignored any "is is" match in NEWS.
9213         Low probability, but still...
9214         Instead, I changed the text, slightly:
9215           -  ls -is is now consistent with ls -lis in ignoring values returned
9216           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9217         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9218         (prohibit_doubled_word_): Define.
9219         (sc_prohibit_doubled_word): New rule.
9220         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9221
9222 2011-04-10  Jim Meyering  <meyering@redhat.com>
9223
9224         maint: fix doubled-word typo in comment
9225         * m4/gethostname.m4: s/is is/it is/
9226         * m4/getdomainname.m4: Likewise.
9227
9228 2011-04-10  Jim Meyering  <meyering@redhat.com>
9229
9230         maint: remove doubled word: s/it it/it/
9231         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9232
9233 2011-04-10  Jim Meyering  <meyering@redhat.com>
9234
9235         maint.mk: remove useless semicolon and backslash
9236         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9237         semicolon and backslash.
9238
9239 2011-04-10  Bruno Haible  <bruno@clisp.org>
9240
9241         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9242         * modules/stdint-tests (Depends-on): Add wchar.
9243
9244 2011-04-10  Jim Meyering  <meyering@redhat.com>
9245
9246         maint: remove doubled words in comments, e.g., s/a a/a/
9247         * lib/strptime.c (day_of_the_week): s/the the/the/
9248         * tests/test-chown.h (test_chown): s/a a/a/
9249
9250         test-chown.h: correct a cast
9251         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9252         when the destination is a stat.st_gid.
9253
9254 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9255
9256         getaddrinfo: Fix test for sa_len member.
9257         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9258         include <sys/types.h> before <sys/socket.h>.
9259
9260 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9261
9262         maint: change "can not" to "cannot"
9263         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9264         boundaries.
9265
9266 2011-04-09  Jim Meyering  <meyering@redhat.com>
9267
9268         maint: change "a a" to "a"
9269         * tests/test-lchown.h (test_lchown): s/a a/a/
9270
9271         maint.mk: prohibit \<the the\>
9272         * top/maint.mk (sc_prohibit_the_the): New rule.
9273
9274         maint: fix "the the" in comment
9275         * lib/count-one-bits.h: s/the the/the/
9276
9277         maint: change "can not" to "cannot"
9278         But do not change the occurrences in maintain.texi or in
9279         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9280         * doc/gnulib-tool.texi: s/can not/cannot/
9281         * doc/posix-functions/accept.texi (accept): Likewise.
9282         * doc/posix-functions/socket.texi (socket): Likewise.
9283         * lib/mbrtowc.c: Likewise.
9284
9285         maint.mk: prohibit use of "can not"
9286         * top/maint.mk (sc_prohibit_can_not): New rule.
9287         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9288
9289 2011-04-09  Bruno Haible  <bruno@clisp.org>
9290
9291         careadlinkat: Guard against misuse of careadlinkatcwd.
9292         * lib/careadlinkat.c: Include <stdlib.h>.
9293         (careadlinkatcwd): Check that the fd argument is as expected.
9294
9295 2011-04-09  Bruno Haible  <bruno@clisp.org>
9296
9297         careadlinkat: Use common coding style.
9298         * lib/careadlinkat.c: Move gnulib includes after system includes.
9299
9300 2011-04-09  Bruno Haible  <bruno@clisp.org>
9301
9302         careadlinkat: Clarify specification.
9303         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9304         (careadlinkatcwd): Add comment.
9305         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9306
9307 2011-04-09  Bruno Haible  <bruno@clisp.org>
9308
9309         areadlinkat: Avoid link error on many platforms.
9310         * modules/areadlinkat (Depends-on): Add areadlink.
9311
9312 2011-04-09  Bruno Haible  <bruno@clisp.org>
9313
9314         allocator, careadlinkat: Fix double-inclusion guard.
9315         * lib/allocator.h: Fix double-inclusion guard.
9316         * lib/careadlinkat.h: Likewise.
9317
9318 2011-04-09  Bruno Haible  <bruno@clisp.org>
9319
9320         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9321         * lib/relocwrapper.c: Update dependencies hierarchy.
9322         * build-aux/install-reloc: Update list of files to be compiled.
9323         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9324         lib/allocator.[hc].
9325
9326 2011-04-08  Eric Blake  <eblake@redhat.com>
9327
9328         strftime: silence gnulib-tool warning
9329         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9330
9331 2011-04-08  Bruno Haible  <bruno@clisp.org>
9332
9333         verify: Fix syntax error with GCC 4.6 in C++ mode.
9334         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9335         (HAVE_STATIC_ASSERT): New macro.
9336         (verify_true, verify): Use 'static_assert' if it is supported and
9337         '_Static_assert' is not supported.
9338
9339 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9340
9341         allocator: New module.
9342         * modules/allocator, lib/allocator.c: New files.
9343         * lib/allocator.h (stdlib_allocator): New decl.
9344         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9345         Remove.  Do not include <stdlib.h>.
9346         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9347         * modules/careadlinkat (Files): Remove lib/allocator.h.
9348         (Depends-on): Add allocator.
9349
9350         stdlib: let modules use system malloc, realloc
9351         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9352         if !_GL_USE_STDLIB_ALLOC.
9353         (malloc, realloc): Limit this change to a smaller scope.
9354
9355         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9356         (malloc, realloc): Don't #undef; no longer needed.
9357         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9358         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9359         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9360         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9361         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9362         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9363         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9364         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9365
9366         careadlinkat: rename members to avoid problem
9367         * lib/allocator.h (struct allocator): Rename members from
9368         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9369         and realloc are #define'd.  Reported by Eric Blake in
9370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9371         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9372
9373 2011-04-08  Eric Blake  <eblake@redhat.com>
9374
9375         nonblocking: reduce dependency
9376         * tests/test-nonblocking.c: Only test sockets when in use.
9377         * modules/nonblocking-tests (Depends-on): Drop socket.
9378         (Makefile.am): Link even if sockets are not present.
9379         * modules/pipe2-tests (Makefile.am): Likewise.
9380         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9381
9382         pipe2: fix O_NONBLOCK support on mingw
9383         * modules/pipe2 (Depends-on): Add nonblocking.
9384         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9385         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9386         * tests/test-nonblocking.c (main): Likewise.
9387         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9388
9389         fcntl-h: fix O_ACCMODE on cygwin
9390         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9391         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9392
9393         pipe-filter: drop O_NONBLOCK workarounds
9394         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9395         * modules/pipe-filter-ii (Depends-on): Likewise.
9396         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9397
9398         nonblocking: provide O_NONBLOCK for mingw
9399         * modules/nonblocking (Depends-on): Add open.
9400         (configure.ac): Set new witness macro.
9401         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9402         * modules/fcntl-h (Makefile.am): Substitute it.
9403         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9404         nonblocking module is in use.
9405         * lib/nonblocking.c: Adjust portability test.
9406         * lib/open.c (open): Don't let native open see gnulib flag.
9407         * tests/test-fcntl-h.c (main): Enhance test.
9408         * tests/test-open.h (test_open): Likewise.
9409         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9410
9411         careadlinkat: fix compilation error on mingw
9412         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9413         within struct allocator.
9414
9415 2011-04-06  Eric Blake  <eblake@redhat.com>
9416
9417         binary-io: relicense under LGPLv2+
9418         * modules/binary-io (License): Relax to LGPLv2+.
9419         Requested for libvirt, and required by pipe2.
9420
9421 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9422
9423         verify: use _Static_assert if available
9424         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9425         (verify_true, verify): Use it if available.  This generates better
9426         diagnostics with GCC 4.6.0 and later.
9427
9428 2011-04-05  Bruno Haible  <bruno@clisp.org>
9429
9430         Remove leftover generated .h files after config.status changed.
9431
9432         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9433         GL_GENERATE_ALLOCA_H.
9434         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9435         GL_GENERATE_ALLOCA_H evaluates to false.
9436
9437         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9438         GL_GENERATE_ARGZ_H.
9439         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9440         evaluates to false.
9441
9442         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9443         GL_GENERATE_BYTESWAP_H.
9444         * modules/byteswap (Makefile.am): Remove byteswap.h if
9445         GL_GENERATE_BYTESWAP_H evaluates to false.
9446
9447         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9448         GL_GENERATE_ERRNO_H.
9449         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9450         evaluates to false.
9451
9452         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9453         GL_GENERATE_FLOAT_H.
9454         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9455         evaluates to false.
9456
9457         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9458         GL_GENERATE_FNMATCH_H.
9459         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9460         GL_GENERATE_FNMATCH_H evaluates to false.
9461
9462         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9463         GL_GENERATE_GLOB_H.
9464         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9465         evaluates to false.
9466
9467         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9468         automake conditional GL_GENERATE_ICONV_H.
9469         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9470         evaluates to false.
9471
9472         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9473         GL_GENERATE_NETINET_IN_H.
9474         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9475         GL_GENERATE_NETINET_IN_H evaluates to false.
9476
9477         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9478         conditional GL_GENERATE_PTHREAD_H.
9479         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9480         * modules/pthread (Makefile.am): Remove pthread.h if
9481         GL_GENERATE_PTHREAD_H evaluates to false.
9482
9483         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9484         GL_GENERATE_SCHED_H.
9485         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9486         evaluates to false.
9487
9488         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9489         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9490         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9491         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9492
9493         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9494         GL_GENERATE_STDARG_H.
9495         * modules/stdarg (Makefile.am): Remove stdarg.h if
9496         GL_GENERATE_STDARG_H evaluates to false.
9497
9498         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9499         GL_GENERATE_STDBOOL_H.
9500         * modules/stdbool (Makefile.am): Remove stdbool.h if
9501         GL_GENERATE_STDBOOL_H evaluates to false.
9502
9503         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9504         conditional GL_GENERATE_STDDEF_H.
9505         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9506         * modules/stddef (Makefile.am): Remove stddef.h if
9507         GL_GENERATE_STDDEF_H evaluates to false.
9508
9509         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9510         GL_GENERATE_STDINT_H.
9511         * modules/stdint (Makefile.am): Remove stdint.h if
9512         GL_GENERATE_STDINT_H evaluates to false.
9513
9514         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9515         GL_GENERATE_SYSEXITS_H.
9516         * modules/sysexits (Makefile.am): Remove sysexits.h if
9517         GL_GENERATE_SYSEXITS_H evaluates to false.
9518
9519         Reported by Karl Berry and Ralf Wildenhues.
9520
9521 2011-04-05  Bruno Haible  <bruno@clisp.org>
9522
9523         Ensure to rebuild generated .h files when config.status has changed.
9524         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9525         config.status.
9526         * modules/ctype (Makefile.am): Likewise.
9527         * modules/dirent (Makefile.am): Likewise.
9528         * modules/errno (Makefile.am): Likewise.
9529         * modules/fcntl-h (Makefile.am): Likewise.
9530         * modules/float (Makefile.am): Likewise.
9531         * modules/getopt-posix (Makefile.am): Likewise.
9532         * modules/glob (Makefile.am): Likewise.
9533         * modules/iconv-h (Makefile.am): Likewise.
9534         * modules/inttypes (Makefile.am): Likewise.
9535         * modules/langinfo (Makefile.am): Likewise.
9536         * modules/locale (Makefile.am): Likewise.
9537         * modules/math (Makefile.am): Likewise.
9538         * modules/netdb (Makefile.am): Likewise.
9539         * modules/netinet_in (Makefile.am): Likewise.
9540         * modules/poll-h (Makefile.am): Likewise.
9541         * modules/pthread (Makefile.am): Likewise.
9542         * modules/pty (Makefile.am): Likewise.
9543         * modules/sched (Makefile.am): Likewise.
9544         * modules/search (Makefile.am): Likewise.
9545         * modules/selinux-h (Makefile.am): Likewise.
9546         * modules/signal (Makefile.am): Likewise.
9547         * modules/spawn (Makefile.am): Likewise.
9548         * modules/stdarg (Makefile.am): Likewise.
9549         * modules/stdbool (Makefile.am): Likewise.
9550         * modules/stddef (Makefile.am): Likewise.
9551         * modules/stdint (Makefile.am): Likewise.
9552         * modules/stdio (Makefile.am): Likewise.
9553         * modules/stdlib (Makefile.am): Likewise.
9554         * modules/string (Makefile.am): Likewise.
9555         * modules/strings (Makefile.am): Likewise.
9556         * modules/sys_file (Makefile.am): Likewise.
9557         * modules/sys_ioctl (Makefile.am): Likewise.
9558         * modules/sys_select (Makefile.am): Likewise.
9559         * modules/sys_socket (Makefile.am): Likewise.
9560         * modules/sys_stat (Makefile.am): Likewise.
9561         * modules/sys_time (Makefile.am): Likewise.
9562         * modules/sys_times (Makefile.am): Likewise.
9563         * modules/sys_utsname (Makefile.am): Likewise.
9564         * modules/sys_wait (Makefile.am): Likewise.
9565         * modules/sysexits (Makefile.am): Likewise.
9566         * modules/termios (Makefile.am): Likewise.
9567         * modules/time (Makefile.am): Likewise.
9568         * modules/unistd (Makefile.am): Likewise.
9569         * modules/wchar (Makefile.am): Likewise.
9570         * modules/wctype-h (Makefile.am): Likewise.
9571         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9572
9573 2011-04-05  Bruno Haible  <bruno@clisp.org>
9574
9575         pipe2: Relicense under LGPLv2+.
9576         * modules/pipe2 (License): Change to LGPLv2+.
9577         Requested by Eric Blake, for libvirt.
9578
9579 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9580
9581         bootstrap: compute gnulib_extra_files after updating build_aux
9582         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9583         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9584
9585 2011-04-05  Eric Blake  <eblake@redhat.com>
9586
9587         bootstrap: preserve git whitelist item sorting
9588         * build-aux/bootstrap (sort_patterns): New function.
9589         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9590
9591 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9592
9593         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9594         sc_space_tab check.
9595
9596 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         areadlink, areadlinkat: rewrite in terms of careadlinkat
9599         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9600         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9601         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9602         (malloc, realloc): Remove #undefs.
9603         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9604         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9605         readlink, ssize_t, stdint, unistd.
9606         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9607         areadlink, stdint.
9608
9609         careadlinkat: new module
9610         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9611         * modules/careadlinkat: New files, written by me with
9612         a review and feedback from Ben Pfaff in
9613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9614
9615 2011-04-01  Bruno Haible  <bruno@clisp.org>
9616
9617         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9618         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9619         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9620         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9621         Reported by Bruce Korb <bruce.korb@gmail.com>.
9622
9623 2011-04-01  Bruno Haible  <bruno@clisp.org>
9624
9625         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9626         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9627         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9628         * modules/wcpcpy (Depends-on): Add extensions.
9629         * modules/wcpncpy (Depends-on): Likewise.
9630         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9631         systems.
9632         * doc/posix-functions/wcpncpy.texi: Likewise.
9633         * doc/posix-functions/wcwidth.texi: Likewise.
9634
9635 2011-03-31  Eric Blake  <eblake@redhat.com>
9636
9637         nonblocking: fix mingw test failures
9638         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9639         non-blocking flag on regular file.
9640         (get_nonblocking_flag): Set errno on invalid fd.
9641         * tests/test-nonblocking.c (main): Avoid test failure on
9642         directories if fchdir is not active.
9643         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9644
9645 2011-03-31  Bruno Haible  <bruno@clisp.org>
9646
9647         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9648         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9649         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9650         Reported by Simon Josefsson <simon@josefsson.org>.
9651
9652 2011-03-31  Bruno Haible  <bruno@clisp.org>
9653         and Eric Blake  <eblake@redhat.com>
9654
9655         nonblocking: new module
9656         * modules/nonblocking: New module.
9657         * modules/nonblocking-tests: Likewise.
9658         * lib/nonblocking.h: New file.
9659         * lib/nonblocking.c: Likewise.
9660         * tests/test-nonblocking.c: New test.
9661         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9662
9663 2011-03-30  Bruno Haible  <bruno@clisp.org>
9664
9665         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9666         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9667         instead of 'printf' format for GCC >= 4.4.
9668         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9669         (fprintf, printf, vfprintf, vprintf): Declare with
9670         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9671         the system's vfprintf() function.
9672         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9673
9674 2011-03-30  Eric Blake  <eblake@redhat.com>
9675
9676         passfd: fix scoping bug
9677         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9678         before sendmsg/recvmsg.
9679
9680         passfd: standardize coding conventions
9681         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9682         can be learned at compile time.
9683         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9684         ifdefs.
9685         (sendfd, recvfd): Follow gnulib code conventions.
9686
9687         passfd: fix incorrect sendmsg arguments
9688         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9689         incorrect msg_controllen value.
9690         * modules/passfd-tests (Depends-on): Check for alarm.
9691         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9692         Reported by Bastien ROUCARIES.
9693
9694 2011-03-30  Bruno Haible  <bruno@clisp.org>
9695
9696         c-strcasestr: Relicense under LGPLv2+.
9697         * modules/c-strcasestr (License): Change to LGPLv2+.
9698         Requested by Eric Blake, for libvirt.
9699
9700 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9701
9702         * users.txt: Add libidn2.  Fix libtasn1 link.
9703
9704 2011-03-30  Jim Meyering  <meyering@redhat.com>
9705
9706         tests: readlink* ("",... fails with EINVAL on newer kernels
9707         readlink and readlinkat have typically failed with ENOENT for
9708         the invalid, empty file name,  "".  However, with the advent
9709         of linux-2.6.39, they fail with EINVAL.
9710         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9711         when operating on the empty file name.
9712         * tests/test-readlink.h (test_readlink): Likewise.
9713
9714 2011-03-29  Bruno Haible  <bruno@clisp.org>
9715
9716         Relicense some modules under LGPLv2+, for libidn2.
9717         * modules/array-mergesort (License): Change to LGPLv2+.
9718         * modules/c-strcaseeq (License): Likewise.
9719         * modules/striconveh (License): Likewise.
9720         * modules/striconveha (License): Likewise.
9721         * modules/uniconv/base (License): Likewise.
9722         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9723         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9724         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9725         * modules/unictype/base (License): Likewise.
9726         * modules/unictype/bidiclass-of (License): Likewise.
9727         * modules/unictype/category-M (License): Likewise.
9728         * modules/unictype/category-none (License): Likewise.
9729         * modules/unictype/category-of (License): Likewise.
9730         * modules/unictype/category-test (License): Likewise.
9731         * modules/unictype/category-test-withtable (License): Likewise.
9732         * modules/unictype/combining-class (License): Likewise.
9733         * modules/unictype/joiningtype-of (License): Likewise.
9734         * modules/unictype/scripts (License): Likewise.
9735         * modules/uninorm/base (License): Likewise.
9736         * modules/uninorm/canonical-decomposition (License): Likewise.
9737         * modules/uninorm/composition (License): Likewise.
9738         * modules/uninorm/decompose-internal (License): Likewise.
9739         * modules/uninorm/decomposition-table (License): Likewise.
9740         * modules/uninorm/nfc (License): Likewise.
9741         * modules/uninorm/nfd (License): Likewise.
9742         * modules/uninorm/u32-normalize (License): Likewise.
9743         * modules/unistr/base (License): Likewise.
9744         * modules/unistr/u32-cpy (License): Likewise.
9745         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9746         * modules/unistr/u32-to-u8 (License): Likewise.
9747         * modules/unistr/u32-uctomb (License): Likewise.
9748         * modules/unistr/u8-check (License): Likewise.
9749         * modules/unistr/u8-mblen (License): Likewise.
9750         * modules/unistr/u8-mbtouc (License): Likewise.
9751         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9752         * modules/unistr/u8-mbtoucr (License): Likewise.
9753         * modules/unistr/u8-prev (License): Likewise.
9754         * modules/unistr/u8-strlen (License): Likewise.
9755         * modules/unistr/u8-to-u32 (License): Likewise.
9756         * modules/unistr/u8-uctomb (License): Likewise.
9757         * modules/unitypes (License): Likewise.
9758         Requested by Simon Josefsson.
9759
9760 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9761
9762         lib-symbol-visibility: Add a notice.
9763         * modules/lib-symbol-visibility (Notice): New field.
9764
9765 2011-03-29  Bruno Haible  <bruno@clisp.org>
9766
9767         getaddrinfo: Doc fix.
9768         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9769         section "fixed in Gnulib".
9770
9771 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9772
9773         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9774         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9775
9776 2011-03-26  Bruno Haible  <bruno@clisp.org>
9777
9778         unictype/property-byname: Reduce the number of load-time relocations.
9779         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9780         (UC_PROPERTY_INDEX_*): New enumeration values.
9781         (uc_property_byname): Convert an index from the lookup table to an
9782         uc_property_t.
9783         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9784         values.
9785
9786 2011-03-26  Bruno Haible  <bruno@clisp.org>
9787
9788         unictype/property-byname: Allow omitted word separators and aliases.
9789         * lib/unictype/pr_byname.gperf: Add property names without word
9790         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9791         for 'space'.
9792
9793 2011-03-26  Bruno Haible  <bruno@clisp.org>
9794
9795         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9796         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9797         also hyphens to space.
9798         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9799         without spaces.
9800         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9801
9802 2011-03-26  Bruno Haible  <bruno@clisp.org>
9803
9804         unictype/joiningtype-byname: Recognize long names as well.
9805         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9806         a long name.
9807         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9808         unictype/joiningtype_byname.h.
9809         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9810         * lib/unictype/joiningtype_byname.gperf: New file.
9811         * modules/unictype/joiningtype-byname (Files): Add
9812         lib/unictype/joiningtype_byname.gperf.
9813         (Depends-on): Add gperf.
9814         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9815         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9816         long names.
9817
9818         Tests for module 'unictype/joiningtype-longname'.
9819         * modules/unictype/joiningtype-longname-tests: New file.
9820         * tests/unictype/test-joiningtype_longname.c: New file.
9821
9822         New module 'unictype/joiningtype-longname'.
9823         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9824         * lib/unictype/joiningtype_longname.c: New file.
9825         * modules/unictype/joiningtype-longname: New file.
9826         * modules/unictype/joiningtype-all (Depends-on): Add
9827         unictype/joiningtype-longname.
9828
9829 2011-03-26  Bruno Haible  <bruno@clisp.org>
9830
9831         unictype/bidiclass-byname: Recognize long names as well.
9832         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9833         name.
9834         * lib/unictype/bidi_byname.c: Include <string.h>,
9835         unictype/bidi_byname.h.
9836         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9837         * lib/unictype/bidi_byname.gperf: New file.
9838         * modules/unictype/bidiclass-byname (Files): Add
9839         lib/unictype/bidi_byname.gperf.
9840         (Depends-on): Add gperf.
9841         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9842         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9843         long names.
9844
9845         Tests for module 'unictype/bidiclass-longname'.
9846         * modules/unictype/bidiclass-longname-tests: New file.
9847         * tests/unictype/test-bidi_longname.c: New file.
9848
9849         New module 'unictype/bidiclass-longname'.
9850         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9851         * lib/unictype/bidi_longname.c: New file.
9852         * modules/unictype/bidiclass-longname: New file.
9853         * modules/unictype/bidiclass-all (Depends-on): Add
9854         unictype/bidiclass-longname.
9855
9856 2011-03-26  Bruno Haible  <bruno@clisp.org>
9857
9858         unictype/bidi*: Rename modules.
9859         * modules/unictype/bidiclass-all: Renamed from
9860         modules/unictype/bidicategory-all.
9861         * modules/unictype/bidiclass-name: Renamed from
9862         modules/unictype/bidiclass-name.
9863         (Description): Update.
9864         * modules/unictype/bidiclass-name-tests: Renamed from
9865         modules/unictype/bidicategory-name-tests.
9866         * modules/unictype/bidiclass-byname: Renamed from
9867         modules/unictype/bidicategory-byname.
9868         (Description): Update.
9869         * modules/unictype/bidiclass-byname-tests: Renamed from
9870         modules/unictype/bidicategory-byname-tests.
9871         * modules/unictype/bidiclass-of: Renamed from
9872         modules/unictype/bidicategory-of.
9873         (Description): Update.
9874         * modules/unictype/bidiclass-of-tests: Renamed from
9875         modules/unictype/bidicategory-of-tests.
9876         * modules/unictype/bidiclass-test: Renamed from
9877         modules/unictype/bidicategory-test.
9878         (Description): Update.
9879         * modules/unictype/bidiclass-test-tests: Renamed from
9880         modules/unictype/bidicategory-test-tests.
9881         * modules/unictype/bidicategory-all: New file, a simple redirection.
9882         * modules/unictype/bidicategory-name: Likewise.
9883         * modules/unictype/bidicategory-byname: Likewise.
9884         * modules/unictype/bidicategory-of: Likewise.
9885         * modules/unictype/bidicategory-test: Likewise.
9886         * modules/unictype/property-bidi-* (Dependencies): Update.
9887         * lib/unictype/bidi_*.c: Update comment.
9888
9889 2011-03-26  Bruno Haible  <bruno@clisp.org>
9890
9891         unictype/bidi*: Rename functions, part 2.
9892         * modules/unictype/bidicategory-name (configure.ac): Update required
9893         libunistring version.
9894         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9895
9896 2011-03-25  Bruno Haible  <bruno@clisp.org>
9897
9898         New module 'unictype/combining-class-all'.
9899         * modules/unictype/combining-class-all: New file.
9900
9901         Tests for module 'unictype/combining-class-byname'.
9902         * modules/unictype/combining-class-byname-tests: New file.
9903         * tests/unictype/test-combiningclass_byname.c: New file.
9904
9905         New module 'unictype/combining-class-byname'.
9906         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9907         * lib/unictype/combiningclass_byname.c: New file.
9908         * lib/unictype/combiningclass_byname.gperf: New file.
9909         * modules/unictype/combining-class-byname: New file.
9910
9911         Tests for module 'unictype/combining-class-longname'.
9912         * modules/unictype/combining-class-longname-tests: New file.
9913         * tests/unictype/test-combiningclass_longname.c: New file.
9914
9915         New module 'unictype/combining-class-longname'.
9916         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9917         * lib/unictype/combiningclass_longname.c: New file.
9918         * modules/unictype/combining-class-longname: New file.
9919
9920         Tests for module 'unictype/combining-class-name'.
9921         * modules/unictype/combining-class-name-tests: New file.
9922         * tests/unictype/test-combiningclass_name.c: New file.
9923
9924         New module 'unictype/combining-class-name'.
9925         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9926         * lib/unictype/combiningclass_name.c: New file.
9927         * modules/unictype/combining-class-name: New file.
9928
9929 2011-03-25  Bruno Haible  <bruno@clisp.org>
9930
9931         unictype/combining-class: Rename source files.
9932         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9933         of unictype/combining.h.
9934         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9935         Update.
9936         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9937         * modules/unictype/combining-class (Description): Fix.
9938         (Files, Makefile.am): Update.
9939         * tests/unictype/test-combiningclass.c: Renamed from
9940         tests/unictype/test-combining.c.
9941         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9942
9943 2011-03-25  Bruno Haible  <bruno@clisp.org>
9944
9945         unictype: Update list of canonical combining classes.
9946         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9947
9948 2011-03-25  Bruno Haible  <bruno@clisp.org>
9949
9950         unictype/category-byname: Recognize long names as well.
9951         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9952         a long name.
9953         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9954         unictype/categ_byname.h.
9955         (UC_CATEGORY_INDEX_*): New enumeration values.
9956         (uc_general_category_byname): Use uc_general_category_lookup and
9957         convert from index to value.
9958         * lib/unictype/categ_byname.gperf: New file.
9959         * modules/unictype/category-byname (Files): Add
9960         lib/unictype/categ_byname.gperf.
9961         (Depends-on): Add gperf.
9962         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9963         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9964         long names.
9965
9966         Tests for module 'unictype/category-longname'.
9967         * modules/unictype/category-longname-tests: New file.
9968         * tests/unictype/test-categ_longname.c: New file.
9969
9970         New module 'unictype/category-longname'.
9971         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9972         * lib/unictype/categ_longname.c: New file.
9973         * modules/unictype/category-longname: New file.
9974         * modules/unictype/category-all (Depends-on): Add it.
9975
9976 2011-03-25  Bruno Haible  <bruno@clisp.org>
9977
9978         Tests for module 'unictype/category-LC'.
9979         * modules/unictype/category-LC-tests: New file.
9980         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9981
9982         New module 'unictype/category-LC'.
9983         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9984         (UC_CATEGORY_LC): New declaration.
9985         (UC_CASED_LETTER): New macro.
9986         * lib/gen-uni-tables.c (is_category_LC): New function.
9987         (output_categories): Also handle category LC.
9988         (UC_CATEGORY_MASK_LC): New enumeration value.
9989         (general_category_byname): Also handle category LC.
9990         * lib/unictype/categ_LC.c: New file.
9991         * lib/unictype/categ_LC.h: New file, automatically generated.
9992         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9993         category LC.
9994         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9995         * modules/unictype/category-LC: New file.
9996         * modules/unictype/category-byname (Depends-on): Add
9997         unictype/category-LC.
9998         * modules/unictype/category-all (Depends-on): Likewise.
9999
10000 2011-03-25  Eric Blake  <eblake@redhat.com>
10001
10002         xmalloc: revert yesterday's regression
10003         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10004         realloc's underlying behavior (allowing allocation of zero-size
10005         objects, especially if malloc-gnu is also in use).
10006
10007 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10008
10009         maint.mk: add missing version to VC-tag
10010         * top/maint.mk: git tag was missing actual tag name; add it.
10011
10012         valgrind: do leak checking, and exit with code 1 on error (not 0)
10013         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10014         to VALGRIND.
10015
10016 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10017
10018         posix-modules: say what it does.
10019         * posix-modules: Add a line to the --help output saying what it does.
10020
10021 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10022
10023         xmalloc: Do not leak if underlying realloc is C99 compatible.
10024         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10025         This avoids a leak on C99-based systems.  See
10026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10027
10028 2011-03-24  Eric Blake  <eblake@redhat.com>
10029
10030         realloc: document portability problem
10031         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10032         passing 0 size to realloc.
10033
10034 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10035
10036         doc: update users.txt
10037         * users.txt: Add cvsps, tmpwatch
10038
10039 2011-03-23  Matt Rice  <ratmice@gmail.com>
10040
10041         doc: update users.txt
10042         * users.txt: Add gdb.
10043
10044 2011-03-23  Jim Meyering  <meyering@redhat.com>
10045
10046         doc: update users.txt
10047         Looking through matches up to the following URL (there are still
10048         several more pages), I found several projects that use gnulib:
10049         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10050         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10051         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10052
10053 2011-03-22  Bruno Haible  <bruno@clisp.org>
10054
10055         unictype/bidi*: Rename functions.
10056         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10057         uc_bidi_class, uc_is_bidi_class): New declarations.
10058         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10059         uc_bidi_category_byname.
10060         (uc_bidi_category_byname): New function.
10061         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10062         u_bidi_category_name.
10063         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10064         (uc_bidi_category_name): New function.
10065         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10066         uc_bidi_category.
10067         (uc_bidi_category): New function.
10068         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10069         uc_is_bidi_category. Invoke uc_bidi_class.
10070         (uc_is_bidi_category): New function.
10071         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10072         instead of uc_bidi_category_byname.
10073         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10074         instead of uc_bidi_category_name.
10075         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10076         uc_bidi_category.
10077         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10078         instead of uc_is_bidi_category.
10079
10080 2011-03-21  Bruno Haible  <bruno@clisp.org>
10081
10082         New module 'unictype/joininggroup-all'.
10083         * modules/unictype/joininggroup-all: New file.
10084
10085         Tests for module 'unictype/joininggroup-of'.
10086         * modules/unictype/joininggroup-of-tests: New file.
10087         * tests/unictype/test-joininggroup_of.c: New file.
10088         * tests/unictype/test-joininggroup_of.h: New file, automatically
10089         generated by gen-uni-tables.
10090
10091         New module 'unictype/joininggroup-of'.
10092         * modules/unictype/joininggroup-of: New file.
10093         * lib/unictype/joininggroup_of.c: New file.
10094         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10095         gen-uni-tables.
10096
10097         Tests for module 'unictype/joininggroup-byname'.
10098         * modules/unictype/joininggroup-byname-tests: New file.
10099         * tests/unictype/test-joininggroup_byname.c: New file.
10100
10101         New module 'unictype/joininggroup-byname'.
10102         * modules/unictype/joininggroup-byname: New file.
10103         * lib/unictype/joininggroup_byname.c: New file.
10104         * lib/unictype/joininggroup_byname.gperf: New file.
10105
10106         Tests for module 'unictype/joininggroup-name'.
10107         * modules/unictype/joininggroup-name-tests: New file.
10108         * tests/unictype/test-joininggroup_name.c: New file.
10109
10110         New module 'unictype/joininggroup-name'.
10111         * modules/unictype/joininggroup-name: New file.
10112         * lib/unictype/joininggroup_name.c: New file.
10113         * lib/unictype/joininggroup_name.h: New file.
10114
10115         New module 'unictype/joiningtype-all'.
10116         * modules/unictype/joiningtype-all: New file.
10117
10118         Tests for module 'unictype/joiningtype-of'.
10119         * modules/unictype/joiningtype-of-tests: New file.
10120         * tests/unictype/test-joiningtype_of.c: New file.
10121         * tests/unictype/test-joiningtype_of.h: New file, automatically
10122         generated by gen-uni-tables.
10123
10124         New module 'unictype/joiningtype-of'.
10125         * modules/unictype/joiningtype-of: New file.
10126         * lib/unictype/joiningtype_of.c: New file.
10127         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10128         gen-uni-tables.
10129
10130         Tests for module 'unictype/joiningtype-byname'.
10131         * modules/unictype/joiningtype-byname-tests: New file.
10132         * tests/unictype/test-joiningtype_byname.c: New file.
10133
10134         New module 'unictype/joiningtype-byname'.
10135         * modules/unictype/joiningtype-byname: New file.
10136         * lib/unictype/joiningtype_byname.c: New file.
10137
10138         Tests for module 'unictype/joiningtype-name'.
10139         * modules/unictype/joiningtype-name-tests: New file.
10140         * tests/unictype/test-joiningtype_name.c: New file.
10141
10142         New module 'unictype/joiningtype-name'.
10143         * modules/unictype/joiningtype-name: New file.
10144         * lib/unictype/joiningtype_name.c: New file.
10145
10146         unictype: Add support for Arabic shaping properties.
10147         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10148         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10149         declarations.
10150         (UC_JOINING_GROUP_*): New enumeration values.
10151         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10152         declarations.
10153         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10154         (unicode_joining_type): New variable.
10155         (UC_JOINING_GROUP_*): New enumeration values.
10156         (unicode_joining_group): New variable.
10157         (fill_arabicshaping, joining_type_as_c_identifier,
10158         output_joining_type_test, output_joining_type,
10159         joining_group_as_c_identifier, output_joining_group_test,
10160         output_joining_group): New functions.
10161         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10162         fill_arabicshaping and output_joining_type_test, output_joining_type,
10163         output_joining_group_test, output_joining_group.
10164         Reported by Simon Josefsson.
10165
10166 2011-03-21  Jim Meyering  <meyering@redhat.com>
10167
10168         strftime: fix a bug in yesterday's change
10169         * lib/strftime.c (add): Accommodate width's initial value of -1.
10170         Otherwise, nstrftime would copy uninitialized data into
10171         the result buffer.
10172
10173 2011-03-21  Jim Meyering  <meyering@redhat.com>
10174
10175         tests: add strftime-tests module
10176         * tests/test-strftime.c: New file.
10177         * modules/strftime-tests: New module.
10178
10179 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10180
10181         strftime: don't assume a byte count fits in 'int'
10182         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10183         found this problem by static analysis, using gcc -Wstrict-overflow
10184         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10185         on an integer overflow having undefined behavior, but it turns out
10186         that the argument is a size, which might not fit in 'int' anyway,
10187
10188 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         stdio: don't require ignore_value around fwrite
10191
10192         This patch works around libc bug 11959
10193         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10194         Without this patch, applications must often write
10195         ignore_value (fwrite (...)) even though the ignore_value is
10196         not helpful here.  It's common to write many objects, using
10197         fwrite/printf/etc., and then use ferror to detect output error.
10198
10199         I considered making this patch optional, but decided against it,
10200         because libc is obviously being inconsistent here: there is no
10201         reason libc should insist that user code must inspect fwrite
10202         return's value without also insisting that it inspect printf's,
10203         putchar's, etc.  If user code wants to have a strict style where
10204         all these functions' values are checked (so that ferror need not
10205         be checked), we could add support for that style in a new gnulib
10206         module, but in the meantime it's better to be consistent and to
10207         support common usage.
10208
10209         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10210         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10211         that we are compiling in checking mode, and if not C++, and
10212         if not already wrapping fwrite for some other reason.
10213         (fwrite): #define to rpl_fwrite if the latter is defined.
10214
10215 2011-03-20  Bruno Haible  <bruno@clisp.org>
10216
10217         verror: Fix compilation error introduced on 2011-02-13.
10218         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10219         instead of __attribute__.
10220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10221
10222 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10223             Bruno Haible  <bruno@clisp.org>
10224
10225         socklen: do not depend on sys_socket
10226         While trying to modify Emacs to use gnulib's socklen module,
10227         I discovered a circular dependency: socklen depends on sys_socket
10228         and vice versa.  Emacs can use socklen, but it does not need
10229         sys_socket because it has its own substitute for sys/socket.h.
10230         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10231         gl_TYPE_SOCKLEN_T.
10232         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10233         gl_PREREQ_SYS_H_SOCKET.
10234         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10235         gl_PREREQ_SYS_H_SOCKET.
10236         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10237         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10238         * modules/socklen (Depends-on): Do not depend on sys_socket.
10239         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10240
10241 2011-03-20  Jim Meyering  <meyering@redhat.com>
10242
10243         maint.mk: sort file names *after* new transformation
10244         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10245         prefix would have led to an unwarranted failure in GNU parted.
10246         Sort after that transformation.
10247
10248 2011-03-19  Jim Meyering  <meyering@redhat.com>
10249
10250         maint.mk: fix po-file syntax-check rule
10251         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10252         Patch by Bruno Haible.
10253
10254 2011-03-19  Bruno Haible  <bruno@clisp.org>
10255
10256         socklen: Update comment.
10257         * m4/socklen.m4: Update comment about platforms.
10258
10259 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10260             Bruno Haible  <bruno@clisp.org>
10261
10262         inet_ntop, inet_pton: Simplify.
10263         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10264         documented to provide socklen_t and we already depend on sys_socket.
10265         * modules/inet_pton (Depends-on): Likewise.
10266         * lib/arpa_inet.in.h: Adjust comment.
10267
10268 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10269             Bruno Haible  <bruno@clisp.org>
10270
10271         netdb: Simplify.
10272         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10273         documented to provide socklen_t and we already depend on sys_socket.
10274         * lib/netdb.in.h: Adjust comment.
10275
10276 2011-03-19  Bruno Haible  <bruno@clisp.org>
10277
10278         sys_socket, netdb: Document problem with socklen_t.
10279         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10280         platforms.
10281         * doc/posix-headers/netdb.texi: Likewise.
10282
10283 2011-03-18  Eric Blake  <eblake@redhat.com>
10284
10285         maint.mk: let po check work in VPATH build
10286         * top/maint.mk (po_file): Allow cfg.mk override.
10287         (sc_po_check): Allow VPATH use.
10288         Reported by Jiri Denemark.
10289
10290 2011-03-16  Jim Meyering  <meyering@redhat.com>
10291
10292         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10293         Before, you would have had to create one .x-sc_ file per rule in order
10294         to exempt offending files.  Now, you may instead use a Make variable --
10295         usually defined in cfg.mk -- whose name identifies the affected rule.
10296         * top/maint.mk (_sc_excl): Define.
10297         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10298         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10299
10300 2011-03-13  Bruno Haible  <bruno@clisp.org>
10301
10302         ignore-value tests: Avoid warnings.
10303         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10304         empty for gcc < 3.4.
10305
10306 2011-03-13  Bruno Haible  <bruno@clisp.org>
10307
10308         passfd: Fix link error on Solaris.
10309         * modules/passfd (Description): Correct.
10310         (Depends-on): Add socketlib.
10311         (Link): New section.
10312         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10313
10314 2011-03-13  Bruno Haible  <bruno@clisp.org>
10315
10316         passfd: Fix link error on AIX 5.2.
10317         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10318
10319 2011-03-13  Bruno Haible  <bruno@clisp.org>
10320
10321         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10322         * lib/sys_socket.in.h: Include <stddef.h>.
10323         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10324         CMSG_FIRSTHDR. Remove unused variable.
10325
10326 2011-03-13  Bruno Haible  <bruno@clisp.org>
10327
10328         passfd: Fix compilation error on OpenBSD.
10329         * lib/passfd.c: Include <sys/uio.h>.
10330
10331 2011-03-13  Bruno Haible  <bruno@clisp.org>
10332
10333         passfd test: Fix warnings.
10334         * tests/test-passfd.c: Include <sys/wait.h>.
10335         (main): Fix typo.
10336
10337 2011-03-13  Bruno Haible  <bruno@clisp.org>
10338
10339         passfd module, part 4, tweaks.
10340         * tests/test-passfd.c: Reorder includes.
10341         (main): Fix perror and printf calls.
10342
10343 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10344
10345         passfd module, part 4.
10346         * modules/passfd-tests: New file.
10347         * tests/test-passfd.c: New file.
10348
10349 2011-03-13  Jim Meyering  <meyering@redhat.com>
10350
10351         Makefile: rely on GNU make; derive syntax-check rule names
10352         Rather than requiring that each sc_ rule be listed as a dependent
10353         of "check", use features of GNU make to derive the list.
10354         * Makefile (syntax-check-rules): Define.
10355         (check): Depend on the new variable, not the hard-coded list.
10356
10357 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10358             Bruno Haible  <bruno@clisp.org>
10359
10360         passfd module, part 3.
10361         * lib/passfd.h (recvfd): Add a flags argument.
10362         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10363         (recvfd): Add a flags argument.
10364         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10365         exists.
10366         * modules/passfd (Depends-on): Add cloexec.
10367         Suggested by Eric Blake.
10368
10369 2011-03-13  Bruno Haible  <bruno@clisp.org>
10370
10371         passfd module, part 2, tweaks.
10372         * modules/passfd (Files): Reorder.
10373         (Depends-on): Remove errno.
10374         (Include): Remove <sys/socket.h>, <sys/un.h>.
10375         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10376         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10377         specification header. Include <sys/socket.h> always. Don't include
10378         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10379         (sendfd): Clarify that it sets errno when it fails.
10380         (recvfd): Fix specification.
10381
10382 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10383
10384         passfd module, part 2.
10385         * modules/passfd: New file.
10386         * lib/passfd.h: New file.
10387         * lib/passfd.c: New file.
10388
10389 2011-03-12  Bruno Haible  <bruno@clisp.org>
10390
10391         wcswidth, mbswidth: Avoid integer overflow.
10392         * lib/wcswidth.c: Include <limits.h>.
10393         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10394         * lib/mbswidth.c: Include <limits.h>.
10395         (mbsnwidth): Avoid 'int' overflow.
10396         Reported by Jim Meyering.
10397
10398 2011-03-12  Bruno Haible  <bruno@clisp.org>
10399
10400         futimens, utimensat: Avoid endless recursion on Solaris 10.
10401         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10402         Solaris.
10403         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10404         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10405
10406 2011-03-11  Jim Meyering  <meyering@redhat.com>
10407
10408         maint.mk: relax a regexp to accommodate other formatting styles
10409         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10410         between "ngettext" and the following "(".
10411
10412 2011-03-11  Pádraig Brady <P@draigBrady.com>
10413
10414         maint.mk: suppress a false positive warning
10415         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10416         diagnostics are marked with ngettext.
10417
10418 2011-03-10  Eric Blake  <eblake@redhat.com>
10419
10420         wchar: add explicit dependencies, for Tru64
10421         * modules/mbmemcasecoll (Depends-on): Add wchar.
10422         * modules/mbtowc (Depends-on): Likewise.
10423         * modules/vasnprintf (Depends-on): Likewise.
10424         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10425         * modules/wctomb (Depends-on): Likewise.
10426         Reported by Peter O'Gorman.
10427
10428 2011-03-08  Bruno Haible  <bruno@clisp.org>
10429
10430         passfd module, part 1, tweaks.
10431         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10432         Improve indentation. Improve AC_MSG_CHECKING messages.
10433         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10434         gl_SOCKET_FAMILIES.
10435
10436 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10437
10438         passfd module, part 1.
10439         * m4/afunix.m4: New file.
10440         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10441         sockets.
10442
10443 2011-03-08  Bruno Haible  <bruno@clisp.org>
10444
10445         regex-quote: New API.
10446         * lib/regex-quote.h: Include <stdbool.h>.
10447         (struct regex_quote_spec): New type.
10448         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10449         New declarations.
10450         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10451         'const struct regex_quote_spec *' argument.
10452         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10453         (pcre_special): New constant.
10454         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10455         New functions.
10456         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10457         'const struct regex_quote_spec *' argument.
10458         * modules/regex-quote (Depends-on): Add stdbool.
10459         * tests/test-regex-quote.c (check): Update for new API. Add test for
10460         anchored results.
10461         * NEWS: Mention the API change.
10462         Reported by Reuben Thomas and Eric Blake.
10463
10464 2011-03-06  Bruno Haible  <bruno@clisp.org>
10465
10466         regex-quote: Fix creation of POSIX extended regular expressions.
10467         * lib/regex-quote.c (ere_special): Add grouping and alternation
10468         operators.
10469
10470 2011-03-05  Bruno Haible  <bruno@clisp.org>
10471
10472         doc: Improve doc regarding autopoint vs. gnulib.
10473         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10474         disable autopoint while running autoreconf.
10475         Suggested by Ralf Wildenhues.
10476
10477 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10478
10479         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10480         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10481
10482 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10483
10484         parse-duration: remove xalloc.h dependency
10485         * lib/parse-duration.c (parse_period): handle NULL return from
10486         strdup instead of calling xstrdup().
10487         * modules/parse-duration: remove "xalloc" dependency
10488
10489 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10490
10491         bootstrap: honor m4_base when running aclocal
10492         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10493
10494 2011-03-02  Jim Meyering  <meyering@redhat.com>
10495
10496         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10497         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10498         on request from Matt Booth.
10499
10500 2011-03-01  Eric Blake  <eblake@redhat.com>
10501
10502         test-link: work on Hurd
10503         * tests/test-link.h (test_link): Hurd rejects linking directories
10504         with EISDIR instead of the POSIX-mandated EPERM.
10505
10506 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         stdio: simplify by moving files to printf-posix, sigpipe
10509         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10510         since this symbol is needed only if printf is replaced.
10511         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10512         Require gl_ASM_SYMBOL_PREFIX.
10513         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10514         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10515         (Depends-on): Add 'raise'.
10516         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10517         * modules/stdio (Files): Remove lib/stdio-write.c,
10518         m4/asm-underscore.m4.
10519         (Depends-on): Remove 'raise'.
10520
10521         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10522         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10523         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10524         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10525
10526 2011-02-28  Bruno Haible  <bruno@clisp.org>
10527
10528         localcharset: Assume ANSI C behaviour of free().
10529         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10530         calling free().
10531         Suggested by Simon Josefsson <simon@josefsson.org>.
10532
10533 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10534             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10535             Bruno Haible  <bruno@clisp.org>  (tiny change)
10536
10537         On Cygwin, use /proc file system instead of win32 API.
10538         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10539         Win32 file names.
10540         (DllMain): Simplify by removing Cygwin specific code.
10541         (find_shared_library_fullname): Use Linux specific implementation also
10542         for Cygwin.
10543         (get_shared_library_fullname): Update accordingly.
10544         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10545         Win32 file names.
10546         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10547         Cygwin specific code.
10548
10549 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10550             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10551
10552         Fix OpenMP flag detection for various Fortran compilers.
10553         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10554         OpenMP-conditional compilation construct, to force compile
10555         failure with missing OpenMP flag.
10556         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10557
10558 2011-02-25  Eric Blake  <eblake@redhat.com>
10559
10560         strstr: expand test coverage
10561         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10562         compilation.
10563         * tests/test-memmem.c (main): Duplicate tests.
10564         * tests/test-strcasestr.c (main): Likewise.
10565         * tests/test-c-strcasestr.c (main): Likewise.
10566
10567 2011-02-25  Jim Meyering  <meyering@redhat.com>
10568
10569         maint.mk: detect missing-NL-at-EOF, too
10570         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10571         it also detects when a file lacks a newline at EOF.
10572         (require_exactly_one_NL_at_EOF_): Renamed from
10573         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10574         since people may well have .x-sc_... file names tied to the
10575         existing name.  Suggested by Eric Blake.
10576
10577 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10578
10579         dirname: move m4/dos.m4 functionality into lib/dosname.h
10580
10581         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10582         extracts symbols from it, puts them into config.h; but it's much
10583         easier to use the symbols directly.  filename.h already does this,
10584         but it disagrees with dos.m4 in some respects.  This patch
10585         introduces a different include file dosname.h that packages up
10586         dos.m4, and then later we can work on merging filename.h and
10587         dosname.h.  Applications that need only the easy-to-configure
10588         symbols should consider including dosname.h rather than dirname.h.
10589         * NEWS: Mention incompatible changes.
10590         * m4/dos.m4: Remove.
10591         * lib/dosname.h, modules/dosname: New files.
10592         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10593         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10594         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10595         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10596         Include dosname.h, not dirname.h.
10597         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10598         Include dosname.h, for definitions of symbols like ISSLASH
10599         that used to be in config.h.
10600         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10601         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10602         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10603         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10604         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10605         * modules/rmdir (Files): Likewise.
10606         * modules/stat (Files): Likewise.
10607         * modules/unlink (Files): Likewise.
10608         * modules/dirname-lgpl (Depends-on): Add dosname.
10609         * modules/lstat (Depends-on): Likewise.
10610         * modules/openat (Depends-on): Likewise.
10611         * modules/rmdir (Depends-on): Likewise.
10612         * modules/savewd (Depends-on): Likewise.
10613         * modules/stat (Depends-on): Likewise.
10614         * modules/unlink (Depends-on): Likewise.
10615         * modules/openat (Depends-on): Remove dirname-lgpl.
10616         * modules/savewd (Depends-on): Likewise.
10617         * tests/test-dirname.c: Do not use removed symbols like
10618         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10619         the remaining symbols, e.g., ISSLASH ('\\').
10620
10621 2011-02-25  Eric Blake  <eblake@redhat.com>
10622
10623         strstr: revert patches that introduced bug and pessimization
10624         * lib/str-two-way.h: Add another reference.
10625         (two_way_short_needle, two_way_long_needle): Revert changes from
10626         2011-02-24; they pessimize search speed.
10627         (critical_factorization): Partially revert changes from
10628         2010-06-22; they violate the requirement that the left half of the
10629         needle be smaller than the period of the needle.
10630
10631 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10632
10633         filenamecat: remove unnecessary dependency on dirname-lgpl
10634         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10635         is no direct dependency, just an indirect one via filenamecat-lgpl.
10636
10637         remove: remove unnecessary use of m4/dos.m4
10638         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10639         * modules/remove (FILES): Remove m4/dos.m4.
10640
10641         * lib/openat-proc.c: Don't include dirname.h; not needed.
10642
10643         backupfile: remove unnecessary use of m4/dos.m4
10644         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10645         of its symbols are used by the backupfile code.  backupfile.c does
10646         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10647         for the rare case of programs that want all their backup file
10648         names to live within 8+3 limits, and dos.m4 doesn't address that.
10649         * modules/backupfile (Files): Remove m4/dos.m4.
10650
10651 2011-02-24  Jim Meyering  <meyering@redhat.com>
10652
10653         strstr: fix a bug whereby strstr would mistakenly return NULL
10654         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10655         in period calculation.
10656         (two_way_long_needle): Likewise.
10657         The original problem was reported by Mike Stump in
10658         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10659         Ralf Wildenhues provided the short needle and haystack.
10660         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10661         Add a more involved test to trigger the bug in two_way_long_needle.
10662
10663 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10664
10665         gnulib-tool: remove use of bold display in help screen
10666         * gnulib-tool (func_usage): Do not use bold display anymore in the
10667         help screen.  That was just meant to be a temporary emphasis for a
10668         backward-incompatible change.
10669
10670 2011-02-23  Bruno Haible  <bruno@clisp.org>
10671
10672         Fix misindentation of preprocessor directives.
10673         * lib/argp-namefrob.h: Reindent preprocessor directives.
10674         * lib/getopt_int.h (struct _getopt_data): Likewise.
10675         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10676         * lib/vasnprintf.c (decode_long_double): Likewise.
10677         * tests/test-argmatch.c: Insert blank lines, for clarity.
10678         * tests/test-exclude.c: Likewise.
10679
10680 2011-02-22  Bruno Haible  <bruno@clisp.org>
10681
10682         ioctl: Fix for MacOS X in 64-bit mode.
10683         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10684         value.
10685         Suggested by Eric Blake.
10686         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10687
10688 2011-02-22  Jim Meyering  <meyering@redhat.com>
10689
10690         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10691         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10692         in lib/.
10693
10694 2011-02-22  Eric Blake  <eblake@redhat.com>
10695
10696         maint: avoid any CDPATH issue
10697         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10698
10699         maint: adjust cpp indentation for my modules, as well
10700         * Makefile (sc_cpp_indent_check): Add my name.
10701         * lib/fbufmode.c: Filter through cppi.
10702         * lib/fpurge.c: Likewise.
10703         * lib/freadable.c: Likewise.
10704         * lib/freading.c: Likewise.
10705         * lib/fwritable.c: Likewise.
10706         * lib/fwriting.c: Likewise.
10707         * lib/sigaction.c: Likewise.
10708
10709 2011-02-22  Jim Meyering  <meyering@redhat.com>
10710
10711         maint: adjust cpp indentation to reflect nesting depth
10712         I.e., in a block of code that begins with an unnested "#if",
10713         put one space between the "#" in column 1 and following token.
10714         For example,
10715         -#include <sys/vfs.h>
10716         +# include <sys/vfs.h>
10717         Do this only in .c files that are part of a module I maintain.
10718         * lib/linkat.c: Filter through cppi.
10719         * lib/nanosleep.c: Likewise.
10720         * lib/openat.c: Likewise.
10721         * lib/openat-die.c: Likewise.
10722         * lib/dup3.c: Likewise.
10723         * lib/fchownat.c: Likewise.
10724         * lib/flock.c: Likewise.
10725         * lib/fsync.c: Likewise.
10726         * lib/fts.c: Likewise.
10727         * lib/getpass.c: Likewise.
10728         * lib/gettimeofday.c: Likewise.
10729         * lib/userspec.c: Likewise.
10730         * Makefile (sc_cpp_indent_check): New rule, to check this.
10731
10732 2011-02-22  Bruno Haible  <bruno@clisp.org>
10733
10734         New module 'wctomb'.
10735         * lib/stdlib.in.h (wctomb): New declaration.
10736         * lib/wctomb.c: New file.
10737         * lib/wctomb-impl.h: New file.
10738         * m4/wctomb.m4: New file.
10739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10740         REPLACE_WCTOMB.
10741         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10742         REPLACE_WCTOMB.
10743         * modules/wctomb: New file.
10744         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10745         * doc/posix-functions/wctomb.texi: Mention the new module.
10746         * modules/wctob (Depends-on): Add wctomb.
10747
10748 2011-02-22  Bruno Haible  <bruno@clisp.org>
10749
10750         New module 'mbtowc'.
10751         * lib/stdlib.in.h (mbtowc): New declaration.
10752         * lib/mbtowc.c: New file.
10753         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10754         * m4/mbtowc.m4: New file.
10755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10756         REPLACE_MBTOWC.
10757         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10758         REPLACE_MBTOWC.
10759         * modules/mbtowc: New file.
10760         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10761         * doc/posix-functions/mbtowc.texi: Mention the new module.
10762         * modules/btowc (Depends-on): Add mbtowc.
10763
10764 2011-02-22  Bruno Haible  <bruno@clisp.org>
10765
10766         wcrtomb: Add more tests for native Windows platforms.
10767         * tests/test-wcrtomb-w32-1.sh: New file.
10768         * tests/test-wcrtomb-w32-2.sh: New file.
10769         * tests/test-wcrtomb-w32-3.sh: New file.
10770         * tests/test-wcrtomb-w32-4.sh: New file.
10771         * tests/test-wcrtomb-w32-5.sh: New file.
10772         * tests/test-wcrtomb-w32.c: New file.
10773         * modules/wcrtomb-tests (Files): Add them.
10774         (Makefile.am): Arrange to run these tests.
10775         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10776         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10777
10778 2011-02-20  Bruno Haible  <bruno@clisp.org>
10779
10780         wcrtomb: Enhance test.
10781         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10782
10783 2011-02-20  Bruno Haible  <bruno@clisp.org>
10784
10785         mbrtowc: Tiny optimization.
10786         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10787
10788 2011-02-20  Jim Meyering  <meyering@redhat.com>
10789
10790         test-exclude.c: remove unmatched #endif
10791         * tests/test-exclude.c: Remove stray #endif, left over from
10792         the change of a week ago.
10793
10794 2011-02-19  Jim Meyering  <meyering@redhat.com>
10795
10796         git-version-gen: skip "-dirty" check when appropriate
10797         * build-aux/git-version-gen: Don't run any git commands when the
10798         version string comes from .tarball-version.  Prior to this, we
10799         would run git update-index --refresh even from a just-unpacked
10800         tarball directory, and that could affect a .git/ directory in a
10801         parent of the build directory.  Reported by Mike Frysinger.
10802
10803 2011-02-19  Bruno Haible  <bruno@clisp.org>
10804
10805         unictype/property-byname: Reduce the size of the 'data' segment.
10806         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10807
10808 2011-02-19  Bruno Haible  <bruno@clisp.org>
10809
10810         unictype/scripts: Reduce the size of the 'data' segment.
10811         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10812         '%pic'.
10813         * lib/unictype/scripts_byname.gperf: Regenerated.
10814
10815 2011-02-19  Bruno Haible  <bruno@clisp.org>
10816
10817         stdint: Update documentation.
10818         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10819
10820 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         stdint: omit redundant check for wchar.h
10823         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10824         always tests whether wchar.h exists, so remove the now-redundant test.
10825
10826 2011-02-18  Bruno Haible  <bruno@clisp.org>
10827
10828         stdint: Cut dependency to module 'wchar'.
10829         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10830         include the necessary prerequisites.
10831         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10832         * modules/stdint (Depends-on): Remove wchar.
10833         (Makefile.am): Substitute HAVE_WCHAR_H.
10834         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10835
10836 2011-02-18  Eric Blake  <eblake@redhat.com>
10837
10838         longlong: skip, rather than fail, on cross-compilation
10839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10840         when cross-compiling; regression from 2011-02-16.
10841
10842 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10843
10844         * NEWS: Mention 2011-02-08 change to stdlib.
10845
10846 2011-02-17  Bruno Haible  <bruno@clisp.org>
10847
10848         getloadavg: Add comments about platforms.
10849         * m4/getloadavg.m4: Add comment.
10850         * lib/getloadavg.c: Likewise.
10851
10852 2011-02-17  Bruno Haible  <bruno@clisp.org>
10853
10854         getloadavg: Fix link error on Solaris 2.6.
10855         * modules/getloadavg (Link): New section.
10856         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10857         linking test-getloadavg.
10858         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10859         getloadavg.
10860
10861 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10862
10863         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10864         It was 'int', but this doesn't match the IRIX 6.5 manual.
10865         Suggested by Bruno Haible in
10866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10867
10868 2011-02-17  Bruno Haible  <bruno@clisp.org>
10869
10870         havelib: Fix comments.
10871         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10872         change.
10873
10874 2011-02-17  Bruno Haible  <bruno@clisp.org>
10875
10876         havelib: Update config.rpath.
10877         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10878
10879 2011-02-17  Bruno Haible  <bruno@clisp.org>
10880
10881         getloadavg test: Add some plausibility checks.
10882         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10883         is improbable.
10884
10885 2011-02-16  Eric Blake  <eblake@redhat.com>
10886
10887         maintainer-makefile: make syntax-check a no-op from tarballs
10888         * top/maint.mk (no-vc-detected): New rule.
10889         (local-checks-available): Use it to avoid hanging if someone tries
10890         'make syntax-check' from a tarball.  Also append to any non-syntax
10891         checks already defined in cfg.mk.
10892
10893 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10894
10895         longlong: tune, particularly for common case of c99
10896
10897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10898         or running anything if c99, or if unsigned long long int does not
10899         work.  In either case, we know the answer without further tests.
10900         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10901         it at most once, and use its results for both long long int and
10902         unsigned long long int.  This is more likely to be efficient in
10903         the common case where the program wants to check for both long
10904         long int and unsigned long long int.
10905         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10906         since the answer is already known.
10907
10908 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         getloadavg: set errno
10911         * lib/getloadavg.c: Set errno when returning -1.  If no other
10912         error number looks appropriate, set it to ENOSYS if the getloadavg
10913         looks like it can't possibly ever work, ENOTSUP otherwise.
10914         Suggested by Bruno Haible in
10915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10916
10917         getloadavg: trim unused parts and speed up 'configure'
10918         * NEWS: Document this.
10919         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10920         always compiled if getloadavg is absent.
10921         Move test code to ...
10922         * tests/test-getloadavg.c: New file, containing previous
10923         contents of test from lib/getloadavg.c.  It also contains
10924         suggestions by Bruno Haible in
10925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10926         * modules/getloadavg-tests: New file.
10927         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10928         Do tests in the same order as they're needed for getloadavg.c.
10929         Omit setgid-related tests that generate symbols KMEM_GROUP,
10930         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10931         Do only the tests that are needed to see whether the system has
10932         getloadavg, moving the other tests into ...
10933         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10934         NLIST_NAME_UNION; nobody should be using it.  Do not define
10935         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10936         relevant, as the user of this module shouldn't care how getloadavg
10937         is implemented.
10938
10939         getloadavg: omit unused var
10940         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10941
10942 2011-02-15  Jim Meyering  <meyering@redhat.com>
10943
10944         doc: update users.txt
10945         * users.txt: Update iwhd's URL.
10946
10947 2011-02-13  Bruno Haible  <bruno@clisp.org>
10948
10949         Consistent macro naming for macros that use GCC __attribute__.
10950         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10951         _ATTRIBUTE_NONNULL_.
10952         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10953         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10954         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10955         ATTRIBUTE_DEPRECATED.
10956         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10957         ATTRIBUTE_NORETURN.
10958         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10959         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10960         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10961         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10962         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10963         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10964         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10965         ATTRIBUTE_SENTINEL.
10966         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10967         ATTRIBUTE_RETURN_CHECK.
10968         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10969         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10970         ATTRIBUTE_NORETURN.
10971         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10972         Reported by Paul Eggert.
10973
10974 2011-02-13  Bruno Haible  <bruno@clisp.org>
10975
10976         Don't interfere with a program's definition of __attribute__.
10977         * lib/argp.h (__attribute__): Remove definition.
10978         (_GL_ATTRIBUTE_FORMAT): New macro.
10979         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10980         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10981         (_GL_ATTRIBUTE_FORMAT): New macro.
10982         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10983         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10984         GCC 3 or newer.
10985         * lib/error.h (__attribute__): Remove definition.
10986         (_GL_ATTRIBUTE_FORMAT): New macro.
10987         (error, error_at_line): Use it.
10988         * lib/hash.h (__attribute__): Remove definition.
10989         (ATTRIBUTE_WUR): Update definition. Define always.
10990         * lib/openat.h (__attribute__): Remove definition.
10991         (ATTRIBUTE_NORETURN): Update definition. Define always.
10992         * lib/sigpipe-die.h (__attribute__): Remove definition.
10993         (ATTRIBUTE_NORETURN): Update definition. Define always.
10994         * lib/vasnprintf.h (__attribute__): Remove definition.
10995         (_GL_ATTRIBUTE_FORMAT): New macro.
10996         (asnprintf, vasnprintf): Use it.
10997         * lib/xalloc.h (__attribute__): Remove definition.
10998         (ATTRIBUTE_NORETURN): Update definition. Define always.
10999         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11000         * lib/xmemdup0.h (__attribute__): Remove definition.
11001         (ATTRIBUTE_NORETURN): Update definition. Define always.
11002         * lib/xprintf.h (__attribute__): Remove definition.
11003         (_GL_ATTRIBUTE_FORMAT): New macro.
11004         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11005         * lib/xstrtol.h (__attribute__): Remove definition.
11006         (ATTRIBUTE_NORETURN): Update definition. Define always.
11007         * lib/xvasprintf.h (__attribute__): Remove definition.
11008         (_GL_ATTRIBUTE_FORMAT): New macro.
11009         (xasprintf, xvasprintf): Use it.
11010         * tests/test-argmatch.c (__attribute__): Remove definition.
11011         (ATTRIBUTE_NORETURN): Update definition. Define always.
11012         * tests/test-exclude.c (__attribute__): Remove definition.
11013         (ATTRIBUTE_NORETURN): Update definition. Define always.
11014         Reported by Paul Eggert.
11015
11016 2011-02-13  Bruno Haible  <bruno@clisp.org>
11017
11018         mbrtowc: Add more tests for native Windows platforms.
11019         * tests/test-mbrtowc-w32-1.sh: New file.
11020         * tests/test-mbrtowc-w32-2.sh: New file.
11021         * tests/test-mbrtowc-w32-3.sh: New file.
11022         * tests/test-mbrtowc-w32-4.sh: New file.
11023         * tests/test-mbrtowc-w32-5.sh: New file.
11024         * tests/test-mbrtowc-w32.c: New file.
11025         * modules/mbrtowc-tests (Files): Add them.
11026         (Makefile.am): Arrange to run these tests.
11027         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11028         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11029
11030 2011-02-13  Bruno Haible  <bruno@clisp.org>
11031
11032         mbrtowc: Work around native Windows bug.
11033         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11034         guess when no suitable locale for testing was found.
11035         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11036
11037 2011-02-13  Bruno Haible  <bruno@clisp.org>
11038
11039         mbsinit: Work around mingw bug.
11040         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11041         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11042         Windows.
11043         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11044
11045 2011-02-13  Bruno Haible  <bruno@clisp.org>
11046
11047         mbsinit: Don't crash for a NULL argument.
11048         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11049         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11050
11051 2011-02-13  Bruno Haible  <bruno@clisp.org>
11052
11053         Don't interfere with a program's definition of __attribute__.
11054         * lib/stdio.in.h (__attribute__): Remove definition.
11055         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11056         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11057         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11058         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11059         * lib/string.in.h (__attribute__): Remove definition.
11060         Reported by Paul Eggert.
11061
11062 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         stdlib: don't get in the way of non-GCC __attribute__
11065         See thread starting at
11066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11067         Revert previous stdlib change, installing the following instead:
11068         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11069         to get in the way of a non-GCC compiler that supports __attribute__.
11070         (_GL_ATTRIBUTE_RETURN): New macro.
11071         (_Exit): Use it instead of __attribute__.
11072
11073 2011-02-12  Bruno Haible  <bruno@clisp.org>
11074
11075         quotearg test: Avoid test failure on mingw.
11076         * tests/test-quotearg.sh: Convert the locale identifier from native
11077         Windows syntax to Unix syntax.
11078
11079 2011-02-12  Bruno Haible  <bruno@clisp.org>
11080
11081         setlocale: Prefer gnulib's override over libintl's override.
11082         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11083         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11084         GNULIB_defined_setlocale is set.
11085
11086 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11087
11088         stdlib: support non-GCC __attribute__
11089
11090         Fix a serious and tricky problem encountered when attempting to
11091         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11092         5.5, but it crashed due to memory corruption on Solaris 10 with
11093         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11094         bits that are otherwise zero.  This tagging is optional inside
11095         Emacs but is preferred and is used when __attribute__ ((__aligned
11096         (8))) works, as it does with both recent-enough GCC and with Sun C
11097         5.11.  However, Sun C 5.11 is not GCC and does not #define
11098         __GNUC__ and __GNUC_MINOR__.
11099
11100         When I added the getloadavg module to Emacs, it brought in
11101         stdlib.in.h, which contained this fragment:
11102
11103            #ifndef __attribute__
11104            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11105            #  define __attribute__(Spec)   /* empty */
11106            # endif
11107            #endif
11108
11109         When files that include <stdlib.h> were compiled with Sun C 5.11,
11110         the above code disabled __attribute__ ((__aligned (8))), which
11111         caused variables to not be properly aligned, which eventually led
11112         to the pointer corruption mentioned above.  (This was a bit hard
11113         to diagnose, unfortunately.)
11114
11115         Several "#define __attribute__(X) /* empty */" code snippets need
11116         to be eradicated from Gnulib to work with non-GCC compilers that
11117         support __attribute__.  The Autoconf way to do this is to test for
11118         each kind of attribute that we want support for, and selectively
11119         enable that in source code.
11120
11121         Fix this problem just for stdlib.h, by adding a test for the
11122         __noreturn__ attribute, and change stdlib.in.h to use that test
11123         when needed.  This technique can be easily generalized to the
11124         other *.in.h files and attributes, and a similar technique can be
11125         used for *.h and *.c files.  This patch is enough to solve the
11126         problem for Emacs + getloadavg, and I thought I'd publish it for
11127         feedback before undertaking further, similar fixes in other
11128         modules.
11129
11130         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11131         because it's not needed for stdlib.h.  It merely substitutes the
11132         value directly into stdlib.h.  We may well need to #define it, or
11133         similar symbols, for other modules, but it's nice to also have an
11134         option to not #define it for applications like Emacs that do not
11135         need it.
11136
11137         * lib/stdlib.in.h (__attribute__): Do not #define.
11138         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11139         be defined only if the _Exit module is also used.
11140         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11142         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11143         platforms.
11144         * modules/_Exit (Files): Add m4/attribute.m4.
11145         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11146         * m4/attribute.m4: New file.
11147
11148 2011-02-12  Bruno Haible  <bruno@clisp.org>
11149
11150         wcsrtombs: Work around bug on native Windows.
11151         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11152         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11153         instead of len.
11154         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11155
11156 2011-02-12  Bruno Haible  <bruno@clisp.org>
11157
11158         mbsrtowcs: Work around bug on native Windows.
11159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11160         against mingw bug.
11161         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11162
11163 2011-02-12  Bruno Haible  <bruno@clisp.org>
11164
11165         Avoid setlocale bugs in tests.
11166         * modules/btowc (Dependencies): Add setlocale.
11167         * modules/c-strcase (Dependencies): Likewise.
11168         * modules/mbmemcasecmp (Dependencies): Likewise.
11169         * modules/mbmemcasecoll (Dependencies): Likewise.
11170         * modules/mbrtowc (Dependencies): Likewise.
11171         * modules/mbscasecmp (Dependencies): Likewise.
11172         * modules/mbscasestr (Dependencies): Likewise.
11173         * modules/mbschr (Dependencies): Likewise.
11174         * modules/mbscspn (Dependencies): Likewise.
11175         * modules/mbsinit (Dependencies): Likewise.
11176         * modules/mbsncasecmp (Dependencies): Likewise.
11177         * modules/mbsnrtowcs (Dependencies): Likewise.
11178         * modules/mbspbrk (Dependencies): Likewise.
11179         * modules/mbspcasecmp (Dependencies): Likewise.
11180         * modules/mbsrchr (Dependencies): Likewise.
11181         * modules/mbsrtowcs (Dependencies): Likewise.
11182         * modules/mbsspn (Dependencies): Likewise.
11183         * modules/mbsstr (Dependencies): Likewise.
11184         * modules/nl_langinfo (Dependencies): Likewise.
11185         * modules/quotearg (Dependencies): Likewise.
11186         * modules/unicase/locale-language (Dependencies): Likewise.
11187         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11188         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11189         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11190         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11191         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11192         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11193         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11194         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11195         * modules/vasnprintf-posix (Dependencies): Likewise.
11196         * modules/wcrtomb (Dependencies): Likewise.
11197         * modules/wcsnrtombs (Dependencies): Likewise.
11198         * modules/wcsrtombs (Dependencies): Likewise.
11199
11200 2011-02-12  Bruno Haible  <bruno@clisp.org>
11201
11202         setlocale: Workaround native Windows bug.
11203         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11204         succeeds but sets LC_CTYPE to "C", report a failure.
11205         * tests/test-setlocale2.sh: New file.
11206         * tests/test-setlocale2.c: New file.
11207         * modules/setlocale-tests (Files): Add the new files.
11208         (Makefile.am): Enable test-setlocale2.sh test.
11209         * doc/posix-functions/setlocale.texi: Mention workaround.
11210
11211 2011-02-11  Bruno Haible  <bruno@clisp.org>
11212
11213         Tests for module 'setlocale'.
11214         * modules/setlocale-tests: New file.
11215         * tests/test-setlocale1.sh: New file.
11216         * tests/test-setlocale1.c: New file.
11217
11218         New module 'setlocale'.
11219         * lib/locale.in.h (setlocale): New declaration.
11220         * lib/setlocale.c: New file, based on
11221         gettext/gettext-runtime/intl/setlocale.c.
11222         * m4/setlocale.m4: New file.
11223         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11224         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11225         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11226         REPLACE_SETLOCALE.
11227         * modules/setlocale: New file.
11228         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11229         * doc/posix-functions/setlocale.texi: Mention the new module.
11230
11231 2011-02-11  Bruno Haible  <bruno@clisp.org>
11232
11233         Prepare for locale dependent tests on mingw.
11234         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11235         because it has the wrong locale encoding.
11236         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11237         French_France.1252 instead of "fr".
11238         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11239         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11240         because it has the wrong locale encoding.
11241         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11242         native Windows, try Turkish_Turkey.65001.
11243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11244         Chinese_China.54936.
11245
11246         Prepare for locale dependent tests on mingw.
11247         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11248         differently.
11249         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11250         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11251         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11252         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11253
11254 2011-02-11  Eric Blake  <eblake@redhat.com>
11255
11256         strptime: avoid compiler warnings
11257         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11258         compiler warnings about dead code.
11259         Reported by Daniel P. Berrange.
11260
11261 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11262
11263         doc: update users.txt
11264         * users.txt: Add rcs.
11265
11266 2011-02-10  John W. Eaton  <jwe@gnu.org>
11267
11268         doc: update users.txt
11269         * users.txt: Add octave.
11270
11271 2011-02-10  Jim Meyering  <meyering@redhat.com>
11272
11273         doc: update users.txt
11274         * users.txt: Add iwhd.
11275
11276 2011-02-09  Bruno Haible  <bruno@clisp.org>
11277
11278         gnulib-tool: Make copyright notice adjustment more robust.
11279         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11280         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11281         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11282         License".
11283         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11284
11285 2011-02-06  Bruno Haible  <bruno@clisp.org>
11286
11287         New module 'towctrans'.
11288         * modules/towctrans: New file.
11289         * lib/wctype.in.h (towctrans): New declaration.
11290         * lib/towctrans.c: New file.
11291         * lib/towctrans-impl.h: New file.
11292         * m4/towctrans.m4: New file.
11293         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11294         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11295         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11296         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11297         * doc/posix-functions/towctrans.texi: Mention the new module.
11298
11299 2011-02-06  Bruno Haible  <bruno@clisp.org>
11300
11301         New module 'wctrans'.
11302         * modules/wctrans: New file.
11303         * lib/wctype.in.h (wctrans): New declaration.
11304         * lib/wctrans.c: New file.
11305         * lib/wctrans-impl.h: New file.
11306         * m4/wctrans.m4: New file.
11307         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11308         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11309         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11310         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11311         * doc/posix-functions/wctrans.texi: Mention the new module.
11312
11313 2011-02-06  Bruno Haible  <bruno@clisp.org>
11314
11315         New module 'iswctype'.
11316         * modules/iswctype: New file.
11317         * lib/wctype.in.h (iswctype): New declaration.
11318         * lib/iswctype.c: New file.
11319         * lib/iswctype-impl.h: New file.
11320         * m4/iswctype.m4: New file.
11321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11322         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11323         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11324         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11325         * doc/posix-functions/iswctype.texi: Mention the new module and the
11326         HP-UX 11.00 problem.
11327
11328 2011-02-06  Bruno Haible  <bruno@clisp.org>
11329
11330         New module 'wctype'.
11331         * modules/wctype: Change to represent the wctype() substitute.
11332         * lib/wctype.in.h (wctype): New declaration.
11333         * lib/wctype.c: New file.
11334         * lib/wctype-impl.h: New file.
11335         * m4/wctype.m4: New file.
11336         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11337         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11338         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11339         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11340         * doc/posix-functions/wctype.texi: Mention the new module and the
11341         HP-UX 11.00 problem.
11342
11343 2011-02-06  Bruno Haible  <bruno@clisp.org>
11344
11345         wctype-h: Ensure wctype_t and wctrans_t are defined.
11346         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11347         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11348         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11349         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11350         HAVE_WCTRANS_T.
11351         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11352
11353 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11354
11355         flock: fix license typo
11356
11357         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11358         omitted.
11359
11360 2011-02-08  Bruno Haible  <bruno@clisp.org>
11361
11362         Split large sed scripts, for HP-UX sed.
11363         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11364         to avoid HP-UX limit of 99 commands, in the near future.
11365         * modules/stdlib (Makefile.am): Likewise.
11366         * modules/unistd (Makefile.am): Likewise.
11367         * modules/wchar (Makefile.am): Likewise.
11368         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11369         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11370         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11371
11372 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11373             Bruno Haible  <bruno@clisp.org>
11374
11375         stdlib: improve random_r modularization
11376         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11377         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11378         you also need the random_r module to get this material right.
11379         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11380         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11381         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11382
11383 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11384
11385         stdlib: don't depend on stdint
11386         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11387         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11388         be independent of whether stdint.h is needed.
11389         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11390         here, instead of ...
11391         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11392         struct random_data should be using the random_r module, not just
11393         the stdlib module (which wouldn't make sense: what package needs
11394         just struct random_data without also needing random_r?).
11395         * modules/stdlib (Depends-on): Remove stdint.
11396
11397         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11398         See the thread rooted at
11399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11400         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11401         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11402         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11403         __VMS)); previously it was always included (via fcntl--.h).
11404         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11405         hand; this is good enough for load averages.  Also, do not use
11406         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11407         flags directly if available and don't bother otherwise.  (Packages
11408         that need the extra reliability should use the modules that define
11409         these flags on older platforms that lack them.)
11410         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11411         fcntl-safer.
11412
11413 2011-02-08  Jim Meyering  <meyering@redhat.com>
11414
11415         di-set.h, ino-map.h: add multiple-inclusion guard
11416         Technically, the guard is required only for ino-map.h, due to its
11417         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11418         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11419         * lib/ino-map.h: Likewise.
11420
11421 2011-02-06  Bruno Haible  <bruno@clisp.org>
11422
11423         iswblank: Ensure declaration on glibc systems.
11424         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11425         * modules/iswblank (Dependencies): Add 'extensions'.
11426         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11427
11428 2011-02-06  Bruno Haible  <bruno@clisp.org>
11429
11430         New module 'iswblank'.
11431         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11432         * modules/iswblank: New file.
11433         * modules/wctype-h (Files): Remove lib/iswblank.c.
11434         (Makefile.am): Substitute GNULIB_ISWBLANK.
11435         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11436         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11437         (gl_WCTYPE_H_DEFAULTS): New macro.
11438         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11439         * modules/iswblank-tests: New file.
11440         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11441         * tests/test-wctype-h.c (main): Remove iswblank tests.
11442         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11443         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11444         of 'wctype-h'.
11445         * NEWS: Mention the change.
11446         * modules/mbchar (Depends-on): Add iswblank.
11447
11448 2011-02-08  Bruno Haible  <bruno@clisp.org>
11449
11450         di-set tests: Refactor.
11451         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11452         unnecessary includes.
11453         (ASSERT): Remove macro.
11454         (main): Make C90 compliant by avoiding variable declaration after
11455         statement.
11456         * modules/di-set-tests (Files): Add tests/macros.h.
11457
11458 2011-02-08  Bruno Haible  <bruno@clisp.org>
11459
11460         ino-map tests: Refactor.
11461         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11462         unnecessary includes.
11463         (ASSERT): Remove macro.
11464         (main): Make C90 compliant by avoiding variable declaration after
11465         statement.
11466         * modules/ino-map-tests (Files): Add tests/macros.h.
11467
11468 2011-02-08  Jim Meyering  <meyering@redhat.com>
11469
11470         di-set: add "const" to a cast
11471         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11472         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11473
11474 2011-02-06  Bruno Haible  <bruno@clisp.org>
11475
11476         Rename module 'wctype' to 'wctype-h'.
11477         * modules/wctype-h: Renamed from modules/wctype.
11478         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11479         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11480         (Files, Depends-on, Makefile.am): Update.
11481         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11482         (Files, Makefile.am): Update.
11483         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11484         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11485         * doc/posix-headers/wctype.texi: Update.
11486         * doc/posix-functions/iswalnum.texi: Update.
11487         * doc/posix-functions/iswalpha.texi: Update.
11488         * doc/posix-functions/iswblank.texi: Update.
11489         * doc/posix-functions/iswcntrl.texi: Update.
11490         * doc/posix-functions/iswdigit.texi: Update.
11491         * doc/posix-functions/iswgraph.texi: Update.
11492         * doc/posix-functions/iswlower.texi: Update.
11493         * doc/posix-functions/iswprint.texi: Update.
11494         * doc/posix-functions/iswpunct.texi: Update.
11495         * doc/posix-functions/iswspace.texi: Update.
11496         * doc/posix-functions/iswupper.texi: Update.
11497         * doc/posix-functions/iswxdigit.texi: Update.
11498         * doc/posix-functions/towlower.texi: Update.
11499         * doc/posix-functions/towupper.texi: Update.
11500         * NEWS: Mention the change.
11501         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11502         * modules/mbchar (Dependencies): Likewise.
11503         * modules/mbswidth (Dependencies): Likewise.
11504         * modules/quotearg (Dependencies): Likewise.
11505         * modules/regex (Dependencies): Likewise.
11506         * modules/wcscasecmp (Dependencies): Likewise.
11507         * modules/wcsncasecmp (Dependencies): Likewise.
11508         * modules/wcwidth (Dependencies): Likewise.
11509
11510 2011-02-06  Bruno Haible  <bruno@clisp.org>
11511
11512         New module 'wcswidth'.
11513         * modules/wcswidth: New file.
11514         * lib/wchar.in.h (wcswidth): New declaration.
11515         * lib/wcswidth.c: New file.
11516         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11517         * m4/wcswidth.m4: New file.
11518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11520         REPLACE_WCSWIDTH.
11521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11522         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11523         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11524         * doc/posix-functions/wcswidth.texi: Mention the new module.
11525
11526 2011-02-06  Bruno Haible  <bruno@clisp.org>
11527
11528         New module 'wcstok'.
11529         * modules/wcstok: New file.
11530         * lib/wchar.in.h (wcstok): New declaration.
11531         * lib/wcstok.c: New file.
11532         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11533         * m4/wcstok.m4: New file.
11534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11537         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11538         * doc/posix-functions/wcstok.texi: Mention the new module.
11539
11540 2011-02-06  Bruno Haible  <bruno@clisp.org>
11541
11542         New module 'wcsstr'.
11543         * modules/wcsstr: New file.
11544         * lib/wchar.in.h (wcsstr): New declaration.
11545         * lib/wcsstr.c: New file.
11546         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11547         * m4/wcsstr.m4: New file.
11548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11551         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11552         * doc/posix-functions/wcsstr.texi: Mention the new module.
11553
11554 2011-02-06  Bruno Haible  <bruno@clisp.org>
11555
11556         New module 'wcspbrk'.
11557         * modules/wcspbrk: New file.
11558         * lib/wchar.in.h (wcspbrk): New declaration.
11559         * lib/wcspbrk.c: New file.
11560         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11561         * m4/wcspbrk.m4: New file.
11562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11565         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11566         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11567
11568 2011-02-06  Bruno Haible  <bruno@clisp.org>
11569
11570         New module 'wcsspn'.
11571         * modules/wcsspn: New file.
11572         * lib/wchar.in.h (wcsspn): New declaration.
11573         * lib/wcsspn.c: New file.
11574         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11575         * m4/wcsspn.m4: New file.
11576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11579         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11580         * doc/posix-functions/wcsspn.texi: Mention the new module.
11581
11582 2011-02-06  Bruno Haible  <bruno@clisp.org>
11583
11584         New module 'wcscspn'.
11585         * modules/wcscspn: New file.
11586         * lib/wchar.in.h (wcscspn): New declaration.
11587         * lib/wcscspn.c: New file.
11588         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11589         * m4/wcscspn.m4: New file.
11590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11593         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11594         * doc/posix-functions/wcscspn.texi: Mention the new module.
11595
11596 2011-02-06  Bruno Haible  <bruno@clisp.org>
11597
11598         New module 'wcsrchr'.
11599         * modules/wcsrchr: New file.
11600         * lib/wchar.in.h (wcsrchr): New declaration.
11601         * lib/wcsrchr.c: New file.
11602         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11603         * m4/wcsrchr.m4: New file.
11604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11607         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11608         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11609
11610 2011-02-06  Bruno Haible  <bruno@clisp.org>
11611
11612         New module 'wcschr'.
11613         * modules/wcschr: New file.
11614         * lib/wchar.in.h (wcschr): New declaration.
11615         * lib/wcschr.c: New file.
11616         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11617         * m4/wcschr.m4: New file.
11618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11621         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11622         * doc/posix-functions/wcschr.texi: Mention the new module.
11623
11624 2011-02-06  Bruno Haible  <bruno@clisp.org>
11625
11626         New module 'wcsdup'.
11627         * modules/wcsdup: New file.
11628         * lib/wchar.in.h (wcsdup): New declaration.
11629         * lib/wcsdup.c: New file.
11630         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11631         * m4/wcsdup.m4: New file.
11632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11635         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11636         * doc/posix-functions/wcsdup.texi: Mention the new module.
11637
11638 2011-02-06  Bruno Haible  <bruno@clisp.org>
11639
11640         New module 'wcsxfrm'.
11641         * modules/wcsxfrm: New file.
11642         * lib/wchar.in.h (wcsxfrm): New declaration.
11643         * lib/wcsxfrm.c: New file.
11644         * lib/wcsxfrm-impl.h: New file.
11645         * m4/wcsxfrm.m4: New file.
11646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11649         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11650         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11651
11652 2011-02-06  Bruno Haible  <bruno@clisp.org>
11653
11654         New module 'wcscoll'.
11655         * modules/wcscoll: New file.
11656         * lib/wchar.in.h (wcscoll): New declaration.
11657         * lib/wcscoll.c: New file.
11658         * lib/wcscoll-impl.h: New file.
11659         * m4/wcscoll.m4: New file.
11660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11663         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11664         * doc/posix-functions/wcscoll.texi: Mention the new module.
11665
11666 2011-02-06  Bruno Haible  <bruno@clisp.org>
11667
11668         New module 'wcsncasecmp'.
11669         * modules/wcsncasecmp: New file.
11670         * lib/wchar.in.h (wcsncasecmp): New declaration.
11671         * lib/wcsncasecmp.c: New file.
11672         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11673         * m4/wcsncasecmp.m4: New file.
11674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11677         HAVE_WCSNCASECMP.
11678         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11679         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11680
11681 2011-02-06  Bruno Haible  <bruno@clisp.org>
11682
11683         New module 'wcscasecmp'.
11684         * modules/wcscasecmp: New file.
11685         * lib/wchar.in.h (wcscasecmp): New declaration.
11686         * lib/wcscasecmp.c: New file.
11687         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11688         * m4/wcscasecmp.m4: New file.
11689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11692         HAVE_WCSCASECMP.
11693         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11694         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11695
11696 2011-02-05  Bruno Haible  <bruno@clisp.org>
11697
11698         New module 'wcsncmp'.
11699         * modules/wcsncmp: New file.
11700         * lib/wchar.in.h (wcsncmp): New declaration.
11701         * lib/wcsncmp.c: New file.
11702         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11703         * m4/wcsncmp.m4: New file.
11704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11707         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11708         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11709
11710 2011-02-05  Bruno Haible  <bruno@clisp.org>
11711
11712         New module 'wcscmp'.
11713         * modules/wcscmp: New file.
11714         * lib/wchar.in.h (wcscmp): New declaration.
11715         * lib/wcscmp.c: New file.
11716         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11717         * m4/wcscmp.m4: New file.
11718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11721         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11722         * doc/posix-functions/wcscmp.texi: Mention the new module.
11723
11724 2011-02-05  Bruno Haible  <bruno@clisp.org>
11725
11726         New module 'wcsncat'.
11727         * modules/wcsncat: New file.
11728         * lib/wchar.in.h (wcsncat): New declaration.
11729         * lib/wcsncat.c: New file.
11730         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11731         * m4/wcsncat.m4: New file.
11732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11735         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11736         * doc/posix-functions/wcsncat.texi: Mention the new module.
11737
11738 2011-02-05  Bruno Haible  <bruno@clisp.org>
11739
11740         New module 'wcscat'.
11741         * modules/wcscat: New file.
11742         * lib/wchar.in.h (wcscat): New declaration.
11743         * lib/wcscat.c: New file.
11744         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11745         * m4/wcscat.m4: New file.
11746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11749         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11750         * doc/posix-functions/wcscat.texi: Mention the new module.
11751
11752 2011-02-05  Bruno Haible  <bruno@clisp.org>
11753
11754         New module 'wcpncpy'.
11755         * modules/wcpncpy: New file.
11756         * lib/wchar.in.h (wcpncpy): New declaration.
11757         * lib/wcpncpy.c: New file.
11758         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11759         * m4/wcpncpy.m4: New file.
11760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11762         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11763         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11764         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11765
11766 2011-02-05  Bruno Haible  <bruno@clisp.org>
11767
11768         New module 'wcsncpy'.
11769         * modules/wcsncpy: New file.
11770         * lib/wchar.in.h (wcsncpy): New declaration.
11771         * lib/wcsncpy.c: New file.
11772         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11773         * m4/wcsncpy.m4: New file.
11774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11777         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11778         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11779
11780 2011-02-05  Bruno Haible  <bruno@clisp.org>
11781
11782         New module 'wcpcpy'.
11783         * modules/wcpcpy: New file.
11784         * lib/wchar.in.h (wcpcpy): New declaration.
11785         * lib/wcpcpy.c: New file.
11786         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11787         * m4/wcpcpy.m4: New file.
11788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11790         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11791         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11792         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11793
11794 2011-02-05  Bruno Haible  <bruno@clisp.org>
11795
11796         New module 'wcscpy'.
11797         * modules/wcscpy: New file.
11798         * lib/wchar.in.h (wcscpy): New declaration.
11799         * lib/wcscpy.c: New file.
11800         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11801         * m4/wcscpy.m4: New file.
11802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11805         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11806         * doc/posix-functions/wcscpy.texi: Mention the new module.
11807
11808 2011-02-05  Bruno Haible  <bruno@clisp.org>
11809
11810         New module 'wcsnlen'.
11811         * modules/wcsnlen: New file.
11812         * lib/wchar.in.h (wcsnlen): New declaration.
11813         * lib/wcsnlen.c: New file.
11814         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11815         * m4/wcsnlen.m4: New file.
11816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11819         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11820         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11821
11822 2011-02-05  Bruno Haible  <bruno@clisp.org>
11823
11824         New module 'wcslen'.
11825         * modules/wcslen: New file.
11826         * lib/wchar.in.h (wcslen): New declaration.
11827         * lib/wcslen.c: New file.
11828         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11829         * m4/wcslen.m4: New file.
11830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11833         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11834         * doc/posix-functions/wcslen.texi: Mention the new module.
11835
11836 2011-02-05  Bruno Haible  <bruno@clisp.org>
11837
11838         New module 'wmemset'.
11839         * modules/wmemset: New file.
11840         * lib/wchar.in.h (wmemset): New declaration.
11841         * lib/wmemset.c: New file.
11842         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11843         * m4/wmemset.m4: New file.
11844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11846         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11847         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11848         * doc/posix-functions/wmemset.texi: Mention the new module.
11849
11850 2011-02-05  Bruno Haible  <bruno@clisp.org>
11851
11852         New module 'wmemmove'.
11853         * modules/wmemmove: New file.
11854         * lib/wchar.in.h (wmemmove): New declaration.
11855         * lib/wmemmove.c: New file.
11856         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11857         * m4/wmemmove.m4: New file.
11858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11860         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11861         HAVE_WMEMMOVE.
11862         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11863         * doc/posix-functions/wmemmove.texi: Mention the new module.
11864
11865 2011-02-05  Bruno Haible  <bruno@clisp.org>
11866
11867         New module 'wmemcpy'.
11868         * modules/wmemcpy: New file.
11869         * lib/wchar.in.h (wmemcpy): New declaration.
11870         * lib/wmemcpy.c: New file.
11871         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11872         * m4/wmemcpy.m4: New file.
11873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11875         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11876         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11877         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11878
11879 2011-02-05  Bruno Haible  <bruno@clisp.org>
11880
11881         New module 'wmemcmp'.
11882         * modules/wmemcmp: New file.
11883         * lib/wchar.in.h (wmemcmp): New declaration.
11884         * lib/wmemcmp.c: New file.
11885         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11886         * m4/wmemcmp.m4: New file.
11887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11889         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11890         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11891         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11892
11893 2011-02-07  Jim Meyering  <meyering@redhat.com>
11894
11895         di-set, ino-map: new modules, from coreutils
11896         * lib/di-set.c: New file.
11897         * lib/di-set.h: Likewise.
11898         * lib/ino-map.c: Likewise.
11899         * lib/ino-map.h: Likewise.
11900         * modules/di-set: Likewise.
11901         * modules/di-set-tests: Likewise.
11902         * modules/ino-map: Likewise.
11903         * modules/ino-map-tests: Likewise.
11904         * tests/test-di-set.c: Likewise.
11905         * tests/test-ino-map.c: Likewise.
11906
11907 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11908
11909         getloadavg: merge minor changes from Emacs
11910
11911         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11912         (getloadavg): Use memset, not bzero.
11913
11914         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11915         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11916         clash (bug#86).
11917
11918 2010-11-14  Bruno Haible  <bruno@clisp.org>
11919
11920         Allow multiple gnulib generated replacements to coexist.
11921         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11922         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11923         * lib/langinfo.in.h (nl_item): Likewise.
11924         * lib/math.in.h (_NaN, NAN): Likewise.
11925         * lib/netdb.in.h (struct addrinfo): Likewise.
11926         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11927         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11928         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11929         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11930         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11931         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11932         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11933         pthread_mutexattr_init, pthread_mutexattr_settype,
11934         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11935         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11936         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11937         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11938         * lib/sched.in.h (struct sched_param): Likewise.
11939         * lib/se-selinux.in.h (security_class_t, security_context_t,
11940         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11941         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11942         lsetfilecon, fsetfilecon, security_check_context,
11943         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11944         Likewise.
11945         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11946         Likewise.
11947         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11948         _gl_function_taking_int_returning_void_t, union sigval,
11949         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11950         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11951         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11952         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11953         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11954         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11955         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11956         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11957         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11958         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11959         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11960         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11961         socklen_t, rpl_fd_isset): Likewise.
11962         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11963         * lib/sys_time.in.h (struct timeval): Likewise.
11964         * lib/sys_times.in.h (struct tms): Likewise.
11965         * lib/sys_utsname.in.h (struct utsname):
11966         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11967         * lib/unistd.in.h (getpagesize): Likewise.
11968         * lib/wchar.in.h (mbstate_t): Likewise.
11969         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11970         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11971         towlower, towupper): Likewise.
11972         Reported by Sam Steingold <sds@gnu.org>.
11973
11974 2011-02-05  Eric Blake  <eblake@redhat.com>
11975
11976         unsetenv: work around Haiku issues
11977         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11978         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11979
11980 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11981
11982         libposix: avoid calling error() within libposix
11983         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11984         is defined.
11985
11986 2011-02-05  Eric Blake  <eblake@redhat.com>
11987
11988         strerror_r-posix: port to cygwin
11989         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11990         implementation.
11991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11992         * tests/test-strerror_r.c (main): Fix test.
11993         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11994         issue.
11995
11996 2011-02-05  Bruno Haible  <bruno@clisp.org>
11997
11998         New module 'wmemchr'.
11999         * modules/wmemchr: New file.
12000         * lib/wchar.in.h (wmemchr): New declaration.
12001         * lib/wmemchr.c: New file.
12002         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12003         * m4/wmemchr.m4: New file.
12004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12006         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12007         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12008         * doc/posix-functions/wmemchr.texi: Mention the new module.
12009
12010 2011-02-04  Eric Blake  <eblake@redhat.com>
12011
12012         fdopendir: detect FreeBSD bug
12013         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12014         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12015
12016 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         stdbool: do not define HAVE_STDBOOL_H
12019         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12020         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12021         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12022         imported from the latest Autoconf git.  It was motivated by Emacs,
12023         which uses gnulib but does not need HAVE_STDBOOL_H.
12024
12025 2011-02-04  Bruno Haible  <bruno@clisp.org>
12026
12027         wcsnrtombs: Prepare for new module wwcsnrtombs.
12028         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12029         * lib/wcsnrtombs.c: Include it.
12030         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12031
12032         wcsrtombs: Prepare for new module wwcsrtombs.
12033         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12034         * lib/wcsrtombs.c: Include it.
12035         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12036
12037         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12038         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12039         * lib/mbsnrtowcs.c: Include it.
12040         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12041
12042         mbsrtowcs: Prepare for new module mbsrtowwcs.
12043         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12044         * lib/mbsrtowcs.c: Include it.
12045         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12046
12047 2011-02-04  Bruno Haible  <bruno@clisp.org>
12048
12049         vasnprintf: Reduce use of malloc for small format strings.
12050         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12051         (arguments): Add room for the first 7 arguments.
12052         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12053         (char_directives, u8_directives, u16_directives, u32_directives): Add
12054         room for the first 7 directives.
12055         * lib/printf-parse.c: Include <string.h>.
12056         (PRINTF_PARSE): Change memory handling code so that it uses the first
12057         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12058         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12059         Reported by Pádraig Brady <P@draigbrady.com>.
12060
12061 2011-01-31  Eric Blake  <eblake@redhat.com>
12062
12063         dup2: work around Haiku bug
12064         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12065         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12066         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12067         * tests/test-dup2.c (main): Enhance test.
12068
12069 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12070
12071         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12072         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12073         declared by eglibc 2.11.2.
12074         * lib/stdio.in.h: Likewise.
12075
12076 2011-01-31  Eric Blake  <eblake@redhat.com>
12077
12078         ignore-value: add missing test dependency
12079         * tests/test-ignore-value.c: Revert previous change; stdio.h
12080         provides off_t.
12081         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12082
12083 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         mktime: clarify long_int width checking
12086         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12087         the top level, to make it clearer that the assumption about
12088         long_int width is being checked.  See
12089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12090
12091 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12092
12093         ignore-value: Fix self-test.
12094         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12095
12096 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12097
12098         TYPE_MAXIMUM: avoid theoretically undefined behavior
12099         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12100         negative number, which the C Standard says has undefined behavior.
12101         In practice this is not a problem, but might as well do it by the book.
12102         Reported by Rich Felker and Eric Blake; see
12103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12104         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12105         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12107         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12108         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12109         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12110
12111         mktime: #undef mktime before #defining it
12112         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12113
12114         mktime: systematically normalize tm_isdst comparisons
12115         * lib/mktime.c (isdst_differ): New function.
12116         (__mktime_internal): Use it systematically for all isdst comparisons.
12117         This completes the fix for libc BZ #6723, and removes the need for
12118         normalizing tm_isdst.  See
12119         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12120         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12121
12122         mktime: fix some integer overflow issues and sidestep the rest
12123
12124         This was prompted by a bug report by Benjamin Lindner for MinGW
12125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12126         His bug is due to signed integer overflow (0 - INT_MIN), and I
12127         I scanned through mktime.c looking for other integer overflow
12128         problems, fixing all the bugs I found.
12129
12130         Although the C Standard says the resulting code is still not safe
12131         in the presence of integer overflow, in practice it should be good
12132         enough for all real-world two's-complement implementations, except
12133         for debugging environments that deliberately trap on integer
12134         overflow (e.g., gcc -ftrapv).
12135
12136         * lib/mktime.c (WRAPV): New macro.
12137         (SHR): Also check that long_int and time_t shift right in the
12138         usual way, before using the fast-but-unportable method.
12139         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12140         used.  The code already assumed two's complement, so there's
12141         no need to test for alternatives.  All uses removed.
12142         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12143         the C standard.  Problem reported by Rich Felker in
12144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12145         (twos_complement_arithmetic): Also check long_int and time_t.
12146         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12147         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12148         (__mktime_internal): Avoid integer overflow with unary subtraction
12149         in two instances where -1 - X is an adequate replacement for -X,
12150         since the calculations are approximate.
12151
12152 2011-01-29  Eric Blake  <eblake@redhat.com>
12153
12154         mktime: avoid infinite loop
12155         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12156         type; behavior is still undefined but portable to all known targets.
12157         Reported by Rich Felker.
12158
12159 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12160
12161         rename, unlink, same-inode: Relicense.
12162         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12163         * modules/unlink (License): Likewise.
12164         * modules/same-inode (License): Likewise.
12165
12166 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12167
12168         mktime: avoid problems on NetBSD 5 / i386
12169         * lib/mktime.c (long_int): New type.  This works around a problem
12170         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12171         but time_t is 64 bits, and where I expect the existing code is
12172         wrong in some cases.
12173         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12174         (ydhms_diff): Bring back the compile-time check for wide-enough
12175         year and yday.
12176
12177         mktime: fix misspelling in comment
12178         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12179         This merges all recent glibc changes of importance.
12180
12181 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12182
12183         move-if-change: cope with concurrent mv of identical file.
12184         * build-aux/move-if-change (CMPPROG): Accept environment
12185         variable as an override for `cmp'.
12186         (usage): Document CMPPROG.
12187         Adjust comparison to drop stdout.  Cope with failure of mv if
12188         the target file exists and is identical to the source, for
12189         parallel builds.
12190         Report from H.J. Lu against binutils in PR binutils/12283.
12191
12192 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12193
12194         * users.txt: Mention sharutils.
12195
12196 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12197
12198         * users.txt: Mention OATH Toolkit.
12199
12200 2011-01-27  Bruno Haible  <bruno@clisp.org>
12201
12202         Prepare for supporting FreeBSD 10.
12203         * build-aux/config.libpath: Remove handling of freebsd1*.
12204
12205 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12206
12207         Prepare for supporting FreeBSD 10.
12208         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12209         match FreeBSD 10.0.
12210
12211 2011-01-27  Bruno Haible  <bruno@clisp.org>
12212
12213         vma-iter, get-rusage-as: Add OpenBSD support.
12214         * modules/vma-iter (configure.ac): Test for mquery.
12215         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12216         * lib/vma-iter.c: Include <sys/mman.h>.
12217         (vma_iterate): Add an implementation based on mquery().
12218         * lib/resource-ext.h (get_rusage_as): Update comments.
12219         * lib/get-rusage-as.c: Likewise.
12220         * lib/get-rusage-data.c: Likewise.
12221
12222 2011-01-26  Karl Berry  <karl@gnu.org>
12223
12224         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12225         variables to make it easier to override the makeinfo program used.
12226
12227 2011-01-26  Eric Blake  <eblake@redhat.com>
12228
12229         fcntl: work around Haiku F_DUPFD bugs
12230         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12231         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12232         cloexec bit on duplication.
12233         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12234
12235 2011-01-26  Bruno Haible  <bruno@clisp.org>
12236
12237         Enable memory leak tests on AIX.
12238         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12239         * tests/test-fprintf-posix3.c (main): Likewise.
12240
12241 2011-01-26  Bruno Haible  <bruno@clisp.org>
12242
12243         Tests for module 'get-rusage-data'.
12244         * modules/get-rusage-data-tests: New file.
12245         * tests/test-get-rusage-data.c: New file.
12246
12247         New module 'get-rusage-data'.
12248         * lib/resource-ext.h (get_rusage_data): New declaration.
12249         * lib/get-rusage-data.c: New file.
12250         * modules/get-rusage-data: New file.
12251
12252 2011-01-25  Bruno Haible  <bruno@clisp.org>
12253
12254         get-rusage-as: Allow for easier testing.
12255         * lib/resource-ext.h (get_rusage_as): Add comment.
12256         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12257         (main): New function for interactive testing.
12258
12259 2011-01-25  Bruno Haible  <bruno@clisp.org>
12260
12261         vma-iter: Treat Haiku like BeOS.
12262         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12263         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12264
12265 2011-01-25  Eric Blake  <eblake@redhat.com>
12266
12267         c-stack: fix regression on cygwin when libsigsegv is present
12268         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12269
12270 2011-01-24  Bruno Haible  <bruno@clisp.org>
12271
12272         vma-iter: Avoid empty intervals.
12273         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12274         on an empty interval.
12275
12276 2011-01-24  Jim Meyering  <meyering@redhat.com>
12277
12278         u64: remove unnecessary #include
12279         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12280
12281 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12282
12283         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12284         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12285
12286 2011-01-23  Bruno Haible  <bruno@clisp.org>
12287
12288         New module 'vma-iter'.
12289         * lib/vma-iter.h: New file.
12290         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12291         * modules/vma-iter: New file.
12292         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12293         for get_rusage_as_via_iterator.
12294         (vma_iterate_callback): New function.
12295         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12296         * modules/get-rusage-as (Depends-on): Add vma-iter.
12297
12298 2011-01-23  Bruno Haible  <bruno@clisp.org>
12299
12300         uninorm: Tweak includes.
12301         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12302         Reported by Jim Meyering.
12303
12304 2011-01-23  Bruno Haible  <bruno@clisp.org>
12305
12306         get-rusage-as: Improve on NetBSD.
12307         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12308         /proc, like on FreeBSD.
12309
12310 2011-01-23  Jim Meyering  <meyering@redhat.com>
12311
12312         xreadlink.h: remove unnecessary #include
12313         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12314
12315         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12316         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12317
12318 2011-01-23  Bruno Haible  <bruno@clisp.org>
12319
12320         get-rusage-as: Fix bug.
12321         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12322         original limit when aborting the first loop.
12323
12324 2011-01-23  Bruno Haible  <bruno@clisp.org>
12325
12326         wctype: Ensure valid C syntax.
12327         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12328         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12329
12330 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12331
12332         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12334         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12335         as they are needed only for configure's test case.
12336         This removes two unnecessary symbols from config.h.
12337
12338         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12339         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12341         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12342         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12343         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12344         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12345         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12346         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12347         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12348         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12350         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12351         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12352         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12353         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12354         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12355         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12356
12357 2011-01-21  Eric Blake  <eblake@redhat.com>
12358
12359         maintainer-makefile: work with older git for submodule check
12360         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12361         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12362         Reported by Matthias Bolte.
12363
12364         bootstrap: minor portability fixes
12365         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12366         (usage): Omit leading capital and trailing . on help phrases, per
12367         GNU Coding Standards.
12368         (check_versions, top level): Prefix messages with script name.
12369
12370 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12371
12372         bootstrap: support --no-git option
12373         * build-aux/bootstrap: Add --no-git option, to be used when
12374         --gnulib-srcdir points to the exact desired checkout.
12375
12376 2011-01-21  Eric Blake  <eblake@redhat.com>
12377
12378         strerror_r-posix: work with glibc 2.13
12379         * lib/strerror_r.c (strerror_r): Fix return type.
12380
12381 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12382             Bruno Haible  <bruno@clisp.org>
12383
12384         uN_strstr: New unit tests.
12385         * modules/unistr/u8-strstr-tests: New file.
12386         * modules/unistr/u16-strstr-tests: New file.
12387         * modules/unistr/u32-strstr-tests: New file.
12388         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12389         * tests/unistr/test-u8-strstr.c: New file.
12390         * tests/unistr/test-u16-strstr.c: New file.
12391         * tests/unistr/test-u32-strstr.c: New file.
12392
12393 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12394             Bruno Haible  <bruno@clisp.org>
12395
12396         Make uN_strstr functions O(n) worst-case.
12397         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12398         16-bit and 32-bit unit cases, use the unibyte algorithm from
12399         lib/mbsstr.c.
12400         * lib/unistr/u8-strstr.c: Include <string.h>.
12401         (UNIT_IS_UINT8_T): New macro.
12402         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12403         (U_STRLEN, U_STRNLEN): New macros.
12404         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12405         (U_STRLEN, U_STRNLEN): New macros.
12406         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12407         (configure.ac): Update required libunistring version.
12408         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12409         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12410         malloca.
12411         (configure.ac): Update required libunistring version.
12412         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12413         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12414         malloca.
12415         (configure.ac): Update required libunistring version.
12416
12417 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12418             Bruno Haible  <bruno@clisp.org>
12419
12420         Prepare for faster uN_strstr functions.
12421         * lib/str-kmp.h: Support definable UNITs.
12422         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12423         needle_len argument.
12424         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12425         * lib/mbscasestr.c (mbscasestr): Likewise.
12426
12427 2011-01-21  Pádraig Brady <P@draigBrady.com>
12428
12429         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12430         * tests/test-malloca.c (main): Unset the environment variable
12431         to greatly speed up the test.
12432         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12433         * modules/malloca-tests: Depend on unsetenv.
12434
12435 2011-01-21  Pádraig Brady <P@draigBrady.com>
12436
12437         ignore-value: remove stdint dependency
12438         * lib/ignore-value.h: Remove <stdint.h>
12439         * modules/ignore-value: Remove stdint dependency.
12440
12441 2011-01-21  Jim Meyering  <meyering@redhat.com>
12442
12443         maint.mk: adjust variable name to be consistent with other gl_ vars
12444         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12445         to be lower case.
12446
12447 2011-01-20  Jim Meyering  <meyering@redhat.com>
12448
12449         maint.mk: make "check" depend on public-submodule-commit by default
12450         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12451
12452 2011-01-20  Bruno Haible  <bruno@clisp.org>
12453
12454         mbfile, mbiter: Complete change from 2008-12-21.
12455         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12456         * m4/mbiter.m4 (gl_MBITER): Likewise.
12457
12458 2011-01-20  Jim Meyering  <meyering@redhat.com>
12459
12460         init.sh: insert space between each function name and "()"
12461         * tests/init.sh: Make it a little easier to see that a function's
12462         name is "warn_", and not "warn" when looking at the first part of
12463         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12464
12465 2011-01-20  Jim Meyering  <meyering@redhat.com>
12466
12467         mountlist: clean up code formatting
12468         * lib/mountlist.c (read_file_system_list): Split a long line,
12469         correct bracing style, use NULL in place of "(struct statfs *)0",
12470         don't parenthesize return value, add spaces around "=" and after
12471         ";-in-for-stmt".
12472
12473 2011-01-14  Markus Duft <mduft@gentoo.org>
12474
12475         mountlist: add support for Interix
12476         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12477         Apply statvfs to all entries of /dev/fs.
12478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12479         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12480
12481 2011-01-20  Jim Meyering  <meyering@redhat.com>
12482
12483         maint.mk: improve the public-submodule-commit rule
12484         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12485         to suppress printing of its commands... unless V=1.
12486         Add git submodule's --quiet option to suppress printing of e.g.,
12487         "Entering gnulib" output.
12488         "cd" into $(srcdir) before running git submodule.
12489
12490 2011-01-20  Bruno Haible  <bruno@clisp.org>
12491
12492         include_next: Fix bug introduced on 2011-01-18.
12493         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12494         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12495         ac_cv_header_... variable if the second argument is not 'check'.
12496         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12497         gl_NEXT_HEADERS_INTERNAL.
12498
12499 2011-01-20  Bruno Haible  <bruno@clisp.org>
12500
12501         Allow the user to avoid the GNULIB_TEST_* macros.
12502         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12503         Suggested by Paul Eggert.
12504
12505 2011-01-14  Jim Meyering  <meyering@redhat.com>
12506
12507         bootstrap: avoid failure when there is no .gitmodules file
12508         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12509         has been assigned to, even when its value is the empty string.
12510         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12511         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12512         Reported by John W. Eaton <jwe@gnu.org>.
12513
12514 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12515
12516         assume <ctype.h>, ..., <time.h> exist
12517         For years gnulib has been assuming the existence of the headers
12518         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12519         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12520         them, since they don't appear to be needed.
12521         * README (Portability guidelines): Document this.
12522         * lib/flock.c: Assume <fcntl.h> exists.
12523         * lib/regex_internal.h: Assume <locale.h> exists.
12524         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12525         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12526         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12527         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12528         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12529         * m4/regex.m4 (gl_REGEX): Likewise.
12530         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12531         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12532         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12533         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12534         * tests/test-argp.c: Likewise.
12535         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12536
12537         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12538         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12539         AA_APPLE_UNIVERSAL_BUILD.  See
12540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12541         * NEWS: Document this.
12542
12543 2011-01-19  Eric Blake  <eblake@redhat.com>
12544
12545         c-stack: assume stack overflow if SA_SIGINFO unsupported
12546         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12547         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12548         sigaction will work.
12549         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12550         behavior match Linux.
12551         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12552
12553         stdbool-tests: accomodate Haiku
12554         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12555
12556         binary-io: fix O_TEXT on Haiku
12557         * modules/binary-io (Depends-on): Add fcntl-h.
12558         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12559         than blindly undefining O_TEXT.
12560         Reported by Scott McCreary.
12561
12562 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12563
12564         include_next: do not check for standard headers like stddef.h
12565
12566         I found this problem when modifying Emacs to use gnulib.
12567         I noticed that it added HAVE_STDDEF_H to config.h, even though
12568         gnulib always assumes <stddef.h> exists as per README and this
12569         symbol is unnecessary.
12570         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12571         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12572         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12573         faster for headers like stddef.h that are known to exist.
12574         (gl_CHECK_NEXT_HEADERS): Use it.
12575         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12576         rather than gl_CHECK_NEXT_HEADERS.
12577         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12578         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12579
12580 2011-01-18  Eric Blake  <eblake@redhat.com>
12581
12582         ansi-c++-opt: skip C++ dependency style if C++ is unused
12583         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12584         tests when we know C++ compilation is not desired.
12585         Reported by Scott McCreary.
12586
12587 2011-01-18  Bruno Haible  <bruno@clisp.org>
12588
12589         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12590         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12591         (main): Perform test also when getrlimit and setrlimit don't exist or
12592         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12593         limiting the address space size using setrlimit, compare the address
12594         space size before and after the the test.
12595         * tests/test-dprintf-posix2.c: Likewise.
12596         * tests/test-fprintf-posix3.sh: Update skip messages.
12597         * tests/test-dprintf-posix2.sh: Likewise.
12598         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12599         * modules/dprintf-posix-tests (Depends-on): Likewise.
12600         Reported by Bruce Korb <bkorb@gnu.org> and
12601         Gary V. Vaughan <gary@gnu.org>.
12602
12603 2011-01-18  Bruno Haible  <bruno@clisp.org>
12604
12605         get-rusage-as: Improvement for Cygwin.
12606         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12607         areas that are merely reserved.
12608
12609 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12610
12611         strftime: remove dependencies on multibyte modules
12612
12613         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12614         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12615         only if __osf__ is defined, and I suspect OSF doesn't need these
12616         other modules.  If my guess is wrong, we'll need to come up with a
12617         variant of strftime that doesn't need the multibyte modules.
12618
12619         I discovered this problem when attempting modify Emacs to use the
12620         strftime module.  With the previous gnulib, this caused Emacs to
12621         need 31 new files, ranging from lib/config.charset to
12622         m4/wint_t.m4.  This was overkill and I expect would be offputting
12623         to the Emacs maintainers.  After this change, only 6 new files are
12624         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12625         stdbool.m4, and tm_gmtoff.m4.
12626
12627         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12628         Suggested by Bruno Haible in
12629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12630         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12631         and do not check for wchar.h.
12632         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12633         (Depends-on): Remove mbrlen, mbsinit, wchar.
12634
12635 2011-01-18  Bruno Haible  <bruno@clisp.org>
12636
12637         Tests for module 'get-rusage-as'.
12638         * modules/get-rusage-as-tests: New file.
12639         * tests/test-get-rusage-as.c: New file.
12640
12641         New module 'get-rusage-as'.
12642         * modules/get-rusage-as: New file.
12643         * lib/resource-ext.h: New file.
12644         * lib/get-rusage-as.c: New file.
12645
12646 2011-01-17  Eric Blake  <eblake@redhat.com>
12647
12648         sigaction: relax license from LGPLv3+ to LGPLv2+
12649         * modules/sigaction (License): Relax to LGPLv2+.
12650
12651 2011-01-14  Bruno Haible  <bruno@clisp.org>
12652
12653         filemode: Make function declarations usable in C++ mode.
12654         * lib/filemode.h: Enclose function declarations in extern "C" block.
12655         Reported by John W. Eaton <jwe@gnu.org>.
12656
12657 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12658
12659         save-cwd: no longer include "xgetcwd.h"
12660         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12661         This avoids a compilation failure in projects that use save-cwd
12662         without also using the xgetcwd module.
12663
12664 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12665
12666         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12667         This is so that a program like Emacs, which needs only dtoastr,
12668         does not have to bother with distributing and compiling ftoastr
12669         and ldtoastr.
12670         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12671         * modules/dtoastr, modules/ldtoastr: New files.
12672         * modules/ftoastr: Now works just for 'float'.
12673         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12674         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12675         dtoastr.c, ldtoastr.c.
12676
12677 2011-01-11  Jim Meyering  <meyering@redhat.com>
12678
12679         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12680         There is no need to work around the lack of the fchdir function,
12681         since gnulib can now provide a replacement when required.
12682         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12683         * modules/save-cwd (Depends-on): Add fchdir.
12684
12685 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         openat, save-cwd: avoid xmalloc
12688
12689         This removes a direct (but undocumented) dependency of openat on
12690         xalloc, along with an indirect dependency via save-cwd.  It also
12691         removes a dependency of save-cwd on xgetcwd, and thereby
12692         indirectly on xalloc.  This change causes the openat substitute
12693         to fall back on save_cwd when memory is tight, and for save_cwd to
12694         fail instead of dying when memory is tight, but that's good enough.
12695         Problem and initial idea for fix reported by Bastien Roucaries in
12696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12697
12698         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12699         xalloc.h (for xmalloc).
12700         (openat_proc_name): Use malloc, not xmalloc.
12701         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12702         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12703
12704         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12705         This avoids heap allocation for file names whose lengths are in
12706         the range 512..1023, with the upper bound increasing to at most
12707         4031 depending on the platform's PATH_MAX.  (We do not want
12708         pathmax.h here as it might supply a non-constant PATH_MAX.)
12709         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12710         Perhaps they should be moved to malloca.h?
12711         (OPENAT_BUFFER_SIZE): Use them.
12712
12713 2011-01-10  Bruno Haible  <bruno@clisp.org>
12714
12715         doc: Update users.txt.
12716         * users.txt: Add recutils.
12717
12718 2011-01-09  Karl Berry  <karl@gnu.org>
12719
12720         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12721
12722         * doc/configmake.texi: New file.
12723         * doc/gnulib.texi: Include it.
12724         * modules/configmake: Move documentation from here.
12725
12726 2011-01-09  Bruno Haible  <bruno@clisp.org>
12727
12728         Update to Unicode 6.0.0.
12729         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12730         (get_lbp): Update for Unicode 6.0.0.
12731         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12732         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12733         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12734         U+11001, U+11038..U+11046. Remove U+06DE.
12735         (uc_width): Fix bounds of planes.
12736         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12737         lib/uniwidth/width.c.
12738         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12739         trailing whitespace removed.
12740         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12741         without comments, but with the original copyright notice.
12742         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12743         * lib/unicase/ignorable.h: Likewise.
12744         * lib/unicase/tocasefold.h: Likewise.
12745         * lib/unicase/tolower.h: Likewise.
12746         * lib/unicase/totitle.h: Likewise.
12747         * lib/unicase/toupper.h: Likewise.
12748         * lib/unictype/bidi_of.h: Likewise.
12749         * lib/unictype/blocks.h: Likewise.
12750         * lib/unictype/categ_C.h: Likewise.
12751         * lib/unictype/categ_Cn.h: Likewise.
12752         * lib/unictype/categ_L.h: Likewise.
12753         * lib/unictype/categ_Ll.h: Likewise.
12754         * lib/unictype/categ_Lm.h: Likewise.
12755         * lib/unictype/categ_Lo.h: Likewise.
12756         * lib/unictype/categ_Lu.h: Likewise.
12757         * lib/unictype/categ_M.h: Likewise.
12758         * lib/unictype/categ_Mc.h: Likewise.
12759         * lib/unictype/categ_Me.h: Likewise.
12760         * lib/unictype/categ_Mn.h: Likewise.
12761         * lib/unictype/categ_N.h: Likewise.
12762         * lib/unictype/categ_Nd.h: Likewise.
12763         * lib/unictype/categ_No.h: Likewise.
12764         * lib/unictype/categ_P.h: Likewise.
12765         * lib/unictype/categ_Po.h: Likewise.
12766         * lib/unictype/categ_S.h: Likewise.
12767         * lib/unictype/categ_Sc.h: Likewise.
12768         * lib/unictype/categ_Sk.h: Likewise.
12769         * lib/unictype/categ_Sm.h: Likewise.
12770         * lib/unictype/categ_So.h: Likewise.
12771         * lib/unictype/categ_of.h: Likewise.
12772         * lib/unictype/combining.h: Likewise.
12773         * lib/unictype/ctype_alnum.h: Likewise.
12774         * lib/unictype/ctype_alpha.h: Likewise.
12775         * lib/unictype/ctype_graph.h: Likewise.
12776         * lib/unictype/ctype_lower.h: Likewise.
12777         * lib/unictype/ctype_print.h: Likewise.
12778         * lib/unictype/ctype_punct.h: Likewise.
12779         * lib/unictype/ctype_upper.h: Likewise.
12780         * lib/unictype/decdigit.h: Likewise.
12781         * lib/unictype/digit.h: Likewise.
12782         * lib/unictype/numeric.h: Likewise.
12783         * lib/unictype/pr_alphabetic.h: Likewise.
12784         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12786         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12787         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12788         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12789         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12790         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12791         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12792         * lib/unictype/pr_case_ignorable.h: Likewise.
12793         * lib/unictype/pr_cased.h: Likewise.
12794         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12795         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12796         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12797         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12798         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12799         * lib/unictype/pr_combining.h: Likewise.
12800         * lib/unictype/pr_composite.h: Likewise.
12801         * lib/unictype/pr_currency_symbol.h: Likewise.
12802         * lib/unictype/pr_decimal_digit.h: Likewise.
12803         * lib/unictype/pr_deprecated.h: Likewise.
12804         * lib/unictype/pr_format_control.h: Likewise.
12805         * lib/unictype/pr_grapheme_base.h: Likewise.
12806         * lib/unictype/pr_grapheme_extend.h: Likewise.
12807         * lib/unictype/pr_grapheme_link.h: Likewise.
12808         * lib/unictype/pr_id_continue.h: Likewise.
12809         * lib/unictype/pr_id_start.h: Likewise.
12810         * lib/unictype/pr_ideographic.h: Likewise.
12811         * lib/unictype/pr_lowercase.h: Likewise.
12812         * lib/unictype/pr_math.h: Likewise.
12813         * lib/unictype/pr_numeric.h: Likewise.
12814         * lib/unictype/pr_other_alphabetic.h: Likewise.
12815         * lib/unictype/pr_other_id_continue.h: Likewise.
12816         * lib/unictype/pr_other_math.h: Likewise.
12817         * lib/unictype/pr_punctuation.h: Likewise.
12818         * lib/unictype/pr_sentence_terminal.h: Likewise.
12819         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12820         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12821         * lib/unictype/pr_unified_ideograph.h: Likewise.
12822         * lib/unictype/pr_uppercase.h: Likewise.
12823         * lib/unictype/pr_xid_continue.h: Likewise.
12824         * lib/unictype/pr_xid_start.h: Likewise.
12825         * lib/unictype/scripts.h: Likewise.
12826         * lib/unictype/scripts_byname.gperf: Likewise.
12827         * lib/unictype/sy_java_ident.h: Likewise.
12828         * lib/unigbrk/gbrkprop.h: Likewise.
12829         * lib/unilbrk/lbrkprop1.h: Likewise.
12830         * lib/unilbrk/lbrkprop2.h: Likewise.
12831         * lib/uninorm/decomposition-table2.h: Likewise.
12832         * lib/uniwbrk/wbrkprop.h: Likewise.
12833         * tests/unicase/test-cased.c: Likewise.
12834         * tests/unicase/test-ignorable.c: Likewise.
12835         * tests/unicase/test-uc_tolower.c: Likewise.
12836         * tests/unicase/test-uc_totitle.c: Likewise.
12837         * tests/unicase/test-uc_toupper.c: Likewise.
12838         * tests/unictype/test-categ_C.c: Likewise.
12839         * tests/unictype/test-categ_Cn.c: Likewise.
12840         * tests/unictype/test-categ_L.c: Likewise.
12841         * tests/unictype/test-categ_Ll.c: Likewise.
12842         * tests/unictype/test-categ_Lm.c: Likewise.
12843         * tests/unictype/test-categ_Lo.c: Likewise.
12844         * tests/unictype/test-categ_Lu.c: Likewise.
12845         * tests/unictype/test-categ_M.c: Likewise.
12846         * tests/unictype/test-categ_Mc.c: Likewise.
12847         * tests/unictype/test-categ_Me.c: Likewise.
12848         * tests/unictype/test-categ_Mn.c: Likewise.
12849         * tests/unictype/test-categ_N.c: Likewise.
12850         * tests/unictype/test-categ_Nd.c: Likewise.
12851         * tests/unictype/test-categ_No.c: Likewise.
12852         * tests/unictype/test-categ_P.c: Likewise.
12853         * tests/unictype/test-categ_Po.c: Likewise.
12854         * tests/unictype/test-categ_S.c: Likewise.
12855         * tests/unictype/test-categ_Sc.c: Likewise.
12856         * tests/unictype/test-categ_Sk.c: Likewise.
12857         * tests/unictype/test-categ_Sm.c: Likewise.
12858         * tests/unictype/test-categ_So.c: Likewise.
12859         * tests/unictype/test-ctype_alnum.c: Likewise.
12860         * tests/unictype/test-ctype_alpha.c: Likewise.
12861         * tests/unictype/test-ctype_graph.c: Likewise.
12862         * tests/unictype/test-ctype_lower.c: Likewise.
12863         * tests/unictype/test-ctype_print.c: Likewise.
12864         * tests/unictype/test-ctype_punct.c: Likewise.
12865         * tests/unictype/test-ctype_upper.c: Likewise.
12866         * tests/unictype/test-decdigit.h: Likewise.
12867         * tests/unictype/test-digit.h: Likewise.
12868         * tests/unictype/test-numeric.h: Likewise.
12869         * tests/unictype/test-pr_alphabetic.c: Likewise.
12870         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12871         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12872         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12873         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12874         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12875         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12876         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12877         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12878         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12879         * tests/unictype/test-pr_cased.c: Likewise.
12880         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12881         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12882         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12883         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12884         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12885         * tests/unictype/test-pr_combining.c: Likewise.
12886         * tests/unictype/test-pr_composite.c: Likewise.
12887         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12888         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12889         * tests/unictype/test-pr_deprecated.c: Likewise.
12890         * tests/unictype/test-pr_format_control.c: Likewise.
12891         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12892         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12893         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12894         * tests/unictype/test-pr_id_continue.c: Likewise.
12895         * tests/unictype/test-pr_id_start.c: Likewise.
12896         * tests/unictype/test-pr_ideographic.c: Likewise.
12897         * tests/unictype/test-pr_lowercase.c: Likewise.
12898         * tests/unictype/test-pr_math.c: Likewise.
12899         * tests/unictype/test-pr_numeric.c: Likewise.
12900         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12901         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12902         * tests/unictype/test-pr_other_math.c: Likewise.
12903         * tests/unictype/test-pr_punctuation.c: Likewise.
12904         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12905         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12906         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12907         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12908         * tests/unictype/test-pr_uppercase.c: Likewise.
12909         * tests/unictype/test-pr_xid_continue.c: Likewise.
12910         * tests/unictype/test-pr_xid_start.c: Likewise.
12911         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12912         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12913         changes.
12914         * lib/unictype/categ_Cc.h: Likewise.
12915         * lib/unictype/categ_Cf.h: Likewise.
12916         * lib/unictype/categ_Co.h: Likewise.
12917         * lib/unictype/categ_Cs.h: Likewise.
12918         * lib/unictype/categ_Lt.h: Likewise.
12919         * lib/unictype/categ_Nl.h: Likewise.
12920         * lib/unictype/categ_Pc.h: Likewise.
12921         * lib/unictype/categ_Pd.h: Likewise.
12922         * lib/unictype/categ_Pe.h: Likewise.
12923         * lib/unictype/categ_Pf.h: Likewise.
12924         * lib/unictype/categ_Pi.h: Likewise.
12925         * lib/unictype/categ_Ps.h: Likewise.
12926         * lib/unictype/categ_Z.h: Likewise.
12927         * lib/unictype/categ_Zl.h: Likewise.
12928         * lib/unictype/categ_Zp.h: Likewise.
12929         * lib/unictype/categ_Zs.h: Likewise.
12930         * lib/unictype/ctype_blank.h: Likewise.
12931         * lib/unictype/ctype_cntrl.h: Likewise.
12932         * lib/unictype/ctype_digit.h: Likewise.
12933         * lib/unictype/ctype_space.h: Likewise.
12934         * lib/unictype/ctype_xdigit.h: Likewise.
12935         * lib/unictype/mirror.h: Likewise.
12936         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12937         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12938         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12939         * lib/unictype/pr_bidi_control.h: Likewise.
12940         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12941         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12942         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12943         * lib/unictype/pr_bidi_pdf.h: Likewise.
12944         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12945         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12946         * lib/unictype/pr_dash.h: Likewise.
12947         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12948         * lib/unictype/pr_diacritic.h: Likewise.
12949         * lib/unictype/pr_extender.h: Likewise.
12950         * lib/unictype/pr_hex_digit.h: Likewise.
12951         * lib/unictype/pr_hyphen.h: Likewise.
12952         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12953         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12954         * lib/unictype/pr_ignorable_control.h: Likewise.
12955         * lib/unictype/pr_iso_control.h: Likewise.
12956         * lib/unictype/pr_join_control.h: Likewise.
12957         * lib/unictype/pr_left_of_pair.h: Likewise.
12958         * lib/unictype/pr_line_separator.h: Likewise.
12959         * lib/unictype/pr_logical_order_exception.h: Likewise.
12960         * lib/unictype/pr_non_break.h: Likewise.
12961         * lib/unictype/pr_not_a_character.h: Likewise.
12962         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12963         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12964         * lib/unictype/pr_other_id_start.h: Likewise.
12965         * lib/unictype/pr_other_lowercase.h: Likewise.
12966         * lib/unictype/pr_other_uppercase.h: Likewise.
12967         * lib/unictype/pr_paired_punctuation.h: Likewise.
12968         * lib/unictype/pr_paragraph_separator.h: Likewise.
12969         * lib/unictype/pr_pattern_syntax.h: Likewise.
12970         * lib/unictype/pr_pattern_white_space.h: Likewise.
12971         * lib/unictype/pr_private_use.h: Likewise.
12972         * lib/unictype/pr_quotation_mark.h: Likewise.
12973         * lib/unictype/pr_radical.h: Likewise.
12974         * lib/unictype/pr_soft_dotted.h: Likewise.
12975         * lib/unictype/pr_space.h: Likewise.
12976         * lib/unictype/pr_titlecase.h: Likewise.
12977         * lib/unictype/pr_variation_selector.h: Likewise.
12978         * lib/unictype/pr_white_space.h: Likewise.
12979         * lib/unictype/pr_zero_width.h: Likewise.
12980         * lib/unictype/sy_c_ident.h: Likewise.
12981         * lib/unictype/sy_c_whitespace.h: Likewise.
12982         * lib/unictype/sy_java_whitespace.h: Likewise.
12983         * lib/uninorm/composition-table.gperf: Likewise.
12984         * lib/uninorm/decomposition-table1.h: Likewise.
12985         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12986         LB8.
12987         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12988         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12989         * modules/unictype/*: Bump version number of expected libunistring
12990         version.
12991
12992 2011-01-09  Bruno Haible  <bruno@clisp.org>
12993
12994         Update to Unicode 5.2.0.
12995         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12996         trailing whitespace removed.
12997
12998 2011-01-09  Bruno Haible  <bruno@clisp.org>
12999
13000         New Unicode character properties, from Unicode 5.2.0.
13001         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13002         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13003         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13004         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13005         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13006         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13007         uc_is_property_cased, uc_is_property_case_ignorable,
13008         uc_is_property_changes_when_lowercased,
13009         uc_is_property_changes_when_uppercased,
13010         uc_is_property_changes_when_titlecased,
13011         uc_is_property_changes_when_casefolded,
13012         uc_is_property_changes_when_casemapped): New declarations.
13013         * lib/unictype/pr_byname.gperf: Add the new properties.
13014         * modules/unictype/property-byname (Depends-on): Depend on the new
13015         properties modules.
13016         * modules/unictype/property-all (Depends-on): Likewise.
13017         * MODULES.html.sh (Unicode string functions): Add
13018         unictype/property-case-ignorable, unictype/property-cased,
13019         unictype/property-changes-when-casefolded,
13020         unictype/property-changes-when-casemapped,
13021         unictype/property-changes-when-lowercased,
13022         unictype/property-changes-when-titlecased,
13023         unictype/property-changes-when-uppercased.
13024
13025         New module 'unictype/property-changes-when-casemapped'.
13026         * modules/unictype/property-changes-when-casemapped: New file.
13027         * lib/unictype/pr_changes_when_casemapped.c: New file.
13028         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13029         generated by gen-uni-tables.
13030         * modules/unictype/property-changes-when-casemapped-tests: New file.
13031         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13032         automatically generated by gen-uni-tables.
13033
13034         New module 'unictype/property-changes-when-casefolded'.
13035         * modules/unictype/property-changes-when-casefolded: New file.
13036         * lib/unictype/pr_changes_when_casefolded.c: New file.
13037         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13038         generated by gen-uni-tables.
13039         * modules/unictype/property-changes-when-casefolded-tests: New file.
13040         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13041         automatically generated by gen-uni-tables.
13042
13043         New module 'unictype/property-changes-when-titlecased'.
13044         * modules/unictype/property-changes-when-titlecased: New file.
13045         * lib/unictype/pr_changes_when_titlecased.c: New file.
13046         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13047         generated by gen-uni-tables.
13048         * modules/unictype/property-changes-when-titlecased-tests: New file.
13049         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13050         automatically generated by gen-uni-tables.
13051
13052         New module 'unictype/property-changes-when-uppercased'.
13053         * modules/unictype/property-changes-when-uppercased: New file.
13054         * lib/unictype/pr_changes_when_uppercased.c: New file.
13055         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13056         generated by gen-uni-tables.
13057         * modules/unictype/property-changes-when-uppercased-tests: New file.
13058         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13059         automatically generated by gen-uni-tables.
13060
13061         New module 'unictype/property-changes-when-lowercased'.
13062         * modules/unictype/property-changes-when-lowercased: New file.
13063         * lib/unictype/pr_changes_when_lowercased.c: New file.
13064         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13065         generated by gen-uni-tables.
13066         * modules/unictype/property-changes-when-lowercased-tests: New file.
13067         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13068         automatically generated by gen-uni-tables.
13069
13070         New module 'unictype/property-case-ignorable'.
13071         * modules/unictype/property-case-ignorable: New file.
13072         * lib/unictype/pr_case_ignorable.c: New file.
13073         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13074         by gen-uni-tables.
13075         * modules/unictype/property-case-ignorable-tests: New file.
13076         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13077         generated by gen-uni-tables.
13078
13079         New module 'unictype/property-cased'.
13080         * modules/unictype/property-cased: New file.
13081         * lib/unictype/pr_cased.c: New file.
13082         * lib/unictype/pr_cased.h: New file, automatically generated by
13083         gen-uni-tables.
13084         * modules/unictype/property-cased-tests: New file.
13085         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13086         gen-uni-tables.
13087
13088 2011-01-09  Bruno Haible  <bruno@clisp.org>
13089
13090         Update to Unicode 5.2.0.
13091         * lib/gen-uni-tables.c (output_predicate, output_category,
13092         output_combclass, output_bidi_category, output_decimal_digit_test,
13093         output_decimal_digit, output_digit_test, output_digit,
13094         output_numeric_test, output_numeric, output_mirror, output_scripts,
13095         output_scripts_byname, output_blocks, output_ident_category): Fix
13096         comment header.
13097         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13098         get_wbp.
13099         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13100         items.
13101         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13102         Changes_When_Lowercased, Changes_When_Uppercased,
13103         Changes_When_Titlecased, Changes_When_Casefolded,
13104         Changes_When_Casemapped.
13105         (is_property_alphabetic, is_property_default_ignorable_code_point):
13106         Update for Unicode 5.2.0.
13107         (is_property_cased, is_property_case_ignorable,
13108         is_property_changes_when_lowercased,
13109         is_property_changes_when_uppercased,
13110         is_property_changes_when_titlecased,
13111         is_property_changes_when_casefolded,
13112         is_property_changes_when_casemapped): New functions.
13113         (output_properties): Output also the properties cased, case_ignorable,
13114         changes_when_lowercased, changes_when_uppercased,
13115         changes_when_titlecased, changes_when_casefolded,
13116         changes_when_casemapped.
13117         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13118         Unicode TR#11 revision 17 -> 19.
13119         (LBP_CP): New enumeration value.
13120         (LBP_*): Adjust values accordingly.
13121         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13122         TR#14 revision 22 -> 24.
13123         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13124         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13125         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13126         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13127         is_WBP_MIDLETTER.
13128         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13129         the code1 and code2 of each composition rule.
13130         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13131         * lib/unicase/ignorable.h: Likewise.
13132         * lib/unicase/tocasefold.h: Likewise.
13133         * lib/unicase/tolower.h: Likewise.
13134         * lib/unicase/totitle.h: Likewise.
13135         * lib/unicase/toupper.h: Likewise.
13136         * lib/unictype/bidi_of.h: Likewise.
13137         * lib/unictype/blocks.h: Likewise.
13138         * lib/unictype/categ_C.h: Likewise.
13139         * lib/unictype/categ_Cf.h: Likewise.
13140         * lib/unictype/categ_Cn.h: Likewise.
13141         * lib/unictype/categ_L.h: Likewise.
13142         * lib/unictype/categ_Ll.h: Likewise.
13143         * lib/unictype/categ_Lm.h: Likewise.
13144         * lib/unictype/categ_Lo.h: Likewise.
13145         * lib/unictype/categ_Lu.h: Likewise.
13146         * lib/unictype/categ_M.h: Likewise.
13147         * lib/unictype/categ_Mc.h: Likewise.
13148         * lib/unictype/categ_Mn.h: Likewise.
13149         * lib/unictype/categ_N.h: Likewise.
13150         * lib/unictype/categ_Nd.h: Likewise.
13151         * lib/unictype/categ_Nl.h: Likewise.
13152         * lib/unictype/categ_No.h: Likewise.
13153         * lib/unictype/categ_P.h: Likewise.
13154         * lib/unictype/categ_Pd.h: Likewise.
13155         * lib/unictype/categ_Po.h: Likewise.
13156         * lib/unictype/categ_S.h: Likewise.
13157         * lib/unictype/categ_Sc.h: Likewise.
13158         * lib/unictype/categ_So.h: Likewise.
13159         * lib/unictype/categ_of.h: Likewise.
13160         * lib/unictype/combining.h: Likewise.
13161         * lib/unictype/ctype_alnum.h: Likewise.
13162         * lib/unictype/ctype_alpha.h: Likewise.
13163         * lib/unictype/ctype_graph.h: Likewise.
13164         * lib/unictype/ctype_lower.h: Likewise.
13165         * lib/unictype/ctype_print.h: Likewise.
13166         * lib/unictype/ctype_punct.h: Likewise.
13167         * lib/unictype/ctype_upper.h: Likewise.
13168         * lib/unictype/decdigit.h: Likewise.
13169         * lib/unictype/digit.h: Likewise.
13170         * lib/unictype/numeric.h: Likewise.
13171         * lib/unictype/pr_alphabetic.h: Likewise.
13172         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13173         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13174         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13175         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13176         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13177         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13178         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13179         * lib/unictype/pr_combining.h: Likewise.
13180         * lib/unictype/pr_composite.h: Likewise.
13181         * lib/unictype/pr_currency_symbol.h: Likewise.
13182         * lib/unictype/pr_dash.h: Likewise.
13183         * lib/unictype/pr_decimal_digit.h: Likewise.
13184         * lib/unictype/pr_deprecated.h: Likewise.
13185         * lib/unictype/pr_diacritic.h: Likewise.
13186         * lib/unictype/pr_extender.h: Likewise.
13187         * lib/unictype/pr_grapheme_base.h: Likewise.
13188         * lib/unictype/pr_grapheme_extend.h: Likewise.
13189         * lib/unictype/pr_grapheme_link.h: Likewise.
13190         * lib/unictype/pr_id_continue.h: Likewise.
13191         * lib/unictype/pr_id_start.h: Likewise.
13192         * lib/unictype/pr_ideographic.h: Likewise.
13193         * lib/unictype/pr_ignorable_control.h: Likewise.
13194         * lib/unictype/pr_logical_order_exception.h: Likewise.
13195         * lib/unictype/pr_lowercase.h: Likewise.
13196         * lib/unictype/pr_numeric.h: Likewise.
13197         * lib/unictype/pr_other_alphabetic.h: Likewise.
13198         * lib/unictype/pr_punctuation.h: Likewise.
13199         * lib/unictype/pr_sentence_terminal.h: Likewise.
13200         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13201         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13202         * lib/unictype/pr_unified_ideograph.h: Likewise.
13203         * lib/unictype/pr_uppercase.h: Likewise.
13204         * lib/unictype/pr_xid_continue.h: Likewise.
13205         * lib/unictype/pr_xid_start.h: Likewise.
13206         * lib/unictype/pr_zero_width.h: Likewise.
13207         * lib/unictype/scripts.h: Likewise.
13208         * lib/unictype/scripts_byname.gperf: Likewise.
13209         * lib/unictype/sy_java_ident.h: Likewise.
13210         * lib/unigbrk/gbrkprop.h: Likewise.
13211         * lib/unilbrk/lbrkprop1.h: Likewise.
13212         * lib/unilbrk/lbrkprop2.h: Likewise.
13213         * lib/unilbrk/lbrktables.h: Likewise.
13214         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13215         LBP_CP. Implement rule LB30.
13216         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13217         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13218         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13219         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13220         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13221         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13222         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13223         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13224         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13225         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13226         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13227         bits instead of 16 bits in the code1 and code2 of each composition
13228         rule.
13229         (uc_composition): Update for Unicode 5.2.0.
13230         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13231         * lib/uninorm/decomposition-table2.h: Likewise.
13232         * lib/uniwbrk/wbrkprop.h: Likewise.
13233         * tests/unicase/test-cased.c: Likewise.
13234         * tests/unicase/test-ignorable.c: Likewise.
13235         * tests/unicase/test-uc_tolower.c: Likewise.
13236         * tests/unicase/test-uc_totitle.c: Likewise.
13237         * tests/unicase/test-uc_toupper.c: Likewise.
13238         * tests/unictype/test-categ_C.c: Likewise.
13239         * tests/unictype/test-categ_Cf.c: Likewise.
13240         * tests/unictype/test-categ_Cn.c: Likewise.
13241         * tests/unictype/test-categ_L.c: Likewise.
13242         * tests/unictype/test-categ_Ll.c: Likewise.
13243         * tests/unictype/test-categ_Lm.c: Likewise.
13244         * tests/unictype/test-categ_Lo.c: Likewise.
13245         * tests/unictype/test-categ_Lu.c: Likewise.
13246         * tests/unictype/test-categ_M.c: Likewise.
13247         * tests/unictype/test-categ_Mc.c: Likewise.
13248         * tests/unictype/test-categ_Mn.c: Likewise.
13249         * tests/unictype/test-categ_N.c: Likewise.
13250         * tests/unictype/test-categ_Nd.c: Likewise.
13251         * tests/unictype/test-categ_Nl.c: Likewise.
13252         * tests/unictype/test-categ_No.c: Likewise.
13253         * tests/unictype/test-categ_P.c: Likewise.
13254         * tests/unictype/test-categ_Pd.c: Likewise.
13255         * tests/unictype/test-categ_Po.c: Likewise.
13256         * tests/unictype/test-categ_S.c: Likewise.
13257         * tests/unictype/test-categ_Sc.c: Likewise.
13258         * tests/unictype/test-categ_So.c: Likewise.
13259         * tests/unictype/test-ctype_alnum.c: Likewise.
13260         * tests/unictype/test-ctype_alpha.c: Likewise.
13261         * tests/unictype/test-ctype_graph.c: Likewise.
13262         * tests/unictype/test-ctype_lower.c: Likewise.
13263         * tests/unictype/test-ctype_print.c: Likewise.
13264         * tests/unictype/test-ctype_punct.c: Likewise.
13265         * tests/unictype/test-ctype_upper.c: Likewise.
13266         * tests/unictype/test-decdigit.h: Likewise.
13267         * tests/unictype/test-digit.h: Likewise.
13268         * tests/unictype/test-numeric.h: Likewise.
13269         * tests/unictype/test-pr_alphabetic.c: Likewise.
13270         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13271         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13272         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13273         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13274         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13275         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13276         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13277         * tests/unictype/test-pr_combining.c: Likewise.
13278         * tests/unictype/test-pr_composite.c: Likewise.
13279         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13280         * tests/unictype/test-pr_dash.c: Likewise.
13281         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13282         * tests/unictype/test-pr_deprecated.c: Likewise.
13283         * tests/unictype/test-pr_diacritic.c: Likewise.
13284         * tests/unictype/test-pr_extender.c: Likewise.
13285         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13286         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13287         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13288         * tests/unictype/test-pr_id_continue.c: Likewise.
13289         * tests/unictype/test-pr_id_start.c: Likewise.
13290         * tests/unictype/test-pr_ideographic.c: Likewise.
13291         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13292         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13293         * tests/unictype/test-pr_lowercase.c: Likewise.
13294         * tests/unictype/test-pr_numeric.c: Likewise.
13295         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13296         * tests/unictype/test-pr_punctuation.c: Likewise.
13297         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13298         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13299         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13300         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13301         * tests/unictype/test-pr_uppercase.c: Likewise.
13302         * tests/unictype/test-pr_xid_continue.c: Likewise.
13303         * tests/unictype/test-pr_xid_start.c: Likewise.
13304         * tests/unictype/test-pr_zero_width.c: Likewise.
13305         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13306         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13307         changed behaviour: line breaking is now disallowed between a letter
13308         or '=' and '('.
13309         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13310         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13311         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13312         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13313         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13314         lib/uniwidth/width.c.
13315         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13316         without comments, but with the original copyright notice.
13317         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13318         changes.
13319         * lib/unictype/categ_Cc.h: Likewise.
13320         * lib/unictype/categ_Co.h: Likewise.
13321         * lib/unictype/categ_Cs.h: Likewise.
13322         * lib/unictype/categ_Lt.h: Likewise.
13323         * lib/unictype/categ_Me.h: Likewise.
13324         * lib/unictype/categ_Pc.h: Likewise.
13325         * lib/unictype/categ_Pe.h: Likewise.
13326         * lib/unictype/categ_Pf.h: Likewise.
13327         * lib/unictype/categ_Pi.h: Likewise.
13328         * lib/unictype/categ_Ps.h: Likewise.
13329         * lib/unictype/categ_Sk.h: Likewise.
13330         * lib/unictype/categ_Sm.h: Likewise.
13331         * lib/unictype/categ_Z.h: Likewise.
13332         * lib/unictype/categ_Zl.h: Likewise.
13333         * lib/unictype/categ_Zp.h: Likewise.
13334         * lib/unictype/categ_Zs.h: Likewise.
13335         * lib/unictype/ctype_blank.h: Likewise.
13336         * lib/unictype/ctype_cntrl.h: Likewise.
13337         * lib/unictype/ctype_digit.h: Likewise.
13338         * lib/unictype/ctype_space.h: Likewise.
13339         * lib/unictype/ctype_xdigit.h: Likewise.
13340         * lib/unictype/mirror.h: Likewise.
13341         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13342         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13343         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13344         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13345         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13346         * lib/unictype/pr_bidi_control.h: Likewise.
13347         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13348         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13349         * lib/unictype/pr_bidi_pdf.h: Likewise.
13350         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13351         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13352         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13353         * lib/unictype/pr_format_control.h: Likewise.
13354         * lib/unictype/pr_hex_digit.h: Likewise.
13355         * lib/unictype/pr_hyphen.h: Likewise.
13356         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13357         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13358         * lib/unictype/pr_iso_control.h: Likewise.
13359         * lib/unictype/pr_join_control.h: Likewise.
13360         * lib/unictype/pr_left_of_pair.h: Likewise.
13361         * lib/unictype/pr_line_separator.h: Likewise.
13362         * lib/unictype/pr_math.h: Likewise.
13363         * lib/unictype/pr_non_break.h: Likewise.
13364         * lib/unictype/pr_not_a_character.h: Likewise.
13365         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13366         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13367         * lib/unictype/pr_other_id_continue.h: Likewise.
13368         * lib/unictype/pr_other_id_start.h: Likewise.
13369         * lib/unictype/pr_other_lowercase.h: Likewise.
13370         * lib/unictype/pr_other_math.h: Likewise.
13371         * lib/unictype/pr_other_uppercase.h: Likewise.
13372         * lib/unictype/pr_paired_punctuation.h: Likewise.
13373         * lib/unictype/pr_paragraph_separator.h: Likewise.
13374         * lib/unictype/pr_pattern_syntax.h: Likewise.
13375         * lib/unictype/pr_pattern_white_space.h: Likewise.
13376         * lib/unictype/pr_private_use.h: Likewise.
13377         * lib/unictype/pr_quotation_mark.h: Likewise.
13378         * lib/unictype/pr_radical.h: Likewise.
13379         * lib/unictype/pr_soft_dotted.h: Likewise.
13380         * lib/unictype/pr_space.h: Likewise.
13381         * lib/unictype/pr_titlecase.h: Likewise.
13382         * lib/unictype/pr_variation_selector.h: Likewise.
13383         * lib/unictype/pr_white_space.h: Likewise.
13384         * lib/unictype/sy_c_ident.h: Likewise.
13385         * lib/unictype/sy_c_whitespace.h: Likewise.
13386         * lib/unictype/sy_java_whitespace.h: Likewise.
13387         * modules/uni*/*: Bump version number of expected libunistring version.
13388         Reported by Simon Josefsson.
13389
13390 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13391
13392         useless-if-before-free: fix typo in --help and make the internal,
13393         automatic version date update process work once again.
13394         --help output contained a NUL character instead of the
13395         backslash-zero that was intended.  Also, the "must lie within
13396         the first 8 lines" line is on line 9, and hence not getting
13397         automatically updated.
13398         * build-aux/useless-if-before-free: Fix the former by adding a
13399         backslash, and the latter by condensing the three lines of what-it-does
13400         to a single line, leaving one line of slack for the future.
13401
13402 2011-01-09  Bruno Haible  <bruno@clisp.org>
13403
13404         uniwidth/width: Fix width of U+1D173..U+1D17A.
13405         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13406         symbolic_width, output_width_property_test): New functions.
13407         (main): Invoke output_nonspacing_property, output_width_property_test.
13408         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13409         U+1D173..U+1D17A.
13410         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13411         1.
13412         * modules/uniwidth/*: Bump version number of expected libunistring
13413         version.
13414         * modules/unilbrk/*: Likewise.
13415
13416 2011-01-08  Bruno Haible  <bruno@clisp.org>
13417
13418         uninorm tests: Preserve copyright of Unicode data file.
13419         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13420         Mention modifications.
13421
13422 2011-01-08  Bruno Haible  <bruno@clisp.org>
13423
13424         gen-uni-tables: Prepare for Unicode 5.2.0.
13425         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13426         (debug_output_lbp, output_lbp): Update.
13427
13428 2011-01-08  Bruno Haible  <bruno@clisp.org>
13429
13430         unilbrk: Clarify gen-uni-tables.c code.
13431         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13432         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13433         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13434
13435 2011-01-07  Bruno Haible  <bruno@clisp.org>
13436
13437         strtod: Restore errno when successfully parsing Infinity or NaN.
13438         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13439         restore the original errno.
13440
13441 2011-01-07  Bruno Haible  <bruno@clisp.org>
13442
13443         remove test: Avoid failure on HP-UX 11.
13444         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13445
13446 2011-01-07  Bruno Haible  <bruno@clisp.org>
13447
13448         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13449         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13450         error code.
13451
13452 2011-01-07  Pádraig Brady <P@draigBrady.com>
13453
13454         ignore-value: fixup comments, and add Eric Blake
13455         as an author since he rewrote the macros.
13456         * lib/ignore-value.h (ignore_value):  State that
13457         we now support aggregates.  Also specify exactly
13458         when the GCC warn_unused_result feature was added.
13459
13460 2011-01-06  Eric Blake  <eblake@redhat.com>
13461
13462         ignore-value: support aggregate types
13463         * lib/ignore-value.h (ignore_value): Provide separate gcc
13464         definition.
13465         * modules/ignore-value-tests: New test module.
13466         * tests/test-ignore-value.c: New test.
13467
13468         maint.mk: improve sc_prohibit_strcmp regex
13469         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13470         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13471         definition of STRNEQ.
13472
13473         signal: work around Haiku issue with SIGBUS
13474         * lib/siglist.h: Add comment.
13475         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13476         strsignal's favoring of SIGSEGV.
13477         * tests/test-signal.c (main): Avoid test failure.
13478         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13479         Reported by Scott McCreary.
13480
13481         maint.mk: add pre-release check to ensure submodule commits are public
13482         * top/maint.mk (public-submodule-commit): New rule.
13483         (submodule-checks): New variable.
13484         (alpha beta stable): Depend on the variable.
13485
13486 2011-01-05  Pádraig Brady <P@draigBrady.com>
13487         and Jim Meyering  <meyering@redhat.com>
13488
13489         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13490         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13491         (ATTRIBUTE_DEPRECATED): Define.
13492         (_ignore_case): New function.
13493         (ignore_value): New macro, to replace the old function.
13494         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13495         * modules/ignore-value (Depends-on): Add stdint.
13496
13497 2011-01-04  Eric Blake  <eblake@redhat.com>
13498
13499         doc: regenerate INSTALL
13500         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13501         @firstparagraphindent support, now that autoconf dropped it.
13502         (INSTALL_PRELUDE): Reinstate old macro.
13503         * doc/install.texi: Resync from autoconf.
13504         * doc/INSTALL: Reflect recent autoconf update.
13505         * doc/INSTALL.ISO: Likewise.
13506         * doc/INSTALL.UTF-8: Likewise.
13507         Reported by Karl Berry.
13508
13509 2011-01-04  Bruce Korb  <address@hidden>
13510
13511         git-version-gen: avoid a sub-shell
13512         * build-aux/git-version-gen: Redirect stderr in `...` via
13513         "exec 2>...", rather than via an added sub-shell.
13514
13515 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13516
13517         git-version-gen: use (...) rather than sh -c '...'
13518         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13519         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13520
13521 2011-01-03  Jim Meyering  <meyering@redhat.com>
13522
13523         git-version-gen: convert leading TABs to spaces
13524         * build-aux/git-version-gen: Expand leading TABs.
13525
13526         git-version-gen: handle failed "git rev-list"
13527         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13528         from git and proceeding as if it had succeeded but printed no SHA1
13529         checksums, suppress the diagnostic and handle the failure.
13530         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13531
13532         git-version-gen: include command name in one more diagnostic
13533         * build-aux/git-version-gen: When the required .tarball-version file
13534         was missing or unreadable, you might see the diagnostic from "cat",
13535         but no trace of the name of the invoking script.  Now, you still see
13536         the diagnostic from cat, but also get one from "git-version-gen: ".
13537         Inspired by a patch from Bruce Korb.
13538
13539         update-copyright: adjust test to match changed code
13540         * tests/test-update-copyright.sh: Change test's expected output
13541         to match new actual output.
13542
13543 2011-01-02  Bruno Haible  <bruno@clisp.org>
13544
13545         getlogin_r: Avoid test failure on HP-UX 11.
13546         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13547         ERANGE when the second argument is zero.
13548         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13549         portability problem.
13550
13551 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13552
13553         * build-aux/update-copyright: doc Simon's changes
13554
13555 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13556
13557         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13558         environment variable.
13559
13560 2011-01-02  Bruno Haible  <bruno@clisp.org>
13561
13562         unigbrk: Avoid gcc warnings.
13563         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13564         unused variable.
13565         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13566         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13567         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13568         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13569         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13570         Change type of first argument to 'const char *'.
13571         (main): Remove unused variable.
13572         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13573         type of first argument to 'const char *'.
13574         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13575         Likewise.
13576         (main): Change type of variable 's'.
13577         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13578         to 'int'.
13579
13580 2011-01-02  Bruno Haible  <bruno@clisp.org>
13581
13582         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13583         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13584         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13585         bug.
13586         * lib/pwrite.c: Undo 2010-12-31 patch.
13587         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13588
13589 2011-01-02  Bruno Haible  <bruno@clisp.org>
13590
13591         pread: Fix test whether it works.
13592         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13593
13594 2011-01-02  Bruno Haible  <bruno@clisp.org>
13595
13596         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13597         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13598         ends in "6". Don't require a specific month name. Try also the locale
13599         names found on HP-UX 11 and Solaris 7.
13600
13601 2011-01-02  Bruno Haible  <bruno@clisp.org>
13602
13603         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13604         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13605         C linkage.
13606         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13607
13608 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13609
13610         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13611         for consistency, since the "cluster" term is not used elsewhere.
13612         * lib/unigbrk.in.h: Update name.
13613         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13614         * lib/unigbrk/u16-grapheme-next.c: Update name.
13615         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13616         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13617         * lib/unigbrk/u32-grapheme-next.c: Update name.
13618         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13619         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13620         * lib/unigbrk/u8-grapheme-next.c: Update name.
13621         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13622         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13623         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13624         Suggested by Bruno Haible.
13625
13626 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13627
13628         Remove module 'u8-grapheme-len' as too redundant with
13629         'u8-grapheme-next'.
13630         * modules/unigbrk/u8-grapheme-len: Delete file.
13631         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13632         * lib/unigbrk.in.h: Remove prototype for deleted function.
13633         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13634         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13635
13636         Remove module 'u16-grapheme-len' as too redundant with
13637         'u16-grapheme-next'.
13638         * modules/unigbrk/u16-grapheme-len: Delete file.
13639         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13640         * lib/unigbrk.in.h: Remove prototype for deleted function.
13641         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13642         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13643
13644         Remove module 'u32-grapheme-len' as too redundant with
13645         'u32-grapheme-next'.
13646         * modules/unigbrk/u32-grapheme-len: Delete file.
13647         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13648         * lib/unigbrk.in.h: Remove prototype for deleted function.
13649         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13650         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13651
13652         Suggested by Bruno Haible.
13653
13654 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13655
13656         * unigbrk.in.h: Fix typo: "ben" => "been".
13657         Reported by Bruno Haible.
13658
13659 2011-01-01  Jim Meyering  <meyering@redhat.com>
13660
13661         maint: update almost all copyright ranges to include 2011
13662         Run the new "make update-copyright" rule.
13663
13664 2011-01-01  Jim Meyering  <meyering@redhat.com>
13665
13666         maint: update-copyright: exempt doc/INSTALL*
13667         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13668         since they are generated.  Suggested by Bruno Haible.
13669
13670 2011-01-01  Jim Meyering  <meyering@redhat.com>
13671
13672         maint: refine the update-copyright rule
13673         * Makefile (update-copyright): Also exclude any file that includes
13674         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13675         code that merely generates the comment.
13676
13677 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13678
13679         New module 'u8-grapheme-len'.
13680         * modules/unigbrk/u8-grapheme-len: New file.
13681         * modules/unigbrk/u8-grapheme-len-tests: New file.
13682         * lib/unigbrk.in.h: Add prototype for new function.
13683         * lib/unigbrk/u8-grapheme-len.c: New file.
13684         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13685
13686         New module 'u16-grapheme-len'.
13687         * modules/unigbrk/u16-grapheme-len: New file.
13688         * modules/unigbrk/u16-grapheme-len-tests: New file.
13689         * lib/unigbrk.in.h: Add prototype for new function.
13690         * lib/unigbrk/u16-grapheme-len.c: New file.
13691         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13692
13693         New module 'u32-grapheme-len'.
13694         * modules/unigbrk/u32-grapheme-len: New file.
13695         * modules/unigbrk/u32-grapheme-len-tests: New file.
13696         * lib/unigbrk.in.h: Add prototype for new function.
13697         * lib/unigbrk/u32-grapheme-len.c: New file.
13698         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13699
13700         New module 'u8-grapheme-next'.
13701         * modules/unigbrk/u8-grapheme-next: New file.
13702         * modules/unigbrk/u8-grapheme-next-tests: New file.
13703         * lib/unigbrk.in.h: Add prototype for new function.
13704         * lib/unigbrk/u8-grapheme-next.c: New file.
13705         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13706
13707         New module 'u16-grapheme-next'.
13708         * modules/unigbrk/u16-grapheme-next: New file.
13709         * modules/unigbrk/u16-grapheme-next-tests: New file.
13710         * lib/unigbrk.in.h: Add prototype for new function.
13711         * lib/unigbrk/u16-grapheme-next.c: New file.
13712         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13713
13714         New module 'u32-grapheme-next'.
13715         * modules/unigbrk/u32-grapheme-next: New file.
13716         * modules/unigbrk/u32-grapheme-next-tests: New file.
13717         * lib/unigbrk.in.h: Add prototype for new function.
13718         * lib/unigbrk/u32-grapheme-next.c: New file.
13719         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13720
13721         New module 'u8-grapheme-prev'.
13722         * modules/unigbrk/u8-grapheme-prev: New file.
13723         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13724         * lib/unigbrk.in.h: Add prototype for new function.
13725         * lib/unigbrk/u8-grapheme-prev.c: New file.
13726         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13727
13728         New module 'u16-grapheme-prev'.
13729         * modules/unigbrk/u16-grapheme-prev: New file.
13730         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13731         * lib/unigbrk.in.h: Add prototype for new function.
13732         * lib/unigbrk/u16-grapheme-prev.c: New file.
13733         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13734
13735         New module 'u32-grapheme-prev'.
13736         * modules/unigbrk/u32-grapheme-prev: New file.
13737         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13738         * lib/unigbrk.in.h: Add prototype for new function.
13739         * lib/unigbrk/u32-grapheme-prev.c: New file.
13740         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13741
13742         New module 'u8-grapheme-breaks'.
13743         * modules/unigbrk/u8-grapheme-breaks: New file.
13744         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13745         * lib/unigbrk.in.h: Add prototype for new function.
13746         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13747         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13748
13749         New module 'u16-grapheme-breaks'.
13750         * modules/unigbrk/u16-grapheme-breaks: New file.
13751         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13752         * lib/unigbrk.in.h: Add prototype for new function.
13753         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13754         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13755
13756         New module 'u32-grapheme-breaks'.
13757         * modules/unigbrk/u32-grapheme-breaks: New file.
13758         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13759         * lib/unigbrk.in.h: Add prototype for new function.
13760         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13761         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13762
13763         New module 'ulc-grapheme-breaks'.
13764         * modules/unigbrk/ulc-grapheme-breaks: New file.
13765         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13766         * m4/locale-ar.m4: New file.
13767         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13768         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13769         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13770
13771 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13772
13773         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13774         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13775         modified how this file was generated before I initially submitted
13776         the module, but failed to regenerate it.  This meant that several
13777         of the level2 entries were wrong.
13778         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13779         Remove the division-by-2 that is folded into the table now that
13780         gbrkprop.h has been regenerated properly.  Now -1 entries are
13781         handled correctly.
13782
13783         New module 'unigbrk/uc-gbrk-prop-tests'.
13784         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13785         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13786         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13787         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13788
13789 2011-01-01  Bruno Haible  <bruno@clisp.org>
13790
13791         Avoid use of hexadecimal escapes.
13792         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13793         instead of hexadecimal escapes.
13794
13795 2011-01-01  Jim Meyering  <meyering@redhat.com>
13796
13797         maint: new rule to update copyright year ranges
13798         * Makefile (update-copyright): New rule.
13799
13800         maint: indent with TABs in Makefile
13801         * Makefile: Expand leading sequences of spaces to TABs
13802
13803         version-etc: update the copyright year it reports
13804         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13805
13806 2010-12-31  Bruno Haible  <bruno@clisp.org>
13807
13808         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13809         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13810         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13811         zero.
13812
13813 2010-12-31  Bruno Haible  <bruno@clisp.org>
13814
13815         pwrite: Work around HP-UX 11.11 bug.
13816         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13817         works and set REPLACE_PWRITE if not.
13818         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13819         function.
13820         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13821
13822 2010-12-31  Bruno Haible  <bruno@clisp.org>
13823
13824         pread: Work around HP-UX 11 bugs.
13825         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13826         and set REPLACE_PREAD if not.
13827         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13828
13829 2010-12-31  Eric Blake  <eblake@redhat.com>
13830
13831         nl_langinfo: fix YESEXPR on Irix 6.5
13832         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13833         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13834         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13835         it.
13836
13837 2010-12-31  Bruno Haible  <bruno@clisp.org>
13838
13839         iconv: Document HP-UX 11 bug.
13840         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13841
13842 2010-12-31  Bruno Haible  <bruno@clisp.org>
13843
13844         ldexpl: Fix link error on HP-UX 11.
13845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13846         LDEXPL_LIBM, using $ISNANL_LIBM.
13847
13848 2010-12-31  Eric Blake  <eblake@redhat.com>
13849
13850         ftello: avoid compilation failure with SunStudio c89
13851         * lib/ftello.c (ftello): Use lseek, not llseek.
13852
13853         tests: avoid failing coreutils tests on cygwin
13854         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13855         (create_exe_shims_): Return 0 when skipping.
13856
13857 2010-12-31  Bruno Haible  <bruno@clisp.org>
13858
13859         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13860         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13861
13862 2010-12-31  Bruno Haible  <bruno@clisp.org>
13863
13864         waitpid: Fix link error in C++ mode.
13865         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13866
13867 2010-12-31  Bruno Haible  <bruno@clisp.org>
13868
13869         isnan: Use GCC built-ins when possible.
13870         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13871         __builtin_isnan.
13872         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13873         (isnan): Define using GCC built-ins for GCC >= 4.0.
13874
13875 2010-12-31  Bruno Haible  <bruno@clisp.org>
13876
13877         isnand: Fix mistake.
13878         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13879         __builtin_isnand.
13880
13881 2010-12-31  Bruno Haible  <bruno@clisp.org>
13882
13883         open: Avoid C++ error on HP-UX 11.
13884         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13885
13886 2010-12-31  Bruno Haible  <bruno@clisp.org>
13887
13888         time_r: Add missing declarations on HP-UX 11.
13889         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13890         instead of HAVE_LOCALTIME_R.
13891         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13892         HAVE_LOCALTIME_R always.
13893         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13894         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13895         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13896         HAVE_LOCALTIME_R.
13897         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13898         * doc/posix-functions/localtime_r.texi: Likewise.
13899
13900 2010-12-29  Eric Blake  <eblake@redhat.com>
13901
13902         mountlist: tweak previous commit
13903         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13904         Reported by Paul Eggert.
13905
13906         mountlist: fix local drive detection on cygwin
13907         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13908         that works for cygwin.
13909
13910 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13911
13912         ftoastr, snprintf: ftoastr + snprintf module
13913         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13914         since the snprintf module now should be good enough here.
13915         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13916         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13917         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13918         GNULIB_SNPRINTF only for the test directory, and the latter
13919         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13920         seems to suffice by itself.
13921
13922 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         alloca: one step towards thread-safety
13925         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13926         need for a static variable.  All callers changed.  This does not
13927         make the alloca replacement thread-safe, but it's one step.
13928
13929         tests: minor indenting change
13930         * tests/init.sh: Sync from coreutils housekeeping patch
13931         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13932         to keep lines within 80 columns.
13933
13934 2010-12-28  Jim Meyering  <meyering@redhat.com>
13935
13936         regex: don't infloop on persistent failing calloc
13937         * lib/regexec.c (build_trtable): Return failure indication upon
13938         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13939         In glibc, this was fixed for version 2.13:
13940         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13941
13942 2010-12-28  Bruno Haible  <bruno@clisp.org>
13943             Paul Eggert <eggert@cs.ucla.edu>
13944
13945         linkat: Make implementation robust against system behaviour variations.
13946         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13947         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13948         way, and to -2 if it needs a generic runtime test.
13949         * lib/linkat.c (solaris_optimized_link_immediate,
13950         solaris_optimized_link_follow): New functions.
13951         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13952         (check_same_link): Use it.
13953
13954 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13955
13956         New module 'unigbrk/base'.
13957         * modules/unigbrk/base: New file.
13958         * lib/unigbrk.in.h: New file.
13959
13960         New module 'unigbrk/uc-gbrk-prop'.
13961         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13962         * modules/unigbrk/uc-gbrk-prop: New file.
13963         * lib/unigbrk/gbrkprop.h: New file.
13964         * lib/unigbrk/uc-gbrk-prop.c: New file.
13965
13966         New module 'unigbrk/uc-is-grapheme-break'.
13967         * modules/unigbrk/uc-is-grapheme-break: New file.
13968         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13969         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13970         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13971         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13972         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13973
13974         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13975
13976 2010-12-27  Bruno Haible  <bruno@clisp.org>
13977
13978         linkat test: Avoid failure on Solaris 11 2010-11.
13979         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13980
13981 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         utimens: work around glibc rounding bug on more platforms
13984         * lib/utimens.c (fdutimens): Work around rounding bug even if
13985         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13987
13988 2010-12-27  Bruno Haible  <bruno@clisp.org>
13989
13990         select tests: Improve comments.
13991         * tests/test-select.c (do_select): Add comments.
13992
13993 2010-12-27  Bruno Haible  <bruno@clisp.org>
13994
13995         select tests: Safer way of handling timeout.
13996         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13997         at every invocation.
13998
13999 2010-12-27  Bruno Haible  <bruno@clisp.org>
14000
14001         select tests: Use 'bool' where appropriate.
14002         * tests/test-select.c (connect_to_socket): Change argument type to
14003         'bool'.
14004
14005 2010-12-27  Bruno Haible  <bruno@clisp.org>
14006
14007         select tests: Use existing modules.
14008         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14009         (configure.ac): Don't test for unistd.h.
14010         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14011         declared in <unistd.h>.
14012
14013 2010-12-27  Bruno Haible  <bruno@clisp.org>
14014
14015         mbrtowc: Work around a Solaris 7 bug.
14016         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14017         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14018         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14019         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14020         MBRTOWC_NULL_ARG1_BUG.
14021         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14022         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14023         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14024         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14025
14026 2010-12-27  Jim Meyering  <meyering@redhat.com>
14027
14028         read-file.c: tweak syntax
14029         * lib/read-file.c (fread_file): Remove space after "*" in function
14030         definitions.
14031
14032 2010-12-27  Bruno Haible  <bruno@clisp.org>
14033
14034         times test: Avoid gcc warnings on OSF/1.
14035         * tests/test-times.c (main): Cast printf arguments from clock_t to
14036         'long int'.
14037
14038 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14039
14040         utimens: work around glibc rounding bug on older Linux kernels
14041         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14042         on Linux with a glibc whose utimes might not work, then work
14043         around a longstanding glibc bug involving rounding rather than
14044         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14046
14047 2010-12-26  Bruno Haible  <bruno@clisp.org>
14048
14049         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14050         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14051         _GL_CXXALIAS_SYS.
14052         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14053
14054 2010-12-26  Bruno Haible  <bruno@clisp.org>
14055
14056         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14057         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14058         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14059         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14060         looking for the declaration.
14061         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14062         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14063         problem.
14064         * doc/posix-functions/inet_pton.texi: Likewise.
14065
14066 2010-12-26  Bruno Haible  <bruno@clisp.org>
14067
14068         arpa_inet: Use the common idioms with C++ support.
14069         * lib/arpa_inet.in.h: Include c++defs.h.
14070         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14071         support.
14072         * modules/arpa_inet (Depends-on): Add c++defs.
14073         (Makefile.am): Substitute the contents of c++defs.h.
14074         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14075         * modules/arpa_inet-c++-tests: New file.
14076         * tests/test-arpa_inet-c++.cc: New file.
14077
14078 2010-12-25  Bruno Haible  <bruno@clisp.org>
14079
14080         Fix more C++ link errors on Solaris 8.
14081         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14082         $(LIB_EACCESS).
14083         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14084         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14085         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14086         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14087         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14088
14089 2010-12-25  Bruno Haible  <bruno@clisp.org>
14090
14091         printf-posix: Fix link error when a non-GCC compiler is used.
14092         * lib/stdio.in.h (printf): When not using GCC, override printf
14093         correctly.
14094         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14095
14096 2010-12-25  Bruno Haible  <bruno@clisp.org>
14097
14098         strerror_r-posix: Update doc.
14099         * doc/posix-functions/strerror_r.texi: Update doc about the return
14100         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14101
14102 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         utimens: simplify the logic of the previous change
14105         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14106         This should not affect whether the test succeeds or fails.
14107
14108         utimens: configure better on hosts with NFS clock skew
14109         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14110         uses the clock of the local host.  It might use the clock of the
14111         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14113
14114 2010-12-25  Bruno Haible  <bruno@clisp.org>
14115
14116         ptsname test: Avoid failure on Solaris.
14117         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14118         open a pseudo-terminal; don't use BSD-style ptys.
14119         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14120
14121 2010-12-25  Bruno Haible  <bruno@clisp.org>
14122
14123         ptsname: Avoid ERANGE failure on some systems.
14124         * lib/ptsname.c (buffer): Increase size.
14125
14126 2010-12-25  Bruno Haible  <bruno@clisp.org>
14127
14128         rename, renameat: Avoid test failures at NFS mounted locations.
14129         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14130         so that subsequent mkdir calls succeed.
14131
14132 2010-12-25  Bruno Haible  <bruno@clisp.org>
14133
14134         iswblank: Fix C++ link error on Solaris 8.
14135         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14136         _GL_FUNCDECL_SYS.
14137
14138 2010-12-25  Bruno Haible  <bruno@clisp.org>
14139
14140         unistd: Fix C++ link error on Solaris 8.
14141         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14142
14143 2010-12-25  Bruno Haible  <bruno@clisp.org>
14144
14145         readlink doc: Mention an old glibc bug.
14146         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14147
14148 2010-12-25  Bruno Haible  <bruno@clisp.org>
14149
14150         fcntl-h: Fix for use of C++ on glibc systems.
14151         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14152         also on glibc systems in C++ mode.
14153         Reported by Gary V. Vaughan <gary@gnu.org>.
14154
14155 2010-12-25  Bruno Haible  <bruno@clisp.org>
14156
14157         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14158         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14159
14160 2010-12-25  Bruno Haible  <bruno@clisp.org>
14161
14162         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14163         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14164         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14165         test whether truncl works according to ISO C 99 with IEC 60559.
14166         * m4/truncl-ieee.m4: New file.
14167         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14168         m4/signbit.m4.
14169         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14170
14171 2010-12-25  Bruno Haible  <bruno@clisp.org>
14172
14173         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14174         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14175         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14176         test whether ceill works according to ISO C 99 with IEC 60559.
14177         * m4/ceill-ieee.m4: New file.
14178         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14179         m4/signbit.m4.
14180         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14181
14182 2010-12-25  Bruno Haible  <bruno@clisp.org>
14183
14184         Ensure all prerequisites of <wchar.h> are included.
14185         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14186         before <wchar.h>.
14187         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14188         gl_MBRLEN_NUL_RETVAL): Likewise.
14189         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14190         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14191         AC_FUNC_MBRTOWC): Likewise.
14192         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14193         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14194         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14195         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14196         Likewise.
14197         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14198         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14199         (gl_WCHAR_H): Improve comments.
14200         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14201
14202 2010-12-25  Bruno Haible  <bruno@clisp.org>
14203
14204         strtok_r: Fix C syntax error in autoconf macro.
14205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14206         characters in test program.
14207
14208 2010-12-24  Bruno Haible  <bruno@clisp.org>
14209
14210         ceil, trunc, round: Fix gcc warnings.
14211         * lib/ceil.c (MIN): Undefine before redefining.
14212         * lib/trunc.c (MIN): Likewise.
14213         * lib/round.c (MIN): Likewise.
14214         Include <math.h> first.
14215
14216 2010-12-24  Bruno Haible  <bruno@clisp.org>
14217
14218         select tests: Avoid failures on OSF/1 5.1.
14219         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14220         failure of closing the last socket; it may fail with ECONNRESET.
14221
14222 2010-12-24  Eric Blake  <eblake@redhat.com>
14223
14224         stdint: avoid HP-UX 10.20 preprocessor bug
14225         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14226         than #if.
14227         * tests/test-floor2.c (main): Likewise.
14228         Reported by Peter O'Gorman.
14229
14230         pipe: make obsoletion transition easier
14231         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14232         * modules/pipe (Files): Include revived file.
14233         (Include): Drop reference, to mirror getdate's behavior.
14234
14235 2010-12-24  Bruno Haible  <bruno@clisp.org>
14236
14237         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14238         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14239         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14241
14242 2010-12-24  Bruno Haible  <bruno@clisp.org>
14243
14244         gethostname: Ensure declaration on NonStop Kernel.
14245         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14246         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14247
14248 2010-12-24  Bruno Haible  <bruno@clisp.org>
14249
14250         sys_select: Ensure all necessary types on NonStop Kernel.
14251         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14252         include <sys/time.h>.
14253         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14254         NonStop Kernel.
14255         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14256
14257 2010-12-24  Bruno Haible  <bruno@clisp.org>
14258
14259         sys_select: Remove unneeded include.
14260         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14261         have <sys/select.h>.
14262
14263 2010-12-24  Bruno Haible  <bruno@clisp.org>
14264
14265         gethostname: Provide a fallback for HOST_NAME_MAX.
14266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14267         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14268         instead.
14269         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14270
14271 2010-12-24  Bruno Haible  <bruno@clisp.org>
14272
14273         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14274         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14275         (SA_RESTART): Likewise.
14276         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14277
14278 2010-12-24  Bruno Haible  <bruno@clisp.org>
14279
14280         signal: Define NSIG.
14281         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14282         * tests/test-signal.c (nsig): New variable.
14283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14284
14285 2010-12-24  Bruno Haible  <bruno@clisp.org>
14286
14287         rename, renameat: Avoid test failures on OSF/1 5.1.
14288         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14289         alternative error codes.
14290         * tests/test-renameat.c (main): Likewise.
14291
14292 2010-12-24  Bruno Haible  <bruno@clisp.org>
14293
14294         *printf: Detect large precisions bug on Solaris 10/SPARC.
14295         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14296         by Paul Eggert.
14297         * tests/test-snprintf-posix.h (test_function): Add this test code here
14298         too.
14299         * tests/test-sprintf-posix.h (test_function): Likewise.
14300         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14301         * tests/test-vasprintf-posix.c (test_function): Likewise.
14302         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14303         around by gnulib.
14304         * doc/posix-functions/printf.texi: Likewise.
14305         * doc/posix-functions/snprintf.texi: Likewise.
14306         * doc/posix-functions/sprintf.texi: Likewise.
14307         * doc/posix-functions/vfprintf.texi: Likewise.
14308         * doc/posix-functions/vprintf.texi: Likewise.
14309         * doc/posix-functions/vsnprintf.texi: Likewise.
14310         * doc/posix-functions/vsprintf.texi: Likewise.
14311         * doc/posix-functions/dprintf.texi: Undo last commit.
14312         * doc/posix-functions/vdprintf.texi: Likewise.
14313
14314 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14315
14316         tests: port test-fdutimensat.c to Solaris 8
14317         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14318         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14319         On Solaris 8, it fails with errno == ENOSYS, because there is no
14320         futimens (so it can't use the fd), and there is no lutimens (so it
14321         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14322
14323         vsnprintf: make more consistent with snprintf; doc fixes
14324
14325         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14326         the byte count return problem was promoted from the snprintf-posix
14327         to the snprintf module.
14328         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14329         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14330         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14331         * tests/test-snprintf.c (main): Check the byte count returned.
14332         * tests/test-vsnprintf.c (main): Likewise.
14333
14334 2010-12-23  Eric Blake  <eblake@redhat.com>
14335
14336         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14337         * modules/sigpipe (License): Relax license.
14338
14339 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         doc: document Solaris printf bug with large float precisions
14342         * doc/posix-functions/dprintf.texi (dprintf):
14343         * doc/posix-functions/fprintf.texi (fprintf):
14344         * doc/posix-functions/printf.texi (printf):
14345         * doc/posix-functions/snprintf.texi (snprintf):
14346         * doc/posix-functions/sprintf.texi (sprintf):
14347         * doc/posix-functions/vdprintf.texi (vdprintf):
14348         * doc/posix-functions/vfprintf.texi (vfprintf):
14349         * doc/posix-functions/vprintf.texi (vprintf):
14350         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14351         * doc/posix-functions/vsprintf.texi (vsprintf):
14352         Mention that these functions mishandle large floating point
14353         precisions on Solaris 10.  The same bug is also present in Solaris
14354         8, and I assume earlier.  This causes "cd gnulib-tests; make
14355         check" to fail on Solaris 8 (and I assume, later) when building
14356         the latest coreutils, in test-vasprintf-posix's call to
14357         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14358         the wide flavors (e.g., wprintf) so this patch just updates the
14359         documentation for the narrow ones.
14360
14361         test-posixtm.c: add two tests
14362         * tests/test-posixtm.c: Add two tests, to highlight the
14363         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14364         around this bug; this is merely to document it.
14365
14366 2010-12-22  Bruno Haible  <bruno@clisp.org>
14367
14368         getlogin_r: Work around portability problem on OSF/1.
14369         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14370         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14371         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14372         test for a truncated result.
14373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14374         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14375         * modules/getlogin_r (Depends-on): Add memchr.
14376         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14377
14378 2010-12-22  Bruno Haible  <bruno@clisp.org>
14379
14380         ptsname: Avoid test failure on OSF/1 5.1.
14381         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14382         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14383         (same_slave): New function.
14384         (main): Use it to compare ptsname's result with the expected file name.
14385
14386 2010-12-22  Bruno Haible  <bruno@clisp.org>
14387
14388         Port extended stdio modules to HP NonStop Kernel.
14389         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14390         macros.
14391         * lib/fbufmode.c: Update comments.
14392         * lib/fflush.c: Likewise.
14393         * lib/fpurge.c: Likewise.
14394         * lib/freadable.c: Likewise.
14395         * lib/freadahead.c: Likewise.
14396         * lib/freading.c: Likewise.
14397         * lib/freadptr.c: Likewise.
14398         * lib/freadseek.c: Likewise.
14399         * lib/fseeko.c: Likewise.
14400         * lib/fseterr.c: Likewise.
14401         * lib/fwritable.c: Likewise.
14402         * lib/fwriting.c: Likewise.
14403         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14404
14405 2010-12-22  Bruno Haible  <bruno@clisp.org>
14406
14407         ttyname_r: Work around bug on OSF/1 5.1.
14408         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14409         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14410         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14411         present.
14412         * lib/ttyname_r.c (ttyname_r): Update comments.
14413
14414 2010-12-22  Bruno Haible  <bruno@clisp.org>
14415
14416         round: Implement result sign according to IEEE 754.
14417         * lib/round.c (MIN, MINUS_ZERO): New macros.
14418         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14419         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14420         * tests/test-round-ieee.c (main): Likewise.
14421         * tests/test-roundl-ieee.c (main): Likewise.
14422
14423         trunc: Implement result sign according to IEEE 754.
14424         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14425         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14426         * tests/test-trunc2.c: Include minus-zero.h.
14427         (MINUS_ZERO): New macro.
14428         (trunc_reference): Keep in sync with lib/trunc.c.
14429         * tests/test-truncf2.c: Include minus-zero.h.
14430         (MINUS_ZERO): New macro.
14431         (truncf_reference): Keep in sync with lib/trunc.c.
14432         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14433         * tests/test-trunc-ieee.c (main): Likewise.
14434         * tests/test-truncl-ieee.c (main): Likewise.
14435
14436         ceil: Implement result sign according to IEEE 754.
14437         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14438         (FUNC): Return -0.0 for -1 < x < 0.
14439         * tests/test-ceil2.c: Include minus-zero.h.
14440         (MINUS_ZERO): New macro.
14441         (ceil_reference): Keep in sync with lib/ceil.c.
14442         * tests/test-ceilf2.c: Include minus-zero.h.
14443         (MINUS_ZERO): New macro.
14444         (ceilf_reference): Keep in sync with lib/ceil.c.
14445         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14446         * tests/test-ceil-ieee.c (main): Likewise.
14447         * tests/test-ceill-ieee.c (main): Likewise.
14448
14449         floor: Implement result sign according to IEEE 754.
14450         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14451         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14452         * tests/test-floorf2.c (floorf_reference): Likewise.
14453         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14454         * tests/test-floor-ieee.c (main): Likewise.
14455         * tests/test-floorl-ieee.c (main): Likewise.
14456
14457 2010-12-22  Bruno Haible  <bruno@clisp.org>
14458
14459         getaddrinfo: Update doc.
14460         * doc/posix-functions/gai_strerror.texi: Return type is also different
14461         on AIX and HP-UX.
14462
14463 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14464
14465         getaddrinfo, inet_ntop: Update doc for Solaris.
14466         * doc/posix-functions/gai_strerror.texi: Return type is also an
14467         issue on Solaris 9 and earlier.
14468         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14469         on Solaris 10 and earlier.
14470
14471 2010-12-21  Bruno Haible  <bruno@clisp.org>
14472
14473         New module 'roundl-ieee'.
14474         * modules/roundl-ieee: New file.
14475         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14476         test whether roundl works according to ISO C 99 with IEC 60559.
14477         * m4/roundl-ieee.m4: New file.
14478         * modules/roundl-ieee-tests: New file.
14479         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14480         * tests/test-roundl.c (main): Remove signbit tests.
14481         * modules/roundl-tests (Depends-on): Remove signbit.
14482         * doc/posix-functions/roundl.texi: Mention the new module.
14483
14484 2010-12-21  Bruno Haible  <bruno@clisp.org>
14485
14486         New module 'truncl-ieee'.
14487         * modules/truncl-ieee: New file.
14488         * modules/truncl-ieee-tests: New file.
14489         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14490         * tests/test-truncl.c (main): Remove signbit tests.
14491         * modules/truncl-tests (Depends-on): Remove signbit.
14492         * doc/posix-functions/truncl.texi: Mention the new module.
14493
14494 2010-12-21  Bruno Haible  <bruno@clisp.org>
14495
14496         New module 'ceill-ieee'.
14497         * modules/ceill-ieee: New file.
14498         * modules/ceill-ieee-tests: New file.
14499         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14500         * tests/test-ceill.c (main): Remove signbit tests.
14501         * modules/ceill-tests (Depends-on): Remove signbit.
14502         * doc/posix-functions/ceill.texi: Mention the new module.
14503
14504 2010-12-21  Bruno Haible  <bruno@clisp.org>
14505
14506         New module 'floorl-ieee'.
14507         * modules/floorl-ieee: New file.
14508         * modules/floorl-ieee-tests: New file.
14509         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14510         * tests/test-floorl.c (main): Remove signbit tests.
14511         * modules/floorl-tests (Depends-on): Remove signbit.
14512         * doc/posix-functions/floorl.texi: Mention the new module.
14513
14514 2010-12-21  Bruno Haible  <bruno@clisp.org>
14515
14516         New module 'round-ieee'.
14517         * modules/round-ieee: New file.
14518         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14519         whether round works according to ISO C 99 with IEC 60559.
14520         * m4/round-ieee.m4: New file.
14521         * modules/round-ieee-tests: New file.
14522         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14523         * tests/test-round1.c (main): Remove signbit tests.
14524         * modules/round-tests (Depends-on): Remove 'signbit'.
14525         * doc/posix-functions/round.texi: Mention the new module.
14526
14527 2010-12-21  Bruno Haible  <bruno@clisp.org>
14528
14529         New module 'trunc-ieee'.
14530         * modules/trunc-ieee: New file.
14531         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14532         whether trunc works according to ISO C 99 with IEC 60559.
14533         * m4/trunc-ieee.m4: New file.
14534         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14536         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14537         * modules/trunc-ieee-tests: New file.
14538         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14539         * tests/test-trunc1.c (main): Remove signbit tests.
14540         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14541         * doc/posix-functions/trunc.texi: Mention the new module.
14542
14543 2010-12-21  Bruno Haible  <bruno@clisp.org>
14544
14545         New module 'ceil-ieee'.
14546         * modules/ceil-ieee: New file.
14547         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14548         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14549         ISO C 99 with IEC 60559.
14550         * m4/ceil-ieee.m4: New file.
14551         * modules/ceil (Files): Add lib/ceil.c.
14552         (Depends-on): Add 'float'.
14553         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14554         * lib/math.in.h (ceil): New declaration.
14555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14556         REPLACE_CEIL.
14557         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14558         * modules/ceil-ieee-tests: New file.
14559         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14560         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14561         * doc/posix-functions/ceil.texi: Mention the new module.
14562
14563 2010-12-21  Bruno Haible  <bruno@clisp.org>
14564
14565         New module 'floor-ieee'.
14566         * modules/floor-ieee: New file.
14567         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14568         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14569         ISO C 99 with IEC 60559.
14570         * m4/floor-ieee.m4: New file.
14571         * modules/floor (Files): Add lib/floor.c.
14572         (Depends-on): Add 'float'.
14573         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14574         * lib/math.in.h (floor): New declaration.
14575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14576         REPLACE_FLOOR.
14577         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14578         * modules/floor-ieee-tests: New file.
14579         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14580         * tests/test-math-c++.cc: Check the signature of 'floor'.
14581         * doc/posix-functions/floor.texi: Mention the new module.
14582
14583 2010-12-21  Bruno Haible  <bruno@clisp.org>
14584
14585         New module 'roundf-ieee'.
14586         * modules/roundf-ieee: New file.
14587         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14588         test whether roundf works according to ISO C 99 with IEC 60559.
14589         * m4/roundf-ieee.m4: New file.
14590         * modules/roundf-ieee-tests: New file.
14591         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14592         * tests/test-roundf1.c (main): Remove signbit tests.
14593         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14594         * doc/posix-functions/roundf.texi: Mention the new module.
14595
14596 2010-12-21  Bruno Haible  <bruno@clisp.org>
14597
14598         New module 'truncf-ieee'.
14599         * modules/truncf-ieee: New file.
14600         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14601         test whether truncf works according to ISO C 99 with IEC 60559.
14602         * m4/truncf-ieee.m4: New file.
14603         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14605         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14606         * modules/truncf-ieee-tests: New file.
14607         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14608         * tests/test-truncf1.c (main): Remove signbit tests.
14609         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14610         * doc/posix-functions/truncf.texi: Mention the new module.
14611
14612 2010-12-21  Bruno Haible  <bruno@clisp.org>
14613
14614         New module 'ceilf-ieee'.
14615         * modules/ceilf-ieee: New file.
14616         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14617         test whether ceilf works according to ISO C 99 with IEC 60559.
14618         * m4/ceilf-ieee.m4: New file.
14619         * modules/ceilf-ieee-tests: New file.
14620         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14621         * tests/test-ceilf1.c (main): Remove signbit tests.
14622         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14623         * doc/posix-functions/ceilf.texi: Mention the new module.
14624
14625 2010-12-21  Bruno Haible  <bruno@clisp.org>
14626
14627         New module 'floorf-ieee'.
14628         * modules/floorf-ieee: New file.
14629         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14630         test whether floorf works according to ISO C 99 with IEC 60559.
14631         * m4/floorf-ieee.m4: New file.
14632         * modules/floorf-ieee-tests: New file.
14633         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14634         * tests/test-floorf1.c (main): Remove signbit tests.
14635         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14636         * doc/posix-functions/floorf.texi: Mention the new module.
14637
14638 2010-12-21  Bruno Haible  <bruno@clisp.org>
14639
14640         Support for minus zero in autoconf macros.
14641         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14642         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14643         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14644         * tests/minus-zero.h: Update comments.
14645
14646 2010-12-21  Bruno Haible  <bruno@clisp.org>
14647
14648         Tests for module 'ceil'.
14649         * modules/ceil-tests: New file.
14650         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14651         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14652
14653 2010-12-21  Bruno Haible  <bruno@clisp.org>
14654
14655         Tests for module 'floor'.
14656         * modules/floor-tests: New file.
14657         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14658         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14659
14660 2010-12-21  Bruno Haible  <bruno@clisp.org>
14661
14662         math: Fix indentation.
14663         * lib/math.in.h (floorf): Fix indentation.
14664
14665 2010-12-21  Bruno Haible  <bruno@clisp.org>
14666
14667         Fix cross-compilation guesses on Solaris.
14668         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14669         not match "solaris2.10".
14670         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14671         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14672         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14673
14674 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14677         This fixes a problem observed with the latest coreutils snapshot
14678         that caused a test to fail on Solaris 8.  src/csplit.c's call
14679         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14680         earlier, instead of returning the number of bytes that would have
14681         been generated; this causes csplit to incorrectly report memory
14682         exhaustion.
14683         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14684         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14685         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14686         comments to match.
14687         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14688         Fix typo in matching older versions of Solaris: "solaris2.10"
14689         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14690         only for guessing while cross-compiling.
14691         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14692
14693 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14694
14695         ftoastr: fix comment again
14696         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14698         Also, simplify example a bit by using flags = 0.
14699
14700 2010-12-20  Bruno Haible  <bruno@clisp.org>
14701
14702         round*, trunc*: Update documentation regarding glibc.
14703         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14704         * doc/posix-functions/round.texi: Likewise.
14705         * doc/posix-functions/roundl.texi: Likewise.
14706         * doc/posix-functions/truncf.texi: Likewise.
14707         * doc/posix-functions/trunc.texi: Likewise.
14708         * doc/posix-functions/truncl.texi: Likewise.
14709
14710 2010-12-20  Bruno Haible  <bruno@clisp.org>
14711
14712         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14713         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14714         * doc/posix-functions/round.texi: Likewise.
14715         * doc/posix-functions/roundl.texi: Likewise.
14716
14717 2010-12-20  Bruno Haible  <bruno@clisp.org>
14718
14719         ttyname_r: Add missing declaration on HP-UX 11.
14720         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14721         HAVE_TTYNAME_R.
14722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14723         declared. Set HAVE_TTYNAME_R always.
14724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14725         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14726         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14727         HAVE_TTYNAME_R.
14728         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14729
14730 2010-12-20  Bruno Haible  <bruno@clisp.org>
14731
14732         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14733         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14734         * doc/posix-functions/getlogin_r.texi: Likewise.
14735         * tests/test-getlogin.c: Include <errno.h>.
14736         (main): Avoid test failure on HP-UX 11.11.
14737         * tests/test-getlogin_r.c (main): Likewise.
14738
14739 2010-12-20  Bruno Haible  <bruno@clisp.org>
14740
14741         getlogin_r: Add missing declaration on HP-UX 11.
14742         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14743         declared also when it exists as a function.
14744         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14745
14746 2010-12-20  Bruno Haible  <bruno@clisp.org>
14747
14748         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14749         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14750         through wcrtomb.
14751
14752 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         ftoastr: fix comment
14755         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14757
14758 2010-12-19  Bruno Haible  <bruno@clisp.org>
14759
14760         isnan: Ensure it is a macro.
14761         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14762         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14763         Solaris.
14764
14765 2010-12-19  Bruno Haible  <bruno@clisp.org>
14766
14767         ldexpl test: Fix link error on OSF/1 5.1.
14768         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14769
14770 2010-12-19  Bruno Haible  <bruno@clisp.org>
14771
14772         wctype: Make it work in C++ mode on OSF/1 5.1.
14773         * lib/wctype.in.h (iswblank): Declare but not define here.
14774         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14775         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14776         * modules/wctype (Files): Add lib/iswblank.c.
14777
14778 2010-12-19  Bruno Haible  <bruno@clisp.org>
14779
14780         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14781         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14782         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14783
14784 2010-12-19  Bruno Haible  <bruno@clisp.org>
14785
14786         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14788         _POSIX_PII_SOCKET.
14789         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14790         * doc/posix-functions/recvfrom.texi: Likewise.
14791         * doc/posix-functions/send.texi: Likewise.
14792         * doc/posix-functions/sendto.texi: Likewise.
14793
14794 2010-12-19  Bruno Haible  <bruno@clisp.org>
14795
14796         tcgetsid: Add missing declaration on OSF/1 5.1.
14797         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14798         HAVE_TCGETSID.
14799         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14800         Don't set HAVE_TCGETSID.
14801         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14802         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14803         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14804         HAVE_TCGETSID.
14805         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14806
14807 2010-12-19  Bruno Haible  <bruno@clisp.org>
14808
14809         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14810         * lib/stdio.in.h: During the include_next statement, let recursive
14811         includes of this file include only the system header file.
14812
14813 2010-12-19  Bruno Haible  <bruno@clisp.org>
14814
14815         iconv_open: Fix regression from 2010-12-04.
14816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14817         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14818
14819 2010-12-19  Bruno Haible  <bruno@clisp.org>
14820
14821         stdbool test: Avoid a gcc warning.
14822         * tests/test-stdbool.c (main): Fail if e1 is false.
14823         Reported by Jim Meyering.
14824
14825 2010-12-19  Jim Meyering  <meyering@redhat.com>
14826
14827         setenv: restore to working order
14828         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14829         mistakenly removed.
14830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14831         HAVE_SETENV.
14832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14833         HAVE_SETENV.
14834
14835 2010-12-19  Bruno Haible  <bruno@clisp.org>
14836
14837         Document some different function declarations on OSF/1 5.1.
14838         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14839         * doc/posix-functions/inet_ntop.texi: Likewise.
14840         * doc/posix-functions/gethostname.texi: Likewise.
14841         * lib/unistd.in.h (gethostname): Update comment.
14842
14843 2010-12-19  Bruno Haible  <bruno@clisp.org>
14844
14845         doc: Mention vasprintf-posix module.
14846         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14847         the 'vasprintf-posix' module.
14848         * doc/glibc-functions/vasprintf.texi: Likewise.
14849
14850 2010-12-19  Bruno Haible  <bruno@clisp.org>
14851
14852         unsetenv: Add missing declaration on OSF/1 5.1.
14853         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14854         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14855         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14857         not HAVE_UNSETENV.
14858         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14859         HAVE_UNSETENV.
14860         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14861
14862 2010-12-19  Bruno Haible  <bruno@clisp.org>
14863
14864         setenv: Add missing declaration on OSF/1 5.1.
14865         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14866         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14867         declared. Don't set HAVE_SETENV.
14868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14869         not HAVE_SETENV.
14870         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14871         HAVE_SETENV.
14872         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14873
14874 2010-12-19  Bruno Haible  <bruno@clisp.org>
14875
14876         nl_langinfo tests: Avoid gcc warning.
14877         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14878
14879 2010-12-19  Bruno Haible  <bruno@clisp.org>
14880
14881         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14882         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14883         _GL_CXXALIAS_SYS.
14884
14885 2010-12-19  Bruno Haible  <bruno@clisp.org>
14886
14887         stdbool: Relax test.
14888         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14889         address to 'bool' work in static initializer, for compilers other than
14890         GCC.
14891
14892 2010-12-19  Bruno Haible  <bruno@clisp.org>
14893
14894         ftello: Add missing declaration on OSF/1 5.1.
14895         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14896         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14898         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14899         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14900
14901 2010-12-19  Bruno Haible  <bruno@clisp.org>
14902
14903         fseeko: Add missing declaration on OSF/1 5.1.
14904         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14907         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14908         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14909
14910 2010-12-19  Bruno Haible  <bruno@clisp.org>
14911
14912         fchdir: Add missing declaration on OSF/1 5.1.
14913         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14916         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14917         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14918
14919 2010-12-19  Bruno Haible  <bruno@clisp.org>
14920
14921         relocatable-prog-wrapper: Separate from relocatable-prog.
14922         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14923         uninstall-relocwrapper rule here.
14924         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14925         Reported by Ian Beckwith <ianb@erislabs.net>.
14926
14927 2010-12-19  Bruno Haible  <bruno@clisp.org>
14928
14929         unistr/u8-mbsnlen: Add missing dependency.
14930         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14931         Reported by Ian Beckwith <ianb@erislabs.net>.
14932
14933 2010-12-19  Bruno Haible  <bruno@clisp.org>
14934
14935         iconv: Make it possible again to use this module without 'iconv-h'.
14936         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14937         if it is not defined.
14938         Reported by Ian Beckwith <ianb@erislabs.net>.
14939
14940 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14941
14942         acl: port to Solaris 8 when copying from tmpfs to ufs
14943         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14944         error number.  Problem observed on Solaris 8 with latest
14945         coreutils, with "mv A B", where A is on a tmpfs file system and B
14946         is on a ufs file system.  This caused coreutils' mv/part-symlink
14947         test to fail.
14948
14949         tests: set fail=0 at start
14950         * tests/init.sh (setup_): Move fail=0 initialization here ...
14951         (mktempd_): ... from here, so that tests can rely on fail being
14952         set to 0 initially.  This fixes a problem in coreutils; see:
14953         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14954
14955 2010-12-18  Bruno Haible  <bruno@clisp.org>
14956
14957         memmem-simple: Stylistic changes.
14958         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14959         Fix preprocessor directive indentation.
14960
14961 2010-12-15  Pádraig Brady <P@draigBrady.com>
14962
14963         memmem, memmem-simple: reorganize and expand empty needle check
14964         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14965         functional checks to memmem-simple so that one has a fully functional
14966         memmem by using just this module.
14967         Restrict the performance only check to the memmem module.
14968         Also expand the empty needle check to ensure the correct
14969         pointer is returned, not just a non NULL pointer.
14970         * doc/glibc-functions/memmem.texi: Rearrange the portability
14971         documentation to correlate with the rearranged checks.
14972         Clarify exactly how the memmem and memmem-simple modules
14973         relate to each other.
14974
14975 2010-12-15  Pádraig Brady <P@draigBrady.com>
14976             Bruno Haible  <bruno@clisp.org>
14977
14978         Improve cross-compilation guesses for uClibc.
14979         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14980         that uClibc does not have the glibc bug.
14981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14982         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14983
14984 2010-12-14  Eric Blake  <eblake@redhat.com>
14985
14986         configmake: provide fallbacks for oldest supported autotools
14987         * m4/configmake.m4: New file.
14988         * modules/configmake (Files): Ship it.
14989         (configure.ac): Use it to guarantee fallbacks.
14990
14991 2010-12-13  Pádraig Brady <P@draigBrady.com>
14992
14993         read-file: Improve handling of large files
14994         * lib/read-file.c (fread_file): Minimize realloc()s
14995         for regular files, and better manage sizes around SIZE_MAX.
14996
14997 2010-12-13  Eric Blake  <eblake@redhat.com>
14998
14999         cloexec, fcntl: relax license
15000         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15001         consent from all contributors.
15002         * modules/fcntl (License): Likewise.
15003
15004 2010-12-10  Bruno Haible  <bruno@clisp.org>
15005
15006         Tests for module 'pipe-posix'.
15007         * modules/pipe-posix-tests: New file.
15008         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15009
15010 2010-12-10  Bruno Haible  <bruno@clisp.org>
15011
15012         pipe-posix: Make it work in C++ mode.
15013         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15014         (pipe): Use common idiom, not a macro definition.
15015         * lib/pipe.c: New file.
15016         * m4/pipe.m4: New file.
15017         * modules/pipe-posix (Description): Enhance.
15018         (Files): Add lib/pipe.c, m4/pipe.m4.
15019         (configure.ac): Invoke gl_FUNC_PIPE.
15020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15021         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15022         * tests/test-unistd-c++.cc: Check the signature of pipe.
15023
15024 2010-12-10  Bruno Haible  <bruno@clisp.org>
15025
15026         Rename module 'pipe' to 'spawn-pipe'.
15027         * modules/spawn-pipe: New file, renamed from modules/pipe.
15028         (Files, configure.ac, Makefile.am): Update.
15029         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15030         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15031         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15032         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15033         "spawn-pipe.h" instead of "pipe.h".
15034         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15035         to gl_SPAWN_PIPE.
15036         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15037         (Files, Makefile.am): Update.
15038         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15039         Update.
15040         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15041         Include "spawn-pipe.h" instead of "pipe.h".
15042         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15043         * lib/javacomp.c: Likewise.
15044         * lib/javaversion.c: Likewise.
15045         * lib/pipe-filter-gi.c: Likewise.
15046         * lib/pipe-filter-ii.c: Likewise.
15047         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15048         * modules/javacomp (Depends-on): Likewise.
15049         * modules/javaversion (Depends-on): Likewise.
15050         * modules/pipe-filter-gi (Depends-on): Likewise.
15051         * modules/pipe-filter-ii (Depends-on): Likewise.
15052         * MODULES.html.sh (Executing programs): Update.
15053         * NEWS: Mention the change.
15054
15055 2010-12-10  Eric Blake  <eblake@redhat.com>
15056
15057         pipe-posix: new module
15058         * modules/pipe-posix: New file.
15059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15060         (gl_UNISTD_H): Check for declaration.
15061         * modules/unistd (Makefile.am): Substitute it.
15062         * lib/unistd.in.h (pipe): Provide it for mingw.
15063         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15064         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15065
15066 2010-12-07  Bruno Haible  <bruno@clisp.org>
15067
15068         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15069         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15070         u8_strcmp_gnu.
15071         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15072
15073 2010-12-06  Bruno Haible  <bruno@clisp.org>
15074
15075         Update internal documentation.
15076         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15077
15078 2010-12-04  Bruno Haible  <bruno@clisp.org>
15079
15080         Put more information about failed tests into the test return codes.
15081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15082         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15083         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15084         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15085         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15086         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15087         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15088         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15089         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15091         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15092         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15093         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15094         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15095         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15096         returns a bit mask.
15097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15098         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15099         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15100         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15101         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15105         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15106         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15107         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15108         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15109         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15110         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15111         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15112         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15113         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15114         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15115         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15116         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15118         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15120         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15121         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15122         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15123         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15124         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15125         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15126         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15127         gl_PRINTF_PRECISION): Likewise.
15128         * m4/regex.m4 (gl_REGEX): Likewise.
15129         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15130         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15132         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15135         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15136         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15137         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15138         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15139         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15140         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15141         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15142         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15143         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15144         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15145         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15148         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15149         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15150         enumerated value.
15151         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15152
15153 2010-12-04  Bruno Haible  <bruno@clisp.org>
15154
15155         Update for Solaris 11 2010-11.
15156         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15157         Express, released in November 2010.
15158
15159 2010-12-04  Bruno Haible  <bruno@clisp.org>
15160
15161         nproc: Relax license.
15162         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15163         and Paul Eggert.
15164         Requested by Ludovic Courtès <ludo@gnu.org>.
15165
15166 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15167
15168         utimecmp: fine-grained src to nearby coarse-grained dest
15169
15170         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15171         and the source is on a file system with higher-resolution time
15172         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15173         not work, and the time stamps are close together, the algorithm to
15174         determine the exact resolution from the read-back mtime was buggy:
15175         it had a "!=" where it should have had an "==".  This bug has been
15176         in the code ever since it was introduced to gnulib.
15177         Problem reported by Dan Jacobson in
15178         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15179
15180 2010-11-30  Bruno Haible  <bruno@clisp.org>
15181
15182         strerror_r-posix: Fix autoconf test.
15183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15184
15185 2010-11-28  Bruno Haible  <bruno@clisp.org>
15186             Paul Eggert  <eggert@cs.ucla.edu>
15187
15188         Tests for module 'getdomainname'.
15189         * modules/getdomainname-tests: New file.
15190         * tests/test-getdomainname.c: New file, based on
15191         tests/test-gethostname.c.
15192
15193 2010-11-28  Bruno Haible  <bruno@clisp.org>
15194             Paul Eggert  <eggert@cs.ucla.edu>
15195
15196         getdomainname: Use the system function when possible.
15197         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15198         (getdomainname): Replace if needed. Provide the declaration if it is
15199         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15200         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15201         (getdomainname): When the system has getdomainname, call the system
15202         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15203         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15204         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15205         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15206         the function if its second argument is of type 'int' or if it is found
15207         in libnsl.
15208         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15209         <sys/systeminfo.h> and sysinfo().
15210         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15212         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15213         HAVE_GETDOMAINNAME.
15214         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15215         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15216         * doc/glibc-functions/getdomainname.texi: Document the problems with
15217         the getdomainname declaration.
15218
15219 2010-11-28  Bruno Haible  <bruno@clisp.org>
15220
15221         sys_socket: Ensure ss_family field on AIX.
15222         * lib/sys_socket.in.h (ss_family): New macro definition.
15223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15224         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15225         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15226         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15227         * modules/sys_socket (Makefile.am): Substitute
15228         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15229         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15230
15231 2010-11-27  Bruno Haible  <bruno@clisp.org>
15232
15233         readline: Improve configure output.
15234         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15235         "checking for readline..." result understandable.
15236
15237 2010-11-27  Bruno Haible  <bruno@clisp.org>
15238
15239         *printf-posix: Detect a bug on Solaris 10/x86.
15240         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15241         for floating-point output.
15242         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15243         directive.
15244         * tests/test-snprintf-posix.h (test_function): Likewise.
15245         * tests/test-sprintf-posix.h (test_function): Likewise.
15246         * tests/test-vasprintf-posix.c (test_function): Likewise.
15247         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15248         * doc/posix-functions/printf.texi: Likewise.
15249         * doc/posix-functions/snprintf.texi: Likewise.
15250         * doc/posix-functions/sprintf.texi: Likewise.
15251         * doc/posix-functions/vfprintf.texi: Likewise.
15252         * doc/posix-functions/vprintf.texi: Likewise.
15253         * doc/posix-functions/vsnprintf.texi: Likewise.
15254         * doc/posix-functions/vsprintf.texi: Likewise.
15255         * doc/glibc-functions/obstack_printf.texi: Likewise.
15256         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15257
15258 2010-11-27  Bruno Haible  <bruno@clisp.org>
15259
15260         Fix link error when module libunistring-optional is in use.
15261         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15262         * modules/striconveha-tests (Makefile.am): Likewise.
15263
15264 2010-11-27  Bruno Haible  <bruno@clisp.org>
15265
15266         regex: Mention link dependencies.
15267         * modules/regex (Link): New section.
15268         * modules/rpmatch (Link): Likewise.
15269         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15270
15271 2010-11-27  Bruno Haible  <bruno@clisp.org>
15272
15273         ftoastr: Fix compilation error on Solaris.
15274         * lib/ftoastr.c: Include <config.h>.
15275
15276 2010-11-27  Bruno Haible  <bruno@clisp.org>
15277
15278         getloadavg: Update documentation.
15279         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15280
15281 2010-11-27  Bruno Haible  <bruno@clisp.org>
15282
15283         sys_socket: Fix test whether the functions are declared.
15284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15285         not <sys/select.h>.
15286
15287 2010-11-27  Bruno Haible  <bruno@clisp.org>
15288
15289         getpass: Make sure to get system declaration on some platforms.
15290         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15291         gl_USE_SYSTEM_EXTENSIONS.
15292         * modules/getpass (Depends-on): Add extensions.
15293
15294 2010-11-26  Bruno Haible  <bruno@clisp.org>
15295
15296         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15297         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15298         'iconv' module is present.
15299         (ICONV_CONST): New macro.
15300         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15301         ICONV_CONST.
15302         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15303         set ICONV_CONST.
15304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15305         here.
15306         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15307         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15308         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15309         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15310         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15311         present.
15312
15313 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15314
15315         ftoastr: comment fix
15316         * lib/ftoastr.c: "little" -> "little or no" in comment
15317
15318 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         stdint: port to GCC 4.3 + OSX + Octave
15321         On this platform, stdint.h is buggy and defines int64_t to long
15322         long int.  The replacement defined it to long int, causing
15323         problems with C++ style name mangling.  Instead, trust the system
15324         definition if INT64_MAX is defined, and likewise for the unsigned
15325         variant.   Problem reported by Jarno Rajahalme in
15326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15327         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15328         and don't mess with int64_t and INT64_MAX in this case.
15329         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15330
15331 2010-11-24  Bruno Haible  <bruno@clisp.org>
15332
15333         doc: Corrections regarding MacOS X 10.4 and 10.5.
15334         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15335         MacOS X.
15336         Reported by Simon Josefsson.
15337
15338 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15339
15340         Uninstall ".bin" files installed by relocwrapper.
15341         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15342         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15343         unless it is already there.
15344
15345 2010-11-21  Bruno Haible  <bruno@clisp.org>
15346
15347         Update for NetBSD 5.0.
15348         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15349         NetBSD; the test fails on NetBSD 5.0.
15350         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15351         about NetBSD.
15352
15353 2010-11-21  Bruno Haible  <bruno@clisp.org>
15354
15355         Update for HP-UX 11.23 and HP-UX 11.31.
15356         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15357         HP-UX.
15358
15359 2010-11-21  Bruno Haible  <bruno@clisp.org>
15360
15361         Update for MacOS X 10.5.
15362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15363         MacOS X; the test fails on MacOS X 10.5.8.
15364         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15365         about MacOS X.
15366
15367 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15368
15369         bootstrap: add bootstrap_sync option.
15370         See discussion at
15371         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15372         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15373         * build-aux/bootstrap: Accept --bootstrap-sync to update
15374         bootstrap if it is not identical to the local gnulib's
15375         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15376         enable this by default.  Accept --no-bootstrap-sync to disable
15377         it.
15378
15379 2010-11-20  Bruno Haible  <bruno@clisp.org>
15380
15381         Ensure that <features.h> is included before __GLIBC__ is tested.
15382         * lib/printf-parse.h: Include <features.h>.
15383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15384         Reported by Mike Frysinger <vapier@gentoo.org>.
15385
15386         Ensure that <features.h> is included before __GLIBC__ is tested.
15387         * lib/wchar.in.h: Include <features.h>.
15388         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15389         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15390         Reported by Mike Frysinger <vapier@gentoo.org>.
15391
15392         Ensure that <features.h> is included before __GLIBC__ is tested.
15393         * lib/arpa_inet.in.h: Include <features.h>.
15394         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15395         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15396         Reported by Mike Frysinger <vapier@gentoo.org>.
15397
15398         Ensure that <features.h> is included before __GLIBC__ is tested.
15399         * build-aux/link-warning.h: Include <features.h>.
15400         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15401         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15402         Reported by Mike Frysinger <vapier@gentoo.org>.
15403
15404         Ensure that <features.h> is included before __GLIBC__ is tested.
15405         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15406         Reported by Mike Frysinger <vapier@gentoo.org>.
15407
15408 2010-11-20  Bruno Haible  <bruno@clisp.org>
15409
15410         memmem: Fix autoconf test.
15411         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15412
15413 2010-11-20  Bruno Haible  <bruno@clisp.org>
15414
15415         Port to uClibc.
15416         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15417         * lib/fcntl.in.h: Likewise.
15418         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15419         * lib/mbrtowc.c (mbrtowc): Likewise.
15420         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15421         * lib/strerror_r.c: Likewise.
15422         * lib/unistr/u8-strnlen.c: Likewise.
15423         * lib/vasnprintf.c (decimal_point_char): Likewise.
15424         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15425         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15427         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15428         * tests/test-sigaction.c (handler, main): Likewise.
15429         * lib/freading.h: Treat uClibc like a non-glibc platform.
15430         * lib/freading.c: Likewise.
15431         * lib/gettext.h: Likewise.
15432         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15433         Likewise.
15434         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15435         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15436         * lib/propername.c (proper_name_utf8): Likewise.
15437         * lib/spawn.in.h: Likewise.
15438         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15439         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15440         mem_cd_iconveh_internal): Likewise.
15441         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15442         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15443         strstr, strcasestr): Likewise.
15444         * lib/unicodeio.c (unicode_to_mb): Likewise.
15445         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15446         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15447         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15448         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15449         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15450         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15451         * lib/unistr/u8-stpncpy.c: Likewise.
15452         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15453         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15456         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15457         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15459         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15461         Likewise.
15462         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15463         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15467         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15469         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15470         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15471         * tests/test-striconveha.c (main): Likewise.
15472         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15473         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15474         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15475         * doc/posix-functions/getline.texi: Likewise.
15476         Reported by Mike Frysinger <vapier@gentoo.org>.
15477
15478 2010-11-20  Bruno Haible  <bruno@clisp.org>
15479
15480         nproc: Fix condition.
15481         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15482         HAVE_PTHREAD_AFFINITY_NP.
15483
15484 2010-11-20  Bruno Haible  <bruno@clisp.org>
15485
15486         Fix a comment.
15487         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15488
15489 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15490
15491         ftoastr: don't assume snprintf
15492         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15493         Implement a subset of snprintf here, by using sprintf safely.
15494         * modules/ftoastr (Depends-on): Remove snprintf.
15495
15496 2010-11-19  Jim Meyering  <meyering@redhat.com>
15497
15498         test-rename.h: fix compilation failure
15499         * tests/test-rename.h (test_rename): Add omitted "}".
15500
15501 2010-11-17  Jim Meyering  <meyering@redhat.com>
15502
15503         maint.mk: add a URL discussing the no-@acronym policy
15504         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15505
15506 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15507
15508         ftoastr: depend on snprintf, improve comments
15509         * lib/ftoastr.c: Also mention Loitsch's draft.
15510         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15511         needed in the current implementation, but it might simplify
15512         speeding up the code later.
15513         * modules/ftoastr: Depend on snprintf; this improves portability.
15514         Suggested by Bruno Haible in the same email.
15515
15516         ftoastr: port to hosts lacking strtof and strtold
15517         Problem reported by Bruno Haible in
15518         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15519         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15520         environment and strtold (and presumably strtof) are not available.
15521         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15522         (configure.ac): Require gl_C99_STRTOLD.
15523
15524 2010-11-18  Bruno Haible  <bruno@clisp.org>
15525
15526         c-strtold: Avoid link error on AIX 7.
15527         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15528         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15529         (gl_C_STRTOLD): Test whether strtold_l exists.
15530         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15531
15532 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15533
15534         intprops: new macro INT_BITS_STRLEN_BOUND
15535         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15536         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15537         not exposed.  Also, it uses a slightly tighter bound than before;
15538         though this makes no practical difference, we might as well be as
15539         tight as we easily can.
15540
15541         ftoastr: new module, for lossless conversion of floats to short strings
15542         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15543         * modules/ftoastr: New files.
15544
15545 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         bootstrap: port to Solaris sed
15548         * build-aux/bootstrap (get_version): Port to Solaris sed.
15549         See Ralf Wildenhues's note in
15550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15551
15552 2010-11-14  Jim Meyering  <meyering@redhat.com>
15553
15554         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15555         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15556         and move definition closer to sole use.
15557
15558 2010-11-13  Jim Meyering  <meyering@redhat.com>
15559
15560         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15561         Now we require at least autoconf-2.59, which means the work-around
15562         is no longer needed.
15563         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15564         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15565         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15566         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15567         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15568
15569 2010-11-13  Bruno Haible  <bruno@clisp.org>
15570
15571         rename, renameat: Avoid test failures at NFS mounted locations.
15572         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15573         functions.
15574         (test_rename): Use assert_nonexistent.
15575         * tests/test-rename.c: Include <dirent.h>.
15576         * tests/test-renameat.c: Likewise.
15577         Reported by Gary V. Vaughan <gary@gnu.org>.
15578
15579         rename, renameat: Document Linux bug with NFS
15580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15581         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15582         * doc/posix-functions/renameat.texi: Likewise.
15583         Suggested by Eric Blake.
15584
15585 2010-11-13  Bruno Haible  <bruno@clisp.org>
15586
15587         rename test: Add comments.
15588         * tests/test-rename.h (test_rename): Add structure and comments.
15589
15590 2010-11-13  Eric Blake  <eblake@redhat.com>
15591
15592         maintainer-makefile: cover a few more files
15593         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15594         scripts generated within C files, for libvirt.
15595
15596 2010-11-13  Bruno Haible  <bruno@clisp.org>
15597
15598         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15599         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15600         character, return the number of bytes that belong together, not always
15601         1.
15602         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15603         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15604         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15605         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15606         number of bytes of an invalid character.
15607         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15608         (main): Invoke it.
15609         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15610         results.
15611         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15612         malformed byte sequences.
15613         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15614         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15615         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15616         Reported by Ben Pfaff and Paolo Bonzini.
15617
15618 2010-11-13  Bruno Haible  <bruno@clisp.org>
15619
15620         openat: Work around glibc bug with fchownat() and empty file names.
15621         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15622         (gl_FUNC_FCHOWNAT): Invoke it.
15623         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15624         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15625         Reported by Gary V. Vaughan <gary@gnu.org>.
15626
15627 2010-11-13  Bruno Haible  <bruno@clisp.org>
15628
15629         openat: Ensure autoconf macro ordering.
15630         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15631         gl_USE_SYSTEM_EXTENSIONS.
15632         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15633
15634 2010-11-13  Bruno Haible  <bruno@clisp.org>
15635
15636         Update comments.
15637         * lib/unistr/u8-check.c: Update file name in comments.
15638         * lib/unistr/u8-mblen.c: Likewise.
15639         * lib/unistr/u8-prev.c: Likewise.
15640         * lib/unistr/u8-strmblen.c: Likewise.
15641         * lib/unistr/u8-strmbtouc.c: Likewise.
15642
15643 2010-11-13  Jim Meyering  <meyering@redhat.com>
15644
15645         tests: avoid test failure on Solaris 10 due to lack of PATH export
15646         * tests/test-update-copyright.sh: Don't forget to export PATH.
15647
15648         init.sh: ensure that IFS is defined, just in case...
15649         * tests/init.sh (setup_): Ensure that IFS is defined,
15650         so that saving and restoring it works as expected.  This
15651         appears to be useful at least for an old version of dash
15652         from a long time ago (RH 6).  See here for details:
15653         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15654
15655         maint.mk: tighten "test a == b" check
15656         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15657         test to files that contain something like #!/bin/sh.
15658         Without this, coreutils would get two false positives in
15659         the comments of C source files.
15660
15661 2010-11-12  Eric Blake  <eblake@redhat.com>
15662
15663         bootstrap: fix typo in previous attempt
15664         * build-aux/bootstrap (buildreq): Correct the grouping.
15665         Reported by Paul Eggert.
15666
15667         maintainer-makefile: prohibit test x == x
15668         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15669         Based on a report by Matthias Bolte.
15670
15671         bootstrap: allow FreeBSD gzip
15672         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15673         which has no '.' and goes to stderr.
15674         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15675         Reported by Matthias Bolte.
15676
15677         maintainer-makefile: check for i18n setup
15678         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15679         will likely work.
15680
15681 2010-11-12  Bruno Haible  <bruno@clisp.org>
15682
15683         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15684         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15685         * lib/nanosleep.c (nanosleep): Likewise.
15686
15687 2010-11-11  Bruno Haible  <bruno@clisp.org>
15688
15689         fcntl-h: Fix for use of C++ on glibc systems.
15690         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15691         also on glibc systems in C++ mode.
15692         Reported by Gary V. Vaughan <gary@gnu.org>.
15693
15694 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15695
15696         mknod: avoid false failure with dash
15697         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15698
15699 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15700
15701         unlink: Fix "is it should" typo in diagnostic.
15702         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15703         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15704
15705 2010-11-11  Bruno Haible  <bruno@clisp.org>
15706
15707         Tests for module 'strerror_r-posix'.
15708         * modules/strerror_r-posix-tests: New file.
15709         * tests/test-strerror_r.c: New file.
15710         * tests/test-string-c++.cc: Check the signature of strerror_r.
15711
15712         New module 'strerror_r-posix'.
15713         * lib/string.in.h (strerror_r): New declaration.
15714         * lib/strerror_r.c: New file.
15715         * m4/strerror_r.m4: New file.
15716         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15717         of strerror_r.
15718         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15719         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15720         * modules/strerror_r-posix: New file.
15721         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15722         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15723         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15724         portability problems.
15725
15726 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15727
15728         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15729         line is also considered for output. Quoted function name in shell
15730         command, so temporary files for functions like MyClass::operator()
15731         are removed correctly without errors.
15732
15733 2010-11-09  Bruno Haible  <bruno@clisp.org>
15734
15735         * doc/posix-functions/strerror.texi: List more failing platforms.
15736
15737         * doc/posix-functions/strerror.texi: Add a comment.
15738
15739 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15740
15741         fdopendir: fix bug on MacOS X when low on file descriptors
15742
15743         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15744         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15745         All callers changed.
15746         (fdopendir): Invoke save_cwd at the top level, not after using
15747         multiple dup() calls to use up file descriptors.  Then retry
15748         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15749         less than the maximum number of open file descriptors, because
15750         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15751         on Mac OS X 10.6.4 for tar 1.24
15752         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15753         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15754         and for tar 1.25
15755         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15756
15757 2010-11-07  Bruno Haible  <bruno@clisp.org>
15758
15759         vasnprintf: Support I flag on glibc systems.
15760         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15761         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15762         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15763         snprintf function.
15764         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15765         glibc systems.
15766         * tests/test-vasnprintf-posix3.c: New file.
15767         * modules/vasnprintf-posix-tests (Files): Add it.
15768         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15769
15770 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15771
15772         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15773         * MODULES.html.sh: For compiler warnings, use name
15774         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15775
15776 2010-11-05  Eric Blake  <eblake@redhat.com>
15777
15778         ceil, floor: avoid spurious failure with icc
15779         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15780         [denormals-as-zero] when optimizing without -mieee-fp option.
15781         * tests/test-floorf2.c (floorf_reference): Likewise.
15782         * tests/test-ceilf1.c (dummy): New function.
15783         (main): Use it to outsmart icc's optimization.
15784         * tests/test-floorf1.c (dummy, main): Likewise.
15785
15786         tests: require working signbit
15787         * modules/ceilf-tests (Depends-on): Add signbit.
15788         * modules/ceill-tests (Depends-on): Likewise.
15789         * modules/floorf-tests (Depends-on): Likewise.
15790         * modules/floorl-tests (Depends-on): Likewise.
15791         * modules/round-tests (Depends-on): Likewise.
15792         * modules/roundf-tests (Depends-on): Likewise.
15793         * modules/roundl-tests (Depends-on): Likewise.
15794         * modules/trunc-tests (Depends-on): Likewise.
15795         * modules/truncf-tests (Depends-on): Likewise.
15796         * modules/truncl-tests (Depends-on): Likewise.
15797
15798         strtod: work around icc bug
15799         * lib/strtod.c (minus_zero): Define to working value.
15800         (strtod): Use it to avoid icc bug.
15801
15802         copysign: enhance tests
15803         * modules/copysign-tests (Files): Add minus-zero.h.
15804         * tests/test-copysign.c (main): Also test zeros.
15805
15806 2010-11-04  Eric Blake  <eblake@redhat.com>
15807
15808         ceil, floor, round, trunc: enhance tests of -0
15809         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15810         * tests/test-ceill.c (main): Likewise.
15811         * tests/test-floorf1.c (main): Likewise.
15812         * tests/test-floorl.c (main): Likewise.
15813         * tests/test-round1.c (main): Likewise.
15814         * tests/test-roundf1.c (main): Likewise.
15815         * tests/test-roundl.c (main): Likewise.
15816         * tests/test-trunc1.c (main): Likewise.
15817         * tests/test-truncf1.c (main): Likewise.
15818         * tests/test-truncl.c (main): Likewise.
15819
15820 2010-11-04  Eric Blake  <eblake@redhat.com>
15821
15822         frexp, tests: work around ICC bug with -zero
15823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15824         works with more compilers.
15825         * tests/minus-zero.h: New file.
15826         * modules/ceilf-tests (Files): Include it.
15827         * modules/ceill-tests (Files): Likewise.
15828         * modules/floorf-tests (Files): Likewise.
15829         * modules/floorl-tests (Files): Likewise.
15830         * modules/frexp-nolibm-tests (Files): Likewise.
15831         * modules/frexp-tests (Files): Likewise.
15832         * modules/frexpl-nolibm-tests (Files): Likewise.
15833         * modules/frexpl-tests (Files): Likewise.
15834         * modules/isnan-tests (Files): Likewise.
15835         * modules/isnand-nolibm-tests (Files): Likewise.
15836         * modules/isnand-tests (Files): Likewise.
15837         * modules/isnanf-nolibm-tests (Files): Likewise.
15838         * modules/isnanf-tests (Files): Likewise.
15839         * modules/isnanl-nolibm-tests (Files): Likewise.
15840         * modules/isnanl-tests (Files): Likewise.
15841         * modules/round-tests (Files): Likewise.
15842         * modules/roundf-tests (Files): Likewise.
15843         * modules/roundl-tests (Files): Likewise.
15844         * modules/ldexpl-tests (Files): Likewise.
15845         * modules/signbit-tests (Files): Likewise.
15846         * modules/snprintf-posix-tests (Files): Likewise.
15847         * modules/sprintf-posix-tests (Files): Likewise.
15848         * modules/strtod-tests (Files): Likewise.
15849         * modules/trunc-tests (Files): Likewise.
15850         * modules/truncf-tests (Files): Likewise.
15851         * modules/truncl-tests (Files): Likewise.
15852         * modules/vsnprintf-posix-tests (Files): Likewise.
15853         * modules/vsprintf-posix-tests (Files): Likewise.
15854         * modules/vasnprintf-posix-tests (Files): Likewise.
15855         * modules/vasprintf-posix-tests (Files): Likewise.
15856         * tests/test-ceilf1.c (main): Use it.
15857         * tests/test-ceill.c (main): Likewise.
15858         * tests/test-floorf1.c (main): Likewise.
15859         * tests/test-floorl.c (main): Likewise.
15860         * tests/test-frexp.c (main): Likewise.
15861         * tests/test-frexpl.c (main): Likewise.
15862         * tests/test-isnan.c (main): Likewise.
15863         * tests/test-isnand.h (main): Likewise.
15864         * tests/test-isnanf.h (main): Likewise.
15865         * tests/test-isnanl.h (main): Likewise.
15866         * tests/test-ldexpl.c (main): Likewise.
15867         * tests/test-round.c (main): Likewise.
15868         * tests/test-roundf.c (main): Likewise.
15869         * tests/test-roundl.c (main): Likewise.
15870         * tests/test-signbit.c (test_signbitf, test_signbitd)
15871         (test_signbitl): Likewise.
15872         * tests/test-snprintf-posix.h (test_function): Likewise.
15873         * tests/test-sprintf-posix.h (test_function): Likewise.
15874         * tests/test-strtod.c (main): Likewise.
15875         * tests/test-trunc1.c (main): Likewise.
15876         * tests/test-truncf1.c (main): Likewise.
15877         * tests/test-truncl.c (main): Likewise.
15878
15879         isnanl: work around icc bug
15880         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15881
15882 2010-11-03  Eric Blake  <eblake@redhat.com>
15883
15884         tests: fix compiler warnings
15885         * tests/test-getopt.h (test_getopt): Fix condition.
15886         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15887         * tests/test-pipe2.c (main): Likewise.
15888         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15889
15890         utimens: fix broken m4 test
15891         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15892
15893 2010-10-28  Bruno Haible  <bruno@clisp.org>
15894
15895         posix_spawn*, getdtablesize: Relax license.
15896         * modules/posix_spawn (License): Change to LGPLv2+.
15897         * modules/posix_spawnp (License): Likewise.
15898         * modules/posix_spawn-internal (License): Likewise.
15899         * modules/posix_spawnattr_init (License): Likewise.
15900         * modules/posix_spawnattr_getflags (License): Likewise.
15901         * modules/posix_spawnattr_setflags (License): Likewise.
15902         * modules/posix_spawnattr_getpgroup (License): Likewise.
15903         * modules/posix_spawnattr_setpgroup (License): Likewise.
15904         * modules/posix_spawnattr_getschedparam (License): Likewise.
15905         * modules/posix_spawnattr_setschedparam (License): Likewise.
15906         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15907         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15908         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15909         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15910         * modules/posix_spawnattr_getsigmask (License): Likewise.
15911         * modules/posix_spawnattr_setsigmask (License): Likewise.
15912         * modules/posix_spawnattr_destroy (License): Likewise.
15913         * modules/posix_spawn_file_actions_init (License): Likewise.
15914         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15915         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15916         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15917         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15918         * modules/getdtablesize (License): Likewise.
15919         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15920
15921 2010-10-26  Bruno Haible  <bruno@clisp.org>
15922
15923         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15924         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15925         Cygwin and mingw.
15926         Suggested by Eric Blake.
15927
15928 2010-10-26  Bruno Haible  <bruno@clisp.org>
15929
15930         stdio: Work around compilation error due to renameat() on Solaris 10.
15931         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15932         * lib/renameat.c: Don't include <unistd.h> here.
15933         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15934         Reported by Paul Eggert and Eric Blake.
15935
15936 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15937
15938         renameat: port to Solaris 10, which declares renameat in unistd.h
15939
15940         * lib/renameat.c: Include unistd.h before stdio.h, because
15941         Solaris 10 declares renameat in unistd.h.  Problem encountered
15942         when building GNU tar 1.24 on Solaris 10.
15943
15944 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15945
15946         fdopendir: fix C89 compilation
15947         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15948         compilers.
15949
15950 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15951
15952         inttostr: simplify by removing unnecessary redundancy
15953         * lib/anytostr.c: Don't include verify.h.
15954         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15955         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15956         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15957         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15958         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15959         Likewise.
15960         * modules/inttostr (Depends-on): Remove 'verify'.
15961
15962 2010-10-23  Bruno Haible  <bruno@clisp.org>
15963
15964         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15965         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15966         Reported by Eric Blake.
15967
15968 2010-10-23  Bruno Haible  <bruno@clisp.org>
15969
15970         Tests: Fix LOCALE_JA on MirBSD 10.
15971         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15972         to an UTF-8 locale.
15973         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15974         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15975         Reported by Eric Blake.
15976
15977 2010-10-21  Bruno Haible  <bruno@clisp.org>
15978
15979         nl_langinfo test: Avoid test failure on NetBSD 5.
15980         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15981         Reported by Eric Blake.
15982
15983 2010-10-21  Eric Blake  <eblake@redhat.com>
15984
15985         c-stack: work around libsigsegv 2.8 bug
15986         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15987         overflow on at least PowerPC64.
15988
15989 2010-10-17  Bruno Haible  <bruno@clisp.org>
15990
15991         userspec: Drop redundant file.
15992         * modules/userspec (Files): Remove lib/inttostr.h.
15993
15994 2010-10-17  Bruno Haible  <bruno@clisp.org>
15995
15996         nl_langinfo tests: Silence some warnings.
15997         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15998         Reported by Jim Meyering.
15999
16000 2010-10-17  Bruno Haible  <bruno@clisp.org>
16001
16002         Make use of GCC's attribute __alloc_size__.
16003         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16004         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16005         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16006         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16007         __alloc_size__.
16008         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16009         Suggested by Jim Meyering.
16010
16011 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16012
16013         bootstrap: anchor .gitignore entries.
16014         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16015         with...
16016         (insert_vc_ignore): ... this new function, which prepends `/' to
16017         all .gitignore entries before passing them to
16018         insert_sorted_if_absent.
16019
16020 2010-10-16  Bruno Haible  <bruno@clisp.org>
16021
16022         nextafter: Fix configure check.
16023         * modules/nextafter (configure.ac): Correct expected prototype.
16024
16025 2010-10-16  Bruno Haible  <bruno@clisp.org>
16026
16027         termios: Update documentation.
16028         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16029
16030 2010-10-16  Bruno Haible  <bruno@clisp.org>
16031
16032         tests: Make them compile with TinyCC.
16033         * tests/test-strstr.c (main): Remove parentheses around array
16034         initializer.
16035
16036 2010-10-15  Eric Blake  <eblake@redhat.com>
16037
16038         ignore-value: make header idempotent
16039         * lib/ignore-value.h: Add double-inclusion guards.
16040         Reported by Stefan Berger.
16041
16042 2010-10-15  Jim Meyering  <meyering@redhat.com>
16043
16044         GNUmakefile: handle "stable" target, not "major"
16045         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16046         lists in maint.mk and announce-gen.  Without this, "make stable"
16047         would fail to ensure that $(VERSION) is up to date.
16048
16049 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16050
16051         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16052         & co.
16053
16054 2010-10-14  Bruno Haible  <bruno@clisp.org>
16055
16056         vasnprintf: Don't set errno to 0.
16057         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16058         block that sets it to 0.
16059         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16060
16061 2010-10-14  Bruno Haible  <bruno@clisp.org>
16062
16063         socketlib: Fix.
16064         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16065         gl_PREREQ_SYS_H_WINSOCK2.
16066         Reported by Ian Beckwith <ianb@erislabs.net>.
16067
16068 2010-10-13  Jim Meyering  <meyering@redhat.com>
16069
16070         test-select-stdin.c: avoid warn_unused_result warnings
16071         * tests/test-select-stdin.c: Include "macros.h".
16072         ASSERT that read and fflush succeed.
16073
16074 2010-10-13  Jim Meyering  <meyering@redhat.com>
16075
16076         git-version-gen: do require git-VC'd files in cwd
16077         * build-aux/git-version-gen: Reject a git version string
16078         if there are no commits associated with the current directory.
16079         This avoids an unlikely false-positive (unrelated dir whose parent
16080         repository also contains a tag matching v*), as pointed out
16081         by Giuseppe Scrivano in
16082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16083
16084 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16085
16086         argv-iter: omit nonconforming declaration
16087         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16088         enum arg_iter_err declaration, which doesn't conform to C99.
16089         Solaris 10 cc warns about this.
16090
16091 2010-10-13  Eric Blake  <eblake@redhat.com>
16092
16093         termios: fix compilation on mingw
16094         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16095         (gl_TERMIOS_H): Adjust it on mingw.
16096         * modules/termios (Makefile.am): Substitute new key.
16097         * lib/termios.in.h (includes): Make include_next conditional.
16098         * doc/posix-headers/termios.texi (termios.h): Update
16099         documentation.
16100         Reported by Daniel P. Berrange.
16101
16102 2010-10-13  Jim Meyering  <meyering@redhat.com>
16103
16104         git-version-gen: don't require that .git/ be in the current dir
16105         * build-aux/git-version-gen: Adjust this script so that it works
16106         when run from any working directory beneath the top-level .git/-
16107         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16108         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16109
16110         test-select: avoid warn_unused_result warnings
16111         * tests/test-select.c: Include "macros.h".
16112         ASSERT that each call to read, write, and pipe succeeds.
16113         While not technically required, also check each "close".
16114         * modules/select-tests (Files): Add tests/macros.h.
16115
16116         test-symlinkat: remove declaration of unused local
16117         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16118
16119         test-inttostr: avoid shadowing warnings
16120         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16121         and use malloc rather than the stack for the same reason as
16122         mentioned in the comment justifying the other allocation.
16123
16124 2010-10-11  Bruno Haible  <bruno@clisp.org>
16125
16126         stdlib: Allow multiple gnulib generated replacements to coexist.
16127         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16128         Reported by Sam Steingold <sds@gnu.org>.
16129
16130 2010-10-11  Jim Meyering  <meyering@redhat.com>
16131
16132         fix a documentation typo
16133         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16134
16135 2010-10-11  Eric Blake  <eblake@redhat.com>
16136
16137         futimens: work around Solaris 11 bug
16138         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16139         * tests/test-futimens.h (test_futimens): Enhance, rather than
16140         weaken test.
16141         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16142
16143 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16144
16145         Indentation.
16146         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16147         higher-level operators more to the left.
16148
16149 2010-10-11  Jim Meyering  <meyering@redhat.com>
16150
16151         test-futimens: avoid unwarranted test failure on Solaris 5.11
16152         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16153         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16154         because it tries to dereference the NULL name argument.
16155
16156 2010-10-11  Bruno Haible  <bruno@clisp.org>
16157
16158         Indentation.
16159         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16160         indentation.
16161
16162 2010-10-11  Jim Meyering  <meyering@redhat.com>
16163
16164         spawn.in.h: make indentation consistent with parentheses
16165         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16166         Make indentation consistent with parentheses.
16167
16168 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16169
16170         Fix mismatched parens in previous commit
16171         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16172         parens.
16173
16174 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16177
16178         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16179         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16180         * lib/malloca.c: Include "verify.h".
16181         (verify1): Remove, replacing with a verify call.
16182         * lib/relocwrapper.c (verify1): Likewise.
16183         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16184         Likewise.
16185         * modules/malloca (Depends-on): Add 'verify'.
16186         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16187         * modules/vasnprintf (Depends-on): Add 'verify'.
16188         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16189         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16190         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16191         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16192         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16193         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16194         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16195
16196         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16197
16198         Formerly the style was sometimes 2*X - 1, because the C standard
16199         was wrongly thought to disallow ?: in integral constant expressions.
16200         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16201         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16202         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16203         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16204         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16205         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16206         verify that time_t cannot be floating.
16207
16208 2010-10-08  Eric Blake  <eblake@redhat.com>
16209
16210         time: enforce recent POSIX ruling that time_t is integral
16211         * lib/time.in.h (__time_t_must_be_integral): Detect any
16212         problematic systems, allowing the rest of gnulib to assume POSIX.
16213
16214 2010-10-08  Jim Meyering  <meyering@redhat.com>
16215
16216         fdopendir: fix a bug on systems lacking openat and /proc support
16217         OpenBSD 4.7 is one such system.  The most noticeable effect was
16218         failure of any application making nontrivial use of fts: rm, du,
16219         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16220           ./rm: traversal failed: `a': Bad file descriptor
16221         Debugging that, you see that even though FD 6 was closed just
16222         prior to the opendir call in fd_clone_opendir, its resulting
16223         dir->dd_fd was 8, rather than the expected value of 6:
16224
16225         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16226         93                close (fd);
16227         (gdb) n
16228         94                dir = fd_clone_opendir (dupfd);
16229         (gdb) n
16230         95                saved_errno = errno;
16231         (gdb) p dir->dd_fd
16232         $11 = 8
16233
16234         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16235         The problem is that on OpenBSD, fd_clone_opendir has to resort
16236         to using the old-style save/restore CWD mechanism, due to its
16237         lack of openat/proc support, and *that* would steal the FD (6)
16238         that opendir was supposed to use.
16239
16240         The fix is to squirrel away the desired FD so that save_cwd uses a
16241         different one, and then free the dest FD right before calling opendir.
16242         That guarantees opendir will use the required file descriptor.
16243
16244         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16245
16246 2010-10-08  Bruno Haible  <bruno@clisp.org>
16247
16248         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16249         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16250
16251 2010-10-08  Bruno Haible  <bruno@clisp.org>
16252
16253         nanosleep: Make replacement POSIX compliant.
16254         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16255         is out of range.
16256         Reported by Jim Meyering.
16257
16258 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         bootstrap: add hook for altering gnulib.mk, for Bison
16261         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16262         the Bison bootstrapping process can rewrite file names and variables
16263         in this file before later parts of 'bootstrap' use the file.
16264         Bison wants to include lib/gnulib.mk from the top-level makefile,
16265         so it needs the file names in this file to be relative to the top
16266         level, not relative to lib; plus it needs variable names to be
16267         rewritten.
16268         (slurp): Use the new function.
16269
16270         bootstrap: reformat for readability
16271         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16272
16273 2010-10-08  Eric Blake  <eblake@redhat.com>
16274
16275         docs: update cygwin progress
16276         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16277         1.7.7.
16278         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16279         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16280         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16281         * doc/posix-functions/carg.texi (carg): Likewise.
16282         * doc/posix-functions/cargf.texi (cargf): Likewise.
16283         * doc/posix-functions/casin.texi (casin): Likewise.
16284         * doc/posix-functions/casinf.texi (casinf): Likewise.
16285         * doc/posix-functions/casinh.texi (casinh): Likewise.
16286         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16287         * doc/posix-functions/catan.texi (catan): Likewise.
16288         * doc/posix-functions/catanf.texi (catanf): Likewise.
16289         * doc/posix-functions/catanh.texi (catanh): Likewise.
16290         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16291         * doc/posix-functions/ccos.texi (ccos): Likewise.
16292         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16293         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16294         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16295         * doc/posix-functions/cexp.texi (cexp): Likewise.
16296         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16297         * doc/posix-functions/cimag.texi (cimag): Likewise.
16298         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16299         * doc/posix-functions/clog.texi (clog): Likewise.
16300         * doc/posix-functions/clogf.texi (clogf): Likewise.
16301         * doc/posix-functions/conj.texi (conj): Likewise.
16302         * doc/posix-functions/conjf.texi (conjf): Likewise.
16303         * doc/posix-functions/cpow.texi (cpow): Likewise.
16304         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16305         * doc/posix-functions/cproj.texi (cproj): Likewise.
16306         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16307         * doc/posix-functions/creal.texi (creal): Likewise.
16308         * doc/posix-functions/crealf.texi (crealf): Likewise.
16309         * doc/posix-functions/csin.texi (csin): Likewise.
16310         * doc/posix-functions/csinf.texi (csinf): Likewise.
16311         * doc/posix-functions/csinh.texi (csinh): Likewise.
16312         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16313         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16314         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16315         * doc/posix-functions/ctan.texi (ctan): Likewise.
16316         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16317         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16318         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16319         * doc/posix-headers/complex.texi (complex.h): Likewise.
16320
16321 2010-10-07  Jim Meyering  <meyering@redhat.com>
16322
16323         parse-datetime: avoid compilation failure on OpenBSD 4.7
16324         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16325         This works around a compilation failure on OpenBSD 4.7:
16326         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16327
16328 2010-10-07  Eric Blake  <eblake@redhat.com>
16329
16330         docs: update cygwin progress
16331         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16332         1.7.6.
16333         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16334         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16335         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16336         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16337         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16338         Likewise.
16339         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16340         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16341         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16342         Likewise.
16343         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16344         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16345         Likewise.
16346         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16347         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16348         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16349         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16350         Likewise.
16351         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16352         Likewise.
16353         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16354
16355         docs: update parse-datetime history
16356         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16357         documentation of this function's history and alternatives.
16358
16359         cygwin: use more robust version check
16360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16361         exclude an eventual cygwin 1.9.1.
16362         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16364         (gl_FUNC_STRCASESTR): Likewise.
16365         Reported by Bruno Haible.
16366
16367 2010-10-06  Bruno Haible  <bruno@clisp.org>
16368
16369         string, sys_select: Avoid #including large headers unless necessary.
16370         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16371         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16372         OSF/1, BeOS, Haiku.
16373         Reported by Jim Meyering.
16374
16375 2010-10-05  Eric Blake  <eblake@redhat.com>
16376
16377         memmem, strstr, strcasestr: fix bug with long periodic needle
16378         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16379         periodic needle having false positive.
16380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16381         and cygwin 1.7.7.
16382         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16384         (gl_FUNC_STRCASESTR): Likewise.
16385         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16386         * tests/test-memmem.c (main): Expose the bug.
16387         * tests/test-strcasestr.c (main): Likewise.
16388         * tests/test-strstr.c (main): Likewise.
16389         * tests/test-c-strcasestr.c (main): Likewise.
16390         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16391         * doc/posix-functions/strstr.texi (strstr): Likewise.
16392         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16393         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16394
16395 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16396
16397         parse-datetime: do some more renaming
16398         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16399         parse_datetime, not get_date.  Mention the renaming.
16400         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16401         in comments.
16402         * m4/bison.m4: Likewise.
16403
16404 2010-10-05  Eric Blake  <eblake@redhat.com>
16405
16406         parse-datetime: better name than get_date
16407         * NEWS: Reword the deprecation notice.
16408         * modules/get_date: Rename to modules/parse-datetime.
16409         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16410         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16411         * lib/get_date.y: Rename to lib/parse-datetime.y.
16412         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16413         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16414         * doc/getdate.texi: Provide fallback wrapper.
16415         * lib/getdate.h: Move guts, and wrap...
16416         * lib/parse-datetime.h: ...new file.
16417         * lib/parse-datetime.y (get_date): Rename...
16418         (parse_datetime): ...to this.
16419         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16420         (gl_PARSE_DATETIME): ...to this.
16421         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16422         documentation.
16423         * modules/getdate (Files): Provide fallback docs and header.
16424         (Notice, Depends-on): Update references.
16425         * tests/test-parse-datetime.c: Likewise.
16426         * DEPENDENCIES: Likewise.
16427         * MODULES.html.sh (Date and time <time.h>): Likewise.
16428         * doc/parse-datetime.texi (Date input formats)
16429         (Authors of parse_datetime): Likewise.
16430         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16431         (Include): Likewise.
16432         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16433         * gnulib-tool: Likewise.
16434         * m4/bison.m4 (gl_BISON): Likewise.
16435         Suggested by Bruno Haible.
16436
16437 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16438
16439         more ports to Solaris tr, which needs [] around ranges
16440         * gnulib-tool: Solaris tr needs [] around ranges.
16441         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16442         * tests/test-pipe-filter-gi1.c (main): Likewise.
16443         * tests/test-pipe-filter-ii1.c (main): Likewise.
16444
16445 2010-10-05  Eric Blake  <eblake@redhat.com>
16446
16447         bootstrap: fix Solaris regression
16448         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16449         around ranges.
16450         Reported by Pádraig Brady.
16451
16452         bootstrap: work with pkg-config
16453         * build-aux/bootstrap (check_versions): Also transliterate - in
16454         prerequisite name.
16455         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16456         prerequisites that were already found, to avoid confusion.
16457         Reported by Justin Clift.
16458
16459         faccessat: remove unused wrappers
16460         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16461         presence of these wrappers dragged in -lgen on Solaris.
16462         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16463
16464 2010-10-05  Jim Meyering  <meyering@redhat.com>
16465
16466         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16467         * Makefile (sc_pragma_columns): New syntax-check rule.
16468
16469 2010-10-04  Bruno Haible  <bruno@clisp.org>
16470
16471         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16472         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16473         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16474         Reported by Bruce Korb and Eric Blake.
16475
16476 2010-10-04  Bruno Haible  <bruno@clisp.org>
16477
16478         threadlib: Make option --with-libpth-prefix work.
16479         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16480         use $LIBPTH, not just -lpth.
16481
16482 2010-10-04  Bruno Haible  <bruno@clisp.org>
16483
16484         Avoid line length limitation from HP NonStop system header files.
16485         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16486         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16487         * lib/ctype.in.h: Likewise.
16488         * lib/dirent.in.h: Likewise.
16489         * lib/errno.in.h: Likewise.
16490         * lib/fcntl.in.h: Likewise.
16491         * lib/float.in.h: Likewise.
16492         * lib/getopt.in.h: Likewise.
16493         * lib/iconv.in.h: Likewise.
16494         * lib/inttypes.in.h: Likewise.
16495         * lib/langinfo.in.h: Likewise.
16496         * lib/locale.in.h: Likewise.
16497         * lib/math.in.h: Likewise.
16498         * lib/netdb.in.h: Likewise.
16499         * lib/netinet_in.in.h: Likewise.
16500         * lib/poll.in.h: Likewise.
16501         * lib/pthread.in.h: Likewise.
16502         * lib/pty.in.h: Likewise.
16503         * lib/sched.in.h: Likewise.
16504         * lib/se-selinux.in.h: Likewise.
16505         * lib/search.in.h: Likewise.
16506         * lib/signal.in.h: Likewise.
16507         * lib/spawn.in.h: Likewise.
16508         * lib/stdarg.in.h: Likewise.
16509         * lib/stddef.in.h: Likewise.
16510         * lib/stdint.in.h: Likewise.
16511         * lib/stdio.in.h: Likewise.
16512         * lib/stdlib.in.h: Likewise.
16513         * lib/string.in.h: Likewise.
16514         * lib/strings.in.h: Likewise.
16515         * lib/sys_file.in.h: Likewise.
16516         * lib/sys_ioctl.in.h: Likewise.
16517         * lib/sys_select.in.h: Likewise.
16518         * lib/sys_socket.in.h: Likewise.
16519         * lib/sys_stat.in.h: Likewise.
16520         * lib/sys_time.in.h: Likewise.
16521         * lib/sys_times.in.h: Likewise.
16522         * lib/sys_utsname.in.h: Likewise.
16523         * lib/sys_wait.in.h: Likewise.
16524         * lib/sysexits.in.h: Likewise.
16525         * lib/termios.in.h: Likewise.
16526         * lib/time.in.h: Likewise.
16527         * lib/unistd.in.h: Likewise.
16528         * lib/wchar.in.h: Likewise.
16529         * lib/wctype.in.h: Likewise.
16530         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16531         * modules/ctype (Makefile.am): Likewise.
16532         * modules/dirent (Makefile.am): Likewise.
16533         * modules/errno (Makefile.am): Likewise.
16534         * modules/fcntl-h (Makefile.am): Likewise.
16535         * modules/float (Makefile.am): Likewise.
16536         * modules/getopt-posix (Makefile.am): Likewise.
16537         * modules/iconv-h (Makefile.am): Likewise.
16538         * modules/inttypes (Makefile.am): Likewise.
16539         * modules/langinfo (Makefile.am): Likewise.
16540         * modules/locale (Makefile.am): Likewise.
16541         * modules/math (Makefile.am): Likewise.
16542         * modules/netdb (Makefile.am): Likewise.
16543         * modules/netinet_in (Makefile.am): Likewise.
16544         * modules/poll-h (Makefile.am): Likewise.
16545         * modules/pthread (Makefile.am): Likewise.
16546         * modules/pty (Makefile.am): Likewise.
16547         * modules/sched (Makefile.am): Likewise.
16548         * modules/search (Makefile.am): Likewise.
16549         * modules/selinux-h (Makefile.am): Likewise.
16550         * modules/signal (Makefile.am): Likewise.
16551         * modules/spawn (Makefile.am): Likewise.
16552         * modules/stdarg (Makefile.am): Likewise.
16553         * modules/stddef (Makefile.am): Likewise.
16554         * modules/stdint (Makefile.am): Likewise.
16555         * modules/stdio (Makefile.am): Likewise.
16556         * modules/stdlib (Makefile.am): Likewise.
16557         * modules/string (Makefile.am): Likewise.
16558         * modules/strings (Makefile.am): Likewise.
16559         * modules/sys_file (Makefile.am): Likewise.
16560         * modules/sys_ioctl (Makefile.am): Likewise.
16561         * modules/sys_select (Makefile.am): Likewise.
16562         * modules/sys_socket (Makefile.am): Likewise.
16563         * modules/sys_stat (Makefile.am): Likewise.
16564         * modules/sys_time (Makefile.am): Likewise.
16565         * modules/sys_times (Makefile.am): Likewise.
16566         * modules/sys_utsname (Makefile.am): Likewise.
16567         * modules/sys_wait (Makefile.am): Likewise.
16568         * modules/sysexits (Makefile.am): Likewise.
16569         * modules/termios (Makefile.am): Likewise.
16570         * modules/time (Makefile.am): Likewise.
16571         * modules/unistd (Makefile.am): Likewise.
16572         * modules/wchar (Makefile.am): Likewise.
16573         * modules/wctype (Makefile.am): Likewise.
16574
16575 2010-10-04  Bruno Haible  <bruno@clisp.org>
16576
16577         read-file tests: Avoid a test failure on NonStop Kernel.
16578         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16579         a regular file.
16580         Reported by Joachim Schmitz <schmitz@hp.com>.
16581
16582 2010-10-03  Bruno Haible  <bruno@clisp.org>
16583
16584         gnulib-tool: Fixes for --create-testdir with --libtool.
16585         * gnulib-tool (func_get_automake_snippet): Don't augment
16586         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16587         an executable.
16588         (func_create_testdir): Handle module 'alloca' like func_import.
16589         Reported by Bruce Korb <bruce.korb@gmail.com>.
16590
16591 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         Avoid some lines longer than 80 characters.
16594         * lib/stdint.in.h: Break long comment lines.
16595         * lib/math.in.h: Likewise.
16596         (_GL_NUM_UINT_WORDS): New macro, for readability.
16597         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16598         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16599         * lib/stdlib.in.h: Likewise.
16600         * lib/spawn.in.h: Likewise.
16601         * lib/sys_socket.in.h: Update an URL.
16602         * lib/sys_stat.in.h: Break long line.
16603
16604 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16605
16606         Improve pmccabe2html.
16607         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16608         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16609         when the sources change. Remove the line in the HTML about "Used
16610         ranges" (which implied that there might be other unused ranges),
16611         rename "Resume" to "Summary" (easier to understand for more users).
16612         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16613         styles, and some unnecessary blank lines.
16614
16615 2010-10-03  Bruno Haible  <bruno@clisp.org>
16616             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16617
16618         acl: Add support for ACLs on NonStop Kernel.
16619         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16620         Check whether the function aclsort() exists.
16621         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16622         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16623         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16624         (acl_nontrivial [HAVE_ACLSORT]: New function.
16625         (file_has_acl): Implement for NonStop Kernel.
16626         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16627         (qset_acl): Implement for NonStop Kernel.
16628         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16629         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16630         (main): Implement for NonStop Kernel.
16631         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16632         Kernel. Handle this flavor.
16633         * tests/test-set-mode-acl.sh: Likewise.
16634         * tests/test-copy-acl.sh: Likewise.
16635         * tests/test-copy-file.sh: Likewise.
16636
16637 2010-10-03  Bruno Haible  <bruno@clisp.org>
16638
16639         Info about ACLs on NonStop Kernel.
16640         * doc/acl-resources.txt: Add info about NonStop Kernel.
16641         References by Joachim Schmitz <schmitz@hp.com>.
16642
16643 2010-10-02  Bruno Haible  <bruno@clisp.org>
16644
16645         Define missing EDQUOT on NonStop Kernel.
16646         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16647         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16648         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16649         missing.
16650         * doc/posix-headers/errno.texi: Mention the NSK bug.
16651         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16652         Reported by Joachim Schmitz <schmitz@hp.com>.
16653
16654 2010-10-02  Bruno Haible  <bruno@clisp.org>
16655
16656         Update doc for POSIX:2008.
16657         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16658         Update URL of POSIX specification.
16659
16660 2010-10-02  Bruno Haible  <bruno@clisp.org>
16661
16662         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16663         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16664         from gnulib, not from Automake.
16665
16666 2010-10-02  Bruno Haible  <bruno@clisp.org>
16667
16668         New module 'system-posix'.
16669         * modules/system-posix: New file.
16670         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16671         module is present.
16672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16673         GNULIB_SYSTEM_POSIX.
16674         * modules/stdlib (Depends-on): Remove sys_wait.
16675         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16676         * doc/posix-functions/system.texi: Mention the new module.
16677         * doc/posix-headers/stdlib.texi: Likewise.
16678         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16679         define test_sys_wait_macros to a no-op.
16680         Reported by Sam Steingold <sds@gnu.org>.
16681
16682 2010-09-30  Bruno Haible  <bruno@clisp.org>
16683
16684         More renaming from 'getdate' to 'get_date'.
16685         * doc/get_date.texi: Renamed from doc/getdate.texi.
16686         * modules/get_date (Files): Update.
16687         * MODULES.html.sh (Date and time <time.h>): Update.
16688         * DEPENDENCIES: Update.
16689         * gnulib-tool: Update comment.
16690         * m4/bison.m4 (gl_BISON): Likewise.
16691         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16692
16693 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16694
16695         bootstrap: support ACLOCAL_FLAGS during aclocal
16696         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16697         can add additional -I dir for third-party .m4 files.
16698
16699 2010-09-30  Eric Blake  <eblake@redhat.com>
16700
16701         bootstrap: use glibtoolize on MacOS
16702         * build-aux/bootstrap (check_versions): Convert libtool into
16703         libtoolize.
16704         (tool search): Move libtool check earlier, and look for
16705         glibtoolize for MacOS.
16706         (gnulib_tool_options): Auto-add --libtool when appropriate.
16707         Reported by Justin Clift.
16708
16709         poll: fix typo that broke test on MacOS
16710         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16711         Reported by Justin Clift.
16712
16713         getdate: rename to get_date
16714         Note: getdate.h is not renamed, to minimize client impact.
16715         * modules/getdate: Mark obsolete.  Move old contents...
16716         * modules/get_date: ...to new module name.
16717         * modules/getdate-tests: Move...
16718         * modules/get_date-tests: ...here.
16719         * m4/getdate.m4: Move...
16720         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16721         * lib/getdate.y: Move...
16722         * lib/get_date.y: ...here.
16723         * tests/test-getdate.c: Move...
16724         * tests/test-get_date.c: ...here.
16725         * doc/posix-functions/getdate.texi (getdate): Update name.
16726         * NEWS: Mention the change.
16727
16728 2010-09-29  Bruno Haible  <bruno@clisp.org>
16729
16730         Separate the module 'waitpid' from the module 'sys_wait'.
16731         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16732         present.
16733         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16734         gl_MODULE_INDICATOR_FOR_TESTS.
16735         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16736         * modules/sys_wait (Depends-on): Remove waitpid.
16737         (Makefile.am): Substitute GNULIB_WAITPID.
16738         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16739         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16740         signature only if the 'waitpid' module is present.
16741         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16742         * NEWS: Mention the change.
16743         * modules/grantpt (Depends-on): Add waitpid.
16744         * modules/wait-process (Depends-on): Likewise.
16745
16746 2010-09-29  Bruno Haible  <bruno@clisp.org>
16747
16748         More tests for module 'sys_wait'.
16749         * modules/sys_wait-c++-tests: New file.
16750         * tests/test-sys_wait-c++.cc: New file.
16751         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16752         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16753
16754 2010-09-29  Bruno Haible  <bruno@clisp.org>
16755
16756         New module 'waitpid'.
16757         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16758         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16759         Don't include <process.h>.
16760         (waitpid): Declare only, using modern idiom.
16761         * m4/waitpid.m4: New file.
16762         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16763         * modules/waitpid: New file.
16764         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16765         (Makefile.am): Update.
16766         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16767
16768 2010-09-28  Bruno Haible  <bruno@clisp.org>
16769
16770         poll: Assume ANSI C.
16771         * lib/poll.c (poll): Use an ANSI C declaration.
16772
16773 2010-09-28  Bruno Haible  <bruno@clisp.org>
16774
16775         poll-h: Create poll.h on all platforms.
16776         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16777         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16778         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16779         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16780         (gl_REPLACE_POLL_H): Don't set POLL_H.
16781         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16782         * modules/poll-h (Depends-on): Add include_next.
16783         (Makefile.am): Create poll.h unconditionally. Substitute also
16784         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16785
16786 2010-09-28  Bruno Haible  <bruno@clisp.org>
16787
16788         Tests for module 'poll-h'.
16789         * modules/poll-h-c++-tests: New file.
16790         * tests/test-poll-h-c++.cc: New file.
16791
16792         Tests for module 'poll-h'.
16793         * modules/poll-h-tests: New file.
16794         * tests/test-poll-h.c: New file.
16795
16796 2010-09-28  Bruno Haible  <bruno@clisp.org>
16797
16798         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16799         * modules/poll-h (Depends-on): Add 'extensions'.
16800
16801 2010-09-28  Bruno Haible  <bruno@clisp.org>
16802
16803         New module 'poll-h'.
16804         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16805         (poll): Use modern idiom.
16806         * modules/poll-h: New file.
16807         * modules/poll (Files): Remove lib/poll.in.h.
16808         (Depends-on): Add poll-h.
16809         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16810         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16811         * m4/poll_h.m4: New file.
16812         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16813         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16814         and invoke gl_REPLACE_POLL_H.
16815         * lib/poll.c: Use common idiom.
16816         * tests/test-poll.c: Likewise.
16817         * doc/posix-headers/poll.texi: Mention the poll-h module.
16818         Suggested by Eric Blake.
16819
16820 2010-09-26  Bruno Haible  <bruno@clisp.org>
16821
16822         sys_wait: Implement WSTOPSIG.
16823         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16824         Reported by Simon Josefsson.
16825
16826 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16827
16828         stdlib, sys_wait: Avoid compilation error on mingw.
16829         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16830
16831 2010-09-26  Bruno Haible  <bruno@clisp.org>
16832
16833         stdlib tests: Avoid code duplication.
16834         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16835         * modules/sys_wait-tests (Files): Likewise.
16836         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16837         * tests/test-stdlib.c: Include test-sys_wait.h.
16838         (main): Invoke test_sys_wait_macros.
16839         * tests/test-sys_wait.c: Include test-sys_wait.h.
16840         (main): Invoke test_sys_wait_macros.
16841
16842 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16843
16844         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16845         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16846         sure Windows sockets are working before calling getaddrinfo.
16847         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16848         * doc/gnulib.texi (Windows sockets): Fix typo.
16849
16850 2010-09-25  Bruno Haible  <bruno@clisp.org>
16851
16852         Tests for module 'regex-quote'.
16853         * modules/regex-quote-tests: New file.
16854         * tests/test-regex-quote.c: New file.
16855
16856         New module 'regex-quote'.
16857         * lib/regex-quote.h: New file.
16858         * lib/regex-quote.c: New file.
16859         * modules/regex-quote: New file.
16860         Suggested by Reuben Thomas <rrt@sc3d.org>.
16861
16862 2010-09-24  Bruno Haible  <bruno@clisp.org>
16863
16864         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16865         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16866
16867 2010-09-23  Bruno Haible  <bruno@clisp.org>
16868
16869         setenv: Relax license.
16870         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16871         Blake.
16872         Requested by Eric Blake.
16873
16874 2010-09-22  Bruno Haible  <bruno@clisp.org>
16875
16876         termios: Relax license.
16877         * modules/termios (License): Change to LGPLv2+.
16878         Requested by Eric Blake.
16879
16880 2010-09-22  Bruno Haible  <bruno@clisp.org>
16881
16882         threadlib: Allow the package to change the default to 'no'.
16883         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16884         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16885         Reported by Paul Eggert.
16886
16887 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16888             Bruno Haible  <bruno@clisp.org>
16889
16890         Fix endless loop in mbmemcasecoll.
16891         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16892         byte.
16893         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16894
16895 2010-09-22  Bruno Haible  <bruno@clisp.org>
16896
16897         Tests for module 'memcoll'.
16898         * modules/memcoll-tests: New file.
16899         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16900
16901         memcoll, xmemcoll: Clarify size vs. length.
16902         * modules/memcoll.c (memcoll0): Clarify specification.
16903         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16904         passed to collate_error.
16905
16906 2010-09-22  Bruno Haible  <bruno@clisp.org>
16907
16908         Tests for module 'memcasecmp'.
16909         * modules/memcasecmp-tests: New file.
16910         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16911
16912 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16913
16914         * lib/pthread.in.h: Add split double-inclusion guard, and include
16915         system <pthread.h> if there is one.  Use @@-style as in other
16916         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16917         pthread.h doesn't.
16918         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16919         (pthread_mutexattr_settype, pthread_mutex_trylock):
16920         New static inline functions, if there's no system <pthread.h>.
16921         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16922         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16923         Approximate with mutexes if the system lacks spinlocks, as in
16924         MacOS.
16925         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16926         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16927         @@-style.  Check for spinlocks separately.
16928         (gl_PTHREAD_DEFAULTS): New macro.
16929         * modules/pthread: Redo to use a more typical style for in.h files.
16930
16931 2010-09-21  Eric Blake  <eblake@redhat.com>
16932
16933         net_if: enhance tests
16934         * tests/test-net_if.c (main): Move signature checks earlier.
16935         Print failures to stderr.
16936         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16937         Document the bug that we do not yet fix.
16938
16939 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16940
16941         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16942         about gnulib, not GSS.
16943
16944 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16945
16946         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16947         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16948         for Emacs.
16949         * build-aux/pmccabe2html: Make Makefile.am example code more
16950         cut-and-paste friendly.
16951
16952 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16953
16954         * tests/test-net_if.c: New file.
16955         * modules/net_if-tests: New file.
16956
16957 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16958
16959         pthread: add pthread_spin_destroy
16960         * lib/pthread.in.h (pthread_spin_destroy): New function.
16961
16962 2010-09-19  Bruno Haible  <bruno@clisp.org>
16963
16964         gnulib-tool: Fix --help output.
16965         * gnulib-tool (func_usage): Fix help message.
16966         Reported by Reuben Thomas <rrt@sc3d.org>.
16967
16968 2010-09-18  Jim Meyering  <meyering@redhat.com>
16969
16970         maint.mk: avoid unexpanded \n in two diagnostics
16971         * top/maint.mk (sc_prohibit_always_true_header_tests):
16972         Don't use a literal \n in a halt=... assignment.  It would not be
16973         expanded, and the two \n bytes would appear in the diagnostic output
16974         rather than the desired newline.  Use halt=$$(printf ... instead.
16975         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16976
16977 2010-09-18  Bruno Haible  <bruno@clisp.org>
16978
16979         netinet_in: Doc tweak.
16980         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16982
16983 2010-09-18  Jim Meyering  <meyering@redhat.com>
16984
16985         init.sh: correct an outdated comment
16986         * tests/init.sh (create_exe_shims_):  s/function/alias/
16987
16988         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16989         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16990         a file named "*.exe" is removed between the glob expansion and the
16991         processing of that oddly named file.
16992
16993 2010-09-17  Eric Blake  <eblake@redhat.com>
16994
16995         mirbsd: add some more support
16996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16997         in BSD family.
16998         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16999         devices as OpenBSD.
17000         * m4/host-os.m4 (mirbsd): Add MirBSD.
17001
17002         tests: fix unportable assumption on sys/wait.h
17003         * tests/test-sys_wait.c (main): Relax test.
17004         * tests/test-stdlib.c (main): Likewise.
17005
17006         init.sh: accomodate directory with no .exes
17007         * tests/init.sh: Accomodate directory containing only scripts.
17008
17009         tests: avoid compiler warning
17010         * tests/test-stdlib.c (main): Use the variable.
17011
17012         fdutimens, fdutimensat: update signature, again
17013         * lib/utimens.h (gl_futimens): Delete, and move signature...
17014         (fdutimens): ...here.
17015         (fdutimensat): Rearrange signature.
17016         (lutimensat): Rename variable for clarity.
17017         * lib/fdutimensat.c (fdutimensat): Update signature.
17018         * lib/utimens.c (fdutimens): Likewise.
17019         (gl_futimens): Delete.
17020         (utimens, lutimens): Update callers.
17021         * lib/futimens.c (futimens): Likewise.
17022         * tests/test-fdutimensat.c: Likewise.
17023         * tests/test-utimens.c: Likewise.
17024         * tests/test-futimens.h: Update comment.
17025         * NEWS: Mention this.
17026         Suggested by Paul Eggert.
17027
17028 2010-09-17  Bruno Haible  <bruno@clisp.org>
17029
17030         Take over the maintenance of some older macros from Autoconf.
17031         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17032         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17033         GNU Autoconf.
17034         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17035         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17036
17037 2010-09-17  Eric Blake  <eblake@redhat.com>
17038
17039         fdutimensat: drop atflag validation
17040         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17041         with valid fd, to close a race scenario where futimens is
17042         unsupported and FILE was replaced by a symlink.
17043         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17044         accordingly.
17045         Suggested by Paul Eggert.
17046
17047 2010-09-16  Bruno Haible  <bruno@clisp.org>
17048
17049         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17050         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17051
17052 2010-09-16  Bruno Haible  <bruno@clisp.org>
17053
17054         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17055         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17056         login_tty exists.
17057         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17058
17059 2010-09-16  Bruno Haible  <bruno@clisp.org>
17060
17061         login_tty: Make the replacement code work on BSD systems.
17062         * lib/login_tty.c: Include <sys/ioctl.h>.
17063         (login_tty): Use ioctl TIOCSCTTY when available.
17064         * modules/login_tty (Depends-on): Add sys_ioctl.
17065         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17066
17067 2010-09-16  Bruno Haible  <bruno@clisp.org>
17068
17069         login_tty: Stricter unit test.
17070         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17071         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17072         and tcgetsid() after login_tty.
17073         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17074
17075 2010-09-16  Bruno Haible  <bruno@clisp.org>
17076
17077         New module 'tcgetsid'.
17078         * lib/tcgetsid.c: New file.
17079         * m4/tcgetsid.m4: New file.
17080         * modules/tcgetsid: New file.
17081         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17082         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17083         GNULIB_TCGETSID, HAVE_TCGETSID.
17084         * lib/termios.in.h: Include <sys/types.h>.
17085         (tcgetsid): New declaration.
17086         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17087         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17088         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17089         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17090
17091 2010-09-16  Bruno Haible  <bruno@clisp.org>
17092
17093         Tests for module 'termios'.
17094         * modules/termios-c++-tests: New file.
17095         * modules/termios-tests: New file.
17096         * tests/test-termios-c++.cc: New file.
17097         * tests/test-termios.c: New file.
17098
17099         New module 'termios'.
17100         * modules/termios: New file.
17101         * lib/termios.in.h: New file.
17102         * m4/termios_h.m4: New file.
17103         * doc/posix-headers/termios.texi: Mention the new module.
17104
17105 2010-09-16  Eric Blake  <eblake@redhat.com>
17106
17107         fdutimensat: add an atflag parameter
17108         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17109         * lib/utimens.h (fdutimensat): Update prototype.
17110         * tests/test-fdutimensat.c: Adjust test to match.
17111         * NEWS: Document the change.
17112         Suggested by Paul Eggert.
17113
17114 2010-09-16  Bruno Haible  <bruno@clisp.org>
17115
17116         Fix typos in comments.
17117         * lib/striconveh.h: Fix typo in comment.
17118         * lib/login_tty.c (login_tty): Likewise.
17119
17120 2010-09-15  Bruno Haible  <bruno@clisp.org>
17121
17122         stdlib: clarify MirBSD WEXITSTATUS bug
17123         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17124         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17125
17126 2010-09-15  Eric Blake  <eblake@redhat.com>
17127
17128         stdlib: work around MirBSD WEXITSTATUS bug
17129         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17130         * modules/stdlib (Depends-on): Add sys_wait.
17131         * tests/test-sys_wait.c (main): Enhance test.
17132         * tests/test-stdlib.c (main): Likewise.
17133         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17134
17135         docs: mention MacOS issue with WEXITSTATUS(constant)
17136         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17137         issue.
17138         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17139
17140         strnlen: add tests
17141         * modules/strnlen-tests: New file.
17142         * tests/test-strnlen.c: Likewise.
17143
17144 2010-09-14  Bruno Haible  <bruno@clisp.org>
17145
17146         unistr/base: Avoid link errors when module 'libunistring' is also used.
17147         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17148         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17149         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17150         Declare also when HAVE_LIBUNISTRING is set.
17151         Reported by Pádraig Brady <P@draigbrady.com>.
17152
17153 2010-09-14  Eric Blake  <eblake@redhat.com>
17154
17155         test-rawmemchr: make more robust
17156         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17157         (Depends-on, configure.ac): Add needed prerequisites to use it.
17158         * modules/memchr-tests (Files, Depends-on, configure.ac):
17159         Likewise, to avoid implicit reliance on memchr module prereqs.
17160         * tests/test-memchr.c (main): Ensure proper masking.
17161         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17162         reads.
17163
17164         memchr: detect glibc Alpha bug
17165         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17166         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17167         Alpha.
17168         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17169         * tests/test-memchr.c (main): Enhance test.
17170         Reported by Nelson H. F. Beebe.
17171
17172 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         fts, getcwd, glob: audit for dirfd returning -1
17175         * lib/fts.c (opendir): Remove #define; no longer used.
17176         (opendirat): New arg PDIR_FD.  All callers changed.
17177         (fts_build, _opendir2): Use new opendirat to avoid the need for
17178         dirfd, or for checking whether dirfd returns a negative value.
17179         Don't use opendir; always use openat followed by fdopendir.
17180         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17181         it.
17182         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17183         returns -1 here.
17184         * modules/fts (Depends-on): Remove dirfd.
17185         * modules/getcwd (Depends-on): Likewise.
17186
17187 2010-09-13  Eric Blake  <eblake@redhat.com>
17188
17189         float: fix broken MirBSD header
17190         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17191         * doc/posix-headers/float.texi (float.h): Document it.
17192
17193 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17194
17195         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17196         * lib/fts.c (opendirat): New arg extra_flags.
17197         (__opendir2): Use it to avoid following symlinks when opening
17198         a directory, if symlinks are not supposed to be followed.  See
17199         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17200
17201         fdopendir: preserve argument fd before returning
17202         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17203         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17204         (fdopendir): Use them, arranging for FD to be open to the same
17205         directory that it was when it started.  (It might be temporarily
17206         closed while fdopendir is running, so this not thread- or
17207         signal-safe.)  Be careful to do the right thing even when file
17208         descriptors are scarce and dup fails with errno == EMFILE.  See
17209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17210
17211 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17212
17213         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17214         * NEWS: Document change.
17215         * m4/regex.m4: Disable test for regoff_t size.
17216
17217 2010-09-13  Jim Meyering  <meyering@redhat.com>
17218
17219         fts: don't operate on an invalid file descriptor after failed dup
17220         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17221         negative file descriptor.
17222
17223 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17224
17225         savedir: add streamsavedir, deprecate fdsavedir
17226         * NEWS: Mention deprecation of fdsavedir.
17227         * lib/savedir.c (streamsavedir): New extern function, whose name
17228         ends in "savedir" to be consistent with the others.  This differs
17229         from savedirstream in that it doesn't close its argument.  The
17230         next version of GNU tar will use this instead of fdsavedir, to
17231         avoid some race conditions and conserve file descriptors.
17232         (savedirstream): Reimplement as a wrapper around streamsavedir.
17233         (fdsavedir): Add a comment deprecating this function.  As far as
17234         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17235         * lib/savedir.h (streamsavedir): New decl.
17236         (fdsavedir): Add a comment deprecating this.
17237
17238 2010-09-10  Bruno Haible  <bruno@clisp.org>
17239
17240         langinfo: Fix last commit.
17241         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17242         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17244
17245 2010-09-10  Bruno Haible  <bruno@clisp.org>
17246
17247         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17248         * lib/progreloc.c (O_EXEC): Define fallback.
17249
17250 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17251
17252         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17253         * NEWS: Document recent changes to fcntl-h.
17254         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17255         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17256         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17257         Similarly for O_SEARCH; this last was already true, but not documented.
17258         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17259         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17260         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17261         Likewise.
17262         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17263         is zero, not whether it is defined.
17264         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17265         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17266         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17267
17268 2010-09-10  Bruno Haible  <bruno@clisp.org>
17269
17270         langinfo, nl_langinfo: Fix for IRIX 5.3.
17271         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17272         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17273         HAVE_LANGINFO_YESEXPR.
17274         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17275         HAVE_LANGINFO_YESEXPR.
17276         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17277         HAVE_LANGINFO_T_FMT_AMPM is 0.
17278         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17279         HAVE_LANGINFO_YESEXPR is 0.
17280         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17281         NOEXPR.
17282         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17283         * doc/posix-functions/nl_langinfo.texi: Likewise.
17284         Reported by Eric Blake.
17285
17286 2010-09-10  Bruno Haible  <bruno@clisp.org>
17287
17288         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17289         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17290         on FreeBSD 8.0 and OpenBSD 4.6.
17291         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17292         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17293         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17294         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17295         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17296         ac_includes_default.
17297         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17298
17299 2010-09-09  Eric Blake  <eblake@redhat.com>
17300
17301         strsignal: work around NetBSD bug
17302         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17303         * lib/string.in.h (includes): Likewise.
17304         * doc/posix-functions/strsignal.texi (strsignal): Document the
17305         bug.
17306         Reported by Nelson H. F. Beebe.
17307
17308         gnulib-tool: work with NetBSD /bin/sh
17309         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17310         (func_get_description, func_get_comment, func_get_status)
17311         (func_get_notice, func_get_applicability, func_get_filelist)
17312         (func_get_dependencies, func_get_autoconf_early_snippet)
17313         (func_get_autoconf_snippet, func_get_automake_snippet)
17314         (func_get_include_directive, func_get_link_directive)
17315         (func_get_license, func_get_maintainer, func_import): Avoid
17316         shell syntax errors from parsing syntax extensions.
17317
17318 2010-09-09  Bruno Haible  <bruno@clisp.org>
17319
17320         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17321         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17322         a reliable way to determine whether the 'alias' command works.
17323
17324 2010-09-08  Jim Meyering  <meyering@redhat.com>
17325
17326         init.sh: penalize a set-x-impaired shell; don't disqualify it
17327         * tests/init.sh: Too many shells corrupt application stderr when
17328         you set -x, so we can't afford to disqualify them, since at least
17329         on Irix-6.5, that would disqualify all bourne shells.
17330         Instead, use a two-pass approach.
17331         On the first pass, try to find a shell that meets the stricter
17332         condition that set -x does not corrupt stderr.
17333         If no shell meets the stricter condition, retest each candidate
17334         shell, but without that extra condition.  Finally, when
17335         VERBOSE=yes is requested and set -x might cause trouble, simply
17336         issue a warning and refrain from enabling debug output.
17337
17338 2010-09-08  Eric Blake  <eblake@redhat.com>
17339
17340         unsetenv: fix OpenBSD bug
17341         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17342         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17343         documentation.
17344         Reported by Jim Meyering.
17345
17346         strtod: work around IRIX 6.5 bug
17347         * lib/strtod.c (strtod): Reparse number on shorter string if
17348         exponent parse was invalid.
17349         * tests/test-strtod.c (main): Add check for "0x1p 2".
17350         Reported by Tom G. Christensen.
17351
17352         getopt: optimize previous patch
17353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17354         empty variable.  Speed up awk script.
17355         Reported by Paolo Bonzini.
17356
17357 2010-09-08  Jim Meyering  <meyering@redhat.com>
17358
17359         test.sh: disqualify shells for which set -x corrupts stderr
17360         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17361         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17362         appear in stderr output.  For example, this command:
17363             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17364         prints "P=1" on those two systems:
17365
17366 2010-09-08  Bruno Haible  <bruno@clisp.org>
17367
17368         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17369         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17370         commands, because some shells ignore redirections when there is an
17371         error in the command lookup.
17372         Reported by Eric Blake.
17373
17374 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17375
17376         * lib/regex.h: Fix a mention of `regex_compile' (should be
17377         `re_compile_pattern').
17378         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17379         (re_set_registers): Correct name of parameter in comment.
17380
17381         * doc/regex.texi: Add documentation for missing syntax flags.
17382         Remove commented-out documentation of defunct syntax option
17383         RE_NO_EMPTY_ALTS.
17384         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17385         Add documentation of re_set_registers.
17386         Document trick to re-use a pattern buffer by setting fastmap manually.
17387         Update documentation of struct re_pattern_buffer per public members.
17388         Uncomment documentation of equivalence class operators and
17389         collating symbol operators, since they are now implemented,
17390         Explain leftmost-longest matching in relation to alternatives.
17391         Tidy documentation of substring matching.
17392         Remove POSIX documentation, which is done better in
17393         glibc, and refer the reader there. Keep BSD API documentation, as
17394         that is not readily available elsewhere.
17395
17396 2010-09-07  Eric Blake  <eblake@redhat.com>
17397
17398         getopt: handle POSIXLY_CORRECT set but not exported
17399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17400         export state of POSIXLY_CORRECT, due to bash set -o posix.
17401         Reported by Dustin J. Mitchell.
17402
17403 2010-09-05  Bruno Haible  <bruno@clisp.org>
17404
17405         gnulib-tool: Highlight the changed options.
17406         * gnulib-tool (func_usage): Display the --import, --add-import,
17407         --remove-import explanations in bold font.
17408
17409 2010-09-06  Karl Berry  <karl@gnu.org>
17410
17411         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17412
17413 2010-09-05  Bruno Haible  <bruno@clisp.org>
17414
17415         uniwidth/width: Update comment.
17416         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17417         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17418
17419 2010-09-05  Bruno Haible  <bruno@clisp.org>
17420
17421         isinf, isnan: Relax license.
17422         * modules/isinf (License): Change from GPL to LGPL, with consent from
17423         Ben Pfaff.
17424         * modules/isnan (License): Likewise.
17425         Requested by Ludovic Courtès.
17426
17427 2010-09-04  Bruno Haible  <bruno@clisp.org>
17428
17429         gnulib-tool: Help migration from --import to --add-import or --update.
17430         * gnulib-tool: Emit a verbose error message when --import is used
17431         without any module name.
17432
17433 2010-09-04  Bruno Haible  <bruno@clisp.org>
17434
17435         Update doc about gnulib-tool.
17436         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17437         'gnulib-tool --update' in more detail.
17438         Reported by Eric Blake.
17439
17440 2010-09-04  Bruno Haible  <bruno@clisp.org>
17441
17442         gnulib-tool: Change --import. New options --add/remove-import.
17443         * gnulib-tool: New options --add-import, --remove-import.
17444         (func_usage): Document them.
17445         (have_associative): Define always.
17446         (func_import): In import mode, don't merge the specified settings with
17447         the cached settings. Implement remove-import mode.
17448         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17449         Explain when to use them versus --import.
17450         (Simple update): Use --add-import instead of --import.
17451         * NEWS: Mention the change.
17452
17453 2010-09-04  Bruno Haible  <bruno@clisp.org>
17454
17455         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17456         separate gnulib.mk.
17457
17458 2010-09-04  Bruno Haible  <bruno@clisp.org>
17459
17460         gnulib-tool: Don't talk about CVS any more.
17461         * gnulib-tool (func_usage, func_import): Write "version control"
17462         instead of CVS.
17463
17464 2010-09-04  Jim Meyering  <meyering@redhat.com>
17465
17466         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17467         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17468         false positives (whose names may be ill-chosen) when searching
17469         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17470         would cause a false-positive.
17471
17472         avoid coreutils "make distcheck" failure
17473         Coreutils tests with an absolute build directory name that contains
17474         a space.  Not quoting this directory name caused a failure.
17475         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17476         * tests/test-vc-list-files-cvs.sh: Likewise.
17477
17478 2010-09-04  Bruno Haible  <bruno@clisp.org>
17479
17480         gnulib-tool: Avoid error when run in a package without Makefile.am.
17481         * gnulib-tool: When collecting the m4dirs in a package that does not
17482         have a Makefile.am, eliminate those directories that contain no
17483         gnulib-cache.m4. Fix expression that counts these directories.
17484
17485 2010-09-04  Bruno Haible  <bruno@clisp.org>
17486
17487         update-copyright test: Improve output when perl is missing or too old.
17488         * tests/test-update-copyright.sh: Move test of Perl version down after
17489         the test whether Perl exists. Provide an explanation relating Perl's
17490         error message to Automake's SKIP: message.
17491
17492 2010-09-04  Bruno Haible  <bruno@clisp.org>
17493
17494         Don't augment PATH in TESTS_ENVIRONMENT.
17495         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17496         set abs_aux_dir instead of augmenting PATH.
17497         * modules/vc-list-files-tests (Makefile.am): Likewise.
17498         * tests/test-update-copyright.sh: Augment PATH here.
17499         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17500         path_prepend_.
17501         * tests/test-vc-list-files-git.sh: Likewise.
17502
17503 2010-09-04  Jim Meyering  <meyering@redhat.com>
17504
17505         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17506         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17507
17508 2010-09-04  Bruno Haible  <bruno@clisp.org>
17509
17510         strdup: Fix compilation error in C++ mode.
17511         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17512         the macro.
17513
17514 2010-09-04  Bruno Haible  <bruno@clisp.org>
17515
17516         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17517         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17518         macro into a function.
17519         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17520
17521 2010-09-04  Bruno Haible  <bruno@clisp.org>
17522
17523         Set PATH_SEPARATOR the same way autoconf does.
17524         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17525         the value of PATH_SEPARATOR the same way autoconf-generated configure
17526         scripts do.
17527         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17528         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17529
17530 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17531
17532         Set PATH_SEPARATOR the same way autoconf does.
17533         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17534         the same way autoconf-generated configure scripts do.
17535         * posix-modules: Likewise.
17536
17537 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17538
17539         hash: fix safe_hasher const typo
17540         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17541         const; otherwise, there is a type error later.
17542
17543 2010-09-02  Jim Meyering  <meyering@redhat.com>
17544
17545         test-update-copyright.sh: require perl 5.8.0
17546         * tests/test-update-copyright.sh: Require 5.8.0,
17547         which Tom G. Christensen has confirmed is adequate,
17548         while 5.6.1 is not.
17549
17550 2010-09-02  Eric Blake  <eblake@redhat.com>
17551
17552         tests: init.sh improvements for re-exec'ing with zsh
17553         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17554         -vx through shell re-exec.
17555         Reported by Tom G. Christensen.
17556
17557         wctype: fix typo in previous commit
17558         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17559         Reported by Ludovic Courtès.
17560
17561 2010-09-02  Jim Meyering  <meyering@redhat.com>
17562
17563         test-update-copyright.sh: skip test if Perl is too old
17564         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17565         Reported by Tom G. Christensen.
17566
17567 2010-09-02  Bruno Haible  <bruno@clisp.org>
17568
17569         wctype: Avoid compilation error on IRIX 6.5.30.
17570         * lib/wctype.in.h (iswblank): Declare with a replacement if
17571         REPLACE_ISWBLANK is set.
17572         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17573         declared. Set REPLACE_ISWBLANK.
17574         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17575         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17576         * doc/posix-headers/wctype.texi: Likewise.
17577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17578
17579 2010-09-01  Bruno Haible  <bruno@clisp.org>
17580
17581         New module 'socketlib'.
17582         * modules/socketlib: New file.
17583         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17584         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17585         * modules/sockets (Depends-on): Add socketlib.
17586         Suggested by Sam Steingold <sds@gnu.org>.
17587
17588 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17589
17590         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17591
17592         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17593         when one needs search access to a directory but not read access.
17594         On systems where it is available, it works in some cases where
17595         O_RDONLY does not, namely on directories that are searchable but
17596         not readable, and which need only to be searchable.  If O_SEARCH
17597         is not available, fall back to the traditional method of using
17598         O_RDONLY.
17599
17600         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17601         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17602         when opening a directory that needs only to be searchable.
17603         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17604         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17605         * lib/openat-proc.c (openat_proc_name): Likewise.
17606         * lib/openat.c (openat_needs_fchdir): Likewise.
17607         * lib/save-cwd.c (save_cwd): Likewise.
17608         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17609
17610 2010-08-28  Bruno Haible  <bruno@clisp.org>
17611
17612         New module 'host-cpu-c-abi'.
17613         * modules/host-cpu-c-abi: New file.
17614         * m4/host-cpu-c-abi.m4: New file, based on part of
17615         clisp/src/m4/general.m4.
17616         Requested by Sam Steingold <sds@gnu.org>.
17617
17618 2010-08-31  Eric Blake  <eblake@redhat.com>
17619         and Jim Meyering  <meyering@redhat.com>
17620
17621         hash: factor, and guard against misbehaving hasher function
17622         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17623         of table->hasher's return value.  Also protect against a hash value
17624         so large that adding it to table->bucket results in a NULL pointer.
17625         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17626         Use it in place of open-coded check-and-abort.
17627
17628 2010-08-30  Bruno Haible  <bruno@clisp.org>
17629
17630         hash: silence spurious clang warning
17631         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17632         Reported by Eric Blake.
17633
17634 2010-08-30  Eric Blake  <eblake@redhat.com>
17635
17636         strstr, memmem, strcasestr: avoid leaked shell message
17637         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17638         FreeBSD.
17639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17640         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17641
17642         tests: silence clang warning
17643         * tests/test-malloca.c (do_allocation): Avoid dead store.
17644
17645 2010-08-29  Bruno Haible  <bruno@clisp.org>
17646
17647         gettext: Fix recent mistake.
17648         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17649
17650 2010-08-29  Bruno Haible  <bruno@clisp.org>
17651
17652         selinux-h: Offer a --without-selinux option.
17653         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17654         --without-selinux was specified, skip all tests and define
17655         HAVE_SELINUX_SELINUX_H to 0.
17656         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17657         set LIB_SELINUX to empty.
17658         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17659         gl_LIBSELINUX. If --without-selinux was specified, replace
17660         selinux/context.h.
17661         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17662
17663 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17664             Bruno Haible  <bruno@clisp.org>
17665
17666         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17667         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17668         of HAVE_REALLOC.
17669         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17670         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17671         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17672         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17673
17674 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17675             Bruno Haible  <bruno@clisp.org>
17676
17677         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17678         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17679         HAVE_CALLOC.
17680         * lib/xmalloc.c: Update accordingly.
17681         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17682         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17683         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17684
17685 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17686             Bruno Haible  <bruno@clisp.org>
17687
17688         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17689         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17690         HAVE_MALLOC.
17691         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17692         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17693         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17694
17695 2010-08-29  Bruno Haible  <bruno@clisp.org>
17696
17697         Update modules list.
17698         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17699         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17700         (String handling <string.h>): Add astrxfrm.
17701         (File system functions): Add readlinkat.
17702
17703 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17704
17705         Tests for module 'realloc-gnu'.
17706         * modules/realloc-gnu-tests: New file.
17707         * tests/test-realloc-gnu.c: New file.
17708
17709         Tests for module 'calloc-gnu'.
17710         * modules/calloc-gnu-tests: New file.
17711         * tests/test-calloc-gnu.c: New file.
17712
17713         Tests for module 'malloc-gnu'.
17714         * modules/malloc-gnu-tests: New file.
17715         * tests/test-malloc-gnu.c: New file.
17716
17717 2010-08-28  Bruno Haible  <bruno@clisp.org>
17718
17719         Rename module 'realloc' -> 'realloc-gnu'.
17720         * modules/realloc-gnu: New file, copied from modules/realloc.
17721         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17722         obsolete.
17723         * modules/mgetgroups (Depends-on): Update.
17724         * doc/posix-functions/realloc.texi: Update.
17725         * NEWS: Mention the change.
17726
17727         Rename module 'calloc' -> 'calloc-gnu'.
17728         * modules/calloc-gnu: New file, copied from modules/calloc.
17729         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17730         obsolete.
17731         * doc/posix-functions/calloc.texi: Update.
17732         * NEWS: Mention the change.
17733
17734         Rename module 'malloc' -> 'malloc-gnu'.
17735         * modules/malloc-gnu: New file, copied from modules/malloc.
17736         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17737         obsolete.
17738         * modules/argp (Depends-on): Update.
17739         * modules/regex (Depends-on): Update.
17740         * doc/posix-functions/malloc.texi: Update.
17741         * NEWS: Mention the change.
17742
17743 2010-08-28  Eric Blake  <eblake@redhat.com>
17744
17745         pread, pwrite: add missing dependency
17746         * modules/pread (Depends-on): Add extensions.
17747         * modules/pwrite (Depends-on): Likewise.
17748
17749 2010-08-28  Bruno Haible  <bruno@clisp.org>
17750
17751         unistr/u*-strchr: Fix tests dependencies.
17752         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17753         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17754         Reported by Ian Beckwith <ianb@erislabs.net>.
17755
17756 2010-08-28  Bruno Haible  <bruno@clisp.org>
17757
17758         read-file: Don't occupy too much unused memory.
17759         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17760
17761 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17762             Eric Blake  <eblake@redhat.com>
17763             Bruno Haible  <bruno@clisp.org>
17764
17765         read-file: Avoid memory reallocations with regular files.
17766         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17767         (fread_file): With regular files, use the remaining length as the
17768         initial buffer size.  Check against overflow.
17769         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17770         sys_stat.
17771
17772 2010-08-28  Bruno Haible  <bruno@clisp.org>
17773
17774         ftello: Relax license.
17775         * modules/ftello (License): Relax to LGPLv2+.
17776         Reported by Eric Blake.
17777
17778 2010-08-28  Bruno Haible  <bruno@clisp.org>
17779
17780         Avoid relocwrapper link errors due to gnulib replacement functions.
17781         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17782         function.
17783         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17784
17785 2010-08-28  Bruno Haible  <bruno@clisp.org>
17786
17787         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17788         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17789         defined.
17790         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17791         Suggested by Eric Blake.
17792
17793 2010-08-28  Bruno Haible  <bruno@clisp.org>
17794
17795         sys_socket, netdb: Ensure socklen_t gets defined.
17796         * modules/sys_socket (Depends-on): Add socklen.
17797         * modules/netdb (Depends-on): Likewise.
17798         * modules/getaddrinfo (Depends-on): Remove socklen.
17799         * modules/getsockopt (Depends-on): Likewise.
17800         * modules/setsockopt (Depends-on): Likewise.
17801         * tests/test-sys_socket.c: Check that socklen_t is defined.
17802         * tests/test-netdb.c: Likewise.
17803         * m4/socklen.m4: Update comments.
17804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17805
17806 2010-08-27  Eric Blake  <eblake@redhat.com>
17807
17808         login_tty: add missing dependency
17809         * modules/login_tty (Depends-on): Add pty.
17810
17811 2010-08-26  Eric Blake  <eblake@redhat.com>
17812
17813         lib-symbol-versions: fix m4 quoting
17814         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17815         format for AC_LINK_IFELSE.
17816
17817         glob: fix compile test
17818         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17819
17820         btowc: fix missing file
17821         * modules/btowc (Files): Also ship locale-fr.m4.
17822
17823         lseek: fix link test
17824         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17825         AC_LINK_IFELSE.
17826
17827         include_next: silence autoconf 2.68 warning
17828         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17829         AC_COMPILE_IFELSE as special.
17830         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17831         autoconf < 2.68.
17832
17833         acl: fix compilation test
17834         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17835         AC_COMPILE_IFELSE.
17836
17837 2010-08-26  Bruno Haible  <bruno@clisp.org>
17838
17839         Modernize AC_TRY_RUN invocations.
17840         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17841         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17842         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17843         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17844         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17845         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17846         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17848         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17849         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17850         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17851         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17852         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17853         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17854         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17855         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17856         gl_MBRLEN_NUL_RETVAL): Likewise.
17857         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17858         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17859         Likewise.
17860         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17861         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17862         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17863         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17864         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17865         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17866         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17867         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17868         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17869         Likewise.
17870         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17871         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17873         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17876         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17877         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17878         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17880
17881 2010-08-26  Bruno Haible  <bruno@clisp.org>
17882
17883         Modernize AC_TRY_LINK invocations.
17884         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17885         AC_TRY_LINK.
17886         * m4/argp.m4 (gl_ARGP): Likewise.
17887         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17888         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17889         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17890         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17891         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17892         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17893         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17894         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17895         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17896         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17897         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17898         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17899         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17900         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17901         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17902         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17903         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17904         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17905         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17906         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17907         Likewise.
17908         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17909         Likewise.
17910         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17911         Likewise.
17912         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17914         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17915         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17916         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17917         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17918         * m4/servent.m4 (gl_SERVENT): Likewise.
17919         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17920         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17921         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17922         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17923         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17924         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17925         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17926         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17927         * modules/tsearch-tests (configure.ac): Likewise.
17928
17929 2010-08-26  Bruno Haible  <bruno@clisp.org>
17930
17931         Modernize AC_TRY_COMPILE invocations.
17932         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17933         AC_TRY_COMPILE.
17934         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17935         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17936         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17937         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17938         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17939         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17940         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17941         * m4/lock.m4 (gl_LOCK): Likewise.
17942         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17943         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17944         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17945         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17946         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17947         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17948         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17950         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17951         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17952         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17953         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17954         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17955         extraneous semicolon.
17956
17957 2010-08-26  Jim Meyering  <meyering@redhat.com>
17958
17959         stat-time: relax license LGPL
17960         * modules/stat-time (License): Change from GPL to LGPL,
17961         with consent from all contributors, for use in libguile.
17962         Requested by Ludovic Courtès.
17963
17964 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17965
17966         poll: return immediately on POLLHUP.
17967         * lib/poll.c (poll): Always set timeout before wait_timeout is
17968         computed.
17969
17970 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17971
17972         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17973         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17974         rmdir ("dir/.//"), unlinkat.
17975
17976 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17977
17978         stdbool: avoid spurious failure with modern xlc
17979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17980
17981 2010-08-24  Bruno Haible  <bruno@clisp.org>
17982
17983         getloadavg: simplify code
17984         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17985         gl_have_func. Update comments.
17986
17987 2010-08-24  Eric Blake  <eblake@redhat.com>
17988
17989         getloadavg: don't define SVR4 on cygwin
17990         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17991         only define SVR4 when -lkvm is required.
17992         Reported by Yaakov Selkowitz.
17993
17994 2010-08-24  Bruno Haible  <bruno@clisp.org>
17995
17996         priv-set: fix comment
17997         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17998
17999 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18000
18001         priv-set: fix comments
18002         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18003         to match code, as suggested by David Bartley in:
18004         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18005
18006 2010-08-23  Eric Blake  <eblake@redhat.com>
18007
18008         stdbool: avoid rejecting clang
18009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18010         * tests/test-stdbool.c: Enable more tests if using the system
18011         <stdbool.h> instead of the gnulib replacement.
18012         (main): Move xlc bug test to a runtime test for all compilers.
18013         Reported by Anders Kaseorg.
18014
18015         argz: fix shell quoting issue
18016         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18017         Reported by Charles Wilson.
18018
18019 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18020             Erik Faye-Lund <kusmabite@gmail.com>
18021
18022         poll, select: handle ERROR_BROKEN_PIPE.
18023         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18024         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18025         * lib/select.c (win32_compute_revents): Do not mark a pipe
18026         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18027
18028 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18029
18030         fts: allow compilation with C++
18031         * lib/fts_.h: Specify extern "C" linkage with C++.
18032
18033 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18034
18035         Fix gnulib-tool sed script de-commentation for AIX sed.
18036         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18037         sed.
18038
18039 2010-08-17  Eric Blake  <eblake@redhat.com>
18040
18041         test-stddef: test for (some) offsetof bugs
18042         * tests/test-stddef.c: Enhance test to ensure correct type of
18043         offsetof.
18044         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18045         that we are not fixing at this time.
18046
18047 2010-08-15  Bruno Haible  <bruno@clisp.org>
18048
18049         stpncpy: Allow stpncpy to be defined as a macro.
18050         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18051         if it's already correctly declared.
18052         * lib/string.in.h (stpncpy): Undefine before redefining.
18053         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18054
18055 2010-08-14  Bruno Haible  <bruno@clisp.org>
18056
18057         Rename module 'memxfrm' to 'amemxfrm'.
18058         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18059         (amemxfrm): Renamed from memxfrm.
18060         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18061         (amemxfrm): Renamed from memxfrm.
18062         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18063         * NEWS: Mention the change.
18064         * MODULES.html.sh (String handling <string.h>): Update.
18065         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18066         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18067         * lib/unicase/u16-casexfrm.c: Likewise.
18068         * lib/unicase/u32-casexfrm.c: Likewise.
18069         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18070         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18071         * lib/uninorm/u16-normxfrm.c: Likewise.
18072         * lib/uninorm/u32-normxfrm.c: Likewise.
18073         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18074         memxfrm.
18075         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18076         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18077         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18078         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18079         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18080         Suggested by Paul Eggert.
18081
18082 2010-08-14  Bruno Haible  <bruno@clisp.org>
18083
18084         Tests for module 'astrxfrm'.
18085         * modules/astrxfrm-tests: New file.
18086         * tests/test-astrxfrm.c: New file.
18087
18088         New module 'astrxfrm'.
18089         * lib/astrxfrm.h: New file.
18090         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18091         * modules/astrxfrm: New file.
18092
18093 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18094
18095         regex: Tweak doc.
18096         * doc/regex.texi (Overview): Don't mention regex.c.
18097         (GNU Regular Expression Compiling): Likewise.
18098         (Match-end-of-line Operator): Mention 'not_eol'.
18099
18100 2010-08-14  Brian Gough  <bjg@gnu.org>
18101             Bruno Haible  <bruno@clisp.org>
18102
18103         git-merge-changelog: add doc relating to use with bzr and hg.
18104         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18105
18106 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18107
18108         pthread: fix pthread.h creation for srcdir != builddir
18109         * modules/pthread (Makefile.am): Fix the rule to work also in a
18110         non-srcdir build.
18111
18112 2010-08-13  Karl Berry  <karl@gnu.org>
18113
18114         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18115         * doc/posix-*/*: force line break before @url of POSIX
18116         specifications.
18117         Suggested by Werner Lemberg.
18118
18119 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18120
18121         strtod: fix const diagnostic
18122         * lib/strtod.c (strtod): Don't assign const char * to char *,
18123         as this elicits a warning from GCC when warnings are enabled.
18124
18125 2010-08-10  Pádraig Brady <P@draigbrady.com>
18126         and Eric Blake  <eblake@redhat.com>
18127
18128         copy-acl: ignore ENOTSUP on HP-UX
18129         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18130         so that it is available for HP-UX.
18131         * lib/copy-acl.c (qcopy_acl): Use it.
18132         Reported by Patrick M. Callahan.
18133
18134 2010-08-10  Eric Blake  <eblake@redhat.com>
18135
18136         open, chown: relax license
18137         * modules/open (License): Change to LGPLv2+, with consent by all
18138         authors, for use in augeas.
18139         * modules/chown (License): Likewise.
18140         * modules/lchown (Likewise): Likewise.
18141         Requested by Adam Stokes.
18142
18143 2010-08-09  Karl Berry  <karl@gnu.org>
18144
18145         * build-aux/ar-lib: new file, import from Automake.
18146         * config/srclist.txt: autocheck for updates.
18147
18148 2010-08-09  Eric Blake  <eblake@redhat.com>
18149
18150         readlinkat: adjust client modules
18151         * modules/areadlinkat (Depends-on): Use readlinkat, not
18152         symlinkat.
18153         * modules/areadlinkat-with-size (Depends-on): Likewise.
18154
18155         mknod: be more vocal about danger of running tests as root
18156         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18157         root, since that is just asking for problems.
18158         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18159
18160         readlinkat: split into its own module
18161         * modules/symlinkat: Split readlinkat...
18162         * modules/readlinkat: ...into separate module.
18163         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18164         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18165         * lib/symlinkat.c (readlinkat): Move...
18166         * lib/readlinkat.c: ...into new file.
18167         * modules/symlinkat-tests: Split readlinkat test...
18168         * modules/readlinkat-tests: ...into separate module.
18169         * tests/test-symlinkat.c: Split...
18170         * tests/test-readlinkat.c: ...into new file.
18171         * NEWS: Document the split.
18172         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18173         * lib/unistd.in.h (readlinkat): Likewise.
18174         Suggested by Bruno Haible.
18175
18176 2010-08-08  Bruno Haible  <bruno@clisp.org>
18177
18178         memxfrm: Speed up.
18179         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18180         that usually only one call to strxfrm is necessary for each string
18181         part.
18182         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18183
18184 2010-08-07  Karl Berry  <karl@gnu.org>
18185
18186         * doc/posix-headers/limits.texi,
18187         * doc/posix-functions/malloc.texi,
18188         * doc/posix-functions/strsignal.texi: missing @item.
18189         * doc/ld-version-script.texi: spurious leading i.
18190         * doc/regex.texi (Interval Operators): no commas inside @var.
18191
18192 2010-08-01  Bruno Haible  <bruno@clisp.org>
18193
18194         Integrate the regex documentation.
18195         * doc/gnulib.texi: Define 'cn' index.
18196         (Regular expressions): New a chapter that includes regex.texi and
18197         regexprops-generic.texi.
18198         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18199         syntax.
18200
18201         Whitespace cleanup.
18202         * doc/regex.texi: Remove trailing spaces.
18203
18204         Add regex documentation.
18205         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18206         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18207         Written by Kathy A. Hargreaves and Karl Berry.
18208
18209 2010-08-01  Bruno Haible  <bruno@clisp.org>
18210
18211         link: Update documentation.
18212         * doc/posix-functions/link.texi: Update regarding Solaris.
18213
18214 2010-07-31  Bruno Haible  <bruno@clisp.org>
18215
18216         Update modules list.
18217         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18218         (String handling <string.h>): Add memcmp2, memxfrm.
18219         (Container data structures): Add xlist, xsublist, xoset.
18220         (Core language properties): Add alignof, unused-parameter.
18221         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18222         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18223         (Unibyte characters <ctype.h>): New section.
18224         (String handling <string.h>): New section.
18225         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18226         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18227         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18228         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18229         tan, tanh, tanl, y0, y1, yn.
18230         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18231         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18232         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18233         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18234         unlockpt, vdprintf, vdprintf-posix.
18235         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18236         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18237         xconcat-filename.
18238         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18239         getdtablesize, pipe2, pipe2-safer.
18240         (Security): New section.
18241         (Networking functions): Add accept4.
18242         (Signal handling): Add sigpipe.
18243         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18244         mbmemcasecoll.
18245         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18246         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18247         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18248         pipe-filter-ii.
18249         (Misc): Add argp-version-etc, login_tty, parse-duration.
18250
18251 2010-07-31  Bruno Haible  <bruno@clisp.org>
18252
18253         Improve doc in MODULES.html.
18254         * modules/linkat (Description): Add the word "function".
18255         * modules/mkfifo (Description): Likewise.
18256         * modules/mknod (Description): Likewise.
18257         * modules/remove (Description): Likewise.
18258         * modules/renameat (Description): Likewise.
18259         * modules/stat (Description): Likewise.
18260         * modules/symlink (Description): Likewise.
18261         * modules/unlink (Description): Likewise.
18262
18263 2010-07-31  Bruno Haible  <bruno@clisp.org>
18264
18265         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18266         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18267         option --enable/disable-c++ instead of --enable/disable-cxx.
18268         * NEWS: Mention the change.
18269
18270 2010-07-31  Bruno Haible  <bruno@clisp.org>
18271
18272         readlink, areadlink: Relax test a bit.
18273         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18274         alternative to ENOTDIR.
18275         * tests/test-areadlink.h (test_areadlink): Likewise.
18276         Reported by Rainer Tammer.
18277
18278 2010-07-31  Bruno Haible  <bruno@clisp.org>
18279
18280         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18281         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18282         character, perform the search using U_STRCHR.
18283         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18284         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18285         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18286         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18287         Suggested by Paolo Bonzini.
18288
18289 2010-07-31  Bruno Haible  <bruno@clisp.org>
18290
18291         unistr/u*-strstr: Fix dependencies.
18292         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18293         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18294         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18295
18296 2010-07-31  Bruno Haible  <bruno@clisp.org>
18297
18298         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18299         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18300         the beginning of the loop.
18301         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18302         cases in 'switch' statement.
18303
18304         unistr/u8-strchr: Fix several bugs.
18305         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18306         the string. When not found, return NULL, not a pointer near the end.
18307
18308         More tests for unistr/u8-strchr.
18309         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18310         that the function does not read past the first occurrence of the byte
18311         being searched.
18312         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18313         * tests/unistr/test-u16-strchr.c (main): New function.
18314         * tests/unistr/test-u32-strchr.c (main): New function.
18315
18316 2010-07-31  Bruno Haible  <bruno@clisp.org>
18317
18318         posix-modules: Ignore backup files of documentation files.
18319         * posix-modules: grep only through files named *.texi.
18320
18321 2010-07-31  Bruno Haible  <bruno@clisp.org>
18322
18323         symlinkat: Fix documentation.
18324         * doc/posix-functions/readlinkat.texi: Fix module name.
18325
18326 2010-07-31  Bruno Haible  <bruno@clisp.org>
18327
18328         fchownat: Replace also when chown has the trailing slash bug.
18329         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18330         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18331         introduced on 2010-04-10.
18332         Reported by Rainer Tammer.
18333
18334 2010-07-31  Bruno Haible  <bruno@clisp.org>
18335
18336         linkat: Work around AIX 7.1 bug.
18337         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18338         whether linkat handles trailing slash correctly. If not, replace linkat
18339         and define LINKAT_TRAILING_SLASH_BUG.
18340         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18341         check whether (fd1,file1) points to a directory if file1 or file2 ends
18342         in a slash. Code taken from lib/link.c.
18343         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18344         Reported by Rainer Tammer.
18345
18346 2010-07-31  Bruno Haible  <bruno@clisp.org>
18347
18348         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18349         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18350         This disables an xlc optimization that was causing wrong test results.
18351         Reported by Rainer Tammer.
18352
18353 2010-07-31  Bruno Haible  <bruno@clisp.org>
18354
18355         iconv: Work around AIX 6.1..7.1 bug.
18356         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18357         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18358         cross-compiling, guess no on all versions of AIX.
18359         Reported by Rainer Tammer.
18360
18361 2010-07-31  Bruno Haible  <bruno@clisp.org>
18362
18363         readlink: Relax test a bit.
18364         * tests/test-readlink.h (test_readlink): Allow different errno value
18365         when readlink is called with a file name that ends in / and refers to
18366         a file.
18367         Suggested by Eric Blake.
18368         Reported by Rainer Tammer.
18369
18370 2010-07-31  Bruno Haible  <bruno@clisp.org>
18371
18372         copysign: Does not require -lm on glibc systems.
18373         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18374         gl_COMMON_DOUBLE_MATHFUNC.
18375         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18376
18377 2010-07-31  Bruno Haible  <bruno@clisp.org>
18378
18379         duplocale: Work around AIX 7.1 bug.
18380         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18381         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18382         * lib/duplocale.c (rpl_duplocale): Update comment.
18383         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18384         Reported by Rainer Tammer.
18385
18386 2010-07-30  Bruno Haible  <bruno@clisp.org>
18387
18388         dirfd: Avoid link error on AIX 7.1.
18389         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18390         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18391         exist, set REPLACE_DIRFD.
18392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18393         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18394         * doc/posix-functions/dirfd.texi: Update.
18395         Reported by Rainer Tammer.
18396
18397 2010-07-30  Eric Blake  <eblake@redhat.com>
18398
18399         strtod: next round of AIX fixes
18400         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18401         exponent.
18402         * tests/test-strtod.c (main): Enhance tests.
18403         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18404         Reported by Rainer Tammer.
18405
18406         futimens: fix configure check
18407         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18408         Reported by Bruno Haible.
18409
18410 2010-07-30  Bruno Haible  <bruno@clisp.org>
18411
18412         getline: Update regarding AIX.
18413         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18414         Reported by Rainer Tammer.
18415
18416 2010-07-30  Bruno Haible  <bruno@clisp.org>
18417
18418         wcwidth: Drop replacement on AIX 7.
18419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18420         AIX 7.
18421         Reported by Rainer Tammer.
18422
18423 2010-07-30  Bruno Haible  <bruno@clisp.org>
18424
18425         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18426         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18427         a 'char *'.
18428         Reported by Rainer Tammer.
18429
18430 2010-07-30  Bruno Haible  <bruno@clisp.org>
18431
18432         unlink: Update regarding AIX.
18433         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18434         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18435         Reported by Rainer Tammer.
18436
18437 2010-07-30  Bruno Haible  <bruno@clisp.org>
18438
18439         symlink: Update regarding AIX.
18440         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18441         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18442         Reported by Rainer Tammer.
18443
18444 2010-07-30  Bruno Haible  <bruno@clisp.org>
18445
18446         strndup: Update regarding AIX.
18447         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18448         AIX 7.
18449         Reported by Rainer Tammer.
18450
18451 2010-07-30  Bruno Haible  <bruno@clisp.org>
18452
18453         stat: Update regarding AIX.
18454         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18455         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18456         Reported by Rainer Tammer.
18457
18458 2010-07-30  Bruno Haible  <bruno@clisp.org>
18459
18460         truncl: Fix autoconf test.
18461         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18462         whether truncl works.
18463         Reported by Rainer Tammer.
18464
18465 2010-07-30  Bruno Haible  <bruno@clisp.org>
18466
18467         round: Update regarding AIX.
18468         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18469         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18470         Reported by Rainer Tammer.
18471
18472 2010-07-30  Bruno Haible  <bruno@clisp.org>
18473
18474         rename: Update regarding AIX.
18475         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18476         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18477         Reported by Rainer Tammer.
18478
18479 2010-07-30  Bruno Haible  <bruno@clisp.org>
18480
18481         printf.m4: Update regarding AIX.
18482         * m4/printf.m4: Update comments regarding AIX.
18483         Reported by Rainer Tammer.
18484
18485 2010-07-30  Bruno Haible  <bruno@clisp.org>
18486
18487         iconv: Update regarding AIX.
18488         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18489         AIX 7.
18490         Reported by Rainer Tammer.
18491
18492 2010-07-30  Bruno Haible  <bruno@clisp.org>
18493
18494         getopt: Update regarding AIX.
18495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18496         no on AIX.
18497         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18498         Reported by Rainer Tammer.
18499
18500 2010-07-30  Bruno Haible  <bruno@clisp.org>
18501
18502         ldexpl; Update regarding AIX.
18503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18504         on AIX 7.
18505         Reported by Rainer Tammer.
18506
18507 2010-07-30  Bruno Haible  <bruno@clisp.org>
18508
18509         frexpl: Update regarding AIX.
18510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18511         on AIX 7.
18512         Reported by Rainer Tammer.
18513
18514 2010-07-30  Bruno Haible  <bruno@clisp.org>
18515
18516         open, fopen: Update regarding AIX.
18517         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18518         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18519         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18520         * doc/posix-functions/fopen.texi: Likewise.
18521         Reported by Rainer Tammer.
18522
18523 2010-07-30  Bruno Haible  <bruno@clisp.org>
18524
18525         chown: Update doc regarding AIX.
18526         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18527         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18528         Reported by Rainer Tammer.
18529
18530 2010-07-30  Eric Blake  <eblake@redhat.com>
18531
18532         strtod: fix bug in replacement function on AIX
18533         * lib/strtod.c (strtod): Special case broken "0x" parse in
18534         underlying strtod.
18535         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18536         * doc/posix-functions/strtod.texi (strtod): Likewise.
18537         Reported by Rainer Tammer.
18538
18539 2010-07-30  Bruno Haible  <bruno@clisp.org>
18540
18541         mbrlen: Fix cross-compilation guess for AIX.
18542         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18543         guess. Leftover from 2008-12-22.
18544
18545 2010-07-30  Bruno Haible  <bruno@clisp.org>
18546
18547         mbrtowc: Fix cross-compilation guess for AIX.
18548         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18549         guess. Leftover from 2008-12-21.
18550
18551 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18552
18553         init.sh: work around trap limitation of some shells
18554         * tests/init.sh (setup_): Move exit trap outside of shell function.
18555
18556 2010-07-29  Eric Blake  <eblake@redhat.com>
18557
18558         strtod: aid debugging
18559         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18560         understanding why strtod is rejected.
18561
18562 2010-07-28  Bruno Haible  <bruno@clisp.org>
18563
18564         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18565         * lib/unistr/u8-chr.c: Include <string.h>.
18566         * tests/unistr/test-u8-chr.c: Likewise.
18567         * tests/unistr/test-u16-chr.c: Likewise.
18568         * tests/unistr/test-u32-chr.c: Likewise.
18569         * tests/unistr/test-u8-strchr.c: Likewise.
18570         * tests/unistr/test-u16-strchr.c: Likewise.
18571         * tests/unistr/test-u32-strchr.c: Likewise.
18572         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18573         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18574         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18575         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18576
18577 2010-07-28  Bruno Haible  <bruno@clisp.org>
18578
18579         Use spaces for indentation, not tabs.
18580         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18581
18582 2010-07-27  Bruno Haible  <bruno@clisp.org>
18583
18584         mbspcasecmp: Fix function specification.
18585         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18586         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18587         Reported by Eric Blake <eblake@redhat.com>.
18588
18589 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18590
18591         timespec: use cast and not conditional, as truncation isn't possible
18592         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18593         instead of a conditional.  Comment about the situation in more detail.
18594         This undoes most of the 2009-10-29 patch.
18595
18596 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18597
18598         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18599         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18600         * lib/unistr/u8-strchr.c: Likewise.
18601         * modules/unistr/u8-chr: Depend on memchr.
18602
18603         unistr/u*-strchr: add tests
18604         * modules/unistr/u8-strchr-tests: New file.
18605         * modules/unistr/u16-strchr-tests: New file.
18606         * modules/unistr/u32-strchr-tests: New file.
18607         * tests/unistr/test-strchr.h: New file.
18608         * tests/unistr/test-u8-strchr.c: New file.
18609         * tests/unistr/test-u16-strchr.c: New file.
18610         * tests/unistr/test-u32-strchr.c: New file.
18611
18612         unistr/u*-chr: test multibyte sequences more
18613         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18614         test vector.
18615         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18616         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18617         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18618
18619         unistr/u*-chr: test multibyte sequences
18620         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18621
18622         unistr/u*-chr: prepare for multibyte tests
18623         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18624         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18625         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18626         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18627         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18628         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18629
18630 2010-07-18  Bruno Haible  <bruno@clisp.org>
18631
18632         unistr/u8-strchr: Optimize non-ASCII argument case.
18633         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18634         because the first byte often matches anyway.
18635         Reported by Pádraig Brady <P@draigbrady.com>.
18636
18637 2010-07-15  Karl Berry  <karl@gnu.org>
18638
18639         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18640
18641 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18642
18643         getcwd: on Solaris, work better if ancestors are inaccessible
18644         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18645         buffer and size, try again with a large buffer.  This works better
18646         on Solaris, since its getcwd succeeds even if the path to the root
18647         is inaccessible, and this is helpful in common cases such as .zfs
18648         hidden directories.  Problem reported by J Chapman Flack in
18649         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18650         Use system getcwd if it's declared, not merely if it's partly
18651         working; use the partly-working test only to avoid needless effort
18652         if the system getcwd fails.
18653         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18654         comment that was already obsolete and is now even more obsolete.
18655         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18656         now might call strdup.
18657
18658 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18659
18660         pthread: Add enough so that coreutils/src/sort.c compiles.
18661         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18662         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18663         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18664         Include <sys/types.h>, in case it defines pthread_t.
18665         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18666         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18667         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18668         (pthread_rwlockattr_t, pthread_spinlock_t):
18669         New typedefs, if HAVE_PTHREAD_T is not defined.
18670         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18671         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18672         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18673         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18674         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18675         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18676         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18677         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18678         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18679         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18680         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18681         New macros.
18682         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18683         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18684         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18685         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18686         (pthread_spin_unlock): New dummy functions.
18687         (pthread_create): Return EAGAIN; don't set errno.
18688         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18689         require AC_C_INLINE.
18690         * modules/pthread (Depends-on): Add sched, time.
18691         (pthread.h): Use AM_V_GEN.
18692
18693 2010-07-13  Bruno Haible  <bruno@clisp.org>
18694
18695         striconveh: Don't malloc memory if the result buffer is sufficient.
18696         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18697         buffer if its size is sufficient.
18698         Reported by Ludovic Courtès <ludo@gnu.org>.
18699
18700 2010-07-13  Bruno Haible  <bruno@clisp.org>
18701
18702         strtod: Add safety check.
18703         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18704
18705 2010-07-12  Bruno Haible  <bruno@clisp.org>
18706
18707         Unify tests that set gl_cv_func_ldexpl_no_libm.
18708         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18709         gl_FUNC_LDEXPL.
18710         (gl_FUNC_LDEXPL): Invoke it.
18711         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18712
18713 2010-07-12  Bruno Haible  <bruno@clisp.org>
18714
18715         Unify tests that set gl_cv_func_ldexp_no_libm.
18716         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18717         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18718         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18719         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18720         * modules/strtod (Files): Add m4/ldexp.m4.
18721
18722 2010-07-12  Bruno Haible  <bruno@clisp.org>
18723
18724         Unify tests that set gl_cv_func_frexpl_no_libm.
18725         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18726         gl_FUNC_FREXPL_NO_LIBM.
18727         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18728         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18729
18730 2010-07-12  Bruno Haible  <bruno@clisp.org>
18731
18732         Unify tests that set gl_cv_func_frexp_no_libm.
18733         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18734         gl_FUNC_FREXP_NO_LIBM.
18735         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18736         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18737
18738 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18739
18740         memcoll: clarify sizes versus lengths, document better, and tweak perf
18741         * lib/memcoll.c (strcoll_loop, memcoll0):
18742         Improve quality of descriptive comments.  Name variables
18743         consistently as to whether they are lengths (which do not include
18744         terminating null) versus sizes (which do).
18745         * lib/xmemcoll.c (xmemcoll0): Likewise.
18746         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18747         returned when s1size == 0; this is easier to compile and saves
18748         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18749
18750 2010-07-12  Bruno Haible  <bruno@clisp.org>
18751
18752         Tests for module '_Exit'.
18753         * modules/_Exit-tests: New file.
18754         * tests/test-_Exit.sh: New file.
18755         * tests/test-_Exit.c: New file.
18756
18757         New module '_Exit'.
18758         * lib/stdlib.in.h (__attribute__): New macro.
18759         (_Exit): New declaration.
18760         * lib/_Exit.c: New file.
18761         * m4/_Exit.m4: New file.
18762         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18763         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18764         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18765         * modules/_Exit: New file.
18766         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18767         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18768
18769 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18770
18771         strtod: make it more-accurate typically, and don't require libm
18772         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18773         Include limits.h.  Don't include string.h.
18774         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18775         (locale_isspace): New function, so that no casts are needed to
18776         check whether *s is a space.
18777         (ldexp): Provide an unused dummy if not available.
18778         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18779         (strtod): Use them.  This implementation prefers to use the
18780         underlying strtod if available, falling back on our own code
18781         only to fix known bugs.  This is more likely to produce an
18782         accurate result.  Also, it avoids the use of libm functions.
18783         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18784         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18785         was absent, but it caused a test failure with coreutils.
18786         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18787         with libm.
18788         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18789         * modules/strtod-tests (Makefile.am): Likewise.
18790
18791 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18792             Bruno Haible  <bruno@clisp.org>
18793
18794         unistr/u8-strchr: Optimize ASCII argument case.
18795         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18796
18797 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18798
18799         (x)memcoll: minor tweaks
18800         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18801         is after the type that it qualifies.
18802         (memcoll0): Likewise.
18803         * lib/memcoll.h (memcoll0): Likewise.
18804         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18805         * lib/xmemcoll.h (xmemcoll0): Likewise.
18806         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18807         differs from memcoll in that the NUL byte is part of the argument.
18808         Omit the abort-checks, as performance is a real issue here.  Plus,
18809         the checks were wrong anyway (an off-by-one error).  Omit local
18810         variable 'diff', as it's a bit clearer that way.
18811         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18812         no longer needed.
18813
18814 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18815
18816         (x)memcoll: speedup when input is known to be NUL delimited
18817         * lib/memcoll.c: Include stdlib.
18818         (memcoll0): New function.
18819         (strcoll_loop): New function, refactored for use in both memcoll
18820         and memcoll0.
18821         * lib/memcoll.h (memcoll0): Add prototype.
18822         * lib/xmemcoll.c (xmemcoll0): New function.
18823         (collate_error): New function, refactored for use in both xmemcoll
18824         and xmemcoll0.
18825         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18826         * m4/memcoll.m4: add inline invocation.
18827
18828 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18829
18830         * build-aux/bootstrap: Remove any local translations
18831         from the translation project synchronization directory,
18832         so that local only translations are not distributed.
18833
18834 2010-07-04  Bruno Haible  <bruno@clisp.org>
18835
18836         fsusage: Clarify which code applies to which platforms.
18837         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18838         platform.
18839         * lib/fsusage.c (get_fs_usage): Likewise.
18840
18841 2010-07-04  Bruno Haible  <bruno@clisp.org>
18842
18843         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18844         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18845         Reported by Martin Lambers <marlam@marlam.de>.
18846
18847 2010-07-04  Jim Meyering  <meyering@redhat.com>
18848
18849         hash: once again explicitly disallow insertion of NULL
18850         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18851         inserting a NULL pointer cannot work with these functions.
18852         Add a comment with details.
18853         This reverts part of the 2010-07-01 commit, 5bef1a35
18854         "hash: extend module to deal with non-pointer keys".
18855
18856 2010-07-01  Bruno Haible  <bruno@clisp.org>
18857
18858         stdbool: Update doc.
18859         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18860         Info from Christian Weisgerber <naddy@mips.inka.de>.
18861
18862 2010-07-01  Jim Meyering  <meyering@redhat.com>
18863
18864         hash: extend module to deal with non-pointer keys
18865         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18866         but that allows insertion of non-pointer entries.
18867         Do not disallow an ENTRY value of NULL.
18868         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18869         * lib/hash.h (hash_insert0): Declare.
18870
18871 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18872
18873         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18874         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18875         not present (i.e. with autoconf 2.59 and when using gettextize, not
18876         gnulib), require AC_GNU_SOURCE instead.
18877
18878 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18879
18880         idpriv-drop: Fix tests.
18881         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18882         not to the test-idpriv-droptemp program.
18883
18884 2010-06-29  Bruno Haible  <bruno@clisp.org>
18885
18886         string: Fix syntax error with g++ 2.96.
18887         * lib/string.in.h (__pure__): Remove definition.
18888         (_GL_ATTRIBUTE_PURE): New macro.
18889         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18890         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18891         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18892
18893 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18894
18895         unitypes: Fix bug introduced on 2010-05-18.
18896         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18897
18898 2010-06-22  Eric Blake  <eblake@redhat.com>
18899
18900         memmem: slight optimization
18901         * lib/str-two-way.h (critical_factorization): Update comments.
18902         Reduce work during factorization phase.
18903         Reported by Carlos Bueno <carlos@bueno.org>.
18904
18905 2010-06-21  Bruno Haible  <bruno@clisp.org>
18906
18907         Fix HAVE_CALLOC_POSIX misnomer.
18908         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18909         !HAVE_CALLOC_POSIX.
18910         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18911         HAVE_CALLOC_POSIX.
18912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18913         instead of HAVE_CALLOC_POSIX.
18914         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18915         HAVE_CALLOC_POSIX.
18916
18917         Use modern idiom for calloc() replacement.
18918         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18919         AC_FUNC_CALLOC.
18920         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18921         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18922         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18923         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18924         (gl_REPLACE_CALLOC): New macro.
18925
18926 2010-06-21  Bruno Haible  <bruno@clisp.org>
18927
18928         Fix HAVE_REALLOC_POSIX misnomer.
18929         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18930         !HAVE_REALLOC_POSIX.
18931         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18932         HAVE_REALLOC_POSIX.
18933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18934         instead of HAVE_REALLOC_POSIX.
18935         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18936         HAVE_REALLOC_POSIX.
18937
18938         Use modern idiom for realloc() replacement.
18939         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18940         AC_FUNC_REALLOC.
18941         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18942         Autoconf's AC_FUNC_REALLOC.
18943         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18944         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18945         (gl_REPLACE_REALLOC): New macro.
18946         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18947
18948 2010-06-21  Bruno Haible  <bruno@clisp.org>
18949
18950         Fix HAVE_MALLOC_POSIX misnomer.
18951         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18952         !HAVE_MALLOC_POSIX.
18953         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18954         HAVE_MALLOC_POSIX.
18955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18956         instead of HAVE_MALLOC_POSIX.
18957         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18958         HAVE_MALLOC_POSIX.
18959
18960         Use modern idiom for malloc() replacement.
18961         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18962         AC_FUNC_MALLOC.
18963         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18964         Autoconf's AC_FUNC_MALLOC.
18965         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18966         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18967         (gl_REPLACE_MALLOC): New macro.
18968         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18969
18970 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18971
18972         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18973         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18974         This macro takes 3 arguments, not 4.
18975
18976 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18977
18978         ipv6: fix detection under mingw
18979         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18980         in6_addr.
18981
18982 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18983
18984         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18985         that strtod() works when cross-compiling to a glibc version known
18986         to work.
18987
18988 2010-06-15  Bruno Haible  <bruno@clisp.org>
18989
18990         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18991
18992 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18993
18994         select: Correct timeout.
18995         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18996
18997 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18998
18999         git-version-gen: init shell var to avoid env var influence
19000         * build-aux/git-version-gen (v): Init shell var to empty.
19001
19002 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19003
19004         priv-set: Don't assume that priv.h exists merely because getppriv does.
19005         See Jan Andersen's bug report about AIX 5L in
19006         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19007         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19008         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19009         * lib/priv-set.h: Likewise.
19010         * tests/test-priv-set.c: Likewise.
19011
19012 2010-06-13  Bruno Haible  <bruno@clisp.org>
19013
19014         relocatable: Make it easier to test whether to install wrappers.
19015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19016         RELOCATABLE_VIA_WRAPPER.
19017
19018 2010-06-13  Bruno Haible  <bruno@clisp.org>
19019
19020         gnulib-tool: Display specified modules and dependencies differently.
19021         * gnulib-tool (func_show_module_list): New function.
19022         (func_import, func_create_testdir): Invoke it.
19023         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19024
19025 2010-06-13  Bruno Haible  <bruno@clisp.org>
19026
19027         gnulib-tool: Align code of func_import and func_create_testdir.
19028         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19029         specified_modules.
19030
19031 2010-06-12  Jim Meyering  <meyering@redhat.com>
19032
19033         test-inttostr: avoid spurious failure on Solaris 9
19034         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19035         to accept "%ju".  Reported by Bruno Haible.
19036
19037 2010-06-11  Jim Meyering  <meyering@redhat.com>
19038
19039         test-sys_socket: mark variables as used more readably
19040         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19041         as "used" explicitly via (void) statement casts.  This is more
19042         readable than using them in an artificial return expression.
19043         Suggestion from Bruno Haible.
19044
19045 2010-06-11  Bruno Haible  <bruno@clisp.org>
19046
19047         Avoid some more warnings from "gcc -Wwrite-strings".
19048         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19049         to 'const char *'.
19050         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19051         * tests/test-c-strcasestr.c (main): Likewise.
19052         * tests/test-mbscasestr1.c (main): Likewise.
19053         * tests/test-mbscasestr2.c (main): Likewise.
19054         * tests/test-memmem.c (main): Likewise.
19055         * tests/test-strstr.c (main): Likewise.
19056         * tests/test-strcasestr.c (main): Likewise.
19057
19058 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19059
19060         init.sh: change framework_failure_ to fail with status 99, not 1
19061         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19062         automake's parallel-tests rule that this is an unexpected failure,
19063         even if the test is listed in XFAIL_TESTS.
19064
19065 2010-06-11  Jim Meyering  <meyering@redhat.com>
19066
19067         test-inttostr: avoid warnings about 4-6KB literal strings
19068         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19069         Include "macros.h", for its definition of ASSERT.
19070         (CK): s/assert/ASSERT/
19071         * modules/inttostr-tests (Files): Add macros.h.
19072
19073         init.sh: don't use $ME_ or skip_ before they are defined
19074         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19075         their first uses.  Also hoist their companions: warn_, fail_,
19076         framework_failure_, $stderr_fileno.  Prompted by a patch from
19077         Stefano Lattarini.
19078
19079         test-sys_socket: avoid set-but-not-used warnings from gcc
19080         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19081         avoid warning about set-but-not-used variables.
19082
19083         test-xvasprintf: avoid 'const' discard warnings
19084         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19085         "const" when assigning from literal strings.
19086         (test_xasprintf): Add "void" in function argument list to placate
19087         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19088
19089         tests: avoid compilation warnings in argmatch and exclude tests...
19090         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19091         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19092         Since it always exits, declare with the "noreturn" attribute.
19093         * tests/test-argmatch.c: Likewise.
19094
19095         tests: avoid 'const' discard warnings in mbsstr tests
19096         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19097         * tests/test-mbsstr2.c (main): Likewise.
19098
19099         test-verify: avoid warning from gcc's -Wmissing-declarations
19100         * tests/test-verify.c (function): Declare to be static.
19101
19102         test-inttostr.c: include <string.h> for use of strcmp
19103         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19104
19105         test-linkat: avoid failed assertion on "other" architectures
19106         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19107         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19108         sparc: https://bugs.launchpad.net/bugs/591968
19109
19110 2010-06-11  Jim Meyering  <meyering@redhat.com>
19111
19112         printf.m4: avoid autoconf's "Expanded Before Required" warning
19113         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19114         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19115         autoconf warning.
19116
19117 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19118
19119         Replacement header templates are now named with ".in", not "_".
19120         * doc/gnulib-intro.texi: Correct.
19121
19122 2010-06-10  Jim Meyering  <meyering@redhat.com>
19123
19124         inttostr-tests: depend on snprintf, not snprintf-posix
19125         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19126         snprintf-posix, to avoid this aclocal failure:
19127           missing file gnulib-tests/vasnprintf.c
19128           configure.ac:45: error: expected source file, required through \
19129           AC_LIBSOURCES, not found
19130
19131 2010-06-10  Jim Meyering  <meyering@redhat.com>
19132
19133         inttostr: add a new function, inttostr, and tests
19134         The namesake function was not available.  The existence of the
19135         template file, inttostr.c makes its addition nontrivial.
19136         * lib/anytostr.c: Rename from inttostr.c.
19137         (anytostr): Rename from inttostr.
19138         * lib/inttostr.c: New file.
19139         * modules/inttostr (Files): Add anytostr.c.
19140         (Makefile.am): Set lib_SOURCES instead of ...
19141         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19142         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19143         * lib/offtostr.c: Likewise.
19144         * lib/uinttostr.c: Likewise.
19145         * lib/umaxtostr.c: Likewise.
19146         * modules/inttostr-tests: New file.
19147         * tests/test-inttostr.c: New file.  Test these functions.
19148
19149 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19150             Bruno Haible  <bruno@clisp.org>
19151
19152         Add "Extending Gnulib" chapter to manual.
19153         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19154         chapter.
19155         (Extending Gnulib): New chapter.
19156         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19157         chapter.
19158
19159 2010-06-09  Bruno Haible  <bruno@clisp.org>
19160
19161         Avoid relocwrapper link errors due to gnulib replacement functions.
19162         * lib/areadlink.c: Use the system's malloc, realloc functions.
19163         (areadlink): Set errno to ENOMEM explicitly.
19164         * modules/areadlink (Depends-on): Remove malloc-posix.
19165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19166
19167 2010-06-09  Bruno Haible  <bruno@clisp.org>
19168
19169         Avoid relocwrapper link errors due to gnulib replacement functions.
19170         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19171         * lib/malloca.c: Likewise.
19172         * lib/relocatable.c: Likewise.
19173         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19174         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19175         * lib/setenv.c: Use the system's malloc, realloc functions.
19176         * lib/strerror.c: Use the system's sprintf function.
19177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19178
19179 2010-06-04  Bruno Haible  <bruno@clisp.org>
19180
19181         Prefer documented low-level autoconf macro names.
19182         * m4/lib-link.m4: Use m4_translit instead of translit.
19183         * m4/environ.m4: Likewise.
19184         * m4/mathfunc.m4: Likewise.
19185         * m4/onceonly.m4: Likewise.
19186         * m4/stdint.m4: Likewise.
19187         Suggested by Eric Blake.
19188
19189 2010-06-04  Martin Lambers  <marlam@marlam.de>
19190             Bruno Haible  <bruno@clisp.org>
19191
19192         havelib: Allow library names with '+' characters.
19193         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19194         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19195
19196 2010-06-09  Bruno Haible  <bruno@clisp.org>
19197
19198         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19199         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19200         realloc failed.
19201
19202 2010-06-08  Peter Simons  <simons@cryp.to>
19203
19204         maint.mk: make the news-check rule more configurable
19205         * top/maint.mk (news-check-lines-spec): New variable.
19206         (news-check): Use "sed -n 1,10p" in place of "head".
19207
19208 2010-06-07  Jim Meyering  <meyering@redhat.com>
19209
19210         do-release-commit-and-tag: fix typo in --help
19211         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19212
19213         regex: avoid new dead-code warning with gcc-4.6.0
19214         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19215         if-block containing a while-loop.  It's been unused for at least
19216         5 years.
19217
19218 2010-06-05  Bruno Haible  <bruno@clisp.org>
19219
19220         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19221         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19222
19223 2010-06-04  Bruno Haible  <bruno@clisp.org>
19224
19225         Update to GNU gettext 0.18.1.
19226         * modules/gettext (configure.ac): Require gettext infrastructure from
19227         version 0.18.1.
19228
19229 2010-06-03  Bruno Haible  <bruno@clisp.org>
19230
19231         Don't use AC_LIBOBJ with file names in subdirectories.
19232         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19233         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19234         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19235         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19236         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19237         gl_LIBUNISTRING_LIBSOURCE.
19238         (Makefile.am): Augment lib_SOURCES here, conditionally.
19239         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19240
19241 2010-06-03  Bruno Haible  <bruno@clisp.org>
19242
19243         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19244         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19245         expansion does not end with a newline.
19246         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19247         unnecessary newline.
19248
19249 2010-06-03  Bruno Haible  <bruno@clisp.org>
19250
19251         Reduce dependencies.
19252         * tests/test-quotearg.h: New file, extracted from
19253         tests/test-quotearg.c.
19254         * tests/test-quotearg-simple.c: New file, extracted from
19255         tests/test-quotearg.c.
19256         * tests/test-quotearg.c: Don't include <ctype.h>.
19257         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19258         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19259         use_quote_double_quotes, use_quotearg_colon): Moved to
19260         tests/test-quotearg.h.
19261         (results_g, flag_results, custom_quotes, custom_results): Moved
19262         to tests/test-quotearg-simple.c.
19263         (main): Moved the part that does not depend on gettext to
19264         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19265         performed.
19266         * modules/quotearg-simple: New file.
19267         * modules/quotearg-simple-tests: New file.
19268         * modules/quotearg (Depends-on): Add quotearg-simple.
19269         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19270         (Files): Add tests/test-quotearg.h.
19271         Reported by Paolo Bonzini.
19272
19273 2010-06-03  Bruno Haible  <bruno@clisp.org>
19274
19275         Reduce dependencies.
19276         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19277
19278 2010-06-03  Bruno Haible  <bruno@clisp.org>
19279
19280         time: Undefine more broken macros.
19281         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19282         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19283         Reported by Eric Blake.
19284
19285 2010-06-03  Bruno Haible  <bruno@clisp.org>
19286
19287         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19288         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19289         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19290         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19291         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19292         Reported by Ludovic Courtès <ludo@gnu.org>.
19293
19294 2010-06-02  Eric Blake  <eblake@redhat.com>
19295
19296         time: work with mingw + pthreads-win32 library
19297         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19298         if timespec is defined only in pthread.h.
19299         * modules/time (Makefile.am): Substitute it.
19300         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19301         <pthread.h>, when needed.
19302         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19303         from the library.
19304
19305 2010-05-31  Bruno Haible  <bruno@clisp.org>
19306
19307         Avoid expanding two macros in the wrong order.
19308         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19309         gl_LIBUNISTRING if it is defined.
19310         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19311         autoconf >= 2.64.
19312         Reported by Ludovic Courtès <ludo@gnu.org>.
19313
19314 2010-05-27  Jim Meyering  <meyering@redhat.com>
19315
19316         maint.mk: also prohibit "#undef" of always-defined symbols
19317         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19318         Allow more than one space before the symbol name.
19319         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19320         the regexp uses alternation.
19321
19322 2010-05-26  Eric Blake  <eblake@redhat.com>
19323
19324         maint.mk: avoid echo -e
19325         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19326         Convert all uses of echo -* to printf.
19327         Reported by Matthias Bolte.
19328
19329 2010-05-25  Bruno Haible  <bruno@clisp.org>
19330
19331         Update to GNU gettext 0.18, part 2.
19332         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19333         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19334
19335 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19336
19337         Add missing include in test-pwrite.c.
19338         * tests/test-pwrite.c: Include string.h, for strcmp.
19339
19340 2010-05-24  Bruno Haible  <bruno@clisp.org>
19341
19342         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19343
19344 2010-05-24  Bruno Haible  <bruno@clisp.org>
19345
19346         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19347         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19348         iconveh_error argument.
19349         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19350         U_STRCONV_TO_LOCALE.
19351         * lib/unistr/u16-strcoll.c: Likewise.
19352         * lib/unistr/u32-strcoll.c: Likewise.
19353         * modules/unistr/u8-strcoll (Depends-on): Add
19354         uniconv/u8-strconv-to-enc, localcharset. Remove
19355         uniconv/u8-strconv-to-locale.
19356         (configure.ac): Bump version number.
19357         * modules/unistr/u16-strcoll (Depends-on): Add
19358         uniconv/u16-strconv-to-enc, localcharset. Remove
19359         uniconv/u16-strconv-to-locale.
19360         (configure.ac): Bump version number.
19361         * modules/unistr/u32-strcoll (Depends-on): Add
19362         uniconv/u32-strconv-to-enc, localcharset. Remove
19363         uniconv/u32-strconv-to-locale.
19364         (configure.ac): Bump version number.
19365
19366 2010-05-24  Bruno Haible  <bruno@clisp.org>
19367
19368         Avoid a test failure on NetBSD 5.0.
19369         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19370         an iconv() bug.
19371
19372 2010-05-24  Bruno Haible  <bruno@clisp.org>
19373
19374         Adjust #include directive style.
19375         * modules/regex (Includes): Recommend to write <regex.h>.
19376
19377 2010-05-24  Bruno Haible  <bruno@clisp.org>
19378
19379         regex: Don't require alloca.
19380         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19381         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19382         only inside if (0).
19383
19384 2010-05-23  Jim Meyering  <meyering@redhat.com>
19385
19386         test-renameat.c: include <sys/stat.h>
19387         * tests/test-renameat.c: Include <sys/stat.h>; required for
19388         definition of S_IS* macros.
19389
19390 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19391
19392         Update maintainer documentation for 'relocatable-prog' module.
19393         * doc/relocatable-maint.texi: Update.
19394         Comments by Bruno Haible.
19395
19396 2010-05-23  Bruno Haible  <bruno@clisp.org>
19397
19398         git-merge-changelog: Enable --split-merged-entry by default.
19399         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19400         (usage): Don't mention this option any more.
19401         Reported by Ralf Wildenhues.
19402
19403 2010-05-23  Jim Meyering  <meyering@redhat.com>
19404
19405         test-pwrite: do not leave behind a test file named "out"
19406         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19407         The trivial-looking use of init.sh is really necessary.
19408         It ensures that the temporary file, "out", is created in
19409         a temporary directory, and removed upon termination.
19410         * tests/test-pwrite.sh: Re-add file.
19411         * modules/pwrite-tests: Reference it.
19412
19413 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19414
19415         Fix output redirection buglet in init.sh.
19416         * tests/init.sh: Fix redirection of stderr.
19417
19418 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19419
19420         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19421
19422 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19423
19424         * modules/valgrind-tests: New file.
19425         * m4/valgrind-tests.m4: New file.
19426         * doc/valgrind-tests.texi: New file.
19427         * doc/gnulib.texi (Running self-tests under valgrind): New
19428         section.
19429
19430 2010-05-19  Bruno Haible  <bruno@clisp.org>
19431
19432         Clean up dead code in recent commit.
19433         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19434         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19435         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19436         Suggested by Paolo Bonzini.
19437
19438 2010-05-19  Bruno Haible  <bruno@clisp.org>
19439
19440         Avoid valgrind error reports from libunistring.
19441         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19442         * modules/libunistring (Files): Add it.
19443         * modules/libunistring-optional (Files): Likewise.
19444
19445 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19446             Bruno Haible  <bruno@clisp.org>
19447
19448         New module 'libunistring-optional'.
19449         * modules/libunistring-optional: New file.
19450         * m4/libunistring-base.m4: New file.
19451         * m4/libunistring-optional.m4: New file.
19452         * lib/unicase.in.h: Renamed from lib/unicase.h.
19453         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19454         * lib/unictype.in.h: Renamed from lib/unictype.h.
19455         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19456         * lib/uniname.in.h: Renamed from lib/uniname.h.
19457         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19458         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19459         * lib/unistr.in.h: Renamed from lib/unistr.h.
19460         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19461         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19462         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19463         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19464         gl_LIBUNISTRING. If the library was found, determine the installed
19465         version and set LIBUNISTRING_VERSION.
19466         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19467         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19468         handle a configuration option --with-included-libunistring.
19469         * modules/libunistring (Files): Add m4/absolute-header.m4.
19470         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19471         Add m4/libunistring-base.m4.
19472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19473         (Makefile.am): Build unicase.h from unicase.in.h.
19474         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19475         Add m4/libunistring-base.m4.
19476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19477         (Makefile.am): Build uniconv.h from uniconv.in.h.
19478         * modules/unictype/base (Files): Use unictype.in.h instead of
19479         unictype.h. Add m4/libunistring-base.m4.
19480         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19481         (Makefile.am): Build unictype.h from unictype.in.h.
19482         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19483         Add m4/libunistring-base.m4.
19484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19485         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19486         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19487         Add m4/libunistring-base.m4.
19488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19489         (Makefile.am): Build uniname.h from uniname.in.h.
19490         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19491         Add m4/libunistring-base.m4.
19492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19493         (Makefile.am): Build uninorm.h from uninorm.in.h.
19494         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19495         unistdio.h. Add m4/libunistring-base.m4.
19496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19497         (Makefile.am): Build unistdio.h from unistdio.in.h.
19498         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19499         Add m4/libunistring-base.m4.
19500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19501         (Makefile.am): Build unistr.h from unistr.in.h.
19502         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19503         Add m4/libunistring-base.m4.
19504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19505         (Makefile.am): Build unitypes.h from unitypes.in.h.
19506         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19507         Add m4/libunistring-base.m4.
19508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19509         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19510         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19511         uniwidth.h. Add m4/libunistring-base.m4.
19512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19513         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19514         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19515         instead of augmenting lib_SOURCES.
19516         * modules/unicase/empty-suffix-context: Likewise.
19517         * modules/unicase/locale-language: Likewise.
19518         * modules/unicase/tolower: Likewise.
19519         * modules/unicase/totitle: Likewise.
19520         * modules/unicase/toupper: Likewise.
19521         * modules/unicase/u8-casecmp: Likewise.
19522         * modules/unicase/u8-casecoll: Likewise.
19523         * modules/unicase/u8-casefold: Likewise.
19524         * modules/unicase/u8-casexfrm: Likewise.
19525         * modules/unicase/u8-ct-casefold: Likewise.
19526         * modules/unicase/u8-ct-tolower: Likewise.
19527         * modules/unicase/u8-ct-totitle: Likewise.
19528         * modules/unicase/u8-ct-toupper: Likewise.
19529         * modules/unicase/u8-is-cased: Likewise.
19530         * modules/unicase/u8-is-casefolded: Likewise.
19531         * modules/unicase/u8-is-lowercase: Likewise.
19532         * modules/unicase/u8-is-titlecase: Likewise.
19533         * modules/unicase/u8-is-uppercase: Likewise.
19534         * modules/unicase/u8-prefix-context: Likewise.
19535         * modules/unicase/u8-suffix-context: Likewise.
19536         * modules/unicase/u8-tolower: Likewise.
19537         * modules/unicase/u8-totitle: Likewise.
19538         * modules/unicase/u8-toupper: Likewise.
19539         * modules/unicase/u16-casecmp: Likewise.
19540         * modules/unicase/u16-casecoll: Likewise.
19541         * modules/unicase/u16-casefold: Likewise.
19542         * modules/unicase/u16-casexfrm: Likewise.
19543         * modules/unicase/u16-ct-casefold: Likewise.
19544         * modules/unicase/u16-ct-tolower: Likewise.
19545         * modules/unicase/u16-ct-totitle: Likewise.
19546         * modules/unicase/u16-ct-toupper: Likewise.
19547         * modules/unicase/u16-is-cased: Likewise.
19548         * modules/unicase/u16-is-casefolded: Likewise.
19549         * modules/unicase/u16-is-lowercase: Likewise.
19550         * modules/unicase/u16-is-titlecase: Likewise.
19551         * modules/unicase/u16-is-uppercase: Likewise.
19552         * modules/unicase/u16-prefix-context: Likewise.
19553         * modules/unicase/u16-suffix-context: Likewise.
19554         * modules/unicase/u16-tolower: Likewise.
19555         * modules/unicase/u16-totitle: Likewise.
19556         * modules/unicase/u16-toupper: Likewise.
19557         * modules/unicase/u32-casecmp: Likewise.
19558         * modules/unicase/u32-casecoll: Likewise.
19559         * modules/unicase/u32-casefold: Likewise.
19560         * modules/unicase/u32-casexfrm: Likewise.
19561         * modules/unicase/u32-ct-casefold: Likewise.
19562         * modules/unicase/u32-ct-tolower: Likewise.
19563         * modules/unicase/u32-ct-totitle: Likewise.
19564         * modules/unicase/u32-ct-toupper: Likewise.
19565         * modules/unicase/u32-is-cased: Likewise.
19566         * modules/unicase/u32-is-casefolded: Likewise.
19567         * modules/unicase/u32-is-lowercase: Likewise.
19568         * modules/unicase/u32-is-titlecase: Likewise.
19569         * modules/unicase/u32-is-uppercase: Likewise.
19570         * modules/unicase/u32-prefix-context: Likewise.
19571         * modules/unicase/u32-suffix-context: Likewise.
19572         * modules/unicase/u32-tolower: Likewise.
19573         * modules/unicase/u32-totitle: Likewise.
19574         * modules/unicase/u32-toupper: Likewise.
19575         * modules/unicase/ulc-casecmp: Likewise.
19576         * modules/unicase/ulc-casecoll: Likewise.
19577         * modules/unicase/ulc-casexfrm: Likewise.
19578         * modules/uniconv/u8-conv-from-enc: Likewise.
19579         * modules/uniconv/u8-conv-to-enc: Likewise.
19580         * modules/uniconv/u8-strconv-from-enc: Likewise.
19581         * modules/uniconv/u8-strconv-from-locale: Likewise.
19582         * modules/uniconv/u8-strconv-to-enc: Likewise.
19583         * modules/uniconv/u8-strconv-to-locale: Likewise.
19584         * modules/uniconv/u16-conv-from-enc: Likewise.
19585         * modules/uniconv/u16-conv-to-enc: Likewise.
19586         * modules/uniconv/u16-strconv-from-enc: Likewise.
19587         * modules/uniconv/u16-strconv-from-locale: Likewise.
19588         * modules/uniconv/u16-strconv-to-enc: Likewise.
19589         * modules/uniconv/u16-strconv-to-locale: Likewise.
19590         * modules/uniconv/u32-conv-from-enc: Likewise.
19591         * modules/uniconv/u32-conv-to-enc: Likewise.
19592         * modules/uniconv/u32-strconv-from-enc: Likewise.
19593         * modules/uniconv/u32-strconv-from-locale: Likewise.
19594         * modules/uniconv/u32-strconv-to-enc: Likewise.
19595         * modules/uniconv/u32-strconv-to-locale: Likewise.
19596         * modules/unictype/bidicategory-byname: Likewise.
19597         * modules/unictype/bidicategory-name: Likewise.
19598         * modules/unictype/bidicategory-of: Likewise.
19599         * modules/unictype/bidicategory-test: Likewise.
19600         * modules/unictype/block-list: Likewise.
19601         * modules/unictype/block-test: Likewise.
19602         * modules/unictype/category-C: Likewise.
19603         * modules/unictype/category-Cc: Likewise.
19604         * modules/unictype/category-Cf: Likewise.
19605         * modules/unictype/category-Cn: Likewise.
19606         * modules/unictype/category-Co: Likewise.
19607         * modules/unictype/category-Cs: Likewise.
19608         * modules/unictype/category-L: Likewise.
19609         * modules/unictype/category-Ll: Likewise.
19610         * modules/unictype/category-Lm: Likewise.
19611         * modules/unictype/category-Lo: Likewise.
19612         * modules/unictype/category-Lt: Likewise.
19613         * modules/unictype/category-Lu: Likewise.
19614         * modules/unictype/category-M: Likewise.
19615         * modules/unictype/category-Mc: Likewise.
19616         * modules/unictype/category-Me: Likewise.
19617         * modules/unictype/category-Mn: Likewise.
19618         * modules/unictype/category-N: Likewise.
19619         * modules/unictype/category-Nd: Likewise.
19620         * modules/unictype/category-Nl: Likewise.
19621         * modules/unictype/category-No: Likewise.
19622         * modules/unictype/category-P: Likewise.
19623         * modules/unictype/category-Pc: Likewise.
19624         * modules/unictype/category-Pd: Likewise.
19625         * modules/unictype/category-Pe: Likewise.
19626         * modules/unictype/category-Pf: Likewise.
19627         * modules/unictype/category-Pi: Likewise.
19628         * modules/unictype/category-Po: Likewise.
19629         * modules/unictype/category-Ps: Likewise.
19630         * modules/unictype/category-S: Likewise.
19631         * modules/unictype/category-Sc: Likewise.
19632         * modules/unictype/category-Sk: Likewise.
19633         * modules/unictype/category-Sm: Likewise.
19634         * modules/unictype/category-So: Likewise.
19635         * modules/unictype/category-Z: Likewise.
19636         * modules/unictype/category-Zl: Likewise.
19637         * modules/unictype/category-Zp: Likewise.
19638         * modules/unictype/category-Zs: Likewise.
19639         * modules/unictype/category-and: Likewise.
19640         * modules/unictype/category-and-not: Likewise.
19641         * modules/unictype/category-byname: Likewise.
19642         * modules/unictype/category-name: Likewise.
19643         * modules/unictype/category-none: Likewise.
19644         * modules/unictype/category-of: Likewise.
19645         * modules/unictype/category-or: Likewise.
19646         * modules/unictype/category-test: Likewise.
19647         * modules/unictype/combining-class: Likewise.
19648         * modules/unictype/ctype-alnum: Likewise.
19649         * modules/unictype/ctype-alpha: Likewise.
19650         * modules/unictype/ctype-blank: Likewise.
19651         * modules/unictype/ctype-cntrl: Likewise.
19652         * modules/unictype/ctype-digit: Likewise.
19653         * modules/unictype/ctype-graph: Likewise.
19654         * modules/unictype/ctype-lower: Likewise.
19655         * modules/unictype/ctype-print: Likewise.
19656         * modules/unictype/ctype-punct: Likewise.
19657         * modules/unictype/ctype-space: Likewise.
19658         * modules/unictype/ctype-upper: Likewise.
19659         * modules/unictype/ctype-xdigit: Likewise.
19660         * modules/unictype/decimal-digit: Likewise.
19661         * modules/unictype/digit: Likewise.
19662         * modules/unictype/mirror: Likewise.
19663         * modules/unictype/numeric: Likewise.
19664         * modules/unictype/property-alphabetic: Likewise.
19665         * modules/unictype/property-ascii-hex-digit: Likewise.
19666         * modules/unictype/property-bidi-arabic-digit: Likewise.
19667         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19668         * modules/unictype/property-bidi-block-separator: Likewise.
19669         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19670         * modules/unictype/property-bidi-common-separator: Likewise.
19671         * modules/unictype/property-bidi-control: Likewise.
19672         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19673         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19674         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19675         * modules/unictype/property-bidi-european-digit: Likewise.
19676         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19677         * modules/unictype/property-bidi-left-to-right: Likewise.
19678         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19679         * modules/unictype/property-bidi-other-neutral: Likewise.
19680         * modules/unictype/property-bidi-pdf: Likewise.
19681         * modules/unictype/property-bidi-segment-separator: Likewise.
19682         * modules/unictype/property-bidi-whitespace: Likewise.
19683         * modules/unictype/property-byname: Likewise.
19684         * modules/unictype/property-combining: Likewise.
19685         * modules/unictype/property-composite: Likewise.
19686         * modules/unictype/property-currency-symbol: Likewise.
19687         * modules/unictype/property-dash: Likewise.
19688         * modules/unictype/property-decimal-digit: Likewise.
19689         * modules/unictype/property-default-ignorable-code-point: Likewise.
19690         * modules/unictype/property-deprecated: Likewise.
19691         * modules/unictype/property-diacritic: Likewise.
19692         * modules/unictype/property-extender: Likewise.
19693         * modules/unictype/property-format-control: Likewise.
19694         * modules/unictype/property-grapheme-base: Likewise.
19695         * modules/unictype/property-grapheme-extend: Likewise.
19696         * modules/unictype/property-grapheme-link: Likewise.
19697         * modules/unictype/property-hex-digit: Likewise.
19698         * modules/unictype/property-hyphen: Likewise.
19699         * modules/unictype/property-id-continue: Likewise.
19700         * modules/unictype/property-id-start: Likewise.
19701         * modules/unictype/property-ideographic: Likewise.
19702         * modules/unictype/property-ids-binary-operator: Likewise.
19703         * modules/unictype/property-ids-trinary-operator: Likewise.
19704         * modules/unictype/property-ignorable-control: Likewise.
19705         * modules/unictype/property-iso-control: Likewise.
19706         * modules/unictype/property-join-control: Likewise.
19707         * modules/unictype/property-left-of-pair: Likewise.
19708         * modules/unictype/property-line-separator: Likewise.
19709         * modules/unictype/property-logical-order-exception: Likewise.
19710         * modules/unictype/property-lowercase: Likewise.
19711         * modules/unictype/property-math: Likewise.
19712         * modules/unictype/property-non-break: Likewise.
19713         * modules/unictype/property-not-a-character: Likewise.
19714         * modules/unictype/property-numeric: Likewise.
19715         * modules/unictype/property-other-alphabetic: Likewise.
19716         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19717         * modules/unictype/property-other-grapheme-extend: Likewise.
19718         * modules/unictype/property-other-id-continue: Likewise.
19719         * modules/unictype/property-other-id-start: Likewise.
19720         * modules/unictype/property-other-lowercase: Likewise.
19721         * modules/unictype/property-other-math: Likewise.
19722         * modules/unictype/property-other-uppercase: Likewise.
19723         * modules/unictype/property-paired-punctuation: Likewise.
19724         * modules/unictype/property-paragraph-separator: Likewise.
19725         * modules/unictype/property-pattern-syntax: Likewise.
19726         * modules/unictype/property-pattern-white-space: Likewise.
19727         * modules/unictype/property-private-use: Likewise.
19728         * modules/unictype/property-punctuation: Likewise.
19729         * modules/unictype/property-quotation-mark: Likewise.
19730         * modules/unictype/property-radical: Likewise.
19731         * modules/unictype/property-sentence-terminal: Likewise.
19732         * modules/unictype/property-soft-dotted: Likewise.
19733         * modules/unictype/property-space: Likewise.
19734         * modules/unictype/property-terminal-punctuation: Likewise.
19735         * modules/unictype/property-test: Likewise.
19736         * modules/unictype/property-titlecase: Likewise.
19737         * modules/unictype/property-unassigned-code-value: Likewise.
19738         * modules/unictype/property-unified-ideograph: Likewise.
19739         * modules/unictype/property-uppercase: Likewise.
19740         * modules/unictype/property-variation-selector: Likewise.
19741         * modules/unictype/property-white-space: Likewise.
19742         * modules/unictype/property-xid-continue: Likewise.
19743         * modules/unictype/property-xid-start: Likewise.
19744         * modules/unictype/property-zero-width: Likewise.
19745         * modules/unictype/scripts: Likewise.
19746         * modules/unictype/syntax-c-ident: Likewise.
19747         * modules/unictype/syntax-c-whitespace: Likewise.
19748         * modules/unictype/syntax-java-ident: Likewise.
19749         * modules/unictype/syntax-java-whitespace: Likewise.
19750         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19751         * modules/unilbrk/u8-width-linebreaks: Likewise.
19752         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19753         * modules/unilbrk/u16-width-linebreaks: Likewise.
19754         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19755         * modules/unilbrk/u32-width-linebreaks: Likewise.
19756         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19757         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19758         * modules/uniname/uniname: Likewise.
19759         * modules/uninorm/canonical-decomposition: Likewise.
19760         * modules/uninorm/composition: Likewise.
19761         * modules/uninorm/decomposing-form: Likewise.
19762         * modules/uninorm/decomposition: Likewise.
19763         * modules/uninorm/filter: Likewise.
19764         * modules/uninorm/nfc: Likewise.
19765         * modules/uninorm/nfd: Likewise.
19766         * modules/uninorm/nfkc: Likewise.
19767         * modules/uninorm/nfkd: Likewise.
19768         * modules/uninorm/u8-normalize: Likewise.
19769         * modules/uninorm/u8-normcmp: Likewise.
19770         * modules/uninorm/u8-normcoll: Likewise.
19771         * modules/uninorm/u8-normxfrm: Likewise.
19772         * modules/uninorm/u16-normalize: Likewise.
19773         * modules/uninorm/u16-normcmp: Likewise.
19774         * modules/uninorm/u16-normcoll: Likewise.
19775         * modules/uninorm/u16-normxfrm: Likewise.
19776         * modules/uninorm/u32-normalize: Likewise.
19777         * modules/uninorm/u32-normcmp: Likewise.
19778         * modules/uninorm/u32-normcoll: Likewise.
19779         * modules/uninorm/u32-normxfrm: Likewise.
19780         * modules/unistdio/u8-asnprintf: Likewise.
19781         * modules/unistdio/u8-asprintf: Likewise.
19782         * modules/unistdio/u8-snprintf: Likewise.
19783         * modules/unistdio/u8-sprintf: Likewise.
19784         * modules/unistdio/u8-u8-asnprintf: Likewise.
19785         * modules/unistdio/u8-u8-asprintf: Likewise.
19786         * modules/unistdio/u8-u8-snprintf: Likewise.
19787         * modules/unistdio/u8-u8-sprintf: Likewise.
19788         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19789         * modules/unistdio/u8-u8-vasprintf: Likewise.
19790         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19791         * modules/unistdio/u8-u8-vsprintf: Likewise.
19792         * modules/unistdio/u8-vasnprintf: Likewise.
19793         * modules/unistdio/u8-vasprintf: Likewise.
19794         * modules/unistdio/u8-vsnprintf: Likewise.
19795         * modules/unistdio/u8-vsprintf: Likewise.
19796         * modules/unistdio/u16-asnprintf: Likewise.
19797         * modules/unistdio/u16-asprintf: Likewise.
19798         * modules/unistdio/u16-snprintf: Likewise.
19799         * modules/unistdio/u16-sprintf: Likewise.
19800         * modules/unistdio/u16-u16-asnprintf: Likewise.
19801         * modules/unistdio/u16-u16-asprintf: Likewise.
19802         * modules/unistdio/u16-u16-snprintf: Likewise.
19803         * modules/unistdio/u16-u16-sprintf: Likewise.
19804         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19805         * modules/unistdio/u16-u16-vasprintf: Likewise.
19806         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19807         * modules/unistdio/u16-u16-vsprintf: Likewise.
19808         * modules/unistdio/u16-vasnprintf: Likewise.
19809         * modules/unistdio/u16-vasprintf: Likewise.
19810         * modules/unistdio/u16-vsnprintf: Likewise.
19811         * modules/unistdio/u16-vsprintf: Likewise.
19812         * modules/unistdio/u32-asnprintf: Likewise.
19813         * modules/unistdio/u32-asprintf: Likewise.
19814         * modules/unistdio/u32-snprintf: Likewise.
19815         * modules/unistdio/u32-sprintf: Likewise.
19816         * modules/unistdio/u32-u32-asnprintf: Likewise.
19817         * modules/unistdio/u32-u32-asprintf: Likewise.
19818         * modules/unistdio/u32-u32-snprintf: Likewise.
19819         * modules/unistdio/u32-u32-sprintf: Likewise.
19820         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19821         * modules/unistdio/u32-u32-vasprintf: Likewise.
19822         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19823         * modules/unistdio/u32-u32-vsprintf: Likewise.
19824         * modules/unistdio/u32-vasnprintf: Likewise.
19825         * modules/unistdio/u32-vasprintf: Likewise.
19826         * modules/unistdio/u32-vsnprintf: Likewise.
19827         * modules/unistdio/u32-vsprintf: Likewise.
19828         * modules/unistdio/ulc-asnprintf: Likewise.
19829         * modules/unistdio/ulc-asprintf: Likewise.
19830         * modules/unistdio/ulc-fprintf: Likewise.
19831         * modules/unistdio/ulc-snprintf: Likewise.
19832         * modules/unistdio/ulc-sprintf: Likewise.
19833         * modules/unistdio/ulc-vasnprintf: Likewise.
19834         * modules/unistdio/ulc-vasprintf: Likewise.
19835         * modules/unistdio/ulc-vfprintf: Likewise.
19836         * modules/unistdio/ulc-vsnprintf: Likewise.
19837         * modules/unistdio/ulc-vsprintf: Likewise.
19838         * modules/unistr/u8-check: Likewise.
19839         * modules/unistr/u8-chr: Likewise.
19840         * modules/unistr/u8-cmp: Likewise.
19841         * modules/unistr/u8-cmp2: Likewise.
19842         * modules/unistr/u8-cpy: Likewise.
19843         * modules/unistr/u8-cpy-alloc: Likewise.
19844         * modules/unistr/u8-endswith: Likewise.
19845         * modules/unistr/u8-mblen: Likewise.
19846         * modules/unistr/u8-mbsnlen: Likewise.
19847         * modules/unistr/u8-mbtouc: Likewise.
19848         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19849         * modules/unistr/u8-mbtoucr: Likewise.
19850         * modules/unistr/u8-move: Likewise.
19851         * modules/unistr/u8-next: Likewise.
19852         * modules/unistr/u8-prev: Likewise.
19853         * modules/unistr/u8-set: Likewise.
19854         * modules/unistr/u8-startswith: Likewise.
19855         * modules/unistr/u8-stpcpy: Likewise.
19856         * modules/unistr/u8-stpncpy: Likewise.
19857         * modules/unistr/u8-strcat: Likewise.
19858         * modules/unistr/u8-strchr: Likewise.
19859         * modules/unistr/u8-strcmp: Likewise.
19860         * modules/unistr/u8-strcoll: Likewise.
19861         * modules/unistr/u8-strcpy: Likewise.
19862         * modules/unistr/u8-strcspn: Likewise.
19863         * modules/unistr/u8-strdup: Likewise.
19864         * modules/unistr/u8-strlen: Likewise.
19865         * modules/unistr/u8-strmblen: Likewise.
19866         * modules/unistr/u8-strmbtouc: Likewise.
19867         * modules/unistr/u8-strncat: Likewise.
19868         * modules/unistr/u8-strncmp: Likewise.
19869         * modules/unistr/u8-strncpy: Likewise.
19870         * modules/unistr/u8-strnlen: Likewise.
19871         * modules/unistr/u8-strpbrk: Likewise.
19872         * modules/unistr/u8-strrchr: Likewise.
19873         * modules/unistr/u8-strspn: Likewise.
19874         * modules/unistr/u8-strstr: Likewise.
19875         * modules/unistr/u8-strtok: Likewise.
19876         * modules/unistr/u8-to-u16: Likewise.
19877         * modules/unistr/u8-to-u32: Likewise.
19878         * modules/unistr/u8-uctomb: Likewise.
19879         * modules/unistr/u16-check: Likewise.
19880         * modules/unistr/u16-chr: Likewise.
19881         * modules/unistr/u16-cmp: Likewise.
19882         * modules/unistr/u16-cmp2: Likewise.
19883         * modules/unistr/u16-cpy: Likewise.
19884         * modules/unistr/u16-cpy-alloc: Likewise.
19885         * modules/unistr/u16-endswith: Likewise.
19886         * modules/unistr/u16-mblen: Likewise.
19887         * modules/unistr/u16-mbsnlen: Likewise.
19888         * modules/unistr/u16-mbtouc: Likewise.
19889         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19890         * modules/unistr/u16-mbtoucr: Likewise.
19891         * modules/unistr/u16-move: Likewise.
19892         * modules/unistr/u16-next: Likewise.
19893         * modules/unistr/u16-prev: Likewise.
19894         * modules/unistr/u16-set: Likewise.
19895         * modules/unistr/u16-startswith: Likewise.
19896         * modules/unistr/u16-stpcpy: Likewise.
19897         * modules/unistr/u16-stpncpy: Likewise.
19898         * modules/unistr/u16-strcat: Likewise.
19899         * modules/unistr/u16-strchr: Likewise.
19900         * modules/unistr/u16-strcmp: Likewise.
19901         * modules/unistr/u16-strcoll: Likewise.
19902         * modules/unistr/u16-strcpy: Likewise.
19903         * modules/unistr/u16-strcspn: Likewise.
19904         * modules/unistr/u16-strdup: Likewise.
19905         * modules/unistr/u16-strlen: Likewise.
19906         * modules/unistr/u16-strmblen: Likewise.
19907         * modules/unistr/u16-strmbtouc: Likewise.
19908         * modules/unistr/u16-strncat: Likewise.
19909         * modules/unistr/u16-strncmp: Likewise.
19910         * modules/unistr/u16-strncpy: Likewise.
19911         * modules/unistr/u16-strnlen: Likewise.
19912         * modules/unistr/u16-strpbrk: Likewise.
19913         * modules/unistr/u16-strrchr: Likewise.
19914         * modules/unistr/u16-strspn: Likewise.
19915         * modules/unistr/u16-strstr: Likewise.
19916         * modules/unistr/u16-strtok: Likewise.
19917         * modules/unistr/u16-to-u32: Likewise.
19918         * modules/unistr/u16-to-u8: Likewise.
19919         * modules/unistr/u16-uctomb: Likewise.
19920         * modules/unistr/u32-check: Likewise.
19921         * modules/unistr/u32-chr: Likewise.
19922         * modules/unistr/u32-cmp: Likewise.
19923         * modules/unistr/u32-cmp2: Likewise.
19924         * modules/unistr/u32-cpy: Likewise.
19925         * modules/unistr/u32-cpy-alloc: Likewise.
19926         * modules/unistr/u32-endswith: Likewise.
19927         * modules/unistr/u32-mblen: Likewise.
19928         * modules/unistr/u32-mbsnlen: Likewise.
19929         * modules/unistr/u32-mbtouc: Likewise.
19930         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19931         * modules/unistr/u32-mbtoucr: Likewise.
19932         * modules/unistr/u32-move: Likewise.
19933         * modules/unistr/u32-next: Likewise.
19934         * modules/unistr/u32-prev: Likewise.
19935         * modules/unistr/u32-set: Likewise.
19936         * modules/unistr/u32-startswith: Likewise.
19937         * modules/unistr/u32-stpcpy: Likewise.
19938         * modules/unistr/u32-stpncpy: Likewise.
19939         * modules/unistr/u32-strcat: Likewise.
19940         * modules/unistr/u32-strchr: Likewise.
19941         * modules/unistr/u32-strcmp: Likewise.
19942         * modules/unistr/u32-strcoll: Likewise.
19943         * modules/unistr/u32-strcpy: Likewise.
19944         * modules/unistr/u32-strcspn: Likewise.
19945         * modules/unistr/u32-strdup: Likewise.
19946         * modules/unistr/u32-strlen: Likewise.
19947         * modules/unistr/u32-strmblen: Likewise.
19948         * modules/unistr/u32-strmbtouc: Likewise.
19949         * modules/unistr/u32-strncat: Likewise.
19950         * modules/unistr/u32-strncmp: Likewise.
19951         * modules/unistr/u32-strncpy: Likewise.
19952         * modules/unistr/u32-strnlen: Likewise.
19953         * modules/unistr/u32-strpbrk: Likewise.
19954         * modules/unistr/u32-strrchr: Likewise.
19955         * modules/unistr/u32-strspn: Likewise.
19956         * modules/unistr/u32-strstr: Likewise.
19957         * modules/unistr/u32-strtok: Likewise.
19958         * modules/unistr/u32-to-u16: Likewise.
19959         * modules/unistr/u32-to-u8: Likewise.
19960         * modules/unistr/u32-uctomb: Likewise.
19961         * modules/uniwbrk/u8-wordbreaks: Likewise.
19962         * modules/uniwbrk/u16-wordbreaks: Likewise.
19963         * modules/uniwbrk/u32-wordbreaks: Likewise.
19964         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19965         * modules/uniwbrk/wordbreak-property: Likewise.
19966         * modules/uniwidth/u8-strwidth: Likewise.
19967         * modules/uniwidth/u8-width: Likewise.
19968         * modules/uniwidth/u16-strwidth: Likewise.
19969         * modules/uniwidth/u16-width: Likewise.
19970         * modules/uniwidth/u32-strwidth: Likewise.
19971         * modules/uniwidth/u32-width: Likewise.
19972         * modules/uniwidth/width: Likewise.
19973         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19974         with $(LIBUNISTRING).
19975         * modules/unicase/ignorable-tests: Likewise.
19976         * modules/unicase/locale-language-tests: Likewise.
19977         * modules/unicase/tolower-tests: Likewise.
19978         * modules/unicase/totitle-tests: Likewise.
19979         * modules/unicase/toupper-tests: Likewise.
19980         * modules/unicase/u8-casecmp-tests: Likewise.
19981         * modules/unicase/u8-casecoll-tests: Likewise.
19982         * modules/unicase/u8-casefold-tests: Likewise.
19983         * modules/unicase/u8-is-cased-tests: Likewise.
19984         * modules/unicase/u8-is-casefolded-tests: Likewise.
19985         * modules/unicase/u8-is-lowercase-tests: Likewise.
19986         * modules/unicase/u8-is-titlecase-tests: Likewise.
19987         * modules/unicase/u8-is-uppercase-tests: Likewise.
19988         * modules/unicase/u8-tolower-tests: Likewise.
19989         * modules/unicase/u8-totitle-tests: Likewise.
19990         * modules/unicase/u8-toupper-tests: Likewise.
19991         * modules/unicase/u16-casecmp-tests: Likewise.
19992         * modules/unicase/u16-casecoll-tests: Likewise.
19993         * modules/unicase/u16-casefold-tests: Likewise.
19994         * modules/unicase/u16-is-cased-tests: Likewise.
19995         * modules/unicase/u16-is-casefolded-tests: Likewise.
19996         * modules/unicase/u16-is-lowercase-tests: Likewise.
19997         * modules/unicase/u16-is-titlecase-tests: Likewise.
19998         * modules/unicase/u16-is-uppercase-tests: Likewise.
19999         * modules/unicase/u16-tolower-tests: Likewise.
20000         * modules/unicase/u16-totitle-tests: Likewise.
20001         * modules/unicase/u16-toupper-tests: Likewise.
20002         * modules/unicase/u32-casecmp-tests: Likewise.
20003         * modules/unicase/u32-casecoll-tests: Likewise.
20004         * modules/unicase/u32-casefold-tests: Likewise.
20005         * modules/unicase/u32-is-cased-tests: Likewise.
20006         * modules/unicase/u32-is-casefolded-tests: Likewise.
20007         * modules/unicase/u32-is-lowercase-tests: Likewise.
20008         * modules/unicase/u32-is-titlecase-tests: Likewise.
20009         * modules/unicase/u32-is-uppercase-tests: Likewise.
20010         * modules/unicase/u32-tolower-tests: Likewise.
20011         * modules/unicase/u32-totitle-tests: Likewise.
20012         * modules/unicase/u32-toupper-tests: Likewise.
20013         * modules/unicase/ulc-casecmp-tests: Likewise.
20014         * modules/unicase/ulc-casecoll-tests: Likewise.
20015         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20016         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20017         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20018         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20019         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20020         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20021         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20022         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20023         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20024         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20025         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20026         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20027         * modules/unictype/bidicategory-byname-tests: Likewise.
20028         * modules/unictype/bidicategory-name-tests: Likewise.
20029         * modules/unictype/bidicategory-of-tests: Likewise.
20030         * modules/unictype/bidicategory-test-tests: Likewise.
20031         * modules/unictype/block-list-tests: Likewise.
20032         * modules/unictype/block-of-tests: Likewise.
20033         * modules/unictype/block-test-tests: Likewise.
20034         * modules/unictype/category-C-tests: Likewise.
20035         * modules/unictype/category-Cc-tests: Likewise.
20036         * modules/unictype/category-Cf-tests: Likewise.
20037         * modules/unictype/category-Cn-tests: Likewise.
20038         * modules/unictype/category-Co-tests: Likewise.
20039         * modules/unictype/category-Cs-tests: Likewise.
20040         * modules/unictype/category-L-tests: Likewise.
20041         * modules/unictype/category-Ll-tests: Likewise.
20042         * modules/unictype/category-Lm-tests: Likewise.
20043         * modules/unictype/category-Lo-tests: Likewise.
20044         * modules/unictype/category-Lt-tests: Likewise.
20045         * modules/unictype/category-Lu-tests: Likewise.
20046         * modules/unictype/category-M-tests: Likewise.
20047         * modules/unictype/category-Mc-tests: Likewise.
20048         * modules/unictype/category-Me-tests: Likewise.
20049         * modules/unictype/category-Mn-tests: Likewise.
20050         * modules/unictype/category-N-tests: Likewise.
20051         * modules/unictype/category-Nd-tests: Likewise.
20052         * modules/unictype/category-Nl-tests: Likewise.
20053         * modules/unictype/category-No-tests: Likewise.
20054         * modules/unictype/category-P-tests: Likewise.
20055         * modules/unictype/category-Pc-tests: Likewise.
20056         * modules/unictype/category-Pd-tests: Likewise.
20057         * modules/unictype/category-Pe-tests: Likewise.
20058         * modules/unictype/category-Pf-tests: Likewise.
20059         * modules/unictype/category-Pi-tests: Likewise.
20060         * modules/unictype/category-Po-tests: Likewise.
20061         * modules/unictype/category-Ps-tests: Likewise.
20062         * modules/unictype/category-S-tests: Likewise.
20063         * modules/unictype/category-Sc-tests: Likewise.
20064         * modules/unictype/category-Sk-tests: Likewise.
20065         * modules/unictype/category-Sm-tests: Likewise.
20066         * modules/unictype/category-So-tests: Likewise.
20067         * modules/unictype/category-Z-tests: Likewise.
20068         * modules/unictype/category-Zl-tests: Likewise.
20069         * modules/unictype/category-Zp-tests: Likewise.
20070         * modules/unictype/category-Zs-tests: Likewise.
20071         * modules/unictype/category-and-not-tests: Likewise.
20072         * modules/unictype/category-and-tests: Likewise.
20073         * modules/unictype/category-byname-tests: Likewise.
20074         * modules/unictype/category-name-tests: Likewise.
20075         * modules/unictype/category-none-tests: Likewise.
20076         * modules/unictype/category-of-tests: Likewise.
20077         * modules/unictype/category-or-tests: Likewise.
20078         * modules/unictype/category-test-withtable-tests: Likewise.
20079         * modules/unictype/combining-class-tests: Likewise.
20080         * modules/unictype/ctype-alnum-tests: Likewise.
20081         * modules/unictype/ctype-alpha-tests: Likewise.
20082         * modules/unictype/ctype-blank-tests: Likewise.
20083         * modules/unictype/ctype-cntrl-tests: Likewise.
20084         * modules/unictype/ctype-digit-tests: Likewise.
20085         * modules/unictype/ctype-graph-tests: Likewise.
20086         * modules/unictype/ctype-lower-tests: Likewise.
20087         * modules/unictype/ctype-print-tests: Likewise.
20088         * modules/unictype/ctype-punct-tests: Likewise.
20089         * modules/unictype/ctype-space-tests: Likewise.
20090         * modules/unictype/ctype-upper-tests: Likewise.
20091         * modules/unictype/ctype-xdigit-tests: Likewise.
20092         * modules/unictype/decimal-digit-tests: Likewise.
20093         * modules/unictype/digit-tests: Likewise.
20094         * modules/unictype/mirror-tests: Likewise.
20095         * modules/unictype/numeric-tests: Likewise.
20096         * modules/unictype/property-alphabetic-tests: Likewise.
20097         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20098         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20099         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20100         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20101         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20102         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20103         * modules/unictype/property-bidi-control-tests: Likewise.
20104         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20105         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20106         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20107         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20108         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20109         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20110         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20111         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20112         * modules/unictype/property-bidi-pdf-tests: Likewise.
20113         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20114         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20115         * modules/unictype/property-byname-tests: Likewise.
20116         * modules/unictype/property-combining-tests: Likewise.
20117         * modules/unictype/property-composite-tests: Likewise.
20118         * modules/unictype/property-currency-symbol-tests: Likewise.
20119         * modules/unictype/property-dash-tests: Likewise.
20120         * modules/unictype/property-decimal-digit-tests: Likewise.
20121         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20122         * modules/unictype/property-deprecated-tests: Likewise.
20123         * modules/unictype/property-diacritic-tests: Likewise.
20124         * modules/unictype/property-extender-tests: Likewise.
20125         * modules/unictype/property-format-control-tests: Likewise.
20126         * modules/unictype/property-grapheme-base-tests: Likewise.
20127         * modules/unictype/property-grapheme-extend-tests: Likewise.
20128         * modules/unictype/property-grapheme-link-tests: Likewise.
20129         * modules/unictype/property-hex-digit-tests: Likewise.
20130         * modules/unictype/property-hyphen-tests: Likewise.
20131         * modules/unictype/property-id-continue-tests: Likewise.
20132         * modules/unictype/property-id-start-tests: Likewise.
20133         * modules/unictype/property-ideographic-tests: Likewise.
20134         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20135         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20136         * modules/unictype/property-ignorable-control-tests: Likewise.
20137         * modules/unictype/property-iso-control-tests: Likewise.
20138         * modules/unictype/property-join-control-tests: Likewise.
20139         * modules/unictype/property-left-of-pair-tests: Likewise.
20140         * modules/unictype/property-line-separator-tests: Likewise.
20141         * modules/unictype/property-logical-order-exception-tests: Likewise.
20142         * modules/unictype/property-lowercase-tests: Likewise.
20143         * modules/unictype/property-math-tests: Likewise.
20144         * modules/unictype/property-non-break-tests: Likewise.
20145         * modules/unictype/property-not-a-character-tests: Likewise.
20146         * modules/unictype/property-numeric-tests: Likewise.
20147         * modules/unictype/property-other-alphabetic-tests: Likewise.
20148         * modules/unictype/property-other-default-ignorable-code-point-tests:
20149         Likewise.
20150         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20151         * modules/unictype/property-other-id-continue-tests: Likewise.
20152         * modules/unictype/property-other-id-start-tests: Likewise.
20153         * modules/unictype/property-other-lowercase-tests: Likewise.
20154         * modules/unictype/property-other-math-tests: Likewise.
20155         * modules/unictype/property-other-uppercase-tests: Likewise.
20156         * modules/unictype/property-paired-punctuation-tests: Likewise.
20157         * modules/unictype/property-paragraph-separator-tests: Likewise.
20158         * modules/unictype/property-pattern-syntax-tests: Likewise.
20159         * modules/unictype/property-pattern-white-space-tests: Likewise.
20160         * modules/unictype/property-private-use-tests: Likewise.
20161         * modules/unictype/property-punctuation-tests: Likewise.
20162         * modules/unictype/property-quotation-mark-tests: Likewise.
20163         * modules/unictype/property-radical-tests: Likewise.
20164         * modules/unictype/property-sentence-terminal-tests: Likewise.
20165         * modules/unictype/property-soft-dotted-tests: Likewise.
20166         * modules/unictype/property-space-tests: Likewise.
20167         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20168         * modules/unictype/property-test-tests: Likewise.
20169         * modules/unictype/property-titlecase-tests: Likewise.
20170         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20171         * modules/unictype/property-unified-ideograph-tests: Likewise.
20172         * modules/unictype/property-uppercase-tests: Likewise.
20173         * modules/unictype/property-variation-selector-tests: Likewise.
20174         * modules/unictype/property-white-space-tests: Likewise.
20175         * modules/unictype/property-xid-continue-tests: Likewise.
20176         * modules/unictype/property-xid-start-tests: Likewise.
20177         * modules/unictype/property-zero-width-tests: Likewise.
20178         * modules/unictype/scripts-tests: Likewise.
20179         * modules/unictype/syntax-c-ident-tests: Likewise.
20180         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20181         * modules/unictype/syntax-java-ident-tests: Likewise.
20182         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20183         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20184         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20185         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20186         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20187         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20188         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20189         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20190         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20191         * modules/uniname/uniname-tests: Likewise.
20192         * modules/uninorm/canonical-decomposition-tests: Likewise.
20193         * modules/uninorm/compat-decomposition-tests: Likewise.
20194         * modules/uninorm/composition-tests: Likewise.
20195         * modules/uninorm/decomposing-form-tests: Likewise.
20196         * modules/uninorm/decomposition-tests: Likewise.
20197         * modules/uninorm/filter-tests: Likewise.
20198         * modules/uninorm/nfc-tests: Likewise.
20199         * modules/uninorm/nfd-tests: Likewise.
20200         * modules/uninorm/nfkc-tests: Likewise.
20201         * modules/uninorm/nfkd-tests: Likewise.
20202         * modules/uninorm/u8-normcmp-tests: Likewise.
20203         * modules/uninorm/u8-normcoll-tests: Likewise.
20204         * modules/uninorm/u16-normcmp-tests: Likewise.
20205         * modules/uninorm/u16-normcoll-tests: Likewise.
20206         * modules/uninorm/u32-normcmp-tests: Likewise.
20207         * modules/uninorm/u32-normcoll-tests: Likewise.
20208         * modules/unistdio/u8-asnprintf-tests: Likewise.
20209         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20210         * modules/unistdio/u8-vasprintf-tests: Likewise.
20211         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20212         * modules/unistdio/u8-vsprintf-tests: Likewise.
20213         * modules/unistdio/u16-asnprintf-tests: Likewise.
20214         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20215         * modules/unistdio/u16-vasprintf-tests: Likewise.
20216         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20217         * modules/unistdio/u16-vsprintf-tests: Likewise.
20218         * modules/unistdio/u32-asnprintf-tests: Likewise.
20219         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20220         * modules/unistdio/u32-vasprintf-tests: Likewise.
20221         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20222         * modules/unistdio/u32-vsprintf-tests: Likewise.
20223         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20224         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20225         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20226         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20227         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20228         * modules/unistr/u8-check-tests: Likewise.
20229         * modules/unistr/u8-chr-tests: Likewise.
20230         * modules/unistr/u8-cmp-tests: Likewise.
20231         * modules/unistr/u8-cmp2-tests: Likewise.
20232         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20233         * modules/unistr/u8-cpy-tests: Likewise.
20234         * modules/unistr/u8-mblen-tests: Likewise.
20235         * modules/unistr/u8-mbsnlen-tests: Likewise.
20236         * modules/unistr/u8-mbtouc-tests: Likewise.
20237         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20238         * modules/unistr/u8-mbtoucr-tests: Likewise.
20239         * modules/unistr/u8-move-tests: Likewise.
20240         * modules/unistr/u8-next-tests: Likewise.
20241         * modules/unistr/u8-prev-tests: Likewise.
20242         * modules/unistr/u8-set-tests: Likewise.
20243         * modules/unistr/u8-stpcpy-tests: Likewise.
20244         * modules/unistr/u8-stpncpy-tests: Likewise.
20245         * modules/unistr/u8-strcat-tests: Likewise.
20246         * modules/unistr/u8-strcmp-tests: Likewise.
20247         * modules/unistr/u8-strcoll-tests: Likewise.
20248         * modules/unistr/u8-strcpy-tests: Likewise.
20249         * modules/unistr/u8-strdup-tests: Likewise.
20250         * modules/unistr/u8-strlen-tests: Likewise.
20251         * modules/unistr/u8-strmblen-tests: Likewise.
20252         * modules/unistr/u8-strmbtouc-tests: Likewise.
20253         * modules/unistr/u8-strncat-tests: Likewise.
20254         * modules/unistr/u8-strncmp-tests: Likewise.
20255         * modules/unistr/u8-strncpy-tests: Likewise.
20256         * modules/unistr/u8-strnlen-tests: Likewise.
20257         * modules/unistr/u8-to-u16-tests: Likewise.
20258         * modules/unistr/u8-to-u32-tests: Likewise.
20259         * modules/unistr/u8-uctomb-tests: Likewise.
20260         * modules/unistr/u16-check-tests: Likewise.
20261         * modules/unistr/u16-chr-tests: Likewise.
20262         * modules/unistr/u16-cmp-tests: Likewise.
20263         * modules/unistr/u16-cmp2-tests: Likewise.
20264         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20265         * modules/unistr/u16-cpy-tests: Likewise.
20266         * modules/unistr/u16-mblen-tests: Likewise.
20267         * modules/unistr/u16-mbsnlen-tests: Likewise.
20268         * modules/unistr/u16-mbtouc-tests: Likewise.
20269         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20270         * modules/unistr/u16-mbtoucr-tests: Likewise.
20271         * modules/unistr/u16-move-tests: Likewise.
20272         * modules/unistr/u16-next-tests: Likewise.
20273         * modules/unistr/u16-prev-tests: Likewise.
20274         * modules/unistr/u16-set-tests: Likewise.
20275         * modules/unistr/u16-stpcpy-tests: Likewise.
20276         * modules/unistr/u16-stpncpy-tests: Likewise.
20277         * modules/unistr/u16-strcat-tests: Likewise.
20278         * modules/unistr/u16-strcmp-tests: Likewise.
20279         * modules/unistr/u16-strcoll-tests: Likewise.
20280         * modules/unistr/u16-strcpy-tests: Likewise.
20281         * modules/unistr/u16-strdup-tests: Likewise.
20282         * modules/unistr/u16-strlen-tests: Likewise.
20283         * modules/unistr/u16-strmblen-tests: Likewise.
20284         * modules/unistr/u16-strmbtouc-tests: Likewise.
20285         * modules/unistr/u16-strncat-tests: Likewise.
20286         * modules/unistr/u16-strncmp-tests: Likewise.
20287         * modules/unistr/u16-strncpy-tests: Likewise.
20288         * modules/unistr/u16-strnlen-tests: Likewise.
20289         * modules/unistr/u16-to-u32-tests: Likewise.
20290         * modules/unistr/u16-to-u8-tests: Likewise.
20291         * modules/unistr/u16-uctomb-tests: Likewise.
20292         * modules/unistr/u32-check-tests: Likewise.
20293         * modules/unistr/u32-chr-tests: Likewise.
20294         * modules/unistr/u32-cmp-tests: Likewise.
20295         * modules/unistr/u32-cmp2-tests: Likewise.
20296         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20297         * modules/unistr/u32-cpy-tests: Likewise.
20298         * modules/unistr/u32-mblen-tests: Likewise.
20299         * modules/unistr/u32-mbsnlen-tests: Likewise.
20300         * modules/unistr/u32-mbtouc-tests: Likewise.
20301         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20302         * modules/unistr/u32-mbtoucr-tests: Likewise.
20303         * modules/unistr/u32-move-tests: Likewise.
20304         * modules/unistr/u32-next-tests: Likewise.
20305         * modules/unistr/u32-prev-tests: Likewise.
20306         * modules/unistr/u32-set-tests: Likewise.
20307         * modules/unistr/u32-stpcpy-tests: Likewise.
20308         * modules/unistr/u32-stpncpy-tests: Likewise.
20309         * modules/unistr/u32-strcat-tests: Likewise.
20310         * modules/unistr/u32-strcmp-tests: Likewise.
20311         * modules/unistr/u32-strcoll-tests: Likewise.
20312         * modules/unistr/u32-strcpy-tests: Likewise.
20313         * modules/unistr/u32-strdup-tests: Likewise.
20314         * modules/unistr/u32-strlen-tests: Likewise.
20315         * modules/unistr/u32-strmblen-tests: Likewise.
20316         * modules/unistr/u32-strmbtouc-tests: Likewise.
20317         * modules/unistr/u32-strncat-tests: Likewise.
20318         * modules/unistr/u32-strncmp-tests: Likewise.
20319         * modules/unistr/u32-strncpy-tests: Likewise.
20320         * modules/unistr/u32-strnlen-tests: Likewise.
20321         * modules/unistr/u32-to-u16-tests: Likewise.
20322         * modules/unistr/u32-to-u8-tests: Likewise.
20323         * modules/unistr/u32-uctomb-tests: Likewise.
20324         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20325         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20326         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20327         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20328         * modules/uniwidth/u8-strwidth-tests: Likewise.
20329         * modules/uniwidth/u8-width-tests: Likewise.
20330         * modules/uniwidth/u16-strwidth-tests: Likewise.
20331         * modules/uniwidth/u16-width-tests: Likewise.
20332         * modules/uniwidth/u32-strwidth-tests: Likewise.
20333         * modules/uniwidth/u32-width-tests: Likewise.
20334         * modules/uniwidth/width-tests: Likewise.
20335
20336 2010-05-18  Richard Jones  <rjones@redhat.com>
20337
20338         doc: users.txt: list hivex
20339         * users.txt: Add hivex.
20340
20341 2010-05-18  Richard Jones  <rjones@redhat.com>
20342
20343         doc: users.txt: list febootstrap
20344         * users.txt: Add febootstrap.
20345
20346 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20347
20348         bootstrap: fix an error when gnulib is not used as a git submodule
20349         * build-aux/bootstrap (gnulib_path): If its length is zero then
20350         assign "gnulib" to it.
20351         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20352
20353 2010-05-16  Bruno Haible  <bruno@clisp.org>
20354
20355         Avoid autoconf warnings about AM_ICONV.
20356         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20357         2.64.
20358
20359 2010-05-16  Bruno Haible  <bruno@clisp.org>
20360
20361         absolute-header: Make the macro usable in more situations.
20362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20363         from gl_ABSOLUTE_HEADER.
20364         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20365
20366 2010-05-16  James Youngman  <jay@gnu.org>
20367
20368         doc: update users.txt
20369         * users.txt: Add CSSC.
20370
20371 2010-05-16  Jim Meyering  <meyering@redhat.com>
20372
20373         init.sh: fix an error in the previous change; add more comments
20374         * tests/init.sh: Compare exit code in loop against 9, not 2.
20375         Patch by Bruno Haible.
20376         Make the two tests more similar by adding an empty "then" clause.
20377         Add comments.
20378
20379         init.sh: avoid unnecessary shell re-exec
20380         * tests/init.sh: Improve the re-exec-required check to first test the
20381         current shell.  If it passes the test, do not search for a shell that
20382         does pass, and do not re-exec.  This test is particularly contorted to
20383         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20384         of $(...) evokes a syntax error and causes immediate shell exit with
20385         status 2.  Bruno Haible reported that the re-exec made it impossible
20386         to single-step through any init.sh-using script.
20387
20388 2010-05-16  Bruno Haible  <bruno@clisp.org>
20389
20390         Fix collision between gnulib's and libintl's printf replacements.
20391         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20392         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20393         (printf): When using GNU C, map the __printf__ function to rpl_printf
20394         via __asm__. When not using GNU C, define rpl_printf instead of
20395         __printf__.
20396         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20397         commit.
20398         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20399         commit.
20400         * m4/asm-underscore.m4: New file.
20401         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20402         * modules/stdio (Files): Add m4/asm-underscore.m4.
20403         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20404         Reported by Ben Pfaff.
20405
20406 2010-05-16  Bruno Haible  <bruno@clisp.org>
20407
20408         verify: Avoid skipping the test on openSUSE 11.0.
20409         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20410
20411 2010-05-13  Bruno Haible  <bruno@clisp.org>
20412
20413         Avoid useless warnings from G++.
20414         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20415         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20417
20418 2010-05-11  Jim Meyering  <meyering@redhat.com>
20419
20420         maint.mk: tweak preceding change
20421         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20422         regexps tighter by anchoring at EOL, and make the new group "shy"
20423         for slightly decreased overhead.
20424
20425 2010-05-11  Eric Blake  <eblake@redhat.com>
20426
20427         maint.mk: gnulib doesn't guarantee NSIG
20428         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20429
20430 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20431
20432         test-pwrite.c: Remove unused variable declaration.
20433         * tests/test-pwrite.c (main): Remove read_buf declaration.
20434
20435         Remove useless test-pwrite.sh file.
20436         * tests/test-pwrite.sh: Delete file.
20437         * modules/pwrite-tests: Remove references.
20438         Reported by Bruno Haible.
20439
20440 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20441
20442         init.sh: fix a typo
20443         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20444
20445 2010-05-10  Jim Meyering  <meyering@redhat.com>
20446
20447         maint.mk: avoid using a temporary file in the always-defined-macros check
20448         * top/maint.mk (.re-defmac): Remove rule.
20449         (gl_trap_): Remove definition.
20450         (sc_prohibit_always-defined_macros): Rewrite not to create and
20451         depend on a temporary file.  Instead, depend on GNU grep's ability
20452         to read a list of regular expressions from stdin when given "-f -".
20453
20454 2010-05-09  Bruno Haible  <bruno@clisp.org>
20455
20456         Update to GNU gettext 0.18, part 1.
20457         * m4/gettext.m4: Update to GNU gettext 0.18.
20458         * m4/intl.m4: Likewise.
20459         * m4/po.m4: Likewise.
20460         * modules/gettext (Files): Add m4/fcntl-o.m4.
20461         (configure.ac): Require gettext infrastructure from version 0.18.
20462
20463 2010-05-09  Jim Meyering  <meyering@redhat.com>
20464
20465         init.sh: enable MALLOC_PERTURB_
20466         * tests/init.sh: Enable glibc's malloc-perturbing option.
20467
20468         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20469         With my recent change in init.sh from the two-line form:
20470             -#   : ${srcdir=.}
20471             -#   . "$srcdir/init.sh"; path_prepend_ .
20472             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20473         I noticed that using the one-line form would cause this test
20474         to fail with a false-positive, or to stop working altogether,
20475         depending on whether help-version changed or all the tests did.
20476         * top/maint.mk (_hv_regex): Remove this definition.
20477         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20478         (_hv_regex_strong): Use a stronger regex to check for conformance.
20479         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20480         Give a separate diagnostic for lack of conforming use.
20481
20482         maint.mk: prohibit definition of symbols defined by gnulib
20483         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20484         definition of symbols defined by gnulib.
20485
20486 2010-05-09  Bruno Haible  <bruno@clisp.org>
20487
20488         acl: Avoid test failure on Cygwin-hosted mingw.
20489         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20490
20491 2010-05-09  Bruno Haible  <bruno@clisp.org>
20492
20493         error: Use system's fcntl function.
20494         * lib/error.c (fcntl): Undefine.
20495
20496 2010-05-09  Jim Meyering  <meyering@redhat.com>
20497
20498         verify: adjust formatting to be more consistent
20499         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20500         argument-list '('s, and after one comma.
20501
20502 2010-05-09  Bruno Haible  <bruno@clisp.org>
20503
20504         error: More reliable output on mingw.
20505         * lib/error.c: Include <windows.h>.
20506         (is_open): New function.
20507         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20508         defined.
20509
20510 2010-05-09  Bruno Haible  <bruno@clisp.org>
20511
20512         vasnprintf: Fix syntax errors in libintl build on mingw.
20513         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20514         pad_ourselves and prec_ourselves after use.
20515
20516 2010-05-08  Bruno Haible  <bruno@clisp.org>
20517
20518         * lib/config.charset: Update comments for Cygwin 1.7.
20519         * lib/localcharset.c: Likewise.
20520
20521 2010-05-07  Jim Meyering  <meyering@redhat.com>
20522
20523         init.sh: improve comments
20524         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20525         . "${srcdir=.}/init.sh"; path_prepend_ .
20526         Add a note about path_prepend_ and the alternative of using
20527         TESTS_ENVIRONMENT.
20528
20529 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20530
20531         exclude: Unescape hashed patterns in wildcard mode.
20532         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20533         to the hash list.
20534         * tests/test-exclude8.sh: New test case.
20535         * modules/exclude-tests: Add new test.
20536
20537 2010-05-05  Eric Blake  <eblake@redhat.com>
20538
20539         verify: automate tests
20540         * modules/verify-tests: New module.
20541         * tests/test-verify.sh: New file.
20542         * tests/test-verify.c: Guard each negative test with a unique id.
20543         Also avoid warning about unused left hand of comma expressions.
20544
20545 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20546
20547         Further improvements to verify.h, suggested by Eric Blake.
20548         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20549         the GL_* versions, to avoid collision with OpenGL.
20550         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20551         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20552         than testing merely whether it's defined.
20553
20554         Modify verify.h to pacify gcc -Wredundant_decls.
20555         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20556         These use the prefix "GL_" since they're likely to be useful elsewhere.
20557         We may need to break them out into a different .h file.
20558         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20559         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20560         of verify_function__.
20561
20562 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20563
20564         Tests for module pwrite.
20565         * modules/pwrite-tests: New file.
20566         * tests/test-pwrite.sh: New file.
20567         * tests/test-pwrite.c: New file.
20568
20569         New module pwrite.
20570         * lib/unistd.in.h (pwrite): New declaration.
20571         * lib/pwrite.c: New file, from glibc with modifications.
20572         * m4/pwrite.m4: New file.
20573         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20574         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20575         REPLACE_PWRITE.
20576         * modules/pwrite: New file.
20577         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20578         REPLACE_PWRITE.
20579         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20580         * doc/posix-functions/pwrite.texi: Mention the new module.
20581
20582 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20583
20584         pread: Update documentation.
20585         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20586
20587 2010-05-04  Eric Blake  <eblake@redhat.com>
20588
20589         docs: update cygwin progress
20590         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20591         this bug.
20592         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20593         Added in cygwin 1.7.2.
20594         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20595         Likewise.
20596         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20597         Likewise.
20598         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20599         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20600         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20601         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20602         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20603         Mention nproc module.
20604         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20605         bug in cygwin 1.7.5 addition.
20606         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20607         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20608         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20609         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20610         1.7.5.
20611         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20612         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20613         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20614         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20615         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20616         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20617         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20618         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20619         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20620         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20621         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20622         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20623         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20624         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20625         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20626         Likewise.
20627         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20628         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20629         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20630         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20631         Likewise.
20632         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20633         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20634         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20635         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20636         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20637         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20638         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20639         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20640         Likewise.
20641         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20642         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20643         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20644         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20645         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20646         Likewise.
20647         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20648         Likewise.
20649         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20650         Likewise.
20651         * doc/glibc-functions/xdrrec_endofrecord.texi
20652         (xdrrec_endofrecord): Likewise.
20653         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20654         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20655         Likewise.
20656         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20657         Likewise.
20658
20659 2010-05-04  Jim Meyering  <meyering@redhat.com>
20660
20661         gendocs.sh: make its "-s FILE" option more useful
20662         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20663         $PACKAGE to reflect the probably-different basename of "FILE".
20664
20665 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20666
20667         bootstrap: don't ignore download_po_files failure
20668         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20669         failure.
20670
20671 2010-05-03  Jim Meyering  <meyering@redhat.com>
20672
20673         maint.mk: allow to pass options to gendocs.sh
20674         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20675         (gendocs_options_): New overridable variable.
20676
20677         gnu-web-doc-update: don't ignore configure or build failure
20678         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20679
20680         announce-gen: backslash-escape '@'s in --help output
20681         * build-aux/announce-gen: Fix syntax errors.
20682
20683         maint.mk, announce-gen: allow project-specific announcement mail headers
20684         * top/maint.mk (translation_project_): Define default.
20685         (announcement_Cc_, announcement_mail_headers_): Likewise.
20686         (announcement): Invoke announce-gen with new --mail-headers option.
20687         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20688
20689         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20690         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20691         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20692         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20693         line in the "err2" output file when running "make check" in verbose
20694         mode (i.e., with set -x enabled).
20695
20696 2010-05-03  Bruno Haible  <bruno@clisp.org>
20697
20698         wctob: Fix for weird platforms.
20699         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20700         argument value.
20701
20702 2010-05-03  Jim Meyering  <meyering@redhat.com>
20703
20704         maint.mk: prohibit unwarranted use of <strings.h>
20705         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20706         strings.h in a file that does not also use strcasecmp, strncasecmp,
20707         ffs or ffsll.
20708
20709         maint.mk: remove obsolete comments
20710         * top/maint.mk: Remove stale, commented-out rules.
20711
20712 2010-05-02  Bruno Haible  <bruno@clisp.org>
20713
20714         wcwidth: Declare also when it's aliased.
20715         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20716         macro.
20717
20718 2010-05-02  Bruno Haible  <bruno@clisp.org>
20719
20720         Fix regression from 2010-04-25.
20721         * gnulib-tool (func_modules_transitive_closure): Check the status of
20722         all modules, not only of the tests that are of the form foo-tests where
20723         foo is a module.
20724
20725 2010-05-02  Bruno Haible  <bruno@clisp.org>
20726
20727         wctob: Work around nasty Cygwin 1.7.2 bug.
20728         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20729         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20730
20731 2010-05-01  Bruno Haible  <bruno@clisp.org>
20732
20733         fpurge: Sharper test.
20734         * tests/test-fpurge.c (main): Add one more ftell check.
20735         * modules/fpurge-tests (Depends-on): Add ftell.
20736         Suggested by Eric Blake.
20737
20738 2010-05-01  Bruno Haible  <bruno@clisp.org>
20739
20740         ftello: Another test.
20741         * tests/test-ftello3.c: New file.
20742         * modules/ftello-tests (Files): Add it.
20743         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20744         MOSTLYCLEANFILES.
20745
20746         ftell: Another test.
20747         * tests/test-ftell3.c: New file.
20748         * modules/ftell-tests (Files): Add it.
20749         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20750         MOSTLYCLEANFILES.
20751
20752 2010-05-01  Bruno Haible  <bruno@clisp.org>
20753
20754         ftell, ftello: Work around Solaris bug.
20755         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20756         * lib/ftello.c: Include stdio-impl.h.
20757         (ftello): On Solaris, when _IOWRT is set, compute the result without
20758         looking at _IOREAD.
20759         * modules/ftello (Files): Add lib/stdio-impl.h.
20760         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20761         * doc/posix-functions/ftello.texi: Likewise.
20762         Reported by Eric Blake.
20763
20764 2010-05-01  Bruno Haible  <bruno@clisp.org>
20765
20766         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20767         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20768         the _IOWRT flag is also set.
20769
20770 2010-05-01  Bruno Haible  <bruno@clisp.org>
20771
20772         Fix doc about a HP-UX stdio bug.
20773         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20774         * doc/posix-functions/ftello.texi: Likewise.
20775
20776 2010-05-01  Bruno Haible  <bruno@clisp.org>
20777
20778         lseek test: Fix failure on Solaris.
20779         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20780         output.
20781
20782 2010-04-30  Jim Meyering  <meyering@redhat.com>
20783
20784         bootstrap: don't ignore failure to generate po*/Makevars
20785         * build-aux/bootstrap (with_gettext): Don't ignore failure
20786         to create po/Makevars or runtime-po/Makevars.
20787
20788 2010-04-29  Eric Blake  <eblake@redhat.com>
20789
20790         headers: relax license to LGPLv2+
20791         * modules/fcntl-h (License): Relax license.
20792         * modules/getopt-posix (License): Likewise.
20793         * modules/locale (License): Likewise.
20794         * modules/math (License): Likewise.
20795         * modules/pty (License): Likewise.
20796         * modules/sched (License): Likewise.
20797         * modules/search (License): Likewise.
20798         * modules/spawn (License): Likewise.
20799         * modules/stdarg (License): Likewise.
20800         * modules/sysexits (License): Likewise.
20801
20802 2010-04-29  Jim Meyering  <meyering@redhat.com>
20803
20804         inttypes: relax license to LGPLv2+
20805         * modules/inttypes (License): Relax license.
20806
20807 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20808
20809         * top/maint.mk (indent): Run twice to produce idempotent results.
20810
20811 2010-04-28  Bruno Haible  <bruno@clisp.org>
20812
20813         getdate: Generate getdate.c in the source directory.
20814         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20815         MOSTLYCLEANFILES.
20816         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20817
20818 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20819
20820         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20821         is not declared as a const *; avoid warnings in that case.
20822
20823 2010-04-28  Eric Blake  <eblake@redhat.com>
20824
20825         canonicalize-lgpl: avoid compiler warning
20826         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20827         declaration' / 'extraneous semicolon' warning with some compilers.
20828         Reported by Andreas Gruenbacher.
20829
20830 2010-04-28  Jim Meyering  <meyering@redhat.com>
20831
20832         init.sh: ensure a more reliable exit status when exiting via trap
20833         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20834         Inspired by patches from Dmitry V. Levin.
20835         Also trap on signal 3 (SIGQUIT).
20836
20837 2010-04-27  Bruno Haible  <bruno@clisp.org>
20838
20839         Update doc about utimes().
20840         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20841         'utimens' module.
20842         Reported by Andreas Gruenbacher <agruen@suse.de>.
20843
20844 2010-04-27  Eric Blake  <eblake@redhat.com>
20845
20846         full-read, full-write: relax license
20847         * modules/full-read (License): Drop to LGPLv2+.
20848         * modules/full-write (License): Likewise.
20849         * modules/safe-read (License): Likewise.
20850         * modules/safe-write (License): Likewise.
20851
20852         pthread: mention library for linking
20853         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20854
20855 2010-04-27  Jim Meyering  <meyering@redhat.com>
20856
20857         maint.mk: fix a bug introduced in last change
20858         * top/maint.mk (gl_assured_headers_): Now that all names are on
20859         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20860         is not anchored to end of word, it should be adequate.
20861
20862         maint.mk: avoid side-effect in latest syntax-check
20863         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20864         to run commands via $(shell...), and hence to incur cost only when
20865         the new rule is actually run.
20866
20867         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20868         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20869         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20870         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20871         (gl_assured_headers_, az_, AZ_): Define.
20872         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20873
20874 2010-04-26  Jim Meyering  <jim@meyering.net>
20875             Bruno Haible  <bruno@clisp.org>
20876
20877         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20878         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20879         Prompted by an exchange with Gilles Espinasse.
20880
20881 2010-04-26  Jim Meyering  <meyering@redhat.com>
20882
20883         git-version-gen: aesthetic tweak
20884         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20885         so that the command remains on a single line.
20886
20887 2010-04-26  Eric Blake  <eblake@redhat.com>
20888
20889         git-version-gen: allow use on EBCDIC hosts
20890         * build-aux/git-version-gen (dirty): Use literal rather than tying
20891         ourselves to ascii.
20892         Reported by Steve Goetze.
20893
20894 2010-04-25  Bruno Haible  <bruno@clisp.org>
20895
20896         netdb: Add support for GNULIB_POSIXCHECK.
20897         * lib/netdb.in.h: Include warn-on-use.h.
20898         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20899         functions are used when GNULIB_POSIXCHECK is defined and the
20900         getaddrinfo module is not in use.
20901         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20902         freeaddrinfo, gai_strerror, getnameinfo are declared.
20903         * modules/netdb (Depends-on): Add warn-on-use.
20904         (Makefile.am): Include warn-on-use.h in netdb.h.
20905
20906 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20907
20908         build: avoid "make check" failure without .git/ directory
20909         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20910         there is no .git/ directory.
20911
20912 2010-04-25  Bruno Haible  <bruno@clisp.org>
20913
20914         ptsname: Fix misuse of ttyname_r.
20915         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20916         of errno.
20917
20918 2010-04-25  Bruno Haible  <bruno@clisp.org>
20919
20920         ttyname_r: Make it work on Solaris 10.
20921         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20922         if the system function has the POSIX declaration. Test whether the
20923         function fails if the buffer is less than 128 bytes large.
20924         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20925         system's ttyname_r function. Provide a reasonably large buffer.
20926         * modules/ttyname_r (Depends-on): Add extensions.
20927         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20928
20929 2010-04-25  Bruno Haible  <bruno@clisp.org>
20930
20931         Use the 'extensions' module for some more functions on Solaris.
20932         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20933         module.
20934         * doc/posix-functions/ctime_r.texi: Likewise.
20935         * doc/posix-functions/getgrgid_r.texi: Likewise.
20936         * doc/posix-functions/getgrnam_r.texi: Likewise.
20937         * doc/posix-functions/getpwnam_r.texi: Likewise.
20938         * doc/posix-functions/getpwuid_r.texi: Likewise.
20939         * doc/posix-functions/readdir_r.texi: Likewise.
20940         * doc/posix-functions/sigwait.texi: Likewise.
20941         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20942         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20943
20944 2010-04-25  Bruno Haible  <bruno@clisp.org>
20945
20946         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20947         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20948         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20949         * lib/ttyname_r.c: Include <limits.h>.
20950         (ttyname_r): Define using the system's ttyname_r function, if it exists
20951         and not on Solaris.
20952         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20953         set.
20954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20955         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20956         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20957         Reported by Simon Josefsson.
20958
20959 2010-04-25  Bruno Haible  <bruno@clisp.org>
20960
20961         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20962         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20963         * doc/posix-functions/ctime_r.texi: Likewise.
20964         * doc/posix-functions/getgrgid_r.texi: Likewise.
20965         * doc/posix-functions/getgrnam_r.texi: Likewise.
20966         * doc/posix-functions/getlogin_r.texi: Likewise.
20967         * doc/posix-functions/getpwnam_r.texi: Likewise.
20968         * doc/posix-functions/getpwuid_r.texi: Likewise.
20969         * doc/posix-functions/readdir_r.texi: Likewise.
20970         * doc/posix-functions/sigwait.texi: Likewise.
20971         * doc/posix-functions/ttyname_r.texi: Likewise.
20972         Reported by Simon Josefsson.
20973
20974 2010-04-25  Bruno Haible  <bruno@clisp.org>
20975
20976         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20977         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20978         also to --create-testdir.
20979         (func_acceptable): Don't consider the status of *-tests modules here.
20980         (func_modules_transitive_closure): Consider it here, before including a
20981         test module.
20982         (func_import, func_create_testdir): Set inc_all_direct_tests,
20983         inc_all_indirect_tests.
20984         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20985         --create-testdir and --create-megatestdir.
20986
20987 2010-04-25  Bruno Haible  <bruno@clisp.org>
20988
20989         gnulib-tool: Add --without-*-tests options.
20990         * gnulib-tool (func_usage): Document the --without-*-tests options.
20991         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20992         excl_unportable_tests): New variables.
20993         Fail if they are specified with --import or --update.
20994         (func_acceptable): Respect the excl_*_tests variables.
20995         (func_import): Set the excl_*_tests variables to empty.
20996
20997 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20998             Bruno Haible  <bruno@clisp.org>
20999
21000         Work around a MacOS X 10.4 bug with openpty.
21001         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21002         * tests/test-openpty.c (main): Close the master side explicitly.
21003
21004 2010-04-25  Bruno Haible  <bruno@clisp.org>
21005
21006         strnlen: Fix a C++ test error on MacOS X and Solaris.
21007         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21008         the function is not declared.
21009         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21010         Simon Josefsson.
21011
21012 2010-04-24  Bruno Haible  <bruno@clisp.org>
21013
21014         Avoid a gcc warning.
21015         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21016         of correct type for %08lx directive.
21017         Reported by Eric Blake.
21018
21019 2010-04-24  Bruno Haible  <bruno@clisp.org>
21020
21021         vasnprintf: Correct errno value in case of out-of-memory.
21022         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21023         or sprintf. Use the errno value from SNPRINTF or sprintf.
21024         Reported by Ian Beckwith <ianb@erislabs.net>.
21025
21026 2010-04-24  Bruno Haible  <bruno@clisp.org>
21027
21028         ansi-c++-opt: Find correct compiler when cross-compiling.
21029         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21030         AC_CHECK_PROGS.
21031         Reported by Simon Josefsson.
21032
21033 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21034
21035         vc-list-files: Add support for subversion
21036         * build-aux/vc-list-files: Use "svn list" to generate the list of
21037         files controlled by subversion.
21038
21039 2010-04-23  Jim Meyering  <meyering@redhat.com>
21040
21041         vc-list-files tests: convert to use init.sh
21042         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21043         path_prepend_.
21044         Use Exit, not exit.
21045         Use skip_ rather than open coding it.
21046         Remove trap set-up and compare definitions.
21047         * tests/test-vc-list-files-git.sh: Likewise.
21048         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21049
21050 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21051
21052         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21053         backup files.
21054
21055 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21056
21057         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21058
21059 2010-04-20  Eric Blake  <eblake@redhat.com>
21060
21061         tests: be robust to ignored SIGPIPE
21062         * tests/test-select-in.sh: Consume all output.
21063         * tests/test-lseek.sh: Check correct exit status, while avoiding
21064         EPIPE.
21065
21066 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21067             Bruno Haible  <bruno@clisp.org>
21068
21069         visibility: Don't use -fvisibility if it leads to a warning.
21070         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21071         yes, don't pretend that visibility works if it leads to a warning.
21072         Reported by Mike Gran <spk121@yahoo.com>.
21073
21074 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21075
21076         * build-aux/bootstrap: Use "git -h" for testing for supported options
21077         instead of "git --help".  The short-form option only shows a summary,
21078         and doesn't layout the full man page.  Grep for the full option name
21079         in the summary, too.
21080
21081 2010-04-19  Bruno Haible  <bruno@clisp.org>
21082
21083         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21084         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21085         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21086         mention of RELOCATABLE_STRIP.
21087         Reported by Sylvain Beucler <beuc@beuc.net>.
21088
21089 2010-04-19  Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/diffseq.h: Fix typo in comment.
21092         Reported by Eric Blake.
21093
21094 2010-04-19  Bruno Haible  <bruno@clisp.org>
21095
21096         ioctl: Move autoconf macro to a .m4 file.
21097         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21098         * modules/ioctl (Files): Add it.
21099         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21100         Reported by Ian Beckwith <ianb@erislabs.net>.
21101
21102 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21103             Bruno Haible  <bruno@clisp.org>
21104
21105         diffseq: Accommodate use-case with abstract arrays.
21106         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21107         is not defined.
21108         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21109         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21110
21111 2010-04-18  Bruno Haible  <bruno@clisp.org>
21112
21113         * doc/posix-headers/stdbool.texi: More precise wording.
21114
21115 2010-04-17  Jim Meyering  <meyering@redhat.com>
21116
21117         maint.mk: use gnu-style indentation in an embedded perl script
21118         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21119         Rename variable: s/two/last_two_bytes/
21120
21121 2010-04-16  Eric Blake  <eblake@redhat.com>
21122
21123         test-stdbool: skip test that fails with Solaris CC
21124         * tests/test-stdbool.c (f): Skip test that causes compilation
21125         error under buggy C++ compiler.
21126         * lib/stdbool.in.h: Document the limitation.
21127         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21128
21129         setenv: allow compilation with C++
21130         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21131         register keyword.
21132
21133         stdint: allow test to pass with C++
21134         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21135
21136         getopt: allow compilation with C++
21137         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21138         struct.
21139         * lib/getopt.c (_getopt_internal_r): Use correct type.
21140         Reported by Dagobert Michelson, via Joel E. Denny.
21141
21142 2010-04-16  Bruno Haible  <bruno@clisp.org>
21143
21144         Override netdb.h always.
21145         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21146         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21147         Reported by Ludovic Courtès <ludo@gnu.org>.
21148
21149 2010-04-15  Bruno Haible  <bruno@clisp.org>
21150
21151         openpty: Fix mistake from 2010-03-21.
21152         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21153         Reported by Simon Josefsson.
21154
21155 2010-04-15  Eric Blake  <eblake@redhat.com>
21156
21157         test-forkpty: fix expected signature
21158         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21159         Reported by Simon Josefsson.
21160
21161 2010-04-15  Jim Meyering  <meyering@redhat.com>
21162
21163         maint.mk: texinfo_suffix_re_: correct the default regexp
21164         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21165
21166         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21167         make it configurable via texinfo_suffix_re_.
21168
21169 2010-04-14  Eric Blake  <eblake@redhat.com>
21170
21171         strtok_r: relax license to LGPLv2+
21172         * modules/strtok_r (License): Relax license.
21173         Reported by Matthias Bolte.
21174
21175 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21176
21177         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21178         version 1.4.4 by default instead of requiring the libgcrypt
21179         version used during build.  This makes it possible to use the
21180         application with older but still binary compatible libgcrypt
21181         versions.
21182
21183 2010-04-13  Eric Blake  <eblake@redhat.com>
21184
21185         getopt-gnu: match recent glibc fixes and posix ruling
21186         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21187         '+' handling, when requesting extensions.
21188         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21189         'W;' handling.
21190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21191         * doc/posix-functions/getopt.texi (getopt): Document this.
21192         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21193         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21194         Likewise.
21195
21196         getopt: merge bug fixes from glibc
21197         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21198         diagnostics.  Honor '+:' correctly.  Reject ';'.
21199
21200         getopt-posix: detect MacOS bug
21201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21202         optind when missing a required argument.
21203         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21204         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21205         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21206         Likewise.
21207
21208         getopt-posix: avoid spurious failure on Solaris
21209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21210         an indicator that setting optind=1 is sufficient for reset.
21211
21212         getopt-posix: avoid spurious failure on FreeBSD
21213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21214         in POSIX mode, since the m4 test uses it.
21215
21216         gnulib-tool: silence warning on BSD sh
21217         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21218
21219 2010-04-13  Jim Meyering  <meyering@redhat.com>
21220
21221         doc: users.txt: GNU patch now uses gnulib
21222         * users.txt: Add patch.
21223
21224 2010-04-12  Jim Meyering  <meyering@redhat.com>
21225
21226         maint.mk: generate more concise timing data for syntax-check rules
21227         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21228         " done" from each line that reports a syntax-check test duration.
21229
21230 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21231
21232         git-version-gen: use "git update-index..." rather than "git status"
21233         * build-aux/git-version-gen: Use git update-index --refresh, not
21234         "git status".  With some versions of git, "git status" would fail
21235         to update the index and result in an unwarranted "-dirty" suffix.
21236
21237 2010-04-11  Jim Meyering  <meyering@redhat.com>
21238
21239         openat: correct formatting (no semantic change)
21240         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21241         Suggested by Bruno Haible.
21242
21243 2010-04-11  Bruno Haible  <bruno@clisp.org>
21244
21245         Stricter declaration checking in testdirs.
21246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21247         If for_tests is true, augment AM_CPPFLAGS to define
21248         GNULIB_STRICT_CHECKING.
21249         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21250         GNULIB_STRICT_CHECKING is defined, verify that the function is
21251         declared.
21252
21253 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21254             Bruno Haible  <bruno@clisp.org>
21255
21256         libunistring: Improve configure output.
21257         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21258         Don't say "consider installing GNU libunistring" when checking again
21259         with libiconv.
21260
21261 2010-04-11  Bruno Haible  <bruno@clisp.org>
21262
21263         libunistring: Correct value of $LTLIBUNISTRING.
21264         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21265         correct the value of $LTLIBUNISTRING.
21266
21267 2010-04-11  Bruno Haible  <bruno@clisp.org>
21268
21269         havelib: Add static libraries to LIBS in the right order.
21270         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21271         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21272
21273 2010-04-11  Bruno Haible  <bruno@clisp.org>
21274
21275         libunistring: Detect libunistring also when it depends on libiconv.
21276         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21277         the second AC_LIB_HAVE_LINKFLAGS invocation.
21278
21279 2010-04-11  James Youngman  <jay@gnu.org>
21280
21281         close-stream: declare local scalars to be "const"
21282         * lib/close-stream.c (close_stream): Make boolean variables const
21283         to document the fact that we set but do not change them.
21284
21285 2010-04-11  Bruno Haible  <bruno@clisp.org>
21286
21287         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21288
21289 2010-04-11  Jim Meyering  <meyering@redhat.com>
21290
21291         maint.mk: don't include dist-check.mk
21292         * top/maint.mk: Remove bogus include directive.
21293
21294         maint.mk: improve empty-line-at-EOF check
21295         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21296         solution, rather than tail+Perl-based one.  The latter would read
21297         a few kilobytes from the end of each file, and did not handle empty
21298         files properly.
21299
21300         maint.mk: print the elapsed time for each syntax-check rule
21301         * top/maint.mk (sc_m_rules_): Save start time in a file.
21302         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21303         (local-check): Interpose the .z rules
21304
21305 2010-04-11  Jim Meyering  <meyering@redhat.com>
21306
21307         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21308         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21309         empty file with one that ends in an empty line.
21310
21311 2010-04-10  Bruno Haible  <bruno@clisp.org>
21312
21313         mkdir: Make it work on mingw64.
21314         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21315         * lib/mkdir.c: Update comment.
21316         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21317
21318 2010-04-10  Bruno Haible  <bruno@clisp.org>
21319
21320         Don't override improved macro from newer autoconf.
21321         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21322         autoconf >= 2.62.
21323         Reported by Joel E. Denny <jdenny@clemson.edu>.
21324
21325 2010-04-10  Jim Meyering  <meyering@redhat.com>
21326
21327         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21328         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21329
21330         maint.mk: correct a diagnostic
21331         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21332         in diagnostic; now use $prohibit.
21333
21334 2010-04-10  Bruno Haible  <address@hidden>
21335
21336         fchownat: Fix a C++ test error on Solaris 8.
21337         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21338         the function does not exist.
21339
21340 2010-04-10  Bruno Haible  <bruno@clisp.org>
21341
21342         vasnprintf: Add more tests.
21343         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21344         (test_function): Test converting an invalid wide string.
21345
21346         vasnprintf: Correct handling of unconvertible wide string arguments.
21347         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21348         VASNPRINTF.
21349         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21350         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21351         smaller than the expected maximum need for the directive. Set errno to
21352         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21353         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21355         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21356         * modules/vasnprintf (Files): Add m4/printf.m4.
21357         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21358
21359 2010-04-10  Bruno Haible  <bruno@clisp.org>
21360
21361         vasnprintf: Fix crash in %ls directive.
21362         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21363         string is passed as argument to %ls, with no precision and no width.
21364         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21365
21366 2010-04-10  Bruno Haible  <bruno@clisp.org>
21367
21368         vasnprintf: Fix multiple test failures on mingw.
21369         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21370         _snprintf, or snwprintf, not _snwprintf.
21371
21372 2010-04-10  Bruno Haible  <bruno@clisp.org>
21373
21374         write: Fix a C++ test error on mingw.
21375         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21376
21377 2010-04-10  Bruno Haible  <bruno@clisp.org>
21378
21379         vasnprintf test: Reduce code duplication.
21380         * tests/test-vasnprintf.c (test_function): New function, extracted from
21381         test_vasnprintf.
21382         (test_vasnprintf, test_asnprintf): Invoke it.
21383
21384 2010-04-10  Bruno Haible  <bruno@clisp.org>
21385
21386         strnlen: Fix warning in C++ mode on MacOS X.
21387         * lib/string.in.h (strnlen): Use the modern idiom.
21388         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21389         defining strnlen as a macro already in <config.h>.
21390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21391         REPLACE_STRNLEN.
21392         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21393         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21394
21395 2010-04-08  James Youngman  <jay@gnu.org>
21396
21397         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21398         the example.
21399
21400 2010-04-09  Jim Meyering  <meyering@redhat.com>
21401
21402         maint.mk: print better diagnostic when there is no $(_hv_file)
21403         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21404         announce that when $(_hv_file) (aka help-version) does not exist.
21405
21406         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21407         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21408         not try to interpret its random input bytes.  Jarno Rajahalme reported
21409         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21410         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21411         (mktempd_): Likewise, just in case.
21412
21413         ftruncate: add two years to projected module removal date: 2012
21414         * m4/ftruncate.m4: Adjust comments.
21415
21416         ftruncate: mark module as obsolete; even MinGW provides it, now
21417         * modules/ftruncate (Status): Obsolete.
21418         (Notice): Say that.
21419         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21420         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21421
21422 2010-04-08  Bruno Haible  <bruno@clisp.org>
21423
21424         Fix side effects from tests-related modules.
21425         * modules/dprintf-posix (Comment): New section.
21426         * modules/fprintf-posix (Comment): Likewise.
21427         * modules/obstack-printf-posix (Comment): Likewise.
21428         * modules/printf-posix (Comment): Likewise.
21429         * modules/snprintf-posix (Comment): Likewise.
21430         * modules/sprintf-posix (Comment): Likewise.
21431         * modules/vasnprintf-posix (Comment): Likewise.
21432         * modules/vasprintf-posix (Comment): Likewise.
21433         * modules/vdprintf-posix (Comment): Likewise.
21434         * modules/vfprintf-posix (Comment): Likewise.
21435         * modules/vprintf-posix (Comment): Likewise.
21436         * modules/vsnprintf-posix (Comment): Likewise.
21437         * modules/vsprintf-posix (Comment): Likewise.
21438         * modules/xprintf-posix (Comment): Likewise.
21439         * modules/xvasprintf-posix (Comment): Likewise.
21440         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21441         * modules/floorf-tests (Depends-on): Likewise.
21442         * modules/round-tests (Depends-on): Likewise.
21443         * modules/roundf-tests (Depends-on): Likewise.
21444         * modules/trunc-tests (Depends-on): Likewise.
21445         * modules/truncf-tests (Depends-on): Likewise.
21446         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21447         'fprintf-posix' module is not present.
21448         * tests/test-floorf2.c (check): Likewise.
21449         * tests/test-trunc2.c (check): Likewise.
21450         * tests/test-truncf2.c (check): Likewise.
21451         * tests/test-round2.c (equal): Likewise.
21452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21453
21454 2010-04-07  Karl Berry  <karl@gnu.org>
21455
21456         * config/srclist.txt,
21457         * config/srclistvars.sh,
21458         * config/srclist-update: doc fixes.
21459
21460 2010-04-07  Jim Meyering  <meyering@redhat.com>
21461
21462         maint.mk: add a PATH crosschecking syntax-check rule
21463         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21464         Useful if you use a test like the one in help-version (coreutils,
21465         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21466         printed by prog --version.
21467
21468 2010-04-06  Bruno Haible  <bruno@clisp.org>
21469
21470         Fix link error on mingw.
21471         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21472         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21473
21474 2010-04-06  Bruno Haible  <bruno@clisp.org>
21475
21476         Assume rmdir exists.
21477         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21478
21479 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21480
21481         doc: update users.txt
21482         * users.txt: Add gcal.
21483
21484 2010-04-06  Jim Meyering  <meyering@redhat.com>
21485
21486         init.sh: simply unset TMPDIR rather than risking env -i
21487         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21488         although it probably works fine on all Unix-based systems, some
21489         systems (Cygwin?) cannot tolerate a totally cleared environment.
21490         Suggestion from Eric Blake.
21491
21492 2010-04-06  Jim Meyering  <meyering@redhat.com>
21493
21494         init.sh: portability fix: use env's POSIX-specified -i option not -u
21495         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21496         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21497
21498 2010-04-05  Bruno Haible  <bruno@clisp.org>
21499
21500         btowc: Work around Cygwin 1.7.2 bug.
21501         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21502         does not map NUL to 0.
21503         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21504
21505 2010-04-05  Bruno Haible  <bruno@clisp.org>
21506
21507         Make the multithread modules work on Cygwin 1.7.2.
21508         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21509         imported symbols can be declared weak, so that it returns "no" on
21510         Cygwin 1.7.2.
21511
21512 2010-04-05  Bruno Haible  <bruno@clisp.org>
21513
21514         Use the module 'strncat'.
21515         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21516
21517         Tests for module 'strncat'.
21518         * modules/strncat-tests: New file.
21519         * tests/test-strncat.c: New file.
21520
21521         New module 'strncat'.
21522         * lib/string.in.h (strncat): New declaration.
21523         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21524         * m4/strncat.m4: New file, based on m4/memchr.m4.
21525         * modules/strncat: New file.
21526         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21527         is declared.
21528         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21529         REPLACE_STRNCAT.
21530         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21531         REPLACE_STRNCAT.
21532         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21533         module.
21534         * tests/test-string-c++.cc: Check signature of strncat.
21535
21536 2010-04-05  Jim Meyering  <meyering@redhat.com>
21537
21538         xstrtoumax-tests: convert to use init.sh
21539         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21540         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
21545         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21546         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
21551
21552         sys_socket: Avoid #define replacements in C++ mode.
21553         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21554         warning to the function if possible, rather than #defining the symbol
21555         to a dysfunctional alias.
21556
21557 2010-04-05  Bruno Haible  <bruno@clisp.org>
21558
21559         fseeko: Fix C++ test error on mingw.
21560         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21561         gl_FUNC_FSEEKO.
21562         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21563         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21564         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21565         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21566
21567 2010-04-05  Bruno Haible  <bruno@clisp.org>
21568
21569         duplocale: Improve test output.
21570         * tests/test-duplocale.c (main): Print reason for skipped test.
21571
21572 2010-04-05  Bruno Haible  <bruno@clisp.org>
21573
21574         Assume rmdir exists.
21575         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21576         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21577
21578 2010-04-05  Bruno Haible  <bruno@clisp.org>
21579
21580         Fix link error on Solaris 8 with cc.
21581         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21582
21583 2010-04-05  Bruno Haible  <bruno@clisp.org>
21584
21585         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21586         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21587
21588 2010-04-05  Bruno Haible  <bruno@clisp.org>
21589
21590         vasprintf: Update documentation.
21591         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21592
21593 2010-04-05  Bruno Haible  <bruno@clisp.org>
21594
21595         ptsname: Improve test.
21596         * tests/test-ptsname.c (main): Also try the various master names of BSD
21597         systems.
21598
21599 2010-04-05  Bruno Haible  <bruno@clisp.org>
21600
21601         memchr: Avoid a possible C++ test error.
21602         * lib/string.in.h (memchr): Provide declaration if function is missing.
21603         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21604         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21606         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21607
21608 2010-04-05  Bruno Haible  <bruno@clisp.org>
21609
21610         strtok_r: Improve idiom.
21611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21612         AC_LIBOBJ is used.
21613
21614 2010-04-05  Bruno Haible  <bruno@clisp.org>
21615
21616         strdup: Improve idiom.
21617         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21618         AC_LIBOBJ is used.
21619         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21620         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21621         when AC_LIBOBJ is used.
21622
21623 2010-04-05  Bruno Haible  <bruno@clisp.org>
21624
21625         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21626         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21627         don't set REPLACE_MBSINIT to 1.
21628         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21629         don't set REPLACE_MBRTOWC to 1.
21630         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21631         exist, don't set REPLACE_MBSRTOWCS to 1.
21632         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21633         exist, don't set REPLACE_MBSNRTOWCS to 1.
21634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21635         don't set REPLACE_WCRTOMB to 1.
21636         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21637         exist, don't set REPLACE_WCSRTOMBS to 1.
21638         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21639         exist, don't set REPLACE_WCSNRTOMBS to 1.
21640
21641 2010-04-05  Bruno Haible  <bruno@clisp.org>
21642
21643         ldexpl: Improve idiom.
21644         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21645         make sure to set HAVE_DECL_LDEXPL to 0.
21646
21647 2010-04-05  Jim Meyering  <meyering@redhat.com>
21648
21649         xstrtol-tests: convert to use init.sh
21650         * modules/xstrtol-tests (Files): Add tests/init.sh.
21651         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21652         Use Exit, not exit.
21653         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21654
21655         atexit-tests: convert to use init.sh
21656         * modules/atexit-tests (Files): Add tests/init.sh.
21657         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21658         Use Exit, not exit.
21659         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21660
21661         init.sh: fix typo
21662         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21663
21664         init.sh: make it easier for a test script to write to the tty, ...
21665         when using automake's parallel-tests mode.
21666         * tests/init.sh (stderr_fileno_): Define overridable variable.
21667         (warn_): New function, to use it.
21668         (fail_, skip_, framework_failure_): Use warn_.
21669
21670 2010-04-04  Bruno Haible  <bruno@clisp.org>
21671
21672         btowc: Avoid warning.
21673         * lib/btowc.c: Include <stdlib.h>.
21674         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21675
21676 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21677             Bruno Haible  <bruno@clisp.org>
21678
21679         wchar: Port to NetBSD 1.5.
21680         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21681         * lib/wctype.in.h (WEOF): Likewise.
21682
21683 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21684             Bruno Haible  <bruno@clisp.org>
21685
21686         Port extended stdio to NetBSD 1.5.
21687         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21688         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21689         older.
21690
21691 2010-04-04  Bruno Haible  <bruno@clisp.org>
21692
21693         string: Remove unused substitution.
21694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21695         HAVE_DECL_STRERROR.
21696         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21697
21698 2010-04-04  Bruno Haible  <bruno@clisp.org>
21699
21700         strtod: Avoid a possible C++ test error.
21701         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21702         set REPLACE_STRTOD.
21703
21704 2010-04-04  Bruno Haible  <bruno@clisp.org>
21705
21706         strerror: Update documentation.
21707         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21708
21709 2010-04-04  Bruno Haible  <bruno@clisp.org>
21710
21711         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21712         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21713         _GL_CXXALIAS_SYS_CAST.
21714
21715 2010-04-04  Bruno Haible  <bruno@clisp.org>
21716
21717         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21718         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21719         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21720         REPLACE_FREXPL to 1.
21721         * doc/posix-functions/frexpl.texi: Update documentation.
21722
21723 2010-04-04  Bruno Haible  <bruno@clisp.org>
21724
21725         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21726         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21727
21728 2010-04-04  Bruno Haible  <bruno@clisp.org>
21729
21730         Implement nanosleep for native Windows.
21731         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21732
21733 2010-04-04  Bruno Haible  <bruno@clisp.org>
21734
21735         math: Fix some C++ test errors on Solaris 8.
21736         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21737
21738 2010-04-04  Bruno Haible  <bruno@clisp.org>
21739
21740         math: Fix some C++ test errors on Cygwin.
21741         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21742         truncl): Provide declaration if the system does not have it.
21743         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21744         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21745         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21746         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21747         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21748         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21749         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21750         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21751         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21752         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21753         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21754         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21755         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21756         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21757         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21758         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21760         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21761         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21762         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21763         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21764         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21765
21766 2010-04-04  Bruno Haible  <bruno@clisp.org>
21767
21768         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21769         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21770         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21771         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21772         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21773         * m4/isinf.m4 (gl_ISINF): Likewise.
21774         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21775
21776 2010-04-04  Bruno Haible  <bruno@clisp.org>
21777
21778         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21779         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21780
21781 2010-04-04  Bruno Haible  <bruno@clisp.org>
21782
21783         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21784         * modules/tmpfile (configure.ac): Update.
21785
21786         tmpfile: Fix C++ test error on mingw.
21787         * lib/stdio.in.h (tmpfile): New declaration.
21788         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21789         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21790         * modules/tmpfile (Depends-on): Add stdio.
21791         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21792         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21793         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21794         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21795         REPLACE_TMPFILE.
21796         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21797
21798 2010-04-04  Bruno Haible  <bruno@clisp.org>
21799
21800         ioctl: Fix C++ test error on mingw.
21801         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21802         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21803         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21804
21805 2010-04-03  Bruno Haible  <bruno@clisp.org>
21806
21807         wcwidth: Fix C++ test error on mingw.
21808         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21810         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21811
21812 2010-04-03  Bruno Haible  <bruno@clisp.org>
21813
21814         nanosleep: Fix C++ test error on mingw.
21815         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21816         * lib/time.in.h (nanosleep): Use modern idiom.
21817         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21818         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21819         REPLACE_NANOSLEEP to 1.
21820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21821         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21822
21823 2010-04-03  Bruno Haible  <bruno@clisp.org>
21824
21825         strptime: Fix C++ test error on mingw.
21826         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21827         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21828         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21829         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21830         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21831         not REPLACE_STRPTIME.
21832         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21833         REPLACE_STRPTIME.
21834
21835 2010-04-03  Bruno Haible  <bruno@clisp.org>
21836
21837         timegm: Fix C++ test error on mingw.
21838         * lib/time.in.h (timegm): Use modern idiom.
21839         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21840         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21841         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21842         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21843
21844 2010-04-03  Bruno Haible  <bruno@clisp.org>
21845
21846         timegm: Assume declaration if function exists.
21847         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21848         if it exists. Don't clobber ac_cv_func_timegm.
21849
21850 2010-04-03  Bruno Haible  <bruno@clisp.org>
21851
21852         time_r: Fix C++ test error on mingw.
21853         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21854         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21855         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21856         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21857         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21858
21859 2010-04-03  Bruno Haible  <bruno@clisp.org>
21860
21861         time_r: Minor updates.
21862         * modules/time_r (Description): Mention the provided functions.
21863         * lib/time_r.c: Don't include <string.h>.
21864         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21865         * doc/posix-functions/localtime_r.texi: Likewise.
21866
21867 2010-04-03  Bruno Haible  <bruno@clisp.org>
21868
21869         time: Fix regression introduced on 2010-03-08.
21870         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21871         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21872
21873 2010-04-03  Jim Meyering  <meyering@redhat.com>
21874
21875         maint.mk: don't silently disable project-specific syntax-check rules
21876         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21877         that they need to convert their project-specific syntax-check rules
21878         to use the new _sc_search_regexp.
21879
21880 2010-04-03  Bruno Haible  <bruno@clisp.org>
21881
21882         fchdir: Fix regression introduced on 2010-03-08.
21883         * lib/unistd.in.h (fchdir): Fix declaration.
21884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21886         REPLACE_FCHDIR.
21887         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21888         REPLACE_FCHDIR.
21889
21890 2010-04-03  Bruno Haible  <bruno@clisp.org>
21891
21892         getpagesize: Fix C++ test error on mingw.
21893         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21894         system does not declare the function.
21895         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21896         declared.
21897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21898         HAVE_DECL_GETPAGESIZE.
21899         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21900
21901 2010-04-03  Bruno Haible  <bruno@clisp.org>
21902
21903         stdio: Make C++ tests work on mingw.
21904         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21905         does not declare the function.
21906
21907 2010-04-03  Bruno Haible  <bruno@clisp.org>
21908
21909         ftello: Fix C++ test error on mingw.
21910         * lib/stdio.in.h (ftello): Use modern idiom.
21911         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21912         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21913         is missing and that it needs to be replaced.
21914         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21916         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21917
21918 2010-04-03  Bruno Haible  <bruno@clisp.org>
21919
21920         fseeko: Fix C++ test error on mingw.
21921         * lib/stdio.in.h (fseeko): Use modern idiom.
21922         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21924         is missing and that it needs to be replaced.
21925         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21927         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21928
21929 2010-04-03  Bruno Haible  <bruno@clisp.org>
21930
21931         mkstemp: Fix C++ test error on mingw.
21932         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21934         function is missing and that it needs to be replaced.
21935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21936         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21937
21938 2010-04-03  Bruno Haible  <bruno@clisp.org>
21939
21940         stpncpy: Fix C++ test error on mingw.
21941         * lib/string.in.h (stpncpy): Use modern idiom.
21942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21943         function is missing and that it needs to be replaced.
21944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21945         REPLACE_STPNCPY.
21946         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21947
21948 2010-04-03  Bruno Haible  <bruno@clisp.org>
21949
21950         sys_stat: Fix C++ test error on mingw.
21951         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21952         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21953
21954 2010-04-03  Bruno Haible  <bruno@clisp.org>
21955
21956         pty: Update doc.
21957         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21958
21959 2010-04-03  Bruno Haible  <bruno@clisp.org>
21960
21961         unistd: Fix C++ test error on mingw.
21962         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21963
21964 2010-04-03  Bruno Haible  <bruno@clisp.org>
21965
21966         Update doc regarding mingw.
21967         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21968         * doc/glibc-functions/login_tty.texi: Likewise.
21969         * doc/glibc-functions/forkpty.texi: Likewise.
21970
21971 2010-04-03  Bruno Haible  <bruno@clisp.org>
21972
21973         stdlib: Avoid compilation failure of c-strtold on mingw.
21974         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21975
21976 2010-04-03  Bruno Haible  <bruno@clisp.org>
21977
21978         locale: Make C++ tests work on Cygwin and mingw.
21979         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21980         cannot provide the function.
21981         Reported by Simon Josefsson.
21982
21983 2010-04-03  Bruno Haible  <bruno@clisp.org>
21984
21985         localename: Port to MacOS X 10.6.
21986         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21987         memory layout of the locales in MacOS X 10.6 as well.
21988         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21989
21990 2010-04-02  Bruno Haible  <bruno@clisp.org>
21991
21992         gnulib-tool: Ensure that long-running tests are executed last.
21993         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21994         running tests after the one for the other tests.
21995
21996 2010-04-02  Bruno Haible  <bruno@clisp.org>
21997
21998         gnulib-tool: Ensure the tests in the main directory are executed first.
21999         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22000         start with the current directory.
22001
22002 2010-04-02  Bruno Haible  <bruno@clisp.org>
22003
22004         Tests for module 'havelib', moved here from GNU gettext.
22005         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22006         modifications.
22007         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22008         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22009         with modifications.
22010         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22011         modifications.
22012         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22013         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22014         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22015         with modifications.
22016         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22017         with modifications.
22018         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22019         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22020         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22021         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22022         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22023         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22024         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22025         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22026         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22027         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22028         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22029         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22030         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22031         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22032         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22033         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22034         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22035         with modifications.
22036         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22037         with modifications.
22038         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22039         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22040         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22041         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22042         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22043         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22044         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22045         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22046         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22047         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22048         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22049         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22050         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22051         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22052         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22053         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22054         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22055         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22056         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22057         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22058         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22059         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22060         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22061         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22062         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22063         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22064         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22065         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22066         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22067         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22068         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22069         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22070         * tests/havelib/rpathx/rpathx.c: New file, from
22071         gettext/autoconf-lib-link.
22072         * tests/havelib/rpathx/Makefile.am: New file, from
22073         gettext/autoconf-lib-link.
22074         * tests/havelib/rpathx/configure.ac: New file, from
22075         gettext/autoconf-lib-link with modifications.
22076         * tests/havelib/rpathy/rpathy.c: New file, from
22077         gettext/autoconf-lib-link.
22078         * tests/havelib/rpathy/Makefile.am: New file, from
22079         gettext/autoconf-lib-link.
22080         * tests/havelib/rpathy/configure.ac: New file, from
22081         gettext/autoconf-lib-link with modifications.
22082         * tests/havelib/rpathz/rpathz.c: New file, from
22083         gettext/autoconf-lib-link.
22084         * tests/havelib/rpathz/Makefile.am: New file, from
22085         gettext/autoconf-lib-link.
22086         * tests/havelib/rpathz/configure.ac: New file, from
22087         gettext/autoconf-lib-link with modifications.
22088         * tests/havelib/rpathlx/usex.c: New file, from
22089         gettext/autoconf-lib-link.
22090         * tests/havelib/rpathlx/Makefile.am: New file, from
22091         gettext/autoconf-lib-link.
22092         * tests/havelib/rpathlx/configure.ac: New file, from
22093         gettext/autoconf-lib-link with modifications.
22094         * tests/havelib/rpathly/usey.c: New file, from
22095         gettext/autoconf-lib-link.
22096         * tests/havelib/rpathly/Makefile.am: New file, from
22097         gettext/autoconf-lib-link.
22098         * tests/havelib/rpathly/configure.ac: New file, from
22099         gettext/autoconf-lib-link with modifications.
22100         * tests/havelib/rpathlz/usez.c: New file, from
22101         gettext/autoconf-lib-link.
22102         * tests/havelib/rpathlz/Makefile.am: New file, from
22103         gettext/autoconf-lib-link.
22104         * tests/havelib/rpathlz/configure.ac: New file, from
22105         gettext/autoconf-lib-link with modifications.
22106         * tests/havelib/rpathlyx/usey.c: New file, from
22107         gettext/autoconf-lib-link.
22108         * tests/havelib/rpathlyx/Makefile.am: New file, from
22109         gettext/autoconf-lib-link.
22110         * tests/havelib/rpathlyx/configure.ac: New file, from
22111         gettext/autoconf-lib-link with modifications.
22112         * tests/havelib/rpathlzyx/usez.c: New file, from
22113         gettext/autoconf-lib-link.
22114         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22115         gettext/autoconf-lib-link.
22116         * tests/havelib/rpathlzyx/configure.ac: New file, from
22117         gettext/autoconf-lib-link with modifications.
22118         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22119         with modifications.
22120
22121 2010-04-02  Bruno Haible  <bruno@clisp.org>
22122
22123         gnulib-tool: Create distributed built sources also for the tests.
22124         * gnulib-tool (func_create_testdir): Also generate distributed built
22125         sources in the tests directory.
22126
22127 2010-04-02  Bruno Haible  <bruno@clisp.org>
22128
22129         gnulib-tool: Obey user's environment variables.
22130         * gnulib-tool (func_create_testdir): When creating built sources,
22131         respect the environment variables for autoconf, automake, etc. given by
22132         the user.
22133
22134 2010-04-02  Bruno Haible  <bruno@clisp.org>
22135
22136         gnulib-tool: Provide the value of --m4-base to modules.
22137         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22138         of gl_m4_base.
22139
22140 2010-04-02  Eric Blake  <eblake@redhat.com>
22141
22142         maint.mk: fix some fallout
22143         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22144         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22145
22146 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22147
22148         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22149         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22150         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22151         (sc_cast_of_x_alloc_return_value): Likewise.
22152         (sc_cast_of_alloca_return_value): Likewise.
22153         (sc_space_tab): Likewise.
22154         (sc_prohibit_atoi_atof): Likewise.
22155         (sc_prohibit_magic_number_exit): Likewise.
22156         (sc_error_exit_success): Likewise.
22157         (sc_file_system): Likewise.
22158         (sc_prohibit_have_config_h): Likewise.
22159         (sc_require_config_h): Likewise.
22160         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22161         (sc_obsolete_symbols): Likewise.
22162         (sc_changelog): Likewise.
22163         (sc_program_name): Likewise.
22164         (sc_the_the): Likewise.
22165         (sc_trailing_blank): Likewise.
22166         (sc_two_space_separator_in_usage): Likewise.
22167         (sc_useless_cpp_parens): Likewise.
22168         (sc_GPL_version): Likewise.
22169         (sc_GFDL_version): Likewise.
22170         (sc_texinfo_acronym): Likewise.
22171         (sc_prohibit_cvs_keyword): Likewise.
22172         (sc_prohibit_stat_st_blocks): Likewise.
22173         (sc_prohibit_S_IS_definition): Likewise.
22174         (sc_redundant_const): Likewise.
22175         (sc_makefile_TAB_only_indentation): Likewise.
22176         (sc_m4_quote_check): Likewise.
22177         (sc_makefile_path_separator_check): Likewise.
22178         (sc_copyright_check): Likewise.
22179         (sc_Wundef_boolean): Likewise.
22180         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22181
22182         maint.mk: match 0 or more whitespace-before-function-call '('
22183         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22184         that have zero or two-and-more spaces between the function name
22185         and the open parenthesis.
22186         (sc_error_message_warn_fatal): Likewise.
22187         (sc_error_message_uppercase): Likewise.
22188         (sc_error_message_period): Likewise.
22189
22190 2010-03-31  Eric Blake  <eblake@redhat.com>
22191
22192         maint.mk: check for [ as well as test
22193         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22194         Based on a libvirt report by Matthias Bolte.
22195
22196         gnumakefile: don't squelch _version output
22197         * top/GNUmakefile (_version): Create one-shot dependency rather
22198         than using $(shell) when version must be regenerated.
22199         (_autoreconf): Run verbosely, by default.
22200
22201         sys_time: avoid compiler warnings
22202         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22203         unconditional, fixing regression from 2010-03-29.
22204         Reported by Simon Josefsson.
22205
22206 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22207
22208         maint.mk: s/_header_without_use/_sc_header_without_use/
22209         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22210         (sc_prohibit_assert_without_use): Use the new name.
22211         (sc_prohibit_close_stream_without_use): Likewise.
22212         (sc_prohibit_getopt_without_use): Likewise.
22213         (sc_prohibit_quotearg_without_use): Likewise.
22214         (sc_prohibit_quote_without_use): Likewise.
22215         (sc_prohibit_long_options_without_use): Likewise.
22216         (sc_prohibit_inttostr_without_use): Likewise.
22217         (sc_prohibit_ignore_value_without_use): Likewise.
22218         (sc_prohibit_error_without_use): Likewise.
22219         (sc_prohibit_xalloc_without_use): Likewise.
22220         (sc_prohibit_hash_without_use): Likewise.
22221         (sc_prohibit_hash_pjw_without_use): Likewise.
22222         (sc_prohibit_safe_read_without_use): Likewise.
22223         (sc_prohibit_argmatch_without_use): Likewise.
22224         (sc_prohibit_canonicalize_without_use): Likewise.
22225         (sc_prohibit_root_dev_ino_without_use): Likewise.
22226         (sc_prohibit_openat_without_use): Likewise.
22227         (sc_prohibit_c_ctype_without_use): Likewise.
22228         (sc_prohibit_signal_without_use): Likewise.
22229         (sc_prohibit_intprops_without_use): Likewise.
22230
22231 2010-03-30  Eric Blake  <eblake@redhat.com>
22232
22233         maint: improve module indicators
22234         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22235         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22236         columns, and avoid extra macro expansion.
22237
22238         fdopendir: work around FreeBSD bug
22239         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22240         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22241         * modules/dirent (Makefile.am): Substitute it.
22242         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22243         declaration.
22244         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22245         fix.
22246         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22247
22248 2010-03-29  Bruno Haible  <bruno@clisp.org>
22249
22250         Emit #pragma system_header after the inclusion guard, not before.
22251         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22252         guard that spans the entire file, not before. This enables an
22253         optimization in GCC's preprocessor.
22254         * lib/ctype.in.h: Likewise.
22255         * lib/dirent.in.h: Likewise.
22256         * lib/errno.in.h: Likewise.
22257         * lib/float.in.h: Likewise.
22258         * lib/getopt.in.h: Likewise.
22259         * lib/iconv.in.h: Likewise.
22260         * lib/langinfo.in.h: Likewise.
22261         * lib/locale.in.h: Likewise.
22262         * lib/math.in.h: Likewise.
22263         * lib/netdb.in.h: Likewise.
22264         * lib/netinet_in.in.h: Likewise.
22265         * lib/pty.in.h: Likewise.
22266         * lib/sched.in.h: Likewise.
22267         * lib/se-selinux.in.h: Likewise.
22268         * lib/search.in.h: Likewise.
22269         * lib/spawn.in.h: Likewise.
22270         * lib/stdarg.in.h: Likewise.
22271         * lib/stdint.in.h: Likewise.
22272         * lib/string.in.h: Likewise.
22273         * lib/strings.in.h: Likewise.
22274         * lib/sys_file.in.h: Likewise.
22275         * lib/sys_ioctl.in.h: Likewise.
22276         * lib/sys_time.in.h: Likewise.
22277         * lib/sys_times.in.h: Likewise.
22278         * lib/sys_utsname.in.h: Likewise.
22279         * lib/sys_wait.in.h: Likewise.
22280         * lib/sysexits.in.h: Likewise.
22281         * lib/wctype.in.h: Likewise.
22282
22283 2010-03-28  James Youngman  <jay@gnu.org>
22284
22285         save-cwd: don't leak a file descriptor when the caller execs.
22286         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22287         saved file descriptor.
22288         * modules/save-cwd (Depends-on): Depend on cloexec.
22289
22290 2010-03-29  Bruno Haible  <bruno@clisp.org>
22291
22292         Remove vestiges of fts-lgpl module.
22293         * lib/fts_.h: Assume GNULIB_FTS is 1.
22294         * lib/fts.c: Likewise.
22295         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22296
22297 2010-03-28  Bruno Haible  <bruno@clisp.org>
22298
22299         Fix definition of tests witness macro.
22300         * gnulib-tool (func_import): Fix definition of witness macro.
22301
22302 2010-03-28  Bruno Haible  <bruno@clisp.org>
22303
22304         Fix ioctl's protoype on glibc systems.
22305         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22306         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22307         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22308         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22309         signature. If not, arrange to replace the ioctl function.
22310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22311         REPLACE_IOCTL.
22312         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22313         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22314         Reported by Ludovic Courtès <ludo@gnu.org>.
22315
22316 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22317
22318         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22319         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22320         made it so grep -r --include=GLOB* ... did not work.
22321
22322 2010-03-26  Jim Meyering  <meyering@redhat.com>
22323             Eric Blake  <eblake@redhat.com>
22324
22325         maint.mk: prohibit use of test's -o and -a operators
22326         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22327
22328 2010-03-28  Bruno Haible  <bruno@clisp.org>
22329
22330         Remove unused GNULIB_XYZ macro definitions.
22331         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22332         invocation.
22333
22334 2010-03-28  Bruno Haible  <bruno@clisp.org>
22335
22336         Mark privileged tests modules.
22337         * modules/idpriv-drop-tests (Status): New section.
22338         * modules/idpriv-droptemp-tests (Status): New section.
22339
22340 2010-03-28  Bruno Haible  <bruno@clisp.org>
22341
22342         Split C++ tests into separate tests modules.
22343         * modules/dirent-c++-tests: New file, extracted from
22344         modules/dirent-tests.
22345         * modules/dirent-tests: Depend on it.
22346         * modules/fcntl-h-c++-tests: New file, extracted from
22347         modules/fcntl-h-tests.
22348         * modules/fcntl-h-tests: Depend on it.
22349         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22350         * modules/glob-tests: Depend on it.
22351         * modules/iconv-h-c++-tests: New file, extracted from
22352         modules/iconv-h-tests.
22353         * modules/iconv-h-tests: Depend on it.
22354         * modules/langinfo-c++-tests: New file, extracted from
22355         modules/langinfo-tests.
22356         * modules/langinfo-tests: Depend on it.
22357         * modules/locale-c++-tests: New file, extracted from
22358         modules/locale-tests.
22359         * modules/locale-tests: Depend on it.
22360         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22361         * modules/math-tests: Depend on it.
22362         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22363         * modules/pty-tests: Depend on it.
22364         * modules/search-c++-tests: New file, extracted from
22365         modules/search-tests.
22366         * modules/search-tests: Depend on it.
22367         * modules/signal-c++-tests: New file, extracted from
22368         modules/signal-tests.
22369         * modules/signal-tests: Depend on it.
22370         * modules/spawn-c++-tests: New file, extracted from
22371         modules/spawn-tests.
22372         * modules/spawn-tests: Depend on it.
22373         * modules/stdio-c++-tests: New file, extracted from
22374         modules/stdio-tests.
22375         * modules/stdio-tests: Depend on it.
22376         * modules/stdlib-c++-tests: New file, extracted from
22377         modules/stdlib-tests.
22378         * modules/stdlib-tests: Depend on it.
22379         * modules/string-c++-tests: New file, extracted from
22380         modules/string-tests.
22381         * modules/string-tests: Depend on it.
22382         * modules/sys_ioctl-c++-tests: New file, extracted from
22383         modules/sys_ioctl-tests.
22384         * modules/sys_ioctl-tests: Depend on it.
22385         * modules/sys_select-c++-tests: New file, extracted from
22386         modules/sys_select-tests.
22387         * modules/sys_select-tests: Depend on it.
22388         * modules/sys_socket-c++-tests: New file, extracted from
22389         modules/sys_socket-tests.
22390         * modules/sys_socket-tests: Depend on it.
22391         * modules/sys_stat-c++-tests: New file, extracted from
22392         modules/sys_stat-tests.
22393         * modules/sys_stat-tests: Depend on it.
22394         * modules/sys_time-c++-tests: New file, extracted from
22395         modules/sys_time-tests.
22396         * modules/sys_time-tests: Depend on it.
22397         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22398         * modules/time-tests: Depend on it.
22399         * modules/unistd-c++-tests: New file, extracted from
22400         modules/unistd-tests.
22401         * modules/unistd-tests: Depend on it.
22402         * modules/wchar-c++-tests: New file, extracted from
22403         modules/wchar-tests.
22404         * modules/wchar-tests: Depend on it.
22405         * modules/wctype-c++-tests: New file, extracted from
22406         modules/wctype-tests.
22407         * modules/wctype-tests: Depend on it.
22408         Reported by Simon Josefsson.
22409
22410 2010-03-28  Bruno Haible  <bruno@clisp.org>
22411
22412         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22413         * gnulib-tool (func_exists_module): New function, extracted from
22414         func_verify_module.
22415         (func_verify_module): Use it.
22416         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22417         'foo' only if 'foo' exists.
22418         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22419         module.
22420
22421 2010-03-28  Bruno Haible  <bruno@clisp.org>
22422
22423         gnulib-tool: Add support for special categories of tests.
22424         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22425         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22426         (func_usage): Document them.
22427         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22428         inc_unportable_tests, inc_all_tests): New variables.
22429         (func_acceptable): Consider these variables.
22430         (func_modules_transitive_closure): Make it work when the 'Status' field
22431         consists of multiple words.
22432         (func_import): Store and restore the values of inc_cxx_tests,
22433         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22434         inc_all_tests in gnulib-comp.m4.
22435         (func_create_testdir): Set inc_all_tests to true.
22436         * doc/gnulib.texi (Extra tests modules): New section.
22437         Suggested by Jim Meyering.
22438
22439 2010-03-28  Bruno Haible  <bruno@clisp.org>
22440
22441         ansi-c++-opt: Allow turning off the C++ build by default.
22442         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22443         gl_CXX_CHOICE_DEFAULT_NO is defined.
22444         Requested by Eric Blake.
22445
22446 2010-03-28  Bruno Haible  <bruno@clisp.org>
22447
22448         unistd: Avoid #define replacements in C++ mode.
22449         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22450         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22451         setsockopt, shutdown, select): In C++, attach a warning to the function
22452         if possible, rather than #defining the symbol to a dysfunctional alias.
22453         Reported by John W. Eaton <jwe@gnu.org>.
22454
22455 2010-03-28  Bruno Haible  <bruno@clisp.org>
22456
22457         Fix link errors on mingw.
22458         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22459         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22460         $(LIBSOCKET).
22461         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22462         $(LIBSOCKET).
22463
22464 2010-03-28  Bruno Haible  <bruno@clisp.org>
22465             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22466
22467         lib-ignore: Determine different options for different compilers.
22468         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22469         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22470         Add comments.
22471         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22472         * NEWS: Mention the change.
22473
22474 2010-03-27  Bruno Haible  <bruno@clisp.org>
22475
22476         Remove unused GNULIB_XYZ macro definitions.
22477         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22478         * modules/fseek (configure.ac): Likewise.
22479         * modules/ioctl (configure.ac): Likewise.
22480         * modules/open (configure.ac): Likewise.
22481         * modules/stdlib-safer (configure.ac): Likewise.
22482
22483 2010-03-27  Bruno Haible  <bruno@clisp.org>
22484
22485         Add a remark about certain modules.
22486         * modules/malloc (Comment): New section.
22487         * modules/realloc (Comment): Likewise.
22488         * modules/sigpipe (Comment): Likewise.
22489
22490 2010-03-27  Bruno Haible  <bruno@clisp.org>
22491
22492         Resolve conflict between the two kinds of module indicators.
22493         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22494         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22495         * modules/canonicalize (configure.ac): Invoke
22496         gl_MODULE_INDICATOR_FOR_TESTS.
22497         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22498         GNULIB_XYZ.
22499         * tests/test-dirent-c++.cc: Likewise.
22500         * tests/test-dirent-safer.c: Likewise.
22501         * tests/test-dup2.c: Likewise.
22502         * tests/test-fchdir.c: Likewise.
22503         * tests/test-fcntl-h-c++.cc: Likewise.
22504         * tests/test-getopt.c: Likewise.
22505         * tests/test-getopt.h: Likewise.
22506         * tests/test-langinfo-c++.cc: Likewise.
22507         * tests/test-locale-c++.cc: Likewise.
22508         * tests/test-math-c++.cc: Likewise.
22509         * tests/test-pty-c++.cc: Likewise.
22510         * tests/test-search-c++.cc: Likewise.
22511         * tests/test-signal-c++.cc: Likewise.
22512         * tests/test-spawn-c++.cc: Likewise.
22513         * tests/test-stdio-c++.cc: Likewise.
22514         * tests/test-stdlib-c++.cc: Likewise.
22515         * tests/test-string-c++.cc: Likewise.
22516         * tests/test-sys_ioctl-c++.cc: Likewise.
22517         * tests/test-sys_select-c++.cc: Likewise.
22518         * tests/test-sys_socket-c++.cc: Likewise.
22519         * tests/test-sys_stat-c++.cc: Likewise.
22520         * tests/test-sys_time-c++.cc: Likewise.
22521         * tests/test-time-c++.cc: Likewise.
22522         * tests/test-unistd-c++.cc: Likewise.
22523         * tests/test-wchar-c++.cc: Likewise.
22524         * tests/uninorm/test-u8-nfc.c: Likewise.
22525         * tests/uninorm/test-u8-nfd.c: Likewise.
22526         * tests/uninorm/test-u8-nfkc.c: Likewise.
22527         * tests/uninorm/test-u8-nfkd.c: Likewise.
22528         * tests/uninorm/test-u16-nfc.c: Likewise.
22529         * tests/uninorm/test-u16-nfd.c: Likewise.
22530         * tests/uninorm/test-u16-nfkc.c: Likewise.
22531         * tests/uninorm/test-u16-nfkd.c: Likewise.
22532         * tests/uninorm/test-u32-nfc.c: Likewise.
22533         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22534         * tests/uninorm/test-u32-nfd.c: Likewise.
22535         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22536         * tests/uninorm/test-u32-nfkc.c: Likewise.
22537         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22538         * tests/uninorm/test-u32-nfkd.c: Likewise.
22539         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22540         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22541
22542 2010-03-27  Bruno Haible  <bruno@clisp.org>
22543
22544         Distinguish two kinds of module indicators.
22545         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22546         gl_MODULE_INDICATOR.
22547         (gl_MODULE_INDICATOR): New macro.
22548         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22549         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22550         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22551         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22552         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22553         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22554         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22555         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22556         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22557         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22558         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22559         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22560         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22562         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22563         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22564         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22565         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22566         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22567         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22568         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22569         * modules/cloexec (configure.ac): Likewise.
22570         * modules/getopt-gnu (configure.ac): Likewise.
22571         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22572         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22573         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22574         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22575
22576 2010-03-27  Bruno Haible  <bruno@clisp.org>
22577
22578         New module description field 'Comment'.
22579         * gnulib-tool: New option --extract-comment.
22580         (func_usage): Document it.
22581         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22582         (func_get_comment): New function.
22583         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22584
22585 2010-03-27  Bruno Haible  <bruno@clisp.org>
22586
22587         Addendum to 2010-02-07 commit.
22588         * gnulib-tool (func_usage): Document --extract-applicability option.
22589
22590 2010-03-27  Bruno Haible  <bruno@clisp.org>
22591
22592         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22593         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22594         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22595         rather than link errors.
22596
22597 2010-03-27  Bruno Haible  <bruno@clisp.org>
22598
22599         Avoid side effects from tests-related modules on the compilation of lib.
22600         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22601         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22602         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22603         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22604         macro.
22605         (func_import): Define a witness macro. Assign it a value that depends
22606         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22607         tests-related modules.
22608         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22609         Reported by Jim Meyering.
22610
22611 2010-03-27  Bruno Haible  <bruno@clisp.org>
22612
22613         Factorize common .m4 code.
22614         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22615         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22616         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22617         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22618         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22619         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22620         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22621         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22622         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22623         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22624         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22625         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22626         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22627         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22628         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22629         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22630         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22631         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22633         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22634         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22635         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22636         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22638         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22639         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22640         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22641         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22642         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22643         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22644         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22645         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22646
22647 2010-03-27  Bruno Haible  <bruno@clisp.org>
22648
22649         Fix a compilation error on Cygwin with g++ >= 4.3.
22650         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22651         if it is undefined or if we alias it to chmod.
22652         (lstat): Don't warn about the use of this function if it is undefined
22653         or if we alias it to stat.
22654         Reported by Simon Josefsson.
22655
22656 2010-03-27  Bruno Haible  <bruno@clisp.org>
22657
22658         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22659         * modules/getlogin (configure.ac): Update.
22660
22661         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22662         * modules/getlogin_r (configure.ac): Update.
22663
22664         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22665         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22666         * modules/inet_ntop (configure.ac): Update.
22667
22668         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22669         * modules/inet_pton (configure.ac): Update.
22670
22671         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22672         * modules/mbslen (configure.ac): Update.
22673
22674         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22675         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22676         * modules/forkpty (configure.ac): Update.
22677         * modules/openpty (configure.ac): Update.
22678
22679 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22680
22681         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22682         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22683
22684 2010-03-25  Eric Blake  <eblake@redhat.com>
22685
22686         maint: use pragma consistently across replacement headers
22687         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22688         * lib/dirent.in.h (system_header): Likewise.
22689         * lib/errno.in.h (system_header): Likewise.
22690         * lib/float.in.h (system_header): Likewise.
22691         * lib/getopt.in.h (system_header): Likewise.
22692         * lib/iconv.in.h (system_header): Likewise.
22693         * lib/inttypes.in.h (system_header): Likewise.
22694         * lib/langinfo.in.h (system_header): Likewise.
22695         * lib/locale.in.h (system_header): Likewise.
22696         * lib/math.in.h (system_header): Likewise.
22697         * lib/netdb.in.h (system_header): Likewise.
22698         * lib/netinet_in.in.h (system_header): Likewise.
22699         * lib/pty.in.h (system_header): Likewise.
22700         * lib/sched.in.h (system_header): Likewise.
22701         * lib/se-selinux.in.h (system_header): Likewise.
22702         * lib/search.in.h (system_header): Likewise.
22703         * lib/spawn.in.h (system_header): Likewise.
22704         * lib/stdarg.in.h (system_header): Likewise.
22705         * lib/stdint.in.h (system_header): Likewise.
22706         * lib/string.in.h (system_header): Likewise.
22707         * lib/strings.in.h (system_header): Likewise.
22708         * lib/sys_file.in.h (system_header): Likewise.
22709         * lib/sys_ioctl.in.h (system_header): Likewise.
22710         * lib/sys_socket.in.h (system_header): Likewise.
22711         * lib/sys_times.in.h (system_header): Likewise.
22712         * lib/sys_utsname.in.h (system_header): Likewise.
22713         * lib/sys_wait.in.h (system_header): Likewise.
22714         * lib/sysexits.in.h (system_header): Likewise.
22715         * lib/unistd.in.h (system_header): Likewise.
22716         * lib/wctype.in.h (system_header): Likewise.
22717
22718         arpa/inet: fix mingw compilation warning
22719         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22720         Reported by Matthew Bolte.
22721
22722 2010-03-25  Bruno Haible  <bruno@clisp.org>
22723
22724         Avoid collision between gnulib wrapper and libintl wrapper.
22725         * lib/printf.c (printf): Don't define if a printf wrapper is already
22726         defined in intl/printf.c.
22727         Reported by Michel Boaventura <michel@michelboaventura.com>.
22728
22729 2010-03-25  Bruno Haible  <bruno@clisp.org>
22730
22731         Use ANSI C.
22732         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22733
22734 2010-03-25  Bruno Haible  <bruno@clisp.org>
22735
22736         Minor formatting changes.
22737         * lib/acosl.c: Insert space before function argument list.
22738         * lib/argz.c: Likewise.
22739         * lib/asinl.c: Likewise.
22740         * lib/expl.c: Likewise.
22741         * lib/gen-uni-tables.c: Likewise.
22742         * lib/gettext.h: Likewise.
22743         * lib/glthread/lock.h: Likewise.
22744         * lib/tanl.c: Likewise.
22745         * lib/uniname/uniname.c: Likewise.
22746         * tests/test-idpriv-drop.c: Likewise.
22747         * tests/test-idpriv-droptemp.c: Likewise.
22748         * tests/test-lock.c: Likewise.
22749         * tests/test-tls.c: Likewise.
22750         * lib/argp-help.c: Insert space before function-like macro argument
22751         list.
22752         * lib/memcmp.c: Likewise.
22753         * tests/test-base64.c: Likewise.
22754         * lib/localename.c: Insert space before sizeof's argument list.
22755         * lib/safe-alloc.h: Likewise.
22756         * lib/file-set.h: Insert space before macro argument list.
22757         * tests/test-argp.c: Likewise.
22758         * lib/argp-namefrob.h: Insert space before function parameter list.
22759         * lib/getaddrinfo.c: Likewise.
22760         * lib/netdb.in.h: Likewise.
22761         * lib/parse-duration.h: Likewise.
22762         * lib/parse-duration.c: Likewise.
22763         * lib/poll.c: Likewise.
22764         * lib/select.c: Likewise.
22765         * lib/trim.h: Likewise.
22766         * tests/test-usleep.c: Likewise.
22767         * lib/ldexpl.c: Insert space before function parameter list and before
22768         function argument list.
22769         * lib/logl.c: Likewise.
22770         * lib/sqrtl.c: Likewise.
22771         * lib/trim.c: Likewise.
22772         * lib/cosl.c: Use GNU style indentation. Insert space before function
22773         argument list.
22774         * lib/sinl.c: Likewise.
22775         * lib/tsearch.c: Insert space after 'for'.
22776         Reported by Jim Meyering.
22777
22778 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22779
22780         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22781         config header before grepping, as it's not present before
22782         autoreconf/configure are run.  Reported by Simon Josefsson.
22783
22784 2010-03-23  Bruno Haible  <bruno@clisp.org>
22785
22786         pt_chown: Make it work with automake < 1.11.
22787         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22788         Reported by Simon Josefsson.
22789
22790 2010-03-23  Bruno Haible  <bruno@clisp.org>
22791
22792         pt_chown: Don't depend on GPLed modules.
22793         * lib/pt_chown.c: Don't include idpriv.h.
22794         (main): Don't drop privileges.
22795         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22796         Reported by Simon Josefsson.
22797
22798 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22799
22800         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22801         suggestions from karl@freefriends.org (Karl Berry).
22802
22803 2010-03-22  Eric Blake  <eblake@redhat.com>
22804
22805         gethostname: further tweaks
22806         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22807         are overriding gethostname.
22808         Suggested by Bruno Haible.
22809
22810 2010-03-21  Bruno Haible  <bruno@clisp.org>
22811
22812         Fix comments.
22813         * lib/forkpty.c (rpl_forkpty): Fix comment.
22814         * lib/openpty.c (rpl_openpty): Likewise.
22815         Reported by Eric Blake.
22816
22817 2010-03-22  Eric Blake  <eblake@redhat.com>
22818
22819         gethostname: fix build on mingw
22820         * lib/unistd.in.h (includes): Work around fact that mingw
22821         <winsock2.h> re-includes <unistd.h>, by avoiding any
22822         redeclarations if we are being included by <winsock2.h>.
22823         Reported by Matthias Bolte.
22824
22825 2010-03-21  Bruno Haible  <bruno@clisp.org>
22826
22827         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22828         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22829         modifications.
22830         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22831         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22832         provide the replacement.
22833         * modules/forkpty (Depends-on): Add openpty, login_tty.
22834         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22835         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22836         * doc/glibc-functions/forkpty.texi: More supported platforms.
22837         * config/srclist.txt: Add forkpty.c (commented).
22838
22839 2010-03-21  Bruno Haible  <bruno@clisp.org>
22840
22841         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22842         (Makefile.am): Verify that PTY_LIB is defined.
22843
22844         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22845
22846 2010-03-21  Bruno Haible  <bruno@clisp.org>
22847
22848         Tests for module 'login_tty'.
22849         * modules/login_tty-tests: New file.
22850         * tests/test-login_tty.c: New file.
22851
22852         New module 'login_tty'.
22853         * lib/login_tty.c: New file.
22854         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22855         * modules/login_tty: New file.
22856         * doc/glibc-functions/login_tty.texi: Mention the new module.
22857
22858 2010-03-21  Bruno Haible  <bruno@clisp.org>
22859
22860         login_tty: Documentation.
22861         * doc/glibc-functions/login_tty.texi: New file.
22862         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22863
22864 2010-03-21  Bruno Haible  <bruno@clisp.org>
22865
22866         pty: Consistent macro naming.
22867         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22868         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22869         * modules/pty (configure.ac): Update.
22870
22871 2010-03-21  Bruno Haible  <bruno@clisp.org>
22872
22873         Tests for openpty: Make stricter.
22874         * tests/test-openpty.c (main): Add test of canonical processing and
22875         erase.
22876         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22877
22878         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22879         * lib/openpty.c (openpty): New replacement function.
22880         * lib/pty.in.h: Include <termios.h>.
22881         (openpty): Update declaration. Add comments.
22882         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22883         is not declared, arrange to provide the replacement. Check for _getpty
22884         and posix_openpt.
22885         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22886         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22887         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22888         * modules/pty-tests (test_pty_c___LDADD): New variable.
22889         * doc/glibc-functions/openpty.texi: More supported platforms.
22890
22891 2010-03-21  Bruno Haible  <bruno@clisp.org>
22892
22893         setenv: Tweaks.
22894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22895         the test program.
22896         * doc/posix-functions/setenv.texi: Update platforms list.
22897
22898 2010-03-21  Bruno Haible  <bruno@clisp.org>
22899
22900         New module 'unlockpt'.
22901         * lib/unlockpt.c: New file, from glibc with modifications.
22902         * m4/unlockpt.m4: New file.
22903         * modules/unlockpt: New file.
22904         * lib/stdlib.in.h (unlockpt): New declaration.
22905         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22906         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22907         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22908         HAVE_UNLOCKPT.
22909         * doc/posix-functions/unlockpt.texi: Mention the new module.
22910         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22911         * config/srclist.txt: Add unlockpt.c (commented).
22912
22913 2010-03-21  Jim Meyering  <meyering@redhat.com>
22914
22915         maint.mk: prohibit inclusion of "intprops.h" without use
22916         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22917
22918 2010-03-21  Bruno Haible  <bruno@clisp.org>
22919
22920         New module 'grantpt'.
22921         * lib/grantpt.c: New file, from glibc with modifications.
22922         * m4/grantpt.m4: New file.
22923         * modules/grantpt: New file.
22924         * lib/stdlib.in.h (grantpt): New declaration.
22925         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22926         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22927         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22928         HAVE_GRANTPT.
22929         * doc/posix-functions/grantpt.texi: Mention the new module.
22930         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22931         * config/srclist.txt: Add grantpt.c (commented).
22932
22933 2010-03-21  Bruno Haible  <bruno@clisp.org>
22934
22935         New module 'pt_chown'.
22936         * lib/pt_chown.c: New file, from glibc with modifications.
22937         * lib/pty-private.h: New file, from glibc with modifications.
22938         * modules/pt_chown: New file.
22939         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22940
22941 2010-03-21  Bruno Haible  <bruno@clisp.org>
22942
22943         Tests for module 'ptsname'.
22944         * modules/ptsname-tests: New file.
22945         * tests/test-ptsname.c: New file.
22946
22947         New module 'ptsname'.
22948         * lib/ptsname.c: New file, from glibc with modifications.
22949         * m4/ptsname.m4: New file.
22950         * modules/ptsname: New file.
22951         * lib/stdlib.in.h (ptsname): New declaration.
22952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22954         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22955         HAVE_PTSNAME.
22956         * doc/posix-functions/ptsname.texi: Mention the new module.
22957         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22958         * config/srclist.txt: Add ptsname.c (commented).
22959
22960 2010-03-21  Bruno Haible  <bruno@clisp.org>
22961
22962         Tests for module 'ttyname_r'.
22963         * modules/ttyname_r-tests: New file.
22964         * tests/test-ttyname_r.c: New file.
22965
22966         New module 'ttyname_r'.
22967         * lib/ttyname_r.c: New file.
22968         * m4/ttyname_r.m4: New file.
22969         * modules/ttyname_r: New file.
22970         * lib/unistd.in.h (ttyname_r): New declaration.
22971         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22972         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22973         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22974         HAVE_TTYNAME_R.
22975         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22976         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22977
22978 2010-03-20  Bruno Haible  <bruno@clisp.org>
22979
22980         signal: Undefine macro definitions in C++ mode.
22981         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22982         sigfillset): Undefine macro definitions from the system header in C++
22983         mode.
22984         Reported by John W. Eaton <jwe@gnu.org>.
22985
22986 2010-03-20  Bruno Haible  <bruno@clisp.org>
22987
22988         Ensure no #include statements inside extern "C" { ... }.
22989         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22990         contain #include statements.
22991         * lib/time.in.h: Likewise.
22992
22993 2010-03-20  Bruno Haible  <bruno@clisp.org>
22994
22995         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22996         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22997         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22998         Reported by John W. Eaton <jwe@gnu.org>.
22999
23000 2010-03-20  Bruno Haible  <bruno@clisp.org>
23001
23002         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23003         Reported by Jim Meyering.
23004
23005 2010-03-20  Bruno Haible  <bruno@clisp.org>
23006
23007         pipe: Set errno upon failure.
23008         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23009         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23010         errno value in error message.
23011
23012 2010-03-20  Bruno Haible  <bruno@clisp.org>
23013             Jim Meyering  <meyering@redhat.com>
23014
23015         lchown: Avoid "unused variable" warning.
23016         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23017
23018 2010-03-20  Bruno Haible  <bruno@clisp.org>
23019
23020         Work around unlink() bug on MacOS X 10.5.6.
23021         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23022         attempting to unlink a parent directory.
23023         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23024         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23025         activate for the replacement function.
23026         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23027
23028 2010-03-20  Bruno Haible  <bruno@clisp.org>
23029
23030         Fix link errors on Solaris 8.
23031         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23032         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23033
23034 2010-03-19  Jim Meyering  <meyering@redhat.com>
23035
23036         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23037         The _LIBC implementation of build_range_exp correctly honors the
23038         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23039         However, the non-_LIBC implementation would ignore that syntax-bit
23040         flag and return REG_ERANGE unconditionally.
23041         This change makes it honor that flag.
23042         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23043         Make two pointer parameters "const".
23044         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23045         (parse_bracket_exp): Update caller.
23046
23047         regex.m4: correct the reversed range endpoint ([b-a]) test
23048         * m4/regex.m4: When requiring that [b-a] evoke failure,
23049         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23050         test pass once again for x86-based systems.
23051
23052 2010-03-19  Bruno Haible  <bruno@clisp.org>
23053
23054         scandir: Fix link error on Solaris 8.
23055         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23056         macros.
23057
23058 2010-03-19  Bruno Haible  <bruno@clisp.org>
23059
23060         getusershell: Fix documentation.
23061         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23062         module.
23063         * doc/glibc-functions/setusershell.texi: Likewise.
23064
23065         getusershell: Provide declaration, missing on Solaris 9.
23066         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23067         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23068         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23069         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23071         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23072         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23073         HAVE_GETUSERSHELL.
23074         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23075
23076 2010-03-19  Bruno Haible  <bruno@clisp.org>
23077
23078         wctype: Provide iswblank function.
23079         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23080         exists and is fine.
23081         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23082         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23083         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23084         * doc/posix-functions/iswblank.texi: Update.
23085
23086 2010-03-19  Bruno Haible  <bruno@clisp.org>
23087
23088         Tests of module 'pty' in C++ mode.
23089         * modules/pty-tests: New file.
23090         * tests/test-pty-c++.cc: New file.
23091         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23092
23093 2010-03-19  Eric Blake  <eblake@redhat.com>
23094
23095         logb: fix documentation
23096         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23097         1.5 declaration bug.
23098
23099         forkpty, openpty: prefer glibc's const-safe prototype
23100         * lib/forkpty.c (rpl_forkpty): New file.
23101         * lib/openpty.c (rpl_openpty): Likewise.
23102         * modules/forkpty (Files): Distribute it.
23103         * modules/openpty (Files): Likewise.
23104         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23105         check...
23106         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23107         replacement for for non-const BSD signature.
23108         * modules/pty (Makefile.am): Substitute witnesses.
23109         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23110         * tests/test-forkpty.c: Update signature check.
23111         * tests/test-openpty.c: Likewise.
23112         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23113         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23114
23115         forkpty, openpty: split functions into new modules
23116         * modules/pty (Makefile.am): Substitute new witnesses.
23117         (Libraries): Move library detection...
23118         * modules/forkpty: ...into new module.
23119         * modules/openpty: Another new module.
23120         * modules/pty-tests: Rename and split...
23121         * modules/forkpty-tests: ...to this...
23122         * modules/openpty-tests: ...and this.
23123         * tests/test-pty.c: Rename and split...
23124         * tests/test-forkpty.c: ...to this...
23125         * tests/test-openpty.c: ...and this.
23126         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23127         (gl_PTY): Split library searching...
23128         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23129         (gl_FORKPTY, gl_OPENPTY): New macros.
23130         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23131         * NEWS: Mention the split.
23132         * MODULES.html.sh (Misc): Document the modules.
23133         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23134         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23135
23136         pty: improve replacement header
23137         * lib/pty.in.h: New file.
23138         * modules/pty (Files): Ship it.
23139         (Makefile.am): Always build replacement.
23140         * m4/pty.m4: Rename...
23141         * m4/pty_h.m4: ...to this.
23142         (gl_PTY): Modernize setting of witness macros; update check of
23143         forkpty to take proper advantage of cache.
23144         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23145
23146         getopt: avoid compiler warning
23147         * lib/getopt.c (attribute_hidden): Remove unused macro.
23148
23149 2010-03-18  Bruno Haible  <bruno@clisp.org>
23150
23151         Fix link errors on Solaris 8.
23152         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23153         * modules/search-tests (test_search_c___LDADD): Likewise.
23154         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23155         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23156         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23157         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23158         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23159         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23160         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23161
23162 2010-03-18  Bruno Haible  <bruno@clisp.org>
23163
23164         Fix bug introduced on 2010-03-14.
23165         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23166         (gl_SPAWN_H): Require it.
23167         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23168         Reported by Simon Josefsson.
23169
23170 2010-03-18  Bruno Haible  <bruno@clisp.org>
23171
23172         Fix typo introduced on 2009-12-31.
23173         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23174         posix_spawn_file_actions_adddup2.
23175
23176 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23177         and Eric Blake  <eblake@redhat.com>
23178
23179         test-vc-list-files-git: make more robust
23180         * tests/test-vc-list-files-git.sh: Unset problematic environment
23181         variables.  Chain commands together.
23182
23183 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23184
23185         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23186         `AC_CHECK_DECL' invocation.
23187
23188 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23189
23190         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23191         appears before executable statements. Suggested by Petr Sumbera
23192         <Petr.Sumbera@Sun.COM>.
23193
23194 2010-03-14  Bruno Haible  <bruno@clisp.org>
23195
23196         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23197         portability problems. Instead use a simpler test.
23198         (main): Check that invalid arguments are rejected only on Linux.
23199
23200 2010-03-14  Bruno Haible  <bruno@clisp.org>
23201
23202         Fix bug introduced on 2009-12-31.
23203         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23204         gl_PREREQ_SYS_H_WINSOCK2 always.
23205         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23206         SYS_SOCKET_H variable.
23207         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23208         Update comments.
23209         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23210         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23211         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23212         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23213         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23214
23215 2010-03-14  Bruno Haible  <bruno@clisp.org>
23216
23217         Fix values returned by sinl, cosl.
23218         * lib/trigl.h: Add specification comments.
23219         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23220         that combines the values from the precomputed table with the values of
23221         the Chebyshev polynomials.
23222
23223 2010-03-14  Bruno Haible  <bruno@clisp.org>
23224
23225         Fix compilation error when modules 'posix_spawn[p]' are not used.
23226         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23228
23229 2010-03-14  Bruno Haible  <bruno@clisp.org>
23230
23231         Fix compilation error on mingw when module 'time_r' is not used.
23232         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23233         is 1.
23234         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23235         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23236         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23237         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23238
23239 2010-03-14  Bruno Haible  <bruno@clisp.org>
23240
23241         Fix compilation error with Sun C.
23242         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23243         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23244         instead of GCC specific ULONG_LONG_MAX.
23245         * lib/xstrtoll.c: Likewise.
23246         * lib/xstrtoull.c: Likewise.
23247
23248 2010-03-13  Bruno Haible  <bruno@clisp.org>
23249
23250         Allow the user to disable C++ code and tests.
23251         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23252         (gl_PROG_ANSI_CXX): Require it.
23253
23254 2010-03-13  Bruno Haible  <bruno@clisp.org>
23255
23256         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23257         cases.
23258
23259 2010-03-13  Bruno Haible  <bruno@clisp.org>
23260
23261         Test that gnulib does not break the standard C++ headers.
23262         * tests/test-locale-c++2.cc: New file.
23263         * modules/locale-tests (Files): Add it.
23264         (Makefile.am): Compile it for test-locale-c++.
23265         * tests/test-math-c++2.cc: New file.
23266         * modules/math-tests (Files): Add it.
23267         (Makefile.am): Compile it for test-math-c++.
23268         * tests/test-signal-c++2.cc: New file.
23269         * modules/signal-tests (Files): Add it.
23270         (Makefile.am): Compile it for test-signal-c++.
23271         * tests/test-stdio-c++2.cc: New file.
23272         * modules/stdio-tests (Files): Add it.
23273         (Makefile.am): Compile it for test-stdio-c++.
23274         * tests/test-stdlib-c++2.cc: New file.
23275         * modules/stdlib-tests (Files): Add it.
23276         (Makefile.am): Compile it for test-stdlib-c++.
23277         * tests/test-string-c++2.cc: New file.
23278         * modules/string-tests (Files): Add it.
23279         (Makefile.am): Compile it for test-string-c++.
23280         * tests/test-time-c++2.cc: New file.
23281         * modules/time-tests (Files): Add it.
23282         (Makefile.am): Compile it for test-time-c++.
23283         Reported by John W. Eaton <jwe@gnu.org>.
23284
23285 2010-03-13  Bruno Haible  <bruno@clisp.org>
23286
23287         * gnulib-tool (func_usage): Clarify which options are available for
23288         --create-testdir and --create-megatestdir.
23289
23290 2010-03-13  Bruno Haible  <bruno@clisp.org>
23291
23292         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23293         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23294         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23295         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23296         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23297         when appropriate.
23298         Reported by Jim Meyering.
23299
23300 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23301
23302         * gnulib-tool (func_import): Explain origin of code.
23303
23304 2010-03-12  Bruno Haible  <bruno@clisp.org>
23305
23306         Fix problem with automake's definition of CXXLINK.
23307         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23308         Reported by Simon Josefsson and Ludovic Courtès.
23309
23310 2010-03-12  Bruno Haible  <bruno@clisp.org>
23311
23312         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23313         stable releases.
23314
23315 2010-03-11  Bruno Haible  <bruno@clisp.org>
23316
23317         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23318         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23319         whether the system provides one variant or multiple variants of the
23320         function.
23321         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23322         C++ compilers.
23323         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23324         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23325         Reported by Jim Meyering.
23326
23327 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23328
23329         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23330
23331 2010-03-08  Bruno Haible  <bruno@clisp.org>
23332
23333         gnulib-tool: Add support for --libtool in --create-testdir.
23334         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23335         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23336
23337 2010-03-08  Eric Blake  <eblake@redhat.com>
23338
23339         gnulib-tool.texi: mention possibility of git submodule
23340         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23341         submodules.
23342         * doc/.gitignore: Ignore another generated file.
23343
23344 2010-03-08  Karl Berry  <karl@gnu.org>
23345
23346         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23347         of committing gnulib files while skipping others.
23348
23349 2010-03-07  Bruno Haible  <bruno@clisp.org>
23350
23351         Tests of module 'wctype' in C++ mode.
23352         * tests/test-wctype-c++.cc: New file.
23353         * modules/wctype-tests (Files): Add it and tests/signature.h.
23354         (Depends-on): Add ansi-c++-opt.
23355         (Makefile.am): Arrange to compile and run test-wctype-c++.
23356
23357         Tests of module 'wchar' in C++ mode.
23358         * tests/test-wchar-c++.cc: New file.
23359         * modules/wchar-tests (Files): Add it and tests/signature.h.
23360         (Depends-on): Add ansi-c++-opt.
23361         (Makefile.am): Arrange to compile and run test-wchar-c++.
23362         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23363         gl_MODULE_INDICATOR.
23364
23365         Tests of module 'unistd' in C++ mode.
23366         * tests/test-unistd-c++.cc: New file.
23367         * modules/unistd-tests (Files): Add it and tests/signature.h.
23368         (Depends-on): Add ansi-c++-opt.
23369         (Makefile.am): Arrange to compile and run test-unistd-c++.
23370         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23371         gl_MODULE_INDICATOR.
23372
23373         Tests of module 'time' in C++ mode.
23374         * tests/test-time-c++.cc: New file.
23375         * modules/time-tests (Files): Add it and tests/signature.h.
23376         (Depends-on): Add ansi-c++-opt.
23377         (Makefile.am): Arrange to compile and run test-time-c++.
23378         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23379
23380         Tests of module 'sys_time' in C++ mode.
23381         * tests/test-sys_time-c++.cc: New file.
23382         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23383         (Depends-on): Add ansi-c++-opt.
23384         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23385         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23386         gl_MODULE_INDICATOR.
23387
23388         Tests of module 'sys_stat' in C++ mode.
23389         * tests/test-sys_stat-c++.cc: New file.
23390         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23391         (Depends-on): Add ansi-c++-opt.
23392         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23393         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23394         gl_MODULE_INDICATOR.
23395
23396         Tests of module 'sys_socket' in C++ mode.
23397         * tests/test-sys_socket-c++.cc: New file.
23398         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23399         (Depends-on): Add ansi-c++-opt.
23400         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23402         gl_MODULE_INDICATOR.
23403
23404         Tests of module 'sys_select' in C++ mode.
23405         * tests/test-sys_select-c++.cc: New file.
23406         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23407         (Depends-on): Add ansi-c++-opt.
23408         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23409         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23410         gl_MODULE_INDICATOR.
23411
23412         Tests of module 'sys_ioctl' in C++ mode.
23413         * tests/test-sys_ioctl-c++.cc: New file.
23414         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23415         (Depends-on): Add ansi-c++-opt.
23416         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23417         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23418         gl_MODULE_INDICATOR.
23419
23420         Tests of module 'string' in C++ mode.
23421         * tests/test-string-c++.cc: New file.
23422         * modules/string-tests (Files): Add it and tests/signature.h.
23423         (Depends-on): Add ansi-c++-opt.
23424         (Makefile.am): Arrange to compile and run test-string-c++.
23425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23426         gl_MODULE_INDICATOR.
23427
23428         Tests of module 'stdlib' in C++ mode.
23429         * tests/test-stdlib-c++.cc: New file.
23430         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23431         (Depends-on): Add ansi-c++-opt.
23432         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23433         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23434         gl_MODULE_INDICATOR.
23435
23436         Tests of module 'stdio' in C++ mode.
23437         * tests/test-stdio-c++.cc: New file.
23438         * modules/stdio-tests (Files): Add it and tests/signature.h.
23439         (Depends-on): Add ansi-c++-opt.
23440         (Makefile.am): Arrange to compile and run test-stdio-c++.
23441         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23442         gl_MODULE_INDICATOR.
23443
23444         Tests of module 'spawn' in C++ mode.
23445         * tests/test-spawn-c++.cc: New file.
23446         * modules/spawn-tests (Files): Add it and tests/signature.h.
23447         (Depends-on): Add ansi-c++-opt.
23448         (Makefile.am): Arrange to compile and run test-spawn-c++.
23449         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23450         gl_MODULE_INDICATOR.
23451
23452         Tests of module 'signal' in C++ mode.
23453         * tests/test-signal-c++.cc: New file.
23454         * modules/signal-tests (Files): Add it and tests/signature.h.
23455         (Depends-on): Add ansi-c++-opt.
23456         (Makefile.am): Arrange to compile and run test-signal-c++.
23457         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23458         gl_MODULE_INDICATOR.
23459
23460         Tests of module 'search' in C++ mode.
23461         * tests/test-search-c++.cc: New file.
23462         * modules/search-tests (Files): Add it and tests/signature.h.
23463         (Depends-on): Add ansi-c++-opt.
23464         (Makefile.am): Arrange to compile and run test-search-c++.
23465         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23466         gl_MODULE_INDICATOR.
23467
23468         Tests of module 'math' in C++ mode.
23469         * tests/test-math-c++.cc: New file.
23470         * modules/math-tests (Files): Add it and tests/signature.h.
23471         (Depends-on): Add ansi-c++-opt.
23472         (Makefile.am): Arrange to compile and run test-math-c++.
23473         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23474
23475         Tests of module 'locale' in C++ mode.
23476         * tests/test-locale-c++.cc: New file.
23477         * modules/locale-tests (Files): Add it and tests/signature.h.
23478         (Depends-on): Add ansi-c++-opt.
23479         (Makefile.am): Arrange to compile and run test-locale-c++.
23480         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23481         gl_MODULE_INDICATOR.
23482
23483         Tests of module 'langinfo' in C++ mode.
23484         * tests/test-langinfo-c++.cc: New file.
23485         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23486         (Depends-on): Add ansi-c++-opt.
23487         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23488         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23489         gl_MODULE_INDICATOR.
23490
23491         Tests of module 'iconv-h' in C++ mode.
23492         * tests/test-iconv-h-c++.cc: New file.
23493         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23494         (Depends-on): Add ansi-c++-opt.
23495         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23496
23497         Tests of module 'glob' in C++ mode.
23498         * tests/test-glob-c++.cc: New file.
23499         * modules/glob-tests (Files): Add it.
23500         (Depends-on): Add ansi-c++-opt.
23501         (Makefile.am): Arrange to compile and run test-glob-c++.
23502
23503         Tests of module 'fcntl-h' in C++ mode.
23504         * tests/test-fcntl-h-c++.cc: New file.
23505         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23506         (Depends-on): Add ansi-c++-opt.
23507         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23508         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23509         gl_MODULE_INDICATOR.
23510
23511         Tests of module 'dirent' in C++ mode.
23512         * tests/test-dirent-c++.cc: New file.
23513         * modules/dirent-tests (Files): Add it and tests/signature.h.
23514         (Depends-on): Add ansi-c++-opt.
23515         (Makefile.am): Arrange to compile and run test-dirent-c++.
23516         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23517         gl_MODULE_INDICATOR.
23518
23519         New module 'ansi-c++-opt'.
23520         * modules/ansi-c++-opt: New file.
23521         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23522
23523         Document C++ namespace mode.
23524         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23525
23526         wctype: Avoid #define replacements in C++ mode.
23527         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23528         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23529         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23530         In C++, define a namespaced alias symbol.
23531         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23532         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23533         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23534         rule.
23535
23536         wchar: Avoid #define replacements in C++ mode.
23537         * lib/wchar.in.h: Include c++defs.h.
23538         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23539         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23540         symbol.
23541         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23542         * modules/wchar (Depends-on): Add c++defs.
23543         (Makefile.am): Update wchar.h rule.
23544
23545         unistd: Avoid #define replacements in C++ mode.
23546         * lib/unistd.in.h: Include c++defs.h.
23547         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23548         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23549         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23550         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23551         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23552         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23553         symbol.
23554         (environ): Update.
23555         * modules/unistd (Depends-on): Add c++defs.
23556         (Makefile.am): Update unistd.h rule.
23557
23558         time: Avoid #define replacements in C++ mode.
23559         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23560         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23561         define a namespaced alias symbol.
23562         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23563         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23564         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23565         * modules/time (Depends-on): Add c++defs, warn-on-use.
23566         (Makefile.am): Update time.h rule.
23567         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23568         * modules/nanosleep (configure.ac): Likewise.
23569         * modules/strptime (configure.ac): Likewise.
23570         * modules/timegm (configure.ac): Likewise.
23571
23572         sys_time: Avoid #define replacements in C++ mode.
23573         * lib/sys_time.in.h: Include c++defs.h.
23574         (gettimeofday): In C++, define a namespaced alias symbol.
23575         * modules/sys_time (Depends-on): Add c++defs.
23576         (Makefile.am): Update sys/time.h rule.
23577
23578         sys_stat: Avoid #define replacements in C++ mode.
23579         * lib/sys_stat.in.h: Include c++defs.h.
23580         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23581         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23582         namespaced alias symbol.
23583         In C++, define a namespaced alias symbol.
23584         * modules/sys_stat (Depends-on): Add c++defs.
23585         (Makefile.am): Update sys/stat.h rule.
23586
23587         sys_socket: Avoid #define replacements in C++ mode.
23588         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23589         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23590         definitions also when the system has a <sys/socket.h>.
23591         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23592         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23593         In C++, define a namespaced alias symbol.
23594         * modules/sys_socket (Depends-on): Add c++defs.
23595         (Makefile.am): Update sys/socket.h rule.
23596
23597         sys_select: Avoid #define replacements in C++ mode.
23598         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23599         definitions also when the system has a <sys/select.h>.
23600         (select): In C++, define a namespaced alias symbol.
23601         * modules/sys_select (Depends-on): Add c++defs.
23602         (Makefile.am): Update sys/select.h rule.
23603
23604         sys_ioctl: Avoid #define replacements in C++ mode.
23605         * lib/sys_ioctl.in.h: Include c++defs.h.
23606         (ioctl): In C++, define a namespaced alias symbol.
23607         * modules/sys_ioctl (Depends-on): Add c++defs.
23608         (Makefile.am): Update sys/ioctl.h rule.
23609
23610         string: Avoid #define replacements in C++ mode.
23611         * lib/string.in.h: Include c++defs.h.
23612         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23613         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23614         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23615         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23616         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23617         * modules/string (Depends-on): Add c++defs.
23618         (Makefile.am): Update string.h rule.
23619
23620         stdlib: Avoid #define replacements in C++ mode.
23621         * lib/stdlib.in.h: Include c++defs.h.
23622         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23623         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23624         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23625         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23626         symbol.
23627         * modules/stdlib (Depends-on): Add c++defs.
23628         (Makefile.am): Update stdlib.h rule.
23629
23630         stdio: Avoid #define replacements in C++ mode.
23631         * lib/stdio.in.h: Include c++defs.h.
23632         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23633         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23634         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23635         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23636         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23637         namespaced alias symbol.
23638         * modules/stdio (Depends-on): Add c++defs.
23639         (Makefile.am): Update stdio.h rule.
23640
23641         spawn: Avoid #define replacements in C++ mode.
23642         * lib/spawn.in.h: Include c++defs.h.
23643         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23644         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23645         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23646         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23647         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23648         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23649         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23650         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23651         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23652         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23653         In C++, define a namespaced alias symbol.
23654         * modules/spawn (Depends-on): Add c++defs.
23655         (Makefile.am): Update spawn.h rule.
23656
23657         signal: Avoid #define replacements in C++ mode.
23658         * lib/signal.in.h: Include c++defs.h.
23659         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23660         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23661         namespaced alias symbol.
23662         * modules/signal (Depends-on): Add c++defs.
23663         (Makefile.am): Update signal.h rule.
23664
23665         search: Avoid #define replacements in C++ mode.
23666         * lib/search.in.h: Include c++defs.h.
23667         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23668         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23669         symbol.
23670         * modules/search (Depends-on): Add c++defs.
23671         (Makefile.am): Update search.h rule.
23672
23673         math: Avoid #define replacements in C++ mode.
23674         * lib/math.in.h: Include c++defs.h.
23675         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23676         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23677         trunc, truncl): In C++, define a namespaced alias symbol.
23678         * modules/math (Depends-on): Add c++defs.
23679         (Makefile.am): Update math.h rule.
23680
23681         locale: Avoid #define replacements in C++ mode.
23682         * lib/locale.in.h: Include c++defs.h.
23683         (duplocale): In C++, define a namespaced alias symbol.
23684         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23685         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23686         * modules/locale (Depends-on): Add c++defs.
23687         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23688
23689         langinfo: Avoid #define replacements in C++ mode.
23690         * lib/langinfo.in.h: Include c++defs.h.
23691         (nl_langinfo): In C++, define a namespaced alias symbol.
23692         * modules/langinfo (Depends-on): Add c++defs.
23693         (Makefile.am): Update langinfo.h rule.
23694
23695         iconv-h: Avoid #define replacements in C++ mode.
23696         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23697         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23698         symbol.
23699         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23700         whenever iconv is present.
23701         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23702         (Makefile.am): Update iconv.h rule.
23703
23704         glob: Avoid #define replacements in C++ mode.
23705         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23706         (_gl_glob_errfunc_fn): New type.
23707         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23708         symbol.
23709         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23710         (Makefile.am): Update glob.h rule.
23711
23712         fcntl-h: Avoid #define replacements in C++ mode.
23713         * lib/fcntl.in.h: Include c++defs.h.
23714         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23715         * modules/fcntl-h (Depends-on): Add c++defs.
23716         (Makefile.am): Update fcntl.h rule.
23717
23718         dirent: Avoid #define replacements in C++ mode.
23719         * lib/dirent.in.h: Include c++defs.h.
23720         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23721         namespaced alias symbol.
23722         (dirfd): Update declaration.
23723         * modules/dirent (Depends-on): Add c++defs.
23724         (Makefile.am): Update dirent.h rule.
23725
23726         ctype: Make it usable in C++ code.
23727         * lib/ctype.in.h: Include c++defs.h.
23728         (isblank): Declare as extern "C".
23729         * modules/ctype (Depends-on): Add c++defs.
23730         (Makefile.am): Update ctype.h rule.
23731
23732         New module 'c++defs'.
23733         * modules/c++defs: New file.
23734         * build-aux/c++defs.h: New file.
23735         Reported by John W. Eaton <jwe@gnu.org>.
23736
23737 2010-03-07  Bruno Haible  <bruno@clisp.org>
23738
23739         logb: Provide missing declaration for Cygwin.
23740         * lib/math.in.h (logb): New declaration.
23741         * m4/logb.m4: New file.
23742         * modules/logb (Files): Add m4/logb.m4.
23743         (Depends-on): Add math.
23744         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23745         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23747         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23748         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23749
23750 2010-03-07  Bruno Haible  <bruno@clisp.org>
23751
23752         Fix test-cond link error.
23753         * tests/test-cond.c: Include <stdio.h>.
23754
23755 2010-03-07  Bruno Haible  <bruno@clisp.org>
23756
23757         Fix test-dirent-safer link error.
23758         * modules/dirent-safer-tests (Makefile.am): Define
23759         test_dirent_safer_LDADD.
23760
23761 2010-03-07  Bruno Haible  <bruno@clisp.org>
23762
23763         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23764         among default module list.
23765
23766 2010-03-07  Bruno Haible  <bruno@clisp.org>
23767
23768         Fix link error on platforms with GNU libiconv.
23769         * modules/unistr/u8-strcoll-tests (Makefile): Define
23770         test_u8_strcoll_LDADD.
23771         * modules/unistr/u16-strcoll-tests (Makefile): Define
23772         test_u16_strcoll_LDADD.
23773         * modules/unistr/u32-strcoll-tests (Makefile): Define
23774         test_u32_strcoll_LDADD.
23775
23776 2010-03-07  Bruno Haible  <bruno@clisp.org>
23777
23778         Use POSIX declarations for socket functions.
23779         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23780         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23781         rpl_sendto): Change declaration to match POSIX.
23782         * lib/connect.c (rpl_connect): Likewise.
23783         * lib/accept.c (rpl_accept): Likewise.
23784         * lib/bind.c (rpl_bind): Likewise.
23785         * lib/getpeername.c (rpl_getpeername): Likewise.
23786         * lib/getsockname.c (rpl_getsockname): Likewise.
23787         * lib/recv.c (rpl_recv): Likewise.
23788         * lib/send.c (rpl_send): Likewise.
23789         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23790         * lib/sendto.c (rpl_sendto): Likewise.
23791
23792 2010-03-06  Bruno Haible  <bruno@clisp.org>
23793
23794         Clarify access, euidaccess, faccessat.
23795         * doc/posix-functions/faccessat.texi: Mention security problem under
23796         "Other problems", not "Portability problems".
23797         * doc/posix-functions/access.texi: Likewise. Mention a related security
23798         problem.
23799         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23800         * lib/euidaccess.c: Add comments about platforms.
23801         * lib/unistd.in.h (access, euidaccess): Add warnings.
23802
23803 2010-03-07  Bruno Haible  <bruno@clisp.org>
23804
23805         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23806         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23807         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23808         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23809         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23810         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23811         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23812         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23813         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23815         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23816         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23817         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23818         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23819         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23820         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23821         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23822         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23823         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23824         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23825         Likewise.
23826         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23827         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23828         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23829         Likewise.
23830         * tests/test-spawn.c (main): Make it work when
23831         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23832
23833 2010-03-07  Bruno Haible  <bruno@clisp.org>
23834
23835         Fix incorrect Makefile.am generation in German locale.
23836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23837         Execute sed command with character range in C locale.
23838
23839 2010-03-06  Bruno Haible  <bruno@clisp.org>
23840
23841         Tests for module 'iconv-h'.
23842         * modules/iconv-h-tests: New file.
23843         * tests/test-iconv-h.c: New file.
23844
23845         New module 'iconv-h'.
23846         * modules/iconv-h: New file.
23847         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23848         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23849         (configure.ac): Remove gl_ICONV_H.
23850         (Makefile.am): Remove rule for iconv.h.
23851
23852 2010-03-06  Bruno Haible  <bruno@clisp.org>
23853
23854         More consistent naming of *.m4 files.
23855         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23856         * modules/wctype (Files): Update.
23857
23858         More consistent naming of *.m4 files.
23859         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23860         * modules/wchar (Files): Update.
23861
23862 2010-03-06  Jim Meyering  <meyering@redhat.com>
23863
23864         euidaccess: relax license to LGPLv2+
23865         * modules/euidaccess (License): Relax to LGPLv2+.
23866
23867 2010-03-06  Bruno Haible  <bruno@clisp.org>
23868
23869         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23870         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23871         (Makefile.am): Augment lib_SOURCES instead.
23872
23873 2010-03-04  Jim Meyering  <meyering@redhat.com>
23874
23875         utime: remove obsolete module
23876         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23877         unnecessary for years, and has been marked as obsolete for 10 months.
23878         * modules/utime: Remove file.
23879         * lib/utime.c: Remove file.
23880         * m4/utime.m4: Remove file.
23881         * m4/utimes-null.m4: Remove file.
23882         * doc/posix-functions/utime.texi (utime): Remove reference to
23883         the module.  Move the sole "fixed by gnulib" item into the
23884         "problems not fixed by Gnulib" list.
23885         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23886
23887 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23888
23889         * modules/exit (License): Relax license to LGPLv2+.
23890         (Status): Mark as obsolete.
23891         * NEWS: Mention deprecated 'exit' module.
23892         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23893         of now obsolete 'exit'.
23894
23895 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23896
23897         fts-lgpl: remove unused module
23898         * modules/fts-lgpl: Remove.
23899         * MODULES.html.sh (func_all_modules): Adjust.
23900         * check-module (find_included_lib_files): Adjust.
23901         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23902
23903 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23904
23905         copy-acl: enhance Solaris ACL error handling
23906         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23907         * lib/set-mode-acl.c (qset_acl): Likewise.
23908
23909 2010-03-02  Bruno Haible  <bruno@clisp.org>
23910
23911         spawn: Don't override the system defined values on FreeBSD 8.
23912         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23913         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23914         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23915         if HAVE_POSIX_SPAWN is 1.
23916         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23917
23918 2010-03-01  Bruno Haible  <bruno@clisp.org>
23919
23920         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23921         regarding Automake.
23922
23923 2010-02-25  Bruno Haible  <bruno@clisp.org>
23924
23925         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23926         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23927         setting, not afterwards.
23928         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23929
23930 2010-02-24  Eric Blake  <eblake@redhat.com>
23931
23932         bootstrap, git-version-gen: use timestamp
23933         * build-aux/git-version-gen (scriptversion): Force UTC.
23934         * build-aux/bootstrap (scriptversion): New variable.
23935
23936         bootstrap: allow older git
23937         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23938         older than 1.6.4.  Requested by the libvirt project.
23939
23940 2010-02-23  Eric Blake  <eblake@redhat.com>
23941
23942         warn-on-use: work with old autoconf
23943         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23944         AS_VAR semantics of autoconf 2.60.
23945         Reported by Bruno Haible.
23946
23947         bootstrap: improve some comments
23948         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23949         clarification comments.
23950
23951         gettimeofday: provide correct function
23952         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23953         when replacement is declared, otherwise provide gettimeofday.
23954         Reported by Michael Goffioul.
23955
23956 2010-02-23  Jim Meyering  <meyering@redhat.com>
23957
23958         lib-ignore: relax license to "unlimited", not LGPLv2+
23959         * modules/lib-ignore (License): Relax to "unlimited".
23960
23961 2010-02-23  Jim Meyering  <meyering@redhat.com>
23962
23963         lib-ignore: relax license to LGPLv2+
23964         * modules/lib-ignore (License): Relax to LGPLv2+.
23965
23966 2010-02-22  Eric Blake  <eblake@redhat.com>
23967
23968         lseek: avoid bash 3.2 broken pipe bug
23969         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23970         warning from bash 3.2.
23971         Reported by Ben Pfaff, with analysis from Bruno Haible.
23972
23973         bootstrap: support non-FSF copyright holder
23974         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23975         bootstrap.conf override of COPYRIGHT_HOLDER.
23976         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23977
23978         bootstrap: interoperate with gettext 0.14.1
23979         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23980
23981         bootstrap: allow for alternate submodule location
23982         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23983         hardcoding submodule location.
23984         (gnulib_mk): Allow direct use of Makefile.am.
23985
23986         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23987         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23988         rather than reconfiguring where the submodule points.
23989
23990         gettimeofday: restore support for platforms that lack function
23991         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23992         replacement if function is missing.
23993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23994         * modules/sys_time (Makefile.am): Substitute it.
23995         * lib/sys_time.in.h (gettimeofday): Check it.
23996         Reported by Michael Goffioul.
23997
23998 2010-02-21  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/stdio.in.h (obstack_printf): Fix typo.
24001
24002 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24003
24004         vc-list-files: use bzr ls's -R option
24005         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24006         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24007
24008 2010-02-21  Jim Meyering  <meyering@redhat.com>
24009
24010         init.sh: fix EXEEXT shims to work also for names like test-prog
24011         * tests/init.sh: Re-exec a better shell, when needed.
24012         If the current shell lacks support for posix $(...), an init.sh-using
24013         test will now try to find a shell that supports that.  If EXEEXT is
24014         nonempty, we also require support for hyphen-in-alias-name and shell
24015         substitutions like ${var#glob}.  Failure to find such a shell results
24016         in a skipped test.
24017
24018 2010-02-21  Bruno Haible  <bruno@clisp.org>
24019
24020         Really work around around "broken pipe" error message from bash 3.2.
24021         * gnulib-tool (func_reset_sigpipe): Remove function.
24022         (echo): In bash 3.2, define to a function that uses printf.
24023         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24024
24025 2010-02-20  Bruno Haible  <bruno@clisp.org>
24026
24027         Restore support for automake 1.9.6 with autoconf 2.61.
24028         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24029         Reported by James Youngman <jay@gnu.org>.
24030
24031 2010-02-20  Bruno Haible  <bruno@clisp.org>
24032
24033         Improve *printf warning condition.
24034         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24035         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24036         and the function is overridden due to SIGPIPE emulation.
24037
24038 2010-02-20  Bruno Haible  <bruno@clisp.org>
24039
24040         * lib/stdio.in.h: Tweak comments.
24041
24042 2010-02-19  Bruno Haible  <bruno@clisp.org>
24043
24044         Make it easier to find modules. New gnulib-tool option '--find'.
24045         * gnulib-tool: New option --find.
24046         (func_usage): Document it.
24047         (func_sanitize_modulelist): New function, extracted from
24048         func_all_modules.
24049         (func_all_modules): Invoke it.
24050         * doc/gnulib-tool.texi (Which modules?): New node.
24051
24052 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24053
24054         * lib/sys_select.in.h: Provide select replacement even if
24055         sys/select.h exists on a system, for Interix.
24056
24057 2010-02-18  Jim Meyering  <meyering@redhat.com>
24058
24059         init.sh: don't use $(...) just yet
24060         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24061         to accommodate e.g., Solaris' /bin/sh.
24062
24063 2010-02-17  Bruno Haible  <bruno@clisp.org>
24064
24065         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24066         Reported by Ludovic Courtès <ludo@gnu.org>.
24067
24068 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24069
24070         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24071         linking with -lintl.
24072
24073 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24074
24075         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24076         if not provided by the system's netdb.h.  Reported by
24077         ludo@gnu.org (Ludovic Courtès).
24078
24079 2010-02-15  Jim Meyering  <meyering@redhat.com>
24080
24081         init.sh: improve portability and efficiency
24082         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24083         "dummy" in a for loop.
24084         Use '!', not '^' to select the complement of a character set used
24085         in a "case" statement.
24086         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24087         Suggestions from Eric Blake.
24088
24089         init.sh: automatically accommodate programs with the .exe suffix
24090         Automatically arrange for an invocation of "prog" to execute the
24091         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24092         may use the simpler "prog", yet still work when built on a system
24093         that requires specifying the added suffix.
24094         Do this by constructing a function named "prog" that invokes
24095         "prog.exe" for each .exe file in selected directories.
24096         * tests/init.sh (find_exe_basenames_): New function.
24097         (create_exe_shim_functions_): New function.
24098         (path_prepend_): Use it.
24099
24100         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24101         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24102         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24103
24104 2010-02-14  Jim Meyering  <meyering@redhat.com>
24105
24106         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24107         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24108         (sc_prohibit_hash_pjw_without_use): New rule.
24109
24110         maint.mk: allow the default upload destination dir to be overridden
24111         * top/maint.mk (upload_dest_dir_): Define with a default that
24112         preserves the status quo.
24113         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24114         Reported by Peter Simons.
24115
24116         maint.mk: prohibit inclusion of "hash.h" without_use
24117         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24118
24119 2010-02-10  Jim Meyering  <meyering@redhat.com>
24120
24121         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24122         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24123
24124 2010-02-09  Eric Blake  <ebb9@byu.net>
24125         and Bruno Haible  <bruno@clisp.org>
24126
24127         obstack-printf-posix: ensure declaration
24128         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24129         extracted from gl_FUNC_OBSTACK_PRINTF.
24130         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24131         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24132         Likewise.
24133         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24134         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24135         0.
24136
24137 2010-02-08  Bruno Haible  <bruno@clisp.org>
24138
24139         gnulib-tool: Fix typo in 2010-02-07 commit.
24140         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24141         Reported by Eric Blake.
24142
24143 2010-02-07  Bruno Haible  <bruno@clisp.org>
24144
24145         gnulib-tool: Fix up caching patches.
24146         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24147         option --no-cache. Use associative arrays when supported by the shell.
24148         (sed_comments): New variable.
24149         (modcache): Renamed from do_cache.
24150         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24151         abbreviate unnecessarily.
24152         (have_associative): New variable.
24153         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24154         way also for ksh and zsh.
24155         (func_init_sed_convert_to_cache_statements): New function, extracted
24156         from func_cache_lookup_module. Add support for associative arrays.
24157         Don't set the c_MODULE_cached variable here. Ignore all lines before
24158         the first field header. Remove only the final newline, not all trailing
24159         newlines. Support empty fields correctly. Limit the use of 'eval' to
24160         assignments.
24161         (func_get_description, func_get_status, func_get_notice,
24162         func_get_applicability, func_get_filelist, func_get_dependencies,
24163         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24164         func_get_automake_snippet, func_get_include_directive,
24165         func_get_link_directive, func_get_license, func_get_maintainer):
24166         Update documentation. List the unoptimized code first. Add support for
24167         associative arrays. Limit the use of 'eval' to assignments.
24168         (func_get_applicability): Undo stylistic pessimisations.
24169         (func_get_automake_snippet, func_get_include_directive): Reduce code
24170         duplication.
24171         (func_modules_transitive_closure, func_modules_add_dummy,
24172         func_modules_notice, func_modules_to_filelist, func_add_file,
24173         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24174         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24175         func_create_testdir, func_create_megatestdir): Update documentation.
24176
24177 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24178
24179         * gnulib-tool (func_cache_lookup_module): Store the module name
24180         belonging to the cache variable; error out if two different
24181         module names map to the same cache variable name.
24182
24183 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24184
24185         gnulib-tool: Make caching optional.
24186         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24187         Update matching short versions of --no-changelog.
24188         (func_usage): Update.
24189         (sed_extract_cache_prog): Renamed from ...
24190         (sed_extract_prog): ... this; revert to old extraction script.
24191         (func_get_description, func_get_status)
24192         (func_get_notice, func_get_applicability, func_get_filelist)
24193         (func_get_dependencies, func_get_autoconf_early_snippet)
24194         (func_get_autoconf_snippet, func_get_automake_snippet)
24195         (func_get_include_directive, func_get_link_directive)
24196         (func_get_license, func_get_maintainer): If $do_cache is false,
24197         use old, non-caching extraction scripts.
24198         Suggestion by Bruno Haible.
24199
24200 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24201
24202         gnulib-tool: cache module metainformation.
24203         * gnulib-tool (sed_extract_prog): Match newline before each
24204         header, and rewrite header to a shell variable suffix.
24205         (func_cache_var, func_cache_lookup_module): New functions,
24206         to turn a module name into a cache variable prefix, and to
24207         look up and cache module metainformation.
24208         (func_get_description, func_get_status)
24209         (func_get_notice, func_get_applicability, func_get_filelist)
24210         (func_get_dependencies, func_get_autoconf_early_snippet)
24211         (func_get_autoconf_snippet, func_get_automake_snippet)
24212         (func_get_include_directive, func_get_link_directive)
24213         (func_get_license, func_get_maintainer): Use
24214         func_cache_lookup_module.
24215
24216 2010-02-07  Bruno Haible  <bruno@clisp.org>
24217
24218         fnctl: Fix missing dependency.
24219         * modules/fcntl (Depends-on): Add getdtablesize.
24220         Reported by John W. Eaton <jwe@gnu.org>.
24221
24222 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24223
24224         Argp: fix recognition of short alias options.
24225
24226         * lib/argp-parse.c (convert_options): Fix improper use of
24227         `|' between character values.
24228         * tests/test-argp.c (group1_option): New alias option
24229         --read (-r).
24230         (group1_parser): Special handling for 'r'.
24231         (test15): New test case.
24232         (test_fun): Add test15.
24233         * tests/test-argp-2.sh: Update expected --help and --usage
24234         outputs.
24235
24236 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24237
24238         * tests/test-argp.c: Fix indentation.
24239
24240 2010-02-04  Eric Blake  <ebb9@byu.net>
24241
24242         gettimeofday: expose type of second argument
24243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24244         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24245         * tests/test-gettimeofday.c: Use it to silence warning.
24246         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24247         the issue.
24248
24249 2010-02-03  Jim Meyering  <meyering@redhat.com>
24250
24251         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24252         * lib/regcomp.c (TYPE_SIGNED): Define.
24253         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24254
24255         regcomp.c: avoid a new -Wshadow warning
24256         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24257
24258 2010-02-01  Jim Meyering  <meyering@redhat.com>
24259
24260         removing useless parentheses in cpp #define directives
24261         For motivation, see commit c0221df4, "define STREQ(a,b)
24262         consistently, removing useless parentheses"
24263         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24264         * lib/mountlist.c (MNT_IGNORE): Likewise.
24265         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24266
24267 2010-02-01  Eric Blake  <ebb9@byu.net>
24268
24269         sys_time: use link-warning
24270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24271         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24272         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24273         * modules/sys_time (Depends-on): Add warn-on-use.
24274         (Makefile.am): Always build replacement.
24275         (configure.ac): Update substitutions.
24276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24277         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24278         bother with SYS_TIME_H.
24279         * modules/gettimeofday (configure.ac): Declare indicator.
24280         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24281         in use.
24282
24283         closein-tests: silence compiler warning
24284         * tests/test-closein.c (main): Ignore fread result.
24285         * modules/closein-tests (Depends-on): Add ignore-value.
24286
24287         tests: silence warning about system return
24288         * tests/test-areadlink-with-size.c (main): Ignore system result.
24289         * tests/test-areadlink.c (main): Likewise.
24290         * tests/test-areadlinkat-with-size.c (main): Likewise.
24291         * tests/test-areadlinkat.c (main): Likewise.
24292         * tests/test-canonicalize-lgpl.c (main): Likewise.
24293         * tests/test-canonicalize.c (main): Likewise.
24294         * tests/test-chown.c (main): Likewise.
24295         * tests/test-fchownat.c (main): Likewise.
24296         * tests/test-fdutimensat.c (main): Likewise.
24297         * tests/test-fstatat.c (main): Likewise.
24298         * tests/test-futimens.c (main): Likewise.
24299         * tests/test-lchown.c (main): Likewise.
24300         * tests/test-link.c (main): Likewise.
24301         * tests/test-linkat.c (main): Likewise.
24302         * tests/test-lstat.c (main): Likewise.
24303         * tests/test-mkdir.c (main): Likewise.
24304         * tests/test-mkdirat.c (main): Likewise.
24305         * tests/test-mkfifo.c (main): Likewise.
24306         * tests/test-mkfifoat.c (main): Likewise.
24307         * tests/test-mknod.c (main): Likewise.
24308         * tests/test-readlink.c (main): Likewise.
24309         * tests/test-remove.c (main): Likewise.
24310         * tests/test-rename.c (main): Likewise.
24311         * tests/test-renameat.c (main): Likewise.
24312         * tests/test-rmdir.c (main): Likewise.
24313         * tests/test-symlink.c (main): Likewise.
24314         * tests/test-symlinkat.c (main): Likewise.
24315         * tests/test-unlink.c (main): Likewise.
24316         * tests/test-unlinkat.c (main): Likewise.
24317         * tests/test-utimens.c (main): Likewise.
24318         * tests/test-utimensat.c (main): Likewise.
24319         * modules/areadlink-tests (Depends-on): Add ignore-value.
24320         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24321         * modules/areadlinkat-tests (Depends-on): Likewise.
24322         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24323         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24324         * modules/canonicalize-tests (Depends-on): Likewise.
24325         * modules/chown-tests (Depends-on): Likewise.
24326         * modules/fdutimensat-tests (Depends-on): Likewise.
24327         * modules/futimens-tests (Depends-on): Likewise.
24328         * modules/lchown-tests (Depends-on): Likewise.
24329         * modules/link-tests (Depends-on): Likewise.
24330         * modules/linkat-tests (Depends-on): Likewise.
24331         * modules/lstat-tests (Depends-on): Likewise.
24332         * modules/mkdir-tests (Depends-on): Likewise.
24333         * modules/mkfifo-tests (Depends-on): Likewise.
24334         * modules/mkfifoat-tests (Depends-on): Likewise.
24335         * modules/mknod-tests (Depends-on): Likewise.
24336         * modules/openat-tests (Depends-on): Likewise.
24337         * modules/readlink-tests (Depends-on): Likewise.
24338         * modules/remove-tests (Depends-on): Likewise.
24339         * modules/rename-tests (Depends-on): Likewise.
24340         * modules/renameat-tests (Depends-on): Likewise.
24341         * modules/rmdir-tests (Depends-on): Likewise.
24342         * modules/symlink-tests (Depends-on): Likewise.
24343         * modules/symlinkat-tests (Depends-on): Likewise.
24344         * modules/unlink-tests (Depends-on): Likewise.
24345         * modules/utimens-tests (Depends-on): Likewise.
24346         * modules/utimensat-tests (Depends-on): Likewise.
24347
24348 2010-01-31  Bruno Haible  <bruno@clisp.org>
24349
24350         Perform the same test for many <math.h> functions.
24351         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24352         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24353         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24354         of gl_MATHFUNC.
24355         * modules/acos (configure.ac): Likewise.
24356         * modules/asin (configure.ac): Likewise.
24357         * modules/atan (configure.ac): Likewise.
24358         * modules/atan2 (configure.ac): Likewise.
24359         * modules/cbrt (configure.ac): Likewise.
24360         * modules/copysign (configure.ac): Likewise.
24361         * modules/cos (configure.ac): Likewise.
24362         * modules/cosh (configure.ac): Likewise.
24363         * modules/erf (configure.ac): Likewise.
24364         * modules/erfc (configure.ac): Likewise.
24365         * modules/exp (configure.ac): Likewise.
24366         * modules/fmod (configure.ac): Likewise.
24367         * modules/hypot (configure.ac): Likewise.
24368         * modules/j0 (configure.ac): Likewise.
24369         * modules/j1 (configure.ac): Likewise.
24370         * modules/jn (configure.ac): Likewise.
24371         * modules/lgamma (configure.ac): Likewise.
24372         * modules/log (configure.ac): Likewise.
24373         * modules/log10 (configure.ac): Likewise.
24374         * modules/log1p (configure.ac): Likewise.
24375         * modules/pow (configure.ac): Likewise.
24376         * modules/remainder (configure.ac): Likewise.
24377         * modules/sin (configure.ac): Likewise.
24378         * modules/sinh (configure.ac): Likewise.
24379         * modules/tan (configure.ac): Likewise.
24380         * modules/tanh (configure.ac): Likewise.
24381         * modules/y0 (configure.ac): Likewise.
24382         * modules/y1 (configure.ac): Likewise.
24383         * modules/yn (configure.ac): Likewise.
24384         Suggested by Paolo Bonzini.
24385
24386 2010-01-31  Bruno Haible  <bruno@clisp.org>
24387
24388         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24389
24390 2010-01-31  Bruno Haible  <bruno@clisp.org>
24391
24392         Work around getdelim() bug on FreeBSD 8.0.
24393         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24394         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24395         not work.
24396         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24397         is 1.
24398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24399         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24400         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24401         a non-zero size.
24402         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24403
24404 2010-01-31  Bruno Haible  <bruno@clisp.org>
24405
24406         Work around getline() bug on FreeBSD 8.0.
24407         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24408         and a non-zero size.
24409         * tests/test-getline.c (main): Likewise.
24410         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24411         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24412
24413 2010-01-28  Eric Blake  <ebb9@byu.net>
24414
24415         regex: fix build failure
24416         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24417         platforms.
24418
24419 2010-01-28  Jim Meyering  <meyering@redhat.com>
24420
24421         regex: do not ignore memory allocation failure
24422         * lib/regex_internal.c (create_cd_newstate): Detect
24423         re_node_set_init_copy failure.   Extracted from glibc commit
24424         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24425
24426         regex: sync more white-space changes from libc
24427         * lib/regex_internal.c: White-space only changes.
24428         * lib/regexec.c: Likewise.
24429
24430         regex: add many uses of __attribute_warn_unused_result__
24431         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24432         * lib/regexec.c: Likewise.
24433         Extracted from a messy glibc commit.
24434
24435         regcomp.c: spelling and merge-artifact from glibc
24436         * lib/regcomp.c: Merge remainder of glibc's
24437         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24438
24439         regcomp.c: sync white-space changes from glibc
24440         * lib/regcomp.c: Merge to accommodate white space
24441         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24442
24443         regcomp.c: do not ignore internal return values
24444         * lib/regcomp.c: Do not ignore internal return values.
24445         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24446         but without its white-space changes and spelling fixes.
24447
24448         regex_internal.h: define __attribute_warn_unused_result__
24449         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24450
24451         maint: add a syntax-check rule to check for vulnerable Makefile.in
24452         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24453
24454 2010-01-27  Jim Meyering  <meyering@redhat.com>
24455
24456         ncftpput-ftp: clean up spaces
24457         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24458         Remove trailing blanks.
24459
24460 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24461
24462         * build-aux/git-version-gen: Fix copyright statement.
24463         * build-aux/gnupload: Likewise.
24464         * tests/test-arcfour.c: Likewise.
24465         * tests/test-arctwo.c: Likewise.
24466         * tests/test-count-one-bits.c: Likewise.
24467         * tests/test-crc.c: Likewise.
24468         * tests/test-des.c: Likewise.
24469         * tests/test-gc-arcfour.c: Likewise.
24470         * tests/test-gc-arctwo.c: Likewise.
24471         * tests/test-gc-des.c: Likewise.
24472         * tests/test-gc-hmac-md5.c: Likewise.
24473         * tests/test-gc-hmac-sha1.c: Likewise.
24474         * tests/test-gc-md2.c: Likewise.
24475         * tests/test-gc-md4.c: Likewise.
24476         * tests/test-gc-md5.c: Likewise.
24477         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24478         * tests/test-gc-rijndael.c: Likewise.
24479         * tests/test-gc-sha1.c: Likewise.
24480         * tests/test-gc.c: Likewise.
24481         * tests/test-gethostname.c: Likewise.
24482         * tests/test-gettimeofday.c: Likewise.
24483         * tests/test-hash.c: Likewise.
24484         * tests/test-hmac-md5.c: Likewise.
24485         * tests/test-hmac-sha1.c: Likewise.
24486         * tests/test-md2.c: Likewise.
24487         * tests/test-md4.c: Likewise.
24488         * tests/test-md5.c: Likewise.
24489         * tests/test-memchr.c: Likewise.
24490         * tests/test-memchr2.c: Likewise.
24491         * tests/test-memcmp.c: Likewise.
24492         * tests/test-memmem.c: Likewise.
24493         * tests/test-memrchr.c: Likewise.
24494         * tests/test-rawmemchr.c: Likewise.
24495         * tests/test-read-file.c: Likewise.
24496         * tests/test-rijndael.c: Likewise.
24497         * tests/test-sockets.c: Likewise.
24498         * tests/test-strchrnul.c: Likewise.
24499         * tests/test-strstr.c: Likewise.
24500         * tests/test-strtod.c: Likewise.
24501         * build-aux/ncftpput-ftp: Likewise.
24502
24503 2010-01-26  Eric Blake  <ebb9@byu.net>
24504
24505         ignore-value: update recommended header name
24506         * modules/ignore-value (Include): Only use <> for headers that
24507         exist in glibc.
24508
24509 2010-01-26  Jim Meyering  <meyering@redhat.com>
24510
24511         test-userspec.c: avoid compiler warnings
24512         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24513         and "initialization discards qualifiers..." warnings.
24514         Put the first "uid" in its own scope, and make char* members "const".
24515
24516 2010-01-25  Bruno Haible  <bruno@clisp.org>
24517
24518         gnulib-tool: Make warning diagnostics consistent.
24519         * gnulib-tool (func_warning): New function.
24520         Use it everywhere where gnulib-tool produces output to stderr and it is
24521         not a fatal error.
24522
24523 2010-01-25  Bruno Haible  <bruno@clisp.org>
24524
24525         Fix test dependencies.
24526         * modules/xstrtol-tests (Depends-on): Add inttypes.
24527         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24528
24529 2010-01-25 Pádraig Brady <P@draigBrady.com>
24530
24531         syntax-check: detect incorrect boolean macro values in config.h
24532         * modules/maintainer-makefile (configure.ac): Parameterize the location
24533         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24534         The logic is from Eric Blake and the location indicated by Jim Meyering.
24535         Note the more natural CONFIG_HEADER name is prohibited by automake
24536         for backwards compatibility reasons.
24537         * top/maint.mk (sc_Wundef_boolean): New rule.
24538
24539 2010-01-25  Jim Meyering  <meyering@redhat.com>
24540
24541         bootstrap: detect MacOS 10.6's shasum, too
24542         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24543         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24544
24545 2010-01-23  Jim Meyering  <meyering@redhat.com>
24546
24547         xstrtoll: new module
24548         * modules/xstrtoll: New file.
24549         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24550         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24551         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24552         ./configure fails if you use this module and lack "long long".
24553         * modules/xstrtoll-tests: New module.
24554         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24555         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24556         new init.sh-based test framework.
24557
24558 2010-01-24  Bruno Haible  <bruno@clisp.org>
24559
24560         Tests for module 'yn'.
24561         * modules/yn-tests: New file.
24562         * tests/test-yn.c: New file.
24563
24564         Tests for module 'y1'.
24565         * modules/y1-tests: New file.
24566         * tests/test-y1.c: New file.
24567
24568         Tests for module 'y0'.
24569         * modules/y0-tests: New file.
24570         * tests/test-y0.c: New file.
24571
24572         Tests for module 'tanh'.
24573         * modules/tanh-tests: New file.
24574         * tests/test-tanh.c: New file.
24575
24576         Tests for module 'tan'.
24577         * modules/tan-tests: New file.
24578         * tests/test-tan.c: New file.
24579
24580         Tests for module 'sqrt'.
24581         * modules/sqrt-tests: New file.
24582         * tests/test-sqrt.c: New file.
24583
24584         Tests for module 'sinh'.
24585         * modules/sinh-tests: New file.
24586         * tests/test-sinh.c: New file.
24587
24588         Tests for module 'sin'.
24589         * modules/sin-tests: New file.
24590         * tests/test-sin.c: New file.
24591
24592         Tests for module 'rint'.
24593         * modules/rint-tests: New file.
24594         * tests/test-rint.c: New file.
24595
24596         Tests for module 'remainder'.
24597         * modules/remainder-tests: New file.
24598         * tests/test-remainder.c: New file.
24599
24600         Tests for module 'pow'.
24601         * modules/pow-tests: New file.
24602         * tests/test-pow.c: New file.
24603
24604         Tests for module 'nextafter'.
24605         * modules/nextafter-tests: New file.
24606         * tests/test-nextafter.c: New file.
24607
24608         Tests for module 'modf'.
24609         * modules/modf-tests: New file.
24610         * tests/test-modf.c: New file.
24611
24612         Tests for module 'logb'.
24613         * modules/logb-tests: New file.
24614         * tests/test-logb.c: New file.
24615
24616         Tests for module 'log1p'.
24617         * modules/log1p-tests: New file.
24618         * tests/test-log1p.c: New file.
24619
24620         Tests for module 'log10'.
24621         * modules/log10-tests: New file.
24622         * tests/test-log10.c: New file.
24623
24624         Tests for module 'log'.
24625         * modules/log-tests: New file.
24626         * tests/test-log.c: New file.
24627
24628         Tests for module 'lgamma'.
24629         * modules/lgamma-tests: New file.
24630         * tests/test-lgamma.c: New file.
24631
24632         Tests for module 'ldexp'.
24633         * modules/ldexp-tests: New file.
24634         * tests/test-ldexp.c: New file.
24635
24636         Tests for module 'jn'.
24637         * modules/jn-tests: New file.
24638         * tests/test-jn.c: New file.
24639
24640         Tests for module 'j1'.
24641         * modules/j1-tests: New file.
24642         * tests/test-j1.c: New file.
24643
24644         Tests for module 'j0'.
24645         * modules/j0-tests: New file.
24646         * tests/test-j0.c: New file.
24647
24648         Tests for module 'hypot'.
24649         * modules/hypot-tests: New file.
24650         * tests/test-hypot.c: New file.
24651
24652         Tests for module 'fmod'.
24653         * modules/fmod-tests: New file.
24654         * tests/test-fmod.c: New file.
24655
24656         Tests for module 'fabs'.
24657         * modules/fabs-tests: New file.
24658         * tests/test-fabs.c: New file.
24659
24660         Tests for module 'exp'.
24661         * modules/exp-tests: New file.
24662         * tests/test-exp.c: New file.
24663
24664         Tests for module 'erfc'.
24665         * modules/erfc-tests: New file.
24666         * tests/test-erfc.c: New file.
24667
24668         Tests for module 'erf'.
24669         * modules/erf-tests: New file.
24670         * tests/test-erf.c: New file.
24671
24672         Tests for module 'cosh'.
24673         * modules/cosh-tests: New file.
24674         * tests/test-cosh.c: New file.
24675
24676         Tests for module 'cos'.
24677         * modules/cos-tests: New file.
24678         * tests/test-cos.c: New file.
24679
24680         Tests for module 'copysign'.
24681         * modules/copysign-tests: New file.
24682         * tests/test-copysign.c: New file.
24683
24684         Tests for module 'cbrt'.
24685         * modules/cbrt-tests: New file.
24686         * tests/test-cbrt.c: New file.
24687
24688         Tests for module 'atan2'.
24689         * modules/atan2-tests: New file.
24690         * tests/test-atan2.c: New file.
24691
24692         Tests for module 'atan'.
24693         * modules/atan-tests: New file.
24694         * tests/test-atan.c: New file.
24695
24696         Tests for module 'asin'.
24697         * modules/asin-tests: New file.
24698         * tests/test-asin.c: New file.
24699
24700         Tests for module 'acos'.
24701         * modules/acos-tests: New file.
24702         * tests/test-acos.c: New file.
24703
24704 2010-01-24  Bruno Haible  <bruno@clisp.org>
24705
24706         Fix tests for common <math.h> functions.
24707         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24708         code snippet that references the function pointer, rather than merely
24709         calling the function. Substitute the FUNC_LIBM variable.
24710         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24711         * modules/acos (configure.ac): Likewise.
24712         * modules/asin (configure.ac): Likewise.
24713         * modules/atan (configure.ac): Likewise.
24714         * modules/atan2 (configure.ac): Likewise.
24715         * modules/cbrt (configure.ac): Likewise.
24716         * modules/copysign (configure.ac): Likewise.
24717         * modules/cos (configure.ac): Likewise.
24718         * modules/cosh (configure.ac): Likewise.
24719         * modules/erf (configure.ac): Likewise.
24720         * modules/erfc (configure.ac): Likewise.
24721         * modules/exp (configure.ac): Likewise.
24722         * modules/fabs (configure.ac): Likewise.
24723         * modules/fmod (configure.ac): Likewise.
24724         * modules/hypot (configure.ac): Likewise.
24725         * modules/j0 (configure.ac): Likewise.
24726         * modules/j1 (configure.ac): Likewise.
24727         * modules/jn (configure.ac): Likewise.
24728         * modules/ldexp (configure.ac): Likewise.
24729         * modules/lgamma (configure.ac): Likewise.
24730         * modules/log (configure.ac): Likewise.
24731         * modules/log10 (configure.ac): Likewise.
24732         * modules/log1p (configure.ac): Likewise.
24733         * modules/logb (configure.ac): Likewise.
24734         * modules/modf (configure.ac): Likewise.
24735         * modules/nextafter (configure.ac): Likewise.
24736         * modules/pow (configure.ac): Likewise.
24737         * modules/remainder (configure.ac): Likewise.
24738         * modules/rint (configure.ac): Likewise.
24739         * modules/sin (configure.ac): Likewise.
24740         * modules/sinh (configure.ac): Likewise.
24741         * modules/tan (configure.ac): Likewise.
24742         * modules/tanh (configure.ac): Likewise.
24743         * modules/y0 (configure.ac): Likewise.
24744         * modules/y1 (configure.ac): Likewise.
24745         * modules/yn (configure.ac): Likewise.
24746
24747 2010-01-24  Bruno Haible  <bruno@clisp.org>
24748
24749         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24750         * tests/test-acosl.c (x): New variable.
24751         (main): Store argument in x and fetch it from x.
24752         * tests/test-asinl.c (x): New variable.
24753         (main): Store argument in x and fetch it from x.
24754         * tests/test-atanl.c (x): New variable.
24755         (main): Store argument in x and fetch it from x.
24756         * tests/test-cosl.c (x): New variable.
24757         (main): Store argument in x and fetch it from x.
24758         * tests/test-expl.c (x): New variable.
24759         (main): Store argument in x and fetch it from x.
24760         * tests/test-logl.c (x): New variable.
24761         (main): Store argument in x and fetch it from x.
24762         * tests/test-sinl.c (x): New variable.
24763         (main): Store argument in x and fetch it from x.
24764         * tests/test-sqrtl.c (x): New variable.
24765         (main): Store argument in x and fetch it from x.
24766         * tests/test-tanl.c (x): New variable.
24767         (main): Store argument in x and fetch it from x.
24768
24769 2010-01-24  Bruno Haible  <bruno@clisp.org>
24770
24771         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24772         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24773         assignments to the initial TESTS_ENVIRONMENT.
24774         * doc/gnulib.texi (Unit test modules): Document it.
24775         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24776         TESTS_ENVIRONMENT.
24777         * modules/btowc-tests (Makefile.am): Likewise.
24778         * modules/c-stack-tests (Makefile.am): Likewise.
24779         * modules/c-strcase-tests (Makefile.am): Likewise.
24780         * modules/copy-file-tests (Makefile.am): Likewise.
24781         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24782         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24783         * modules/mbrtowc-tests (Makefile.am): Likewise.
24784         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24785         * modules/mbscasestr-tests (Makefile.am): Likewise.
24786         * modules/mbschr-tests (Makefile.am): Likewise.
24787         * modules/mbscspn-tests (Makefile.am): Likewise.
24788         * modules/mbsinit-tests (Makefile.am): Likewise.
24789         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24790         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24791         * modules/mbspbrk-tests (Makefile.am): Likewise.
24792         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24793         * modules/mbsrchr-tests (Makefile.am): Likewise.
24794         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24795         * modules/mbsspn-tests (Makefile.am): Likewise.
24796         * modules/mbsstr-tests (Makefile.am): Likewise.
24797         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24798         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24799         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24800         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24801         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24802         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24803         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24804         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24805         * modules/wcrtomb-tests (Makefile.am): Likewise.
24806         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24807         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24808         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24809         assignments from TESTS_ENVIRONMENT.
24810         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24811         augmentation.
24812         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24813         * modules/atexit-tests (Makefile.am): Likewise.
24814         * modules/binary-io-tests (Makefile.am): Likewise.
24815         * modules/closein-tests (Makefile.am): Likewise.
24816         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24817         * modules/exclude-tests (Makefile.am): Likewise.
24818         * modules/fflush-tests (Makefile.am): Likewise.
24819         * modules/fpending-tests (Makefile.am): Likewise.
24820         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24821         * modules/freadahead-tests (Makefile.am): Likewise.
24822         * modules/freadptr-tests (Makefile.am): Likewise.
24823         * modules/freadseek-tests (Makefile.am): Likewise.
24824         * modules/fseek-tests (Makefile.am): Likewise.
24825         * modules/fseeko-tests (Makefile.am): Likewise.
24826         * modules/ftell-tests (Makefile.am): Likewise.
24827         * modules/ftello-tests (Makefile.am): Likewise.
24828         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24829         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24830         * modules/lseek-tests (Makefile.am): Likewise.
24831         * modules/parse-duration-tests (Makefile.am): Likewise.
24832         * modules/perror-tests (Makefile.am): Likewise.
24833         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24834         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24835         * modules/pipe-tests (Makefile.am): Likewise.
24836         * modules/pread-tests (Makefile.am): Likewise.
24837         * modules/printf-posix-tests (Makefile.am): Likewise.
24838         * modules/select-tests (Makefile.am): Likewise.
24839         * modules/sigpipe-tests (Makefile.am): Likewise.
24840         * modules/tsearch-tests (Makefile.am): Likewise.
24841         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24842         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24843         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24844         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24845         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24846         * modules/version-etc-tests (Makefile.am): Likewise.
24847         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24848         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24849         * modules/xalloc-die-tests (Makefile.am): Likewise.
24850         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24851         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24852         * modules/xstrtol-tests (Makefile.am): Likewise.
24853         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24854         * modules/yesno-tests (Makefile.am): Likewise.
24855         Suggested by Jim Meyering.
24856
24857 2010-01-24  Bruno Haible  <bruno@clisp.org>
24858
24859         More documentation.
24860         * doc/gnulib.texi (Writing modules): New chapter.
24861         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24862         the new chapter.
24863
24864 2010-01-24  Jim Meyering  <meyering@redhat.com>
24865
24866         maint.mk: do not prepend "./" after filtering
24867         * top/maint.mk (_prepend_srcdir_prefix): New variable
24868         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24869         "./" when $(srcdir) is ".".
24870
24871         define STREQ(a,b) consistently, removing useless parentheses
24872         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24873         since the only risk is that "a" or "b" contains an unparenthesized
24874         comma, but if either did that, STREQ would have 3 or more arguments.
24875         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24876         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24877         * lib/hash-triple.c (STREQ): Likewise.
24878         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24879         * lib/getugroups.c (STREQ): Likewise.
24880
24881 2010-01-23  Jim Meyering  <meyering@redhat.com>
24882
24883         maint.mk: fix syntax-check in a non-srcdir build directory
24884         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24885         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24886
24887 2010-01-22  Jim Meyering  <meyering@redhat.com>
24888
24889         userspec: add unit tests
24890         * tests/test-userspec.c: New file.
24891         * modules/userspec-tests: Likewise.
24892
24893 2010-01-21  Jim Meyering  <meyering@redhat.com>
24894
24895         maint.mk: handle source file names containing "." robustly
24896         * top/maint.mk (_dot_escaped_srcdir): Define.
24897         (VC_LIST): Use it in LHS of sed substitution.
24898
24899 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24900
24901         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24902         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24903         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24904         from a non-srcdir build.
24905
24906 2010-01-20  Eric Blake  <ebb9@byu.net>
24907
24908         warn-on-use: use instead of link-warning
24909         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24910         * modules/unistd (Depends-on, Makefile.am): Likewise.
24911         * modules/arpa_inet (Depends-on): Replace link-warning with
24912         warn-on-use.
24913         (Makefile.am): Update rules accordingly.
24914         * modules/ctype (Depends-on, Makefile.am): Likewise.
24915         * modules/dirent (Depends-on, Makefile.am): Likewise.
24916         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24917         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24918         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24919         * modules/locale (Depends-on, Makefile.am): Likewise.
24920         * modules/math (Depends-on, Makefile.am): Likewise.
24921         * modules/search (Depends-on, Makefile.am): Likewise.
24922         * modules/signal (Depends-on, Makefile.am): Likewise.
24923         * modules/spawn (Depends-on, Makefile.am): Likewise.
24924         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24925         * modules/string (Depends-on, Makefile.am): Likewise.
24926         * modules/strings (Depends-on, Makefile.am): Likewise.
24927         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24928         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24929         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24930         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24931         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24932         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24933         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24934         * modules/wchar (Depends-on, Makefile.am): Likewise.
24935         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24936         should be poisoned.
24937         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24938         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24939         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24940         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24942         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24943         * m4/math_h.m4 (gl_MATH_H): Likewise.
24944         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24945         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24946         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24947         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24948         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24949         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24950         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24951         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24952         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24954         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24956         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24957         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24958         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24959         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24960         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24961         GL_LINK_WARNING.
24962         * lib/ctype.in.h: Likewise.
24963         * lib/dirent.in.h: Likewise.
24964         * lib/fcntl.in.h: Likewise.
24965         * lib/inttypes.in.h: Likewise.
24966         * lib/langinfo.in.h: Likewise.
24967         * lib/locale.in.h: Likewise.
24968         * lib/math.in.h: Likewise.
24969         * lib/search.in.h: Likewise.
24970         * lib/signal.in.h: Likewise.
24971         * lib/spawn.in.h: Likewise.
24972         * lib/stdio.in.h: Likewise.
24973         * lib/stdlib.in.h: Likewise.
24974         * lib/string.in.h: Likewise.
24975         * lib/strings.in.h: Likewise.
24976         * lib/sys_file.in.h: Likewise.
24977         * lib/sys_ioctl.in.h: Likewise.
24978         * lib/sys_select.in.h: Likewise.
24979         * lib/sys_socket.in.h: Likewise.
24980         * lib/sys_stat.in.h: Likewise.
24981         * lib/sys_times.in.h: Likewise.
24982         * lib/sys_utsname.in.h: Likewise.
24983         * lib/unistd.in.h: Likewise.
24984         * lib/wchar.in.h: Likewise.
24985
24986 2010-01-20  Bruno Haible  <bruno@clisp.org>
24987
24988         Avoid duplicate -lm.
24989         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24990         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24993         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24994         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24995         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24996         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24997         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24998         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24999         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25000         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25001         Reported by Paolo Bonzini.
25002
25003 2010-01-19  Bruno Haible  <bruno@clisp.org>
25004
25005         langinfo, nl_langinfo: Relicense under LGPLv2+.
25006         * modules/langinfo (License): Change to LGPLv2+.
25007         * modules/nl_langinfo (License): Likewise.
25008         Patch by David Lutterkort <lutter@redhat.com>.
25009
25010 2010-01-19  Bruno Haible  <bruno@clisp.org>
25011
25012         Avoid compilation error with cc on OSF/1 5.1.
25013         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25014         statement, not before.
25015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25016
25017 2010-01-18  Bruno Haible  <bruno@clisp.org>
25018
25019         Avoid a link error due to the __printf__ symbol.
25020         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25021         and 2.6.x.
25022         (__format__, __printf__): Remove definitions.
25023         * lib/argp-fmtstream.h: Likewise.
25024         * lib/argp.h: Likewise.
25025         * lib/error.h: Likewise.
25026         * lib/vasnprintf.h: Likewise.
25027         * lib/xprintf.h: Likewise.
25028         * lib/xvasprintf.h: Likewise.
25029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25030
25031 2010-01-18  Bruno Haible  <bruno@clisp.org>
25032
25033         Tests for module 'tanl'.
25034         * modules/tanl-tests: New file.
25035         * tests/test-tanl.c: New file.
25036
25037         Tests for module 'sqrtl'.
25038         * modules/sqrtl-tests: New file.
25039         * tests/test-sqrtl.c: New file.
25040
25041         Tests for module 'sinl'.
25042         * modules/sinl-tests: New file.
25043         * tests/test-sinl.c: New file.
25044
25045         Tests for module 'logl'.
25046         * modules/logl-tests: New file.
25047         * tests/test-logl.c: New file.
25048
25049         Tests for module 'expl'.
25050         * modules/expl-tests: New file.
25051         * tests/test-expl.c: New file.
25052
25053         Tests for module 'cosl'.
25054         * modules/cosl-tests: New file.
25055         * tests/test-cosl.c: New file.
25056
25057         Tests for module 'atanl'.
25058         * modules/atanl-tests: New file.
25059         * tests/test-atanl.c: New file.
25060
25061         Tests for module 'asinl'.
25062         * modules/asinl-tests: New file.
25063         * tests/test-asinl.c: New file.
25064
25065         Tests for module 'acosl'.
25066         * modules/acosl-tests: New file.
25067         * tests/test-acosl.c: New file.
25068
25069         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25070         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25071         tanl): Use the standard gnulib idiom.
25072         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25073         * lib/sinl.c: Likewise.
25074         * lib/tanl.c: Don't include trigl.c.
25075         (kernel_tanl): Make static.
25076         * lib/sincosl.c: Include trigl.h first.
25077         * lib/trigl.c: Likewise.
25078         * m4/acosl.m4: New file.
25079         * m4/asinl.m4: New file.
25080         * m4/atanl.m4: New file.
25081         * m4/cosl.m4: New file.
25082         * m4/expl.m4: New file.
25083         * m4/logl.m4: New file.
25084         * m4/sinl.m4: New file.
25085         * m4/sqrtl.m4: New file.
25086         * m4/tanl.m4: New file.
25087         * m4/mathl.m4: Remove file.
25088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25089         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25090         Don't initialize GNULIB_MATHL.
25091         * modules/acosl: New file.
25092         * modules/asinl: New file.
25093         * modules/atanl: New file.
25094         * modules/cosl: New file.
25095         * modules/expl: New file.
25096         * modules/logl: New file.
25097         * modules/sinl: New file.
25098         * modules/sqrtl: New file.
25099         * modules/tanl: New file.
25100         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25101         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25102         substitute GNULIB_MATHL.
25103         * modules/mathl: Rewritten.
25104         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25105         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25106         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25107         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25108         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25109         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25110         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25111         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25112         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25113
25114 2010-01-18  Bruno Haible  <bruno@clisp.org>
25115
25116         sqrt: Make gl_FUNC_SQRT requirable.
25117         * m4/sqrt.m4: New file.
25118         * modules/sqrt (Files): Add it.
25119         (configure.ac): Invoke gl_FUNC_SQRT.
25120
25121 2010-01-18  Bruno Haible  <bruno@clisp.org>
25122
25123         New modules for common <math.h> functions.
25124         * m4/mathfunc.m4: New file.
25125         * modules/acos: New file.
25126         * modules/asin: New file.
25127         * modules/atan: New file.
25128         * modules/atan2: New file.
25129         * modules/cbrt: New file.
25130         * modules/copysign: New file.
25131         * modules/cos: New file.
25132         * modules/cosh: New file.
25133         * modules/erf: New file.
25134         * modules/erfc: New file.
25135         * modules/exp: New file.
25136         * modules/fabs: New file.
25137         * modules/fmod: New file.
25138         * modules/hypot: New file.
25139         * modules/j0: New file.
25140         * modules/j1: New file.
25141         * modules/jn: New file.
25142         * modules/ldexp: New file.
25143         * modules/lgamma: New file.
25144         * modules/log: New file.
25145         * modules/log10: New file.
25146         * modules/log1p: New file.
25147         * modules/logb: New file.
25148         * modules/modf: New file.
25149         * modules/nextafter: New file.
25150         * modules/pow: New file.
25151         * modules/remainder: New file.
25152         * modules/rint: New file.
25153         * modules/sin: New file.
25154         * modules/sinh: New file.
25155         * modules/sqrt: New file.
25156         * modules/tan: New file.
25157         * modules/tanh: New file.
25158         * modules/y0: New file.
25159         * modules/y1: New file.
25160         * modules/yn: New file.
25161         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25162         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25163         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25164         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25165         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25166         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25167         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25168         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25169         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25170         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25171         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25172         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25173         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25174         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25175         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25176         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25177         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25178         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25179         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25180         * doc/posix-functions/log.texi: Mention the 'log' module.
25181         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25182         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25183         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25184         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25185         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25186         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25187         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25188         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25189         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25190         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25191         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25192         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25193         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25194         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25195         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25196         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25197
25198 2010-01-18  Jim Meyering  <meyering@redhat.com>
25199
25200         ignore-value: relax license to LGPLv2+
25201         * modules/ignore-value (License): Relax to LGPLv2+.
25202
25203         getdate: don't leak when TZ contains two or more '"'s
25204         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25205         double quote in TZ after the first one.
25206
25207         readtokens: do not leak internal token_lengths buffer
25208         * lib/readtokens.c (readtokens): Free the local, lengths,
25209         when the supplied "token_lengths" parameter is NULL.
25210
25211 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25212
25213         Fix a couple of missing LIBTHREAD link failures on AIX.
25214         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25215         $(LIBTHREAD).
25216         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25217
25218         Link test-poll against INET_PTON_LIB.
25219         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25220         for inet_pton on Solaris 10.
25221
25222 2010-01-17  Bruno Haible  <bruno@clisp.org>
25223
25224         unistdio/*-sprintf: Fix typo in module description.
25225         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25226         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25227         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25228         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25229         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25230         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25231         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25233
25234 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25235
25236         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25237         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25238         variables in shell case patterns, for AIX and HP-UX ksh.
25239
25240         Split large sed scripts, for HP-UX sed.
25241         * modules/stdio: Split sed scripts around 50 sed commands,
25242         to avoid HP-UX limit of 99 commands, in the near future.
25243         * modules/string: Likewise.
25244         * modules/unistd: Likewise.
25245
25246         gnulib-tool: avoid writing in the current directory.
25247         * gnulib-tool (func_emit_lib_Makefile_am)
25248         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25249         not in the current directory, so concurrent gnulib-tool
25250         instances do not interfere.
25251
25252 2010-01-16  Jim Meyering  <meyering@redhat.com>
25253
25254         doc: update users.txt
25255         * users.txt: Add grep.
25256         (diffutils, gzip): Update URLs.
25257
25258 2010-01-12  Bruno Haible  <bruno@clisp.org>
25259
25260         posix_spawn: Avoid test failure on Cygwin.
25261         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25262         characters.
25263         Reported by Simon Josefsson.
25264
25265 2010-01-12  Bruno Haible  <bruno@clisp.org>
25266
25267         * tests/test-cond.c (main): When skipping the test, show the reason.
25268
25269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25270
25271         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25272
25273 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25274
25275         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25276         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25277
25278 2010-01-12  Eric Blake  <ebb9@byu.net>
25279
25280         build: guarantee AS_VAR_IF
25281         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25282         (gl_AS_VAR_IF): Move...
25283         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25284         Reported by Simon Josefsson.
25285
25286 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25287
25288         * lib/stdio.in.h: Fix typo.
25289
25290 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25291
25292         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25293         libgpg-error.
25294
25295 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25296
25297         * tests/test-xalloc-die.sh: Use $EXEEXT.
25298
25299 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25300             Bruno Haible  <bruno@clisp.org>
25301
25302         getlogin, getlogin_r: Avoid test failure.
25303         * tests/test-getlogin.c: Include <stdio.h>.
25304         (main): Skip the test when the function fails because stdin is not a
25305         tty.
25306         * tests/test-getlogin_r.c: Include <stdio.h>.
25307         (main): Skip the test when the function fails because stdin is not a
25308         tty.
25309
25310 2010-01-11  Eric Blake  <ebb9@byu.net>
25311
25312         tests: avoid more large file warnings
25313         * tests/test-fflush.c: Avoid warning about ftell use.
25314         * tests/test-fseek.c: Avoid warning about fseek use.
25315
25316 2010-01-10  Bruno Haible  <bruno@clisp.org>
25317
25318         nproc: Work better on Linux when /proc and /sys are not mounted.
25319         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25320         as lower bound when, on glibc/Linux systems,
25321         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25322         Suggested by Pádraig Brady <P@draigbrady.com>.
25323         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25324
25325         nproc: Refactor.
25326         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25327         extracted from num_processors.
25328         (num_processors): Call it.
25329
25330 2010-01-11  Jim Meyering  <meyering@redhat.com>
25331
25332         utimecmp: avoid new warning from upcoming gcc-4.5.0
25333         * lib/utimecmp.c (BILLION): Define using #define rather than an
25334         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25335
25336 2010-01-11  Eric Blake  <ebb9@byu.net>
25337
25338         math: add portability warnings for classification macros
25339         * modules/math (Depends-on): Add warn-on-use.
25340         (Makefile.am): Provide new substitutions.
25341         * m4/math_h.m4 (gl_MATH_H): Require inline.
25342         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25343         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25344         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25345         implement warnings.
25346
25347         unistd: warn on use of environ without module
25348         * modules/unistd (Depends-on): Add warn-on-use.
25349         (Makefile.am): Provide new substitutions.
25350         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25351         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25352
25353         stdio: warn on suspicious uses
25354         * modules/stdio (Depends-on): Add warn-on-use.
25355         (Makefile.am): Provide new substitutions.
25356         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25357         fseeko.
25358         * lib/stdio.in.h (gets): Always warn on use.
25359         (fseek, ftell): Adjust when warnings are issued, and honor
25360         _GL_NO_LARGE_FILES as a way to silence the warning.
25361         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25362         any warning about large file offsets.
25363         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25364         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25365         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25366         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25367         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25368         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25369         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25370         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25371
25372         warn-on-use: new module
25373         * modules/warn-on-use: New file.
25374         * build-aux/warn-on-use.h: Likewise.
25375         * m4/warn-on-use.m4: Likewise.
25376         * MODULES.html.sh (Support for building): Mention it.
25377
25378 2010-01-10  Bruno Haible  <bruno@clisp.org>
25379
25380         Tests for module 'unistr/u32-strdup'.
25381         * modules/unistr/u32-strdup-tests: New file.
25382         * tests/unistr/test-u32-strdup.c: New file.
25383
25384         Tests for module 'unistr/u16-strdup'.
25385         * modules/unistr/u16-strdup-tests: New file.
25386         * tests/unistr/test-u16-strdup.c: New file.
25387
25388         Tests for module 'unistr/u8-strdup'.
25389         * modules/unistr/u8-strdup-tests: New file.
25390         * tests/unistr/test-u8-strdup.c: New file.
25391         * tests/unistr/test-strdup.h: New file.
25392
25393         Tests for module 'unistr/u32-strncmp'.
25394         * modules/unistr/u32-strncmp-tests: New file.
25395         * tests/unistr/test-u32-strncmp.c: New file.
25396
25397         Tests for module 'unistr/u16-strncmp'.
25398         * modules/unistr/u16-strncmp-tests: New file.
25399         * tests/unistr/test-u16-strncmp.c: New file.
25400
25401         Tests for module 'unistr/u8-strncmp'.
25402         * modules/unistr/u8-strncmp-tests: New file.
25403         * tests/unistr/test-u8-strncmp.c: New file.
25404         * tests/unistr/test-strncmp.h: New file.
25405
25406         Tests for module 'unistr/u32-strcoll'.
25407         * modules/unistr/u32-strcoll-tests: New file.
25408         * tests/unistr/test-u32-strcoll.c: New file.
25409
25410         Tests for module 'unistr/u16-strcoll'.
25411         * modules/unistr/u16-strcoll-tests: New file.
25412         * tests/unistr/test-u16-strcoll.c: New file.
25413
25414         Tests for module 'unistr/u8-strcoll'.
25415         * modules/unistr/u8-strcoll-tests: New file.
25416         * tests/unistr/test-u8-strcoll.c: New file.
25417
25418         Tests for module 'unistr/u32-strcmp'.
25419         * modules/unistr/u32-strcmp-tests: New file.
25420         * tests/unistr/test-u32-strcmp.c: New file.
25421         * tests/unistr/test-u32-strcmp.h: New file.
25422
25423         Tests for module 'unistr/u16-strcmp'.
25424         * modules/unistr/u16-strcmp-tests: New file.
25425         * tests/unistr/test-u16-strcmp.c: New file.
25426         * tests/unistr/test-u16-strcmp.h: New file.
25427
25428         Tests for module 'unistr/u8-strcmp'.
25429         * modules/unistr/u8-strcmp-tests: New file.
25430         * tests/unistr/test-u8-strcmp.c: New file.
25431         * tests/unistr/test-u8-strcmp.h: New file.
25432         * tests/unistr/test-strcmp.h: New file.
25433
25434         Tests for module 'unistr/u32-strncat'.
25435         * modules/unistr/u32-strncat-tests: New file.
25436         * tests/unistr/test-u32-strncat.c: New file.
25437
25438         Tests for module 'unistr/u16-strncat'.
25439         * modules/unistr/u16-strncat-tests: New file.
25440         * tests/unistr/test-u16-strncat.c: New file.
25441
25442         Tests for module 'unistr/u8-strncat'.
25443         * modules/unistr/u8-strncat-tests: New file.
25444         * tests/unistr/test-u8-strncat.c: New file.
25445         * tests/unistr/test-strncat.h: New file.
25446
25447         Tests for module 'unistr/u32-strcat'.
25448         * modules/unistr/u32-strcat-tests: New file.
25449         * tests/unistr/test-u32-strcat.c: New file.
25450
25451         Tests for module 'unistr/u16-strcat'.
25452         * modules/unistr/u16-strcat-tests: New file.
25453         * tests/unistr/test-u16-strcat.c: New file.
25454
25455         Tests for module 'unistr/u8-strcat'.
25456         * modules/unistr/u8-strcat-tests: New file.
25457         * tests/unistr/test-u8-strcat.c: New file.
25458         * tests/unistr/test-strcat.h: New file.
25459
25460         Tests for module 'unistr/u32-stpncpy'.
25461         * modules/unistr/u32-stpncpy-tests: New file.
25462         * tests/unistr/test-u32-stpncpy.c: New file.
25463
25464         Tests for module 'unistr/u16-stpncpy'.
25465         * modules/unistr/u16-stpncpy-tests: New file.
25466         * tests/unistr/test-u16-stpncpy.c: New file.
25467
25468         Tests for module 'unistr/u8-stpncpy'.
25469         * modules/unistr/u8-stpncpy-tests: New file.
25470         * tests/unistr/test-u8-stpncpy.c: New file.
25471         * tests/unistr/test-stpncpy.h: New file.
25472
25473         Tests for module 'unistr/u32-strncpy'.
25474         * modules/unistr/u32-strncpy-tests: New file.
25475         * tests/unistr/test-u32-strncpy.c: New file.
25476
25477         Tests for module 'unistr/u16-strncpy'.
25478         * modules/unistr/u16-strncpy-tests: New file.
25479         * tests/unistr/test-u16-strncpy.c: New file.
25480
25481         Tests for module 'unistr/u8-strncpy'.
25482         * modules/unistr/u8-strncpy-tests: New file.
25483         * tests/unistr/test-u8-strncpy.c: New file.
25484         * tests/unistr/test-strncpy.h: New file.
25485
25486         Tests for module 'unistr/u32-stpcpy'.
25487         * modules/unistr/u32-stpcpy-tests: New file.
25488         * tests/unistr/test-u32-stpcpy.c: New file.
25489
25490         Tests for module 'unistr/u16-stpcpy'.
25491         * modules/unistr/u16-stpcpy-tests: New file.
25492         * tests/unistr/test-u16-stpcpy.c: New file.
25493
25494         Tests for module 'unistr/u8-stpcpy'.
25495         * modules/unistr/u8-stpcpy-tests: New file.
25496         * tests/unistr/test-u8-stpcpy.c: New file.
25497         * tests/unistr/test-stpcpy.h: New file.
25498
25499         Tests for module 'unistr/u32-strcpy'.
25500         * modules/unistr/u32-strcpy-tests: New file.
25501         * tests/unistr/test-u32-strcpy.c: New file.
25502
25503         Tests for module 'unistr/u16-strcpy'.
25504         * modules/unistr/u16-strcpy-tests: New file.
25505         * tests/unistr/test-u16-strcpy.c: New file.
25506
25507         Tests for module 'unistr/u8-strcpy'.
25508         * modules/unistr/u8-strcpy-tests: New file.
25509         * tests/unistr/test-u8-strcpy.c: New file.
25510         * tests/unistr/test-strcpy.h: New file.
25511
25512         Tests for module 'unistr/u32-strnlen'.
25513         * modules/unistr/u32-strnlen-tests: New file.
25514         * tests/unistr/test-u32-strnlen.c: New file.
25515
25516         Tests for module 'unistr/u16-strnlen'.
25517         * modules/unistr/u16-strnlen-tests: New file.
25518         * tests/unistr/test-u16-strnlen.c: New file.
25519
25520         Tests for module 'unistr/u8-strnlen'.
25521         * modules/unistr/u8-strnlen-tests: New file.
25522         * tests/unistr/test-u8-strnlen.c: New file.
25523         * tests/unistr/test-strnlen.h: New file.
25524
25525         Tests for module 'unistr/u32-strlen'.
25526         * modules/unistr/u32-strlen-tests: New file.
25527         * tests/unistr/test-u32-strlen.c: New file.
25528
25529         Tests for module 'unistr/u16-strlen'.
25530         * modules/unistr/u16-strlen-tests: New file.
25531         * tests/unistr/test-u16-strlen.c: New file.
25532
25533         Tests for module 'unistr/u8-strlen'.
25534         * modules/unistr/u8-strlen-tests: New file.
25535         * tests/unistr/test-u8-strlen.c: New file.
25536
25537         Tests for module 'unistr/u32-prev'.
25538         * modules/unistr/u32-prev-tests: New file.
25539         * tests/unistr/test-u32-prev.c: New file.
25540
25541         Tests for module 'unistr/u16-prev'.
25542         * modules/unistr/u16-prev-tests: New file.
25543         * tests/unistr/test-u16-prev.c: New file.
25544
25545         Tests for module 'unistr/u8-prev'.
25546         * modules/unistr/u8-prev-tests: New file.
25547         * tests/unistr/test-u8-prev.c: New file.
25548
25549         Tests for module 'unistr/u32-next'.
25550         * modules/unistr/u32-next-tests: New file.
25551         * tests/unistr/test-u32-next.c: New file.
25552
25553         Tests for module 'unistr/u16-next'.
25554         * modules/unistr/u16-next-tests: New file.
25555         * tests/unistr/test-u16-next.c: New file.
25556
25557         Tests for module 'unistr/u8-next'.
25558         * modules/unistr/u8-next-tests: New file.
25559         * tests/unistr/test-u8-next.c: New file.
25560
25561         Tests for module 'unistr/u32-strmbtouc'.
25562         * modules/unistr/u32-strmbtouc-tests: New file.
25563         * tests/unistr/test-u32-strmbtouc.c: New file.
25564
25565         Tests for module 'unistr/u16-strmbtouc'.
25566         * modules/unistr/u16-strmbtouc-tests: New file.
25567         * tests/unistr/test-u16-strmbtouc.c: New file.
25568
25569         Tests for module 'unistr/u8-strmbtouc'.
25570         * modules/unistr/u8-strmbtouc-tests: New file.
25571         * tests/unistr/test-u8-strmbtouc.c: New file.
25572
25573         Tests for module 'unistr/u32-strmblen'.
25574         * modules/unistr/u32-strmblen-tests: New file.
25575         * tests/unistr/test-u32-strmblen.c: New file.
25576
25577         Tests for module 'unistr/u16-strmblen'.
25578         * modules/unistr/u16-strmblen-tests: New file.
25579         * tests/unistr/test-u16-strmblen.c: New file.
25580
25581         Tests for module 'unistr/u8-strmblen'.
25582         * modules/unistr/u8-strmblen-tests: New file.
25583         * tests/unistr/test-u8-strmblen.c: New file.
25584
25585         Tests for module 'unistr/u32-cpy-alloc'.
25586         * modules/unistr/u32-cpy-alloc-tests: New file.
25587         * tests/unistr/test-u32-cpy-alloc.c: New file.
25588
25589         Tests for module 'unistr/u16-cpy-alloc'.
25590         * modules/unistr/u16-cpy-alloc-tests: New file.
25591         * tests/unistr/test-u16-cpy-alloc.c: New file.
25592
25593         Tests for module 'unistr/u8-cpy-alloc'.
25594         * modules/unistr/u8-cpy-alloc-tests: New file.
25595         * tests/unistr/test-u8-cpy-alloc.c: New file.
25596         * tests/unistr/test-cpy-alloc.h: New file.
25597
25598         Tests for module 'unistr/u32-mbsnlen'.
25599         * modules/unistr/u32-mbsnlen-tests: New file.
25600         * tests/unistr/test-u32-mbsnlen.c: New file.
25601
25602         Tests for module 'unistr/u16-mbsnlen'.
25603         * modules/unistr/u16-mbsnlen-tests: New file.
25604         * tests/unistr/test-u16-mbsnlen.c: New file.
25605
25606         Tests for module 'unistr/u8-mbsnlen'.
25607         * modules/unistr/u8-mbsnlen-tests: New file.
25608         * tests/unistr/test-u8-mbsnlen.c: New file.
25609
25610         Tests for module 'unistr/u32-chr'.
25611         * modules/unistr/u32-chr-tests: New file.
25612         * tests/unistr/test-u32-chr.c: New file.
25613
25614         Tests for module 'unistr/u16-chr'.
25615         * modules/unistr/u16-chr-tests: New file.
25616         * tests/unistr/test-u16-chr.c: New file.
25617
25618         Tests for module 'unistr/u8-chr'.
25619         * modules/unistr/u8-chr-tests: New file.
25620         * tests/unistr/test-u8-chr.c: New file.
25621         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25622
25623         Tests for module 'unistr/u32-cmp2'.
25624         * modules/unistr/u32-cmp2-tests: New file.
25625         * tests/unistr/test-u32-cmp2.c: New file.
25626
25627         Tests for module 'unistr/u16-cmp2'.
25628         * modules/unistr/u16-cmp2-tests: New file.
25629         * tests/unistr/test-u16-cmp2.c: New file.
25630
25631         Tests for module 'unistr/u8-cmp2'.
25632         * modules/unistr/u8-cmp2-tests: New file.
25633         * tests/unistr/test-u8-cmp2.c: New file.
25634         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25635
25636         Tests for module 'unistr/u32-cmp'.
25637         * modules/unistr/u32-cmp-tests: New file.
25638         * tests/unistr/test-u32-cmp.c: New file.
25639
25640         Tests for module 'unistr/u16-cmp'.
25641         * modules/unistr/u16-cmp-tests: New file.
25642         * tests/unistr/test-u16-cmp.c: New file.
25643
25644         Tests for module 'unistr/u8-cmp'.
25645         * modules/unistr/u8-cmp-tests: New file.
25646         * tests/unistr/test-u8-cmp.c: New file.
25647         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25648
25649         Tests for module 'unistr/u32-set'.
25650         * modules/unistr/u32-set-tests: New file.
25651         * tests/unistr/test-u32-set.c: New file.
25652
25653         Tests for module 'unistr/u16-set'.
25654         * modules/unistr/u16-set-tests: New file.
25655         * tests/unistr/test-u16-set.c: New file.
25656
25657         Tests for module 'unistr/u8-set'.
25658         * modules/unistr/u8-set-tests: New file.
25659         * tests/unistr/test-u8-set.c: New file.
25660         * tests/unistr/test-set.h: New file.
25661
25662         Tests for module 'unistr/u32-move'.
25663         * modules/unistr/u32-move-tests: New file.
25664         * tests/unistr/test-u32-move.c: New file.
25665
25666         Tests for module 'unistr/u16-move'.
25667         * modules/unistr/u16-move-tests: New file.
25668         * tests/unistr/test-u16-move.c: New file.
25669
25670         Tests for module 'unistr/u8-move'.
25671         * modules/unistr/u8-move-tests: New file.
25672         * tests/unistr/test-u8-move.c: New file.
25673         * tests/unistr/test-move.h: New file.
25674
25675         Tests for module 'unistr/u32-cpy'.
25676         * modules/unistr/u32-cpy-tests: New file.
25677         * tests/unistr/test-u32-cpy.c: New file.
25678
25679         Tests for module 'unistr/u16-cpy'.
25680         * modules/unistr/u16-cpy-tests: New file.
25681         * tests/unistr/test-u16-cpy.c: New file.
25682
25683         Tests for module 'unistr/u8-cpy'.
25684         * modules/unistr/u8-cpy-tests: New file.
25685         * tests/unistr/test-u8-cpy.c: New file.
25686         * tests/unistr/test-cpy.h: New file.
25687
25688 2010-01-09  Bruno Haible  <bruno@clisp.org>
25689
25690         Tests for module 'unistr/u32-uctomb'.
25691         * modules/unistr/u32-uctomb-tests: New file.
25692         * tests/unistr/test-u32-uctomb.c: New file.
25693
25694         Tests for module 'unistr/u16-uctomb'.
25695         * modules/unistr/u16-uctomb-tests: New file.
25696         * tests/unistr/test-u16-uctomb.c: New file.
25697
25698         Tests for module 'unistr/u8-uctomb'.
25699         * modules/unistr/u8-uctomb-tests: New file.
25700         * tests/unistr/test-u8-uctomb.c: New file.
25701
25702         Tests for module 'unistr/u32-mbtoucr'.
25703         * modules/unistr/u32-mbtoucr-tests: New file.
25704         * tests/unistr/test-u32-mbtoucr.c: New file.
25705
25706         Tests for module 'unistr/u16-mbtoucr'.
25707         * modules/unistr/u16-mbtoucr-tests: New file.
25708         * tests/unistr/test-u16-mbtoucr.c: New file.
25709
25710         Tests for module 'unistr/u8-mbtoucr'.
25711         * modules/unistr/u8-mbtoucr-tests: New file.
25712         * tests/unistr/test-u8-mbtoucr.c: New file.
25713
25714         Tests for module 'unistr/u32-mbtouc'.
25715         * modules/unistr/u32-mbtouc-tests: New file.
25716         * tests/unistr/test-u32-mbtouc.c: New file.
25717
25718         Tests for module 'unistr/u16-mbtouc'.
25719         * modules/unistr/u16-mbtouc-tests: New file.
25720         * tests/unistr/test-u16-mbtouc.c: New file.
25721
25722         Tests for module 'unistr/u8-mbtouc'.
25723         * modules/unistr/u8-mbtouc-tests: New file.
25724         * tests/unistr/test-u8-mbtouc.c: New file.
25725
25726         Tests for module 'unistr/u32-mbtouc-unsafe'.
25727         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25728         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25729         * tests/unistr/test-u32-mbtouc.h: New file.
25730
25731         Tests for module 'unistr/u16-mbtouc-unsafe'.
25732         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25733         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25734         * tests/unistr/test-u16-mbtouc.h: New file.
25735
25736         Tests for module 'unistr/u8-mbtouc-unsafe'.
25737         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25738         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25739         * tests/unistr/test-u8-mbtouc.h: New file.
25740
25741         Tests for module 'unistr/u32-mblen'.
25742         * modules/unistr/u32-mblen-tests: New file.
25743         * tests/unistr/test-u32-mblen.c: New file.
25744
25745         Tests for module 'unistr/u16-mblen'.
25746         * modules/unistr/u16-mblen-tests: New file.
25747         * tests/unistr/test-u16-mblen.c: New file.
25748
25749         Tests for module 'unistr/u8-mblen'.
25750         * modules/unistr/u8-mblen-tests: New file.
25751         * tests/unistr/test-u8-mblen.c: New file.
25752
25753         Tests for module 'unistr/u32-to-u16'.
25754         * modules/unistr/u32-to-u16-tests: New file.
25755         * tests/unistr/test-u32-to-u16.c: New file.
25756
25757         Tests for module 'unistr/u32-to-u8'.
25758         * modules/unistr/u32-to-u8-tests: New file.
25759         * tests/unistr/test-u32-to-u8.c: New file.
25760
25761         Tests for module 'unistr/u16-to-u32'.
25762         * modules/unistr/u16-to-u32-tests: New file.
25763         * tests/unistr/test-u16-to-u32.c: New file.
25764
25765         Tests for module 'unistr/u16-to-u8'.
25766         * modules/unistr/u16-to-u8-tests: New file.
25767         * tests/unistr/test-u16-to-u8.c: New file.
25768
25769         Tests for module 'unistr/u8-to-u32'.
25770         * modules/unistr/u8-to-u32-tests: New file.
25771         * tests/unistr/test-u8-to-u32.c: New file.
25772
25773         Tests for module 'unistr/u8-to-u16'.
25774         * modules/unistr/u8-to-u16-tests: New file.
25775         * tests/unistr/test-u8-to-u16.c: New file.
25776
25777         Tests for module 'unistr/u32-check'.
25778         * modules/unistr/u32-check-tests: New file.
25779         * tests/unistr/test-u32-check.c: New file.
25780
25781         Tests for module 'unistr/u16-check'.
25782         * modules/unistr/u16-check-tests: New file.
25783         * tests/unistr/test-u16-check.c: New file.
25784
25785         Tests for module 'unistr/u8-check'.
25786         * modules/unistr/u8-check-tests: New file.
25787         * tests/unistr/test-u8-check.c: New file.
25788
25789         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25790         (category_equals): New function.
25791         (main): Add more tests.
25792         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25793
25794         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25795
25796 2010-01-10  Bruno Haible  <bruno@clisp.org>
25797
25798         unistr/u*-strcoll: Try harder to distinguish different strings.
25799         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25800         compare s1 and s2 to see if they are different.
25801
25802 2010-01-10  Bruno Haible  <bruno@clisp.org>
25803
25804         unistr/u*-stpncpy: Fix the return value.
25805         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25806         description of the return value consistent with stpncpy in glibc.
25807         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25808         written non-NUL unit.
25809
25810 2010-01-10  Bruno Haible  <bruno@clisp.org>
25811
25812         unistr/u*-next: Add missing dependencies.
25813         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25814         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25815         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25816
25817 2010-01-10  Bruno Haible  <bruno@clisp.org>
25818
25819         unistr/u8-mbsnlen: Fix return value for incomplete character.
25820         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25821         u8_mblen.
25822         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25823         Remove unistr/u8-mblen.
25824         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25825         u16_mblen.
25826         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25827         Remove unistr/u16-mblen.
25828
25829 2010-01-10  Bruno Haible  <bruno@clisp.org>
25830
25831         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25832         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25833         Reported by Brian Gough <bjg@gnu.org> and
25834         Chris Clayton <chris2553@googlemail.com> via
25835         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25836
25837 2010-01-09  Bruno Haible  <bruno@clisp.org>
25838
25839         unistr/u16-to-u32: Reject invalid input.
25840         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25841         u16_mbtouc.
25842         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25843         Remove unistr/u16-mbtouc.
25844
25845         unistr/u16-to-u8: Reject invalid input.
25846         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25847         u16_mbtouc.
25848         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25849         Remove unistr/u16-mbtouc.
25850
25851         unistr/u8-to-u32: Reject invalid input.
25852         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25853         u8_mbtouc.
25854         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25855         Remove unistr/u8-mbtouc.
25856
25857         unistr/u8-to-u16: Reject invalid input.
25858         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25859         u8_mbtouc.
25860         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25861         Remove unistr/u8-mbtouc.
25862
25863 2010-01-09  Bruno Haible  <bruno@clisp.org>
25864
25865         Tests for module 'getlogin'.
25866         * modules/getlogin-tests: New file.
25867         * tests/test-getlogin.c: New file.
25868
25869         New module 'getlogin'.
25870         * lib/unistd.in.h (getlogin): New declaration.
25871         * lib/getlogin.c: New file.
25872         * m4/getlogin.m4: New file.
25873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25874         HAVE_GETLOGIN.
25875         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25876         HAVE_GETLOGIN.
25877         * modules/getlogin: New file.
25878         * doc/posix-functions/getlogin.texi: Mention the new module.
25879         Reported by John W. Eaton <jwe@gnu.org>.
25880
25881 2010-01-09  Bruno Haible  <bruno@clisp.org>
25882
25883         getlogin_r: Support for native Windows.
25884         * lib/getlogin_r.c: Include <windows.h>
25885         (getlogin_r): Implement for native Windows.
25886         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25887         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25888         via John W. Eaton <jwe@gnu.org>.
25889
25890 2010-01-09  Bruno Haible  <bruno@clisp.org>
25891
25892         getlogin_r: Small fixes.
25893         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25894         succeeds.
25895         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25896         before testing whether getlogin_r is declared. No need to set
25897         HAVE_DECL_GETLOGIN_R to 1.
25898         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25899
25900 2010-01-09  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/unistd.in.h (getlogin_r): Add comment.
25903
25904 2010-01-09  Bruno Haible  <bruno@clisp.org>
25905
25906         Tests for module 'getlogin_r'.
25907         * modules/getlogin_r-tests: New file.
25908         * tests/test-getlogin_r.c: New file.
25909
25910 2010-01-09  Jim Meyering  <meyering@redhat.com>
25911
25912         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25913         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25914         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25915
25916 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25917
25918         * lib/dup2.c (rpl_dup2): Improve comment.
25919
25920 2010-01-08  Eric Blake  <ebb9@byu.net>
25921
25922         maint.mk: allow packages to add makefile @@ exceptions
25923         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25924         (sc_makefile_check): Rename...
25925         (sc_makefile_at_at_check): ...to this, and use hook.
25926
25927         dup2: work around mingw bug
25928         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25929         Reported by Simon Josefsson.
25930
25931 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25932
25933         glob: Fix C++ compilation.
25934         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25935         C++.
25936
25937 2010-01-07  Bruno Haible  <bruno@clisp.org>
25938
25939         Fix indentation of wctype.in.h, broken since 2007-01-06.
25940         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25941
25942 2010-01-07  Bruno Haible  <bruno@clisp.org>
25943
25944         mbslen: Avoid collision with system function.
25945         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25946         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25947         * m4/mbslen.m4: New file.
25948         * modules/mbslen (Files): Add it.
25949         (configure.ac): Invoke gl_MBSLEN.
25950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25951         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25952         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25953         via Ian Beckwith <ianb@erislabs.net>.
25954
25955 2010-01-07  Bruno Haible  <bruno@clisp.org>
25956
25957         dirent: Document the last fix.
25958         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25959
25960 2010-01-07  Bruno Haible  <bruno@clisp.org>
25961
25962         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25963         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25964         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25965         va_list are defined.
25966         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25967         Reported by Eric Blake.
25968
25969 2010-01-07  Bruno Haible  <bruno@clisp.org>
25970
25971         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25972         * modules/xlist (Depends-on): Add 'list',
25973         * modules/xoset (Depends-on): Add 'oset'.
25974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25975
25976 2010-01-07  Bruno Haible  <bruno@clisp.org>
25977
25978         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25979         * doc/posix-functions/strncasecmp.texi: Likewise.
25980
25981 2010-01-07  Bruno Haible  <bruno@clisp.org>
25982
25983         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25984
25985 2010-01-07  John W. Eaton  <jwe@octave.org>
25986
25987         wctype: allow C++ use
25988         * lib/wctype.in.h: Add extern "C" block for C++.
25989
25990 2010-01-06  Eric Blake  <ebb9@byu.net>
25991
25992         maint.mk: detect incorrect GFDL usage
25993         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25994
25995 2010-01-06  Jim Meyering  <meyering@redhat.com>
25996         and Eric Blake  <ebb9@byu.net>
25997
25998         maint.mk: ignore multi-line copyright in NEWS
25999         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26000
26001 2010-01-06  Eric Blake  <ebb9@byu.net>
26002
26003         select: add missing dependency
26004         * modules/select-tests (Depends-on): Move sockets dependency...
26005         * modules/select (Depends-on): ...here.
26006         Reported by Ian Beckwith.
26007
26008         doc: regenerate INSTALL
26009         * doc/INSTALL: Reflect recent autoconf update.
26010         * doc/INSTALL.ISO: Likewise.
26011         * doc/INSTALL.UTF-8: Likewise.
26012
26013         pread: fix compilation on glibc
26014         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26015         Reported by Ralf Wildenhues.
26016
26017         dirent: fix test failure
26018         * lib/dirent.in.h (includes): Guarantee ino_t.
26019         Reported by Ralf Wildenhues.
26020
26021 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26022
26023         linkat, renameat: avoid bad free
26024         * lib/at-func2.c (at_func2): Fix typo.
26025         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26026
26027 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26028
26029         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26030         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26031         to avoid failure of symlink test later.
26032
26033 2010-01-06  Eric Blake  <ebb9@byu.net>
26034
26035         stdio, unistd: guarantee ssize_t
26036         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26037         2008 are exposed when needed.
26038         * lib/stdio.in.h (includes): Likewise.
26039         Reported by Ralf Wildenhues.
26040
26041 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26042
26043         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26044         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26045         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26046
26047 2010-01-06  Jim Meyering  <meyering@redhat.com>
26048
26049         readtokens: this module *does* require xalloc.h
26050         It uses only functions that were omitted by the old syntax-check rule.
26051         * lib/readtokens.c: Include "xalloc.h" once again.
26052         * modules/readtokens (Depends-on): Add xalloc.
26053         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26054
26055 2010-01-05  Eric Blake  <ebb9@byu.net>
26056
26057         maint: support 'make announcement' from a VPATH build
26058         * top/maint.mk (announcement): Look for correct NEWS file.
26059
26060 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26061
26062         utimens (fdutimens): ignore a negative FD, per contract
26063         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26064         when we have a valid file descriptor.  Otherwise, using a brand
26065         new glibc (with just-patched futimens that now fails with EBADF)
26066         would cause this function to fail with ENOSYS.
26067         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26068         See also http://bugzilla.redhat.com/552320.
26069
26070 2010-01-05  Eric Blake  <ebb9@byu.net>
26071
26072         strcase: document what it provides
26073         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26074         gnulib module.
26075         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26076         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26077
26078 2010-01-05  Jim Meyering  <meyering@redhat.com>
26079
26080         maint: remove useless inclusions of "xalloc.h"
26081         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26082         * lib/readtokens.c: Likewise.
26083         * lib/same.c: Likewise.
26084         * modules/getloadavg (Depends-on): Remove xalloc.
26085         * modules/readtokens: Likewise.
26086         * modules/same: Likewise.
26087
26088         maint.mk: include 4 more function names in alloca.h-checking regexp
26089         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26090         regexp.  Before, we would give a false-positive (saying alloca.h
26091         is included unnecessarily) when the only uses involved omitted symbols.
26092
26093         xalloc.h: use consistent formatting
26094         * lib/xalloc.h: Move declarations to start in the first column.
26095
26096 2010-01-05  Eric Blake  <ebb9@byu.net>
26097
26098         mkdir: avoid xalloc
26099         * lib/mkdir.c (includes): Drop unused header.
26100         Reported by John W. Eaton.
26101
26102 2010-01-04  Jim Meyering  <meyering@redhat.com>
26103
26104         nl_langinfo: avoid configure-time syntax error
26105         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26106         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26107         the empty string.  Don't let that provoke a shell syntax error.
26108
26109         regcomp, regexec, fnmatch: avoid array bounds read error
26110         * lib/regcomp.c (build_equiv_class): From glibc:
26111         Use only the low 24 bits of a findidx return value as an index
26112         into the weights array.  Patch by Ulrich Drepper:
26113         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26114         * lib/regexec.c (check_node_accept_bytes): Likewise.
26115         * lib/fnmatch_loop.c (FCT): Likewise.
26116
26117         regcomp: skip collseq lookup when there are no rules
26118         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26119         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26120
26121         regcomp: recognize ill-formed { } expressions
26122         * lib/regcomp.c (parse_dup_op): From glibc:
26123         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26124
26125         regcomp: fix typo in comment
26126         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26127         s/satisfy/satisfies/.
26128
26129         regcomp: sync from glibc: remove dead store
26130         * lib/regcomp.c (duplicate_node_closure): Remove useless
26131         search_duplicated_node call and dead store.
26132
26133         regcomp: sync from glibc; always use nl_langinfo
26134         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26135         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26136         * modules/regex (Depends-on): Add nl_langinfo.
26137
26138 2010-01-04  Eric Blake  <ebb9@byu.net>
26139
26140         fdopendir: fix configure test
26141         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26142
26143 2010-01-01  Bruno Haible  <bruno@clisp.org>
26144
26145         wchar: Remove unused configure check.
26146         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26147
26148 2010-01-01  Eric Blake  <ebb9@byu.net>
26149
26150         headers: make check of system header explicit
26151         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26152         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26153         ourselves.
26154         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26156         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26157         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26158         internals.
26159         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26160         missing.
26161         Suggested by Bruno Haible.
26162
26163 2010-01-01  Jim Meyering  <meyering@redhat.com>
26164
26165         ChangeLog: tweak to eliminate unnecessary copyright line
26166         * ChangeLog: Remove a copyright line that was mistakenly updated
26167         by today's update-copyright run.  Reported by Eric Blake.
26168
26169         test-update-copyright: don't let envvar setting cause test failure
26170         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26171
26172 2010-01-01  Bruno Haible  <bruno@clisp.org>
26173
26174         localename: Avoid gcc warning.
26175         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26176         function if it is not used.
26177
26178 2010-01-01  Jim Meyering  <meyering@redhat.com>
26179
26180         update nearly all FSF copyright year lists to include 2010
26181         Use the same procedure as for 2009, outlined in
26182         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26183
26184         version-etc: set COPYRIGHT_YEAR to 2010
26185         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26186
26187 2009-12-31  Eric Blake  <ebb9@byu.net>
26188
26189         doc: correct availability of cygwin 1.5.x getopt
26190         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26191         variables.
26192         * doc/posix-functions/opterr.texi (opterr): Likewise.
26193         * doc/posix-functions/optind.texi (optind): Likewise.
26194         * doc/posix-functions/optopt.texi (optopt): Likewise.
26195         * doc/posix-functions/tzname.texi (tzname): Likewise.
26196
26197         openat: update maintainer
26198         * modules/openat (Maintainer): Add myself.
26199
26200         utimens: avoid shadowing warning
26201         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26202         buffers into one, to avoid shadowing, as well as avoiding a
26203         redundant stat.
26204         Reported by Jim Meyering.
26205
26206         test-dup2: avoid compiler warning
26207         * tests/test-dup2.c (is_inheritable): Only define if used.
26208
26209 2010-01-01  Bruno Haible  <bruno@clisp.org>
26210
26211         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26212         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26213         defined, use wctomb instead of wcrtomb.
26214
26215 2010-01-01  Bruno Haible  <bruno@clisp.org>
26216
26217         iconv: Reject native Solaris iconv.
26218         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26219         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26220
26221 2009-12-31  Bruno Haible  <bruno@clisp.org>
26222
26223         * tests/test-signal.c (main): Remove test of 'SIG'.
26224
26225 2009-12-31  Bruno Haible  <bruno@clisp.org>
26226
26227         spawn: Fix incomplete fix.
26228         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26229         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26230         warnings for GNULIB_POSIXCHECK again.
26231         Reported by Eric Blake.
26232
26233 2009-12-31  Bruno Haible  <bruno@clisp.org>
26234
26235         Avoid namespace pollution on glibc systems.
26236         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26237         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26238         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26239         glibc systems.
26240
26241 2009-12-31  Bruno Haible  <bruno@clisp.org>
26242
26243         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26244         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26245         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26246         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26247         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26248         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26249         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26250
26251 2009-12-31  Bruno Haible  <bruno@clisp.org>
26252
26253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26254         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26255         afterwards.
26256
26257 2009-12-31  Bruno Haible  <bruno@clisp.org>
26258
26259         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26260         SYS_UTSNAME_H.
26261
26262 2009-12-31  Bruno Haible  <bruno@clisp.org>
26263
26264         spawn: Fix misapplied patch.
26265         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26266         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26267         warnings for GNULIB_POSIXCHECK.
26268
26269 2009-12-31  Bruno Haible  <bruno@clisp.org>
26270
26271         times: Update after sys_times changed.
26272         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26273         * modules/times (Files): Add it.
26274         (configure.ac): Invoke gl_FUNC_TIMES.
26275
26276 2009-12-31  Bruno Haible  <bruno@clisp.org>
26277
26278         Use AC_C_INLINE where necessary.
26279         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26282         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26283         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26284         * m4/mbiter.m4 (gl_MBITER): Likewise.
26285         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26286         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26287         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26288         * modules/u64 (configure.ac): Likewise.
26289
26290 2009-12-31  Bruno Haible  <bruno@clisp.org>
26291
26292         Use AC_C_INLINE instead of module 'inline' where possible.
26293         * modules/inline (Description): Clarify purpose.
26294         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26295         * modules/count-one-bits (Depends-on): Remove inline.
26296         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26297         * modules/openat (Depends-on): Remove inline.
26298         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26299         instead of depending on module 'inline'.
26300         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26301         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26302         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26303         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26304         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26305         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26306         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26307         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26308         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26309         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26310         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26311         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26312         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26313         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26314         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26315         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26316         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26317         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26318         Likewise.
26319         * modules/unictype/property-ascii-hex-digit (Depends-on,
26320         configure.ac): Likewise.
26321         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26322         configure.ac): Likewise.
26323         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26324         configure.ac): Likewise.
26325         * modules/unictype/property-bidi-block-separator (Depends-on,
26326         configure.ac): Likewise.
26327         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26328         configure.ac): Likewise.
26329         * modules/unictype/property-bidi-common-separator (Depends-on,
26330         configure.ac): Likewise.
26331         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26332         Likewise.
26333         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26334         configure.ac): Likewise.
26335         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26336         configure.ac): Likewise.
26337         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26338         configure.ac): Likewise.
26339         * modules/unictype/property-bidi-european-digit (Depends-on,
26340         configure.ac): Likewise.
26341         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26342         configure.ac): Likewise.
26343         * modules/unictype/property-bidi-left-to-right (Depends-on,
26344         configure.ac): Likewise.
26345         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26346         configure.ac): Likewise.
26347         * modules/unictype/property-bidi-other-neutral (Depends-on,
26348         configure.ac): Likewise.
26349         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26350         Likewise.
26351         * modules/unictype/property-bidi-segment-separator (Depends-on,
26352         configure.ac): Likewise.
26353         * modules/unictype/property-bidi-whitespace (Depends-on,
26354         configure.ac): Likewise.
26355         * modules/unictype/property-combining (Depends-on, configure.ac):
26356         Likewise.
26357         * modules/unictype/property-composite (Depends-on, configure.ac):
26358         Likewise.
26359         * modules/unictype/property-currency-symbol (Depends-on,
26360         configure.ac): Likewise.
26361         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26362         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26363         Likewise.
26364         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26365         configure.ac): Likewise.
26366         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26367         Likewise.
26368         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26369         Likewise.
26370         * modules/unictype/property-extender (Depends-on, configure.ac):
26371         Likewise.
26372         * modules/unictype/property-format-control (Depends-on, configure.ac):
26373         Likewise.
26374         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26375         Likewise.
26376         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26377         Likewise.
26378         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26379         Likewise.
26380         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26381         Likewise.
26382         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26383         Likewise.
26384         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26385         Likewise.
26386         * modules/unictype/property-id-start (Depends-on, configure.ac):
26387         Likewise.
26388         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26389         Likewise.
26390         * modules/unictype/property-ids-binary-operator (Depends-on,
26391         configure.ac): Likewise.
26392         * modules/unictype/property-ids-trinary-operator (Depends-on,
26393         configure.ac): Likewise.
26394         * modules/unictype/property-ignorable-control (Depends-on,
26395         configure.ac): Likewise.
26396         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26397         Likewise.
26398         * modules/unictype/property-join-control (Depends-on, configure.ac):
26399         Likewise.
26400         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26401         Likewise.
26402         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26403         Likewise.
26404         * modules/unictype/property-logical-order-exception (Depends-on,
26405         configure.ac): Likewise.
26406         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26407         Likewise.
26408         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26409         * modules/unictype/property-non-break (Depends-on, configure.ac):
26410         Likewise.
26411         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26412         Likewise.
26413         * modules/unictype/property-numeric (Depends-on, configure.ac):
26414         Likewise.
26415         * modules/unictype/property-other-alphabetic (Depends-on,
26416         configure.ac): Likewise.
26417         * modules/unictype/property-other-default-ignorable-code-point
26418         (Depends-on, configure.ac): Likewise.
26419         * modules/unictype/property-other-grapheme-extend (Depends-on,
26420         configure.ac): Likewise.
26421         * modules/unictype/property-other-id-continue (Depends-on,
26422         configure.ac): Likewise.
26423         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26424         Likewise.
26425         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26426         Likewise.
26427         * modules/unictype/property-other-math (Depends-on, configure.ac):
26428         Likewise.
26429         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26430         Likewise.
26431         * modules/unictype/property-paired-punctuation (Depends-on,
26432         configure.ac): Likewise.
26433         * modules/unictype/property-paragraph-separator (Depends-on,
26434         configure.ac): Likewise.
26435         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26436         Likewise.
26437         * modules/unictype/property-pattern-white-space (Depends-on,
26438         configure.ac): Likewise.
26439         * modules/unictype/property-private-use (Depends-on, configure.ac):
26440         Likewise.
26441         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26442         Likewise.
26443         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26444         Likewise.
26445         * modules/unictype/property-radical (Depends-on, configure.ac):
26446         Likewise.
26447         * modules/unictype/property-sentence-terminal (Depends-on,
26448         configure.ac): Likewise.
26449         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26450         Likewise.
26451         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26452         * modules/unictype/property-terminal-punctuation (Depends-on,
26453         configure.ac): Likewise.
26454         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26455         Likewise.
26456         * modules/unictype/property-unassigned-code-value (Depends-on,
26457         configure.ac): Likewise.
26458         * modules/unictype/property-unified-ideograph (Depends-on,
26459         configure.ac): Likewise.
26460         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26461         Likewise.
26462         * modules/unictype/property-variation-selector (Depends-on,
26463         configure.ac): Likewise.
26464         * modules/unictype/property-white-space (Depends-on, configure.ac):
26465         Likewise.
26466         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26467         Likewise.
26468         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26469         Likewise.
26470         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26471         Likewise.
26472         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26473         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26474         Likewise.
26475
26476 2009-12-31  Bruno Haible  <bruno@clisp.org>
26477
26478         Remove unnecessary AC_C_INLINE invocation.
26479         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26480         since 2009-08-21.
26481
26482 2009-12-31  Jim Meyering  <meyering@redhat.com>
26483
26484         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26485         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26486         With this change, we can all remove the gpg_key_ID = ... definition
26487         from our respective cfg.mk files.
26488
26489         maint.mk: create announcement template in ~/, not in /tmp
26490         * top/maint.mk (emit_upload_commands): Adjust.
26491         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26492         Remove temporary file, .ci-msg.
26493
26494 2009-12-31  Eric Blake  <ebb9@byu.net>
26495
26496         link-warning: always build headers with link warnings
26497         * modules/arpa_inet (Makefile.am): Always build replacement
26498         header.
26499         * modules/ctype (Makefile.am): Likewise.
26500         * modules/dirent (Makefile.am): Likewise.
26501         * modules/inttypes (Makefile.am): Likewise.
26502         * modules/langinfo (Makefile.am): Likewise.
26503         * modules/locale (Makefile.am): Likewise.
26504         * modules/spawn (Makefile.am): Likewise.
26505         * modules/sys_file (Makefile.am): Likewise.
26506         * modules/sys_ioctl (Makefile.am): Likewise.
26507         * modules/sys_select (Makefile.am): Likewise.
26508         * modules/sys_socket (Makefile.am): Likewise.
26509         * modules/sys_times (Makefile.am): Likewise.
26510         * modules/sys_utsname (Makefile.am): Likewise.
26511         * modules/sys_wait (Makefile.am): Likewise.
26512         * modules/wchar (Makefile.am): Likewise.
26513         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26514         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26515         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26516         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26517         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26518         Likewise.
26519         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26520         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26521         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26522         Likewise.
26523         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26524         Likewise.
26525         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26526         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26527         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26529         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26530         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26531         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26532         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26533         (gl_WCHAR_H_DEFAULTS): Likewise.
26534
26535 2009-12-31  Eric Blake  <ebb9@byu.net>
26536
26537         signal, spawn: use link warnings
26538         * lib/signal.in.h (sigset_t): Make unconditional.
26539         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26540         (sigpending, sigprocmask, sigaction): Add link warnings.
26541         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26542         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26543         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26544         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26545         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26546         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26547         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26548         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26549         (posix_spawn_file_actions_destroy)
26550         (posix_spawn_file_actions_addopen)
26551         (posix_spawn_file_actions_addclose)
26552         (posix_spawn_file_actions_adddup2): Likewise.
26553         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26554         * tests/test-signal.c (main): Enhance test.
26555
26556         spawn: improve wrapper support
26557         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26558         (gl_SPAWN_H_DEFAULTS): New defaults.
26559         * modules/spawn (Makefile.am): Substitute them.
26560         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26561         Only declare if missing or broken.
26562
26563         sys_times, sys_utsname: use include_next
26564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26565         header.
26566         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26567         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26568         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26569         * modules/sys_times (Depends-on): Add include_next.
26570         (Makefile.am): Substitute additional values.
26571         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26572         * lib/sys_times.in.h (includes): Include native header, if
26573         available.
26574         * lib/sys_utsname.in.h (includes): Likewise.
26575         * tests/test-sys_times.c (main): Enhance test.
26576
26577         fdutimensat: revert prior patch
26578         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26579         utimens.h.
26580         Reported by Bruno Haible.
26581
26582 2009-12-30  Eric Blake  <ebb9@byu.net>
26583
26584         sys_wait: drop link-warning dependency
26585         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26586         link-warning efforts.
26587         * lib/sys_wait.in.h: Likewise.
26588
26589         fdutimensat: remove bogus dependency
26590         * modules/fdutimensat (Depends-on): Drop inline.
26591
26592         unistd: fix typo
26593         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26594
26595 2009-12-30  Bruno Haible  <bruno@clisp.org>
26596
26597         Fix compilation error with Solaris cc.
26598         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26599         * lib/unicase/u16-is-invariant.c: Likewise.
26600         * lib/unicase/u32-is-invariant.c: Likewise.
26601         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26602
26603 2009-12-30  Bruno Haible  <bruno@clisp.org>
26604
26605         Fix test crash.
26606         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26607         locales.
26608         Reported by Simon Josefsson <simon@josefsson.org>.
26609
26610 2009-12-30  Bruno Haible  <bruno@clisp.org>
26611
26612         Fix compilation error on most platforms.
26613         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26614         Reported by Simon Josefsson <simon@josefsson.org>
26615         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26616
26617 2009-12-30  Eric Blake  <ebb9@byu.net>
26618
26619         futimens, utimensat: work around ntfs-3g bug
26620         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26621         a ctime bug is present, and expand workaround to cover ntfs-3g.
26622         * lib/utimens.c (fdutimens, lutimens): Likewise.
26623         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26624         (validate_timespec): Adjust return value.
26625         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26626         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26627         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26628
26629 2009-12-29  Eric Blake  <ebb9@byu.net>
26630
26631         link-warning: make usage consistent
26632         * modules/ctype (Depends-on): Add link-warning.
26633         (Makefile.am): Update rules accordingly.
26634         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26635         * modules/locale (Depends-on, Makefile.am): Likewise.
26636         * modules/sys_file (Makefile.am): Likewise.
26637         * modules/getopt-posix (Makefile.am): Delete unused link warning
26638         efforts.
26639         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26640         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26641         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26642         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26643
26644         stdio: remove unused variables
26645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26647         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26648
26649         tests: test more substitute headers
26650         * modules/ctype-tests: New file.
26651         * modules/dirent-tests: Likewise.
26652         * modules/spawn-tests: Likewise.
26653         * modules/sys_file-tests: Likewise.
26654         * modules/sys_ioctl-tests: Likewise.
26655         * modules/sys_wait-tests: Likewise.
26656         * tests/test-ctype.c: Likewise.
26657         * tests/test-dirent.c: Likewise.
26658         * tests/test-spawn.c: Likewise.
26659         * tests/test-sys_file.c: Likewise.
26660         * tests/test-sys_ioctl.c: Likewise.
26661         * tests/test-sys_wait.c: Likewise.
26662         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26663         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26664         whether or not flock is in use.
26665
26666         tests: remove License section from module
26667         * modules/arpa_inet-tests: Remove unneeded section.
26668         * modules/byteswap-tests: Likewise.
26669         * modules/ceilf-tests: Likewise.
26670         * modules/ceill-tests: Likewise.
26671         * modules/crypto/des-tests: Likewise.
26672         * modules/crypto/gc-arcfour-tests: Likewise.
26673         * modules/crypto/gc-arctwo-tests: Likewise.
26674         * modules/crypto/gc-des-tests: Likewise.
26675         * modules/crypto/gc-hmac-md5-tests: Likewise.
26676         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26677         * modules/crypto/gc-md2-tests: Likewise.
26678         * modules/crypto/gc-md4-tests: Likewise.
26679         * modules/crypto/gc-md5-tests: Likewise.
26680         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26681         * modules/crypto/gc-rijndael-tests: Likewise.
26682         * modules/crypto/gc-sha1-tests: Likewise.
26683         * modules/crypto/gc-tests: Likewise.
26684         * modules/crypto/md2-tests: Likewise.
26685         * modules/crypto/md4-tests: Likewise.
26686         * modules/fcntl-h-tests: Likewise.
26687         * modules/floorf-tests: Likewise.
26688         * modules/floorl-tests: Likewise.
26689         * modules/frexp-nolibm-tests: Likewise.
26690         * modules/frexp-tests: Likewise.
26691         * modules/frexpl-nolibm-tests: Likewise.
26692         * modules/frexpl-tests: Likewise.
26693         * modules/getaddrinfo-tests: Likewise.
26694         * modules/inttypes-tests: Likewise.
26695         * modules/isfinite-tests: Likewise.
26696         * modules/isinf-tests: Likewise.
26697         * modules/ldexpl-tests: Likewise.
26698         * modules/locale-tests: Likewise.
26699         * modules/math-tests: Likewise.
26700         * modules/netdb-tests: Likewise.
26701         * modules/netinet_in-tests: Likewise.
26702         * modules/printf-frexp-tests: Likewise.
26703         * modules/printf-frexpl-tests: Likewise.
26704         * modules/priv-set-tests: Likewise.
26705         * modules/random_r-tests: Likewise.
26706         * modules/round-tests: Likewise.
26707         * modules/roundf-tests: Likewise.
26708         * modules/roundl-tests: Likewise.
26709         * modules/search-tests: Likewise.
26710         * modules/select-tests: Likewise.
26711         * modules/signal-tests: Likewise.
26712         * modules/stdbool-tests: Likewise.
26713         * modules/stddef-tests: Likewise.
26714         * modules/stdint-tests: Likewise.
26715         * modules/stdio-tests: Likewise.
26716         * modules/stdlib-tests: Likewise.
26717         * modules/string-tests: Likewise.
26718         * modules/strings-tests: Likewise.
26719         * modules/sys_select-tests: Likewise.
26720         * modules/sys_socket-tests: Likewise.
26721         * modules/sys_stat-tests: Likewise.
26722         * modules/sys_time-tests: Likewise.
26723         * modules/sys_utsname-tests: Likewise.
26724         * modules/sysexits-tests: Likewise.
26725         * modules/time-tests: Likewise.
26726         * modules/trunc-tests: Likewise.
26727         * modules/truncf-tests: Likewise.
26728         * modules/truncl-tests: Likewise.
26729         * modules/tsearch-tests: Likewise.
26730         * modules/unistd-tests: Likewise.
26731         * modules/wchar-tests: Likewise.
26732         * modules/wctype-tests: Likewise.
26733
26734         tests: fix license on several tests
26735         * tests/test-des.c: Update to GPLv3+.
26736         * tests/test-flock.c: Likewise.
26737         * tests/test-fsync.c: Likewise.
26738         * tests/test-futimens.h: Likewise.
26739         * tests/test-gc-arcfour.c: Likewise.
26740         * tests/test-gc-arctwo.c: Likewise.
26741         * tests/test-gc-des.c: Likewise.
26742         * tests/test-gc-hmac-md5.c: Likewise.
26743         * tests/test-gc-hmac-sha1.c: Likewise.
26744         * tests/test-gc-md2.c: Likewise.
26745         * tests/test-gc-md4.c: Likewise.
26746         * tests/test-gc-md5.c: Likewise.
26747         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26748         * tests/test-gc-rijndael.c: Likewise.
26749         * tests/test-gc-sha1.c: Likewise.
26750         * tests/test-gc.c: Likewise.
26751         * tests/test-getcwd.c: Likewise.
26752         * tests/test-link.c: Likewise.
26753         * tests/test-link.h: Likewise.
26754         * tests/test-lutimens.h: Likewise.
26755         * tests/test-md2.c: Likewise.
26756         * tests/test-md4.c: Likewise.
26757         * tests/test-mkdir.h: Likewise.
26758         * tests/test-rename.c: Likewise.
26759         * tests/test-rename.h: Likewise.
26760         * tests/test-safe-alloc.c: Likewise.
26761         * tests/test-utimens-common.h: Likewise.
26762         * tests/test-utimens.h: Likewise.
26763
26764         maint: sync license texts
26765         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26766         * doc/gpl-3.0.texi: Revert copyright year update.
26767         * doc/lgpl-3.0.texi: Likewise.
26768
26769 2009-12-29  Jim Meyering  <meyering@redhat.com>
26770
26771         update nearly all FSF copyright year lists to include 2009
26772         The files named by the following are exempted:
26773             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26774               test -f "$dst" && { echo "$dst"; continue; }
26775               test -d "$dst" || continue
26776               echo "$dst"/$(basename "$src")
26777             done > exempt
26778             git ls-files tests/unictype >> exempt
26779         In the remaining files, convert to all-interval notation if
26780         - there is already at least one year interval like 2000-2003
26781         - the file is maintained by me
26782         - the file is in lib/uni*/, where that style already prevails
26783         Otherwise, use update-copyright's default.
26784
26785 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26786         and Eric Blake  <ebb9@byu.net>
26787
26788         tests: don't require debug system() to pass
26789         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26790         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26791         * tests/test-unlink.h (test_unlink_func): Likewise.
26792         * tests/test-fstatat.c (main): ...into callers.
26793         * tests/test-lstat.c (main): Likewise.
26794         * tests/test-rmdir.c (main): Likewise.
26795         * tests/test-unlink.c (main): Likewise.
26796         * tests/test-unlinkat.c (main): Likewise.
26797         * tests/test-areadlink-with-size.c (main): Don't require a
26798         debug-only system call to pass, aiding cross-testing to mingw.
26799         * tests/test-areadlink.c (main): Likewise.
26800         * tests/test-areadlinkat-with-size.c (main): Likewise.
26801         * tests/test-areadlinkat.c (main): Likewise.
26802         * tests/test-canonicalize-lgpl.c (main): Likewise.
26803         * tests/test-canonicalize.c (main): Likewise.
26804         * tests/test-chown.c (main): Likewise.
26805         * tests/test-fchownat.c (main): Likewise.
26806         * tests/test-lchown.c (main): Likewise.
26807         * tests/test-fdutimensat.c (main): Likewise.
26808         * tests/test-futimens.c (main): Likewise.
26809         * tests/test-link.c (main): Likewise.
26810         * tests/test-linkat.c (main): Likewise.
26811         * tests/test-mkdir.c (main): Likewise.
26812         * tests/test-mkdirat.c (main): Likewise.
26813         * tests/test-mkfifo.c (main): Likewise.
26814         * tests/test-mkfifoat.c (main): Likewise.
26815         * tests/test-mknod.c (main): Likewise.
26816         * tests/test-readlink.c (main): Likewise.
26817         * tests/test-remove.c (main): Likewise.
26818         * tests/test-rename.c (main): Likewise.
26819         * tests/test-renameat.c (main): Likewise.
26820         * tests/test-symlink.c (main): Likewise.
26821         * tests/test-symlinkat.c (main): Likewise.
26822         * tests/test-utimens.c (main): Likewise.
26823         * tests/test-utimensat.c (main): Likewise.
26824
26825 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26826
26827         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26828         on $(UNUSED_PARAMETER_H) to avoid build failure.
26829
26830 2009-12-28  Jim Meyering  <meyering@redhat.com>
26831
26832         update-copyright: you may specify a max. line length other than 72
26833         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26834
26835         maint: use consistent FSF copyright line syntax
26836         * lib/posixtm.c: Add missing comma in FSF copyright line.
26837         * lib/posixtm.h: Likewise.
26838         * lib/getugroups.c: Add missing ", Inc.".
26839
26840         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26841         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26842         FSF copyright line.  Remove trailing blanks.
26843
26844 2009-12-28  Eric Blake  <ebb9@byu.net>
26845
26846         test-dup2: reduce dependencies
26847         * modules/cloexec (Configure.ac): Set witness.
26848         * modules/dup2-tests (Depends-on): Drop cloexec.
26849         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26850         not present.
26851         Suggested by Bruno Haible.
26852
26853 2009-12-26  Bruno Haible  <bruno@clisp.org>
26854
26855         Remove an unneeded dependency.
26856         * modules/fseterr (Depends-on): Remove dup2.
26857
26858 2009-12-26  Eric Blake  <ebb9@byu.net>
26859
26860         tests: use macros.h in more places
26861         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26862         (ASSERT_STREAM): Provide default of stderr.
26863         * tests/test-dirent-safer.c: Include macros.h, using alternate
26864         stream for assertions.
26865         * tests/test-dup-safer.c: Likewise.
26866         * tests/test-freopen-safer.c: Likewise.
26867         * tests/test-getopt.c: Likewise.
26868         * tests/test-openat-safer.c: Likewise.
26869         * tests/test-pipe.c: Likewise.
26870         * tests/test-popen-safer.c: Likewise.
26871         * modules/dirent-safer-tests (Files): Include macros.h.
26872         * modules/unistd-safer-tests (Files): Likewise.
26873         * modules/freopen-safer-tests (Files): Likewise.
26874         * modules/getopt-posix-tests (Files): Likewise.
26875         * modules/openat-safer-tests (Files): Likewise.
26876         * modules/pipe-tests (Files): Likewise.
26877
26878 2009-12-26  Bruno Haible  <bruno@clisp.org>
26879
26880         javacomp: Portability fix.
26881         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26882         that it also works on Solaris.
26883
26884 2009-12-26  Bruno Haible  <bruno@clisp.org>
26885
26886         localename: Fix storage allocation of gl_locale_name_thread's result.
26887         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26888         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26889         all platforms that have 'uselocale'.
26890         (gl_locale_name_thread_unsafe): New function, extracted from
26891         gl_locale_name_thread.
26892         (gl_locale_name_thread): Call struniq on all platforms that have
26893         'uselocale'.
26894         * tests/test-localename.c (test_locale_name_thread): Check that the
26895         resulting strings are permanently allocated.
26896         * modules/localename-tests (Depends-on): Add strdup.
26897
26898 2009-12-26  Bruno Haible  <bruno@clisp.org>
26899
26900         * tests/test-localename.c (categories): Fill in the strings.
26901
26902 2009-12-26  Jim Meyering  <meyering@redhat.com>
26903
26904         isdir: complete the removal of m4/isdir.m4
26905         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26906
26907         isdir: clean up, since at least grep still uses it
26908         * lib/isdir.c: Include "isdir.h".
26909         (S_ISDIR): Remove now-unneeded definition.
26910         * modules/isdir (Files): Add lib/isdir.h.
26911         * lib/isdir.h: New file, with declaration.
26912         * m4/isdir.m4: Remove file -- unneeded.
26913
26914 2009-12-25  Bruno Haible  <bruno@clisp.org>
26915
26916         selinux-h: Make generated .h files standalone.
26917         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26918         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26919         * lib/se-selinux.in.h: Likewise.
26920         * modules/selinux-h (Depends-on): Add unused-parameter.
26921         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26922         selinux/selinux.h and selinux/context.h.
26923         Suggested by Eric Blake.
26924
26925 2009-12-25  Bruno Haible  <bruno@clisp.org>
26926
26927         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26928         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26929         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26930         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26931         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26932
26933 2009-12-24  Bruno Haible  <bruno@clisp.org>
26934
26935         openat: Fix warning.
26936         * lib/openat-proc.c: Include <unistd.h>.
26937
26938 2009-12-24  Bruno Haible  <bruno@clisp.org>
26939
26940         New module 'unused-parameter'.
26941         * build-aux/unused-parameter.h: New file, extracted from earlier
26942         gnulib-common.m4.
26943         * modules/unused-parameter: New file.
26944         * lib/unistr.h: Include unused-parameter.h.
26945         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26946         _GL_UNUSED.
26947         * modules/unistr/base (Depends-on): Add unused-parameter.
26948
26949 2009-12-24  Bruno Haible  <bruno@clisp.org>
26950
26951         Add missing dependencies to 'extensions' module.
26952         * m4/extensions.m4: Add comment.
26953         * modules/accept4 (Depends-on): Add extensions.
26954         * modules/dup3 (Depends-on): Likewise.
26955         * modules/fcntl (Depends-on): Likewise.
26956         * modules/futimens (Depends-on): Likewise.
26957         * modules/mknod (Depends-on): Likewise.
26958         * modules/pipe2 (Depends-on): Likewise.
26959         * modules/stat-time (Depends-on): Likewise.
26960         * modules/strcasestr-simple (Depends-on): Likewise.
26961         * modules/strsignal (Depends-on): Likewise.
26962         * modules/utimensat (Depends-on): Likewise.
26963         * modules/localcharset (Depends-on): Likewise. Needed because of
26964         gl_FCNTL_O_FLAGS.
26965         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26966         AC_TYPE_MBSTATE_T.
26967         * modules/wcsnrtombs (Depends-on): Likewise.
26968         * modules/wcsrtombs (Depends-on): Likewise.
26969
26970 2009-12-24  Bruno Haible  <bruno@clisp.org>
26971
26972         binary-io: Avoid gcc warning due to SET_BINARY.
26973         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26974         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26975
26976 2009-12-24  Bruno Haible  <bruno@clisp.org>
26977
26978         Avoid future namespace pollution on glibc systems.
26979         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26980         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26981         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26982         glibc systems.
26983
26984 2009-12-24  Bruno Haible  <bruno@clisp.org>
26985
26986         Refactor common macros used in tests.
26987         * tests/macros.h: New file.
26988         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26989         and/or <stdlib.h>, if appropriate.
26990         (ASSERT, SIZEOF): Remove macros.
26991         * tests/test-areadlink-with-size.c: Likewise.
26992         * tests/test-areadlinkat.c: Likewise.
26993         * tests/test-areadlinkat-with-size.c: Likewise.
26994         * tests/test-argmatch.c: Likewise.
26995         * tests/test-argv-iter.c: Likewise.
26996         * tests/test-array-mergesort.c: Likewise.
26997         * tests/test-array_list.c: Likewise.
26998         * tests/test-array_oset.c: Likewise.
26999         * tests/test-avltree_list.c: Likewise.
27000         * tests/test-avltree_oset.c: Likewise.
27001         * tests/test-avltreehash_list.c: Likewise.
27002         * tests/test-base64.c: Likewise.
27003         * tests/test-binary-io.c: Likewise.
27004         * tests/test-bitrotate.c: Likewise.
27005         * tests/test-btowc.c: Likewise.
27006         * tests/test-byteswap.c: Likewise.
27007         * tests/test-c-ctype.c: Likewise.
27008         * tests/test-c-stack.c: Likewise.
27009         * tests/test-c-strcasecmp.c: Likewise.
27010         * tests/test-c-strcasestr.c: Likewise.
27011         * tests/test-c-strncasecmp.c: Likewise.
27012         * tests/test-c-strstr.c: Likewise.
27013         * tests/test-canonicalize-lgpl.c: Likewise.
27014         * tests/test-canonicalize.c: Likewise.
27015         * tests/test-carray_list.c: Likewise.
27016         * tests/test-ceilf1.c: Likewise.
27017         * tests/test-ceilf2.c: Likewise.
27018         * tests/test-ceill.c: Likewise.
27019         * tests/test-chown.c: Likewise.
27020         * tests/test-cloexec.c: Likewise.
27021         * tests/test-copy-acl.c: Likewise.
27022         * tests/test-copy-file.c: Likewise.
27023         * tests/test-count-one-bits.c: Likewise.
27024         * tests/test-dprintf-posix.c: Likewise.
27025         * tests/test-dup2.c: Likewise.
27026         * tests/test-dup3.c: Likewise.
27027         * tests/test-duplocale.c: Likewise.
27028         * tests/test-fbufmode.c: Likewise.
27029         * tests/test-fchdir.c: Likewise.
27030         * tests/test-fchownat.c: Likewise.
27031         * tests/test-fcntl-safer.c: Likewise.
27032         * tests/test-fcntl.c: Likewise.
27033         * tests/test-fdopendir.c: Likewise.
27034         * tests/test-fdutimensat.c: Likewise.
27035         * tests/test-fflush2.c: Likewise.
27036         * tests/test-file-has-acl.c: Likewise.
27037         * tests/test-filevercmp.c: Likewise.
27038         * tests/test-flock.c: Likewise.
27039         * tests/test-floorf1.c: Likewise.
27040         * tests/test-floorf2.c: Likewise.
27041         * tests/test-floorl.c: Likewise.
27042         * tests/test-fnmatch.c: Likewise.
27043         * tests/test-fopen.h: Likewise.
27044         * tests/test-fpending.c: Likewise.
27045         * tests/test-fprintf-posix.c: Likewise.
27046         * tests/test-fpurge.c: Likewise.
27047         * tests/test-freadable.c: Likewise.
27048         * tests/test-freadahead.c: Likewise.
27049         * tests/test-freading.c: Likewise.
27050         * tests/test-freadptr.c: Likewise.
27051         * tests/test-freadptr2.c: Likewise.
27052         * tests/test-freadseek.c: Likewise.
27053         * tests/test-freopen.c: Likewise.
27054         * tests/test-frexp.c: Likewise.
27055         * tests/test-frexpl.c: Likewise.
27056         * tests/test-fseek.c: Likewise.
27057         * tests/test-fseeko.c: Likewise.
27058         * tests/test-fstatat.c: Likewise.
27059         * tests/test-fstrcmp.c: Likewise.
27060         * tests/test-fsync.c: Likewise.
27061         * tests/test-ftell.c: Likewise.
27062         * tests/test-ftello.c: Likewise.
27063         * tests/test-func.c: Likewise.
27064         * tests/test-futimens.c: Likewise.
27065         * tests/test-fwritable.c: Likewise.
27066         * tests/test-fwriting.c: Likewise.
27067         * tests/test-getcwd.c: Likewise.
27068         * tests/test-getdate.c: Likewise.
27069         * tests/test-getdelim.c: Likewise.
27070         * tests/test-getdtablesize.c: Likewise.
27071         * tests/test-getgroups.c: Likewise.
27072         * tests/test-getline.c: Likewise.
27073         * tests/test-getndelim2.c: Likewise.
27074         * tests/test-glob.c: Likewise.
27075         * tests/test-hash.c: Likewise.
27076         * tests/test-i-ring.c: Likewise.
27077         * tests/test-iconv-utf.c: Likewise.
27078         * tests/test-iconv.c: Likewise.
27079         * tests/test-idpriv-drop.c: Likewise.
27080         * tests/test-idpriv-droptemp.c: Likewise.
27081         * tests/test-inet_ntop.c: Likewise.
27082         * tests/test-inet_pton.c: Likewise.
27083         * tests/test-isblank.c: Likewise.
27084         * tests/test-isfinite.c: Likewise.
27085         * tests/test-isinf.c: Likewise.
27086         * tests/test-isnan.c: Likewise.
27087         * tests/test-isnand.h: Likewise.
27088         * tests/test-isnanf.h: Likewise.
27089         * tests/test-isnanl.h: Likewise.
27090         * tests/test-lchown.c: Likewise.
27091         * tests/test-ldexpl.c: Likewise.
27092         * tests/test-link.c: Likewise.
27093         * tests/test-linkat.c: Likewise.
27094         * tests/test-linked_list.c: Likewise.
27095         * tests/test-linkedhash_list.c: Likewise.
27096         * tests/test-localename.c: Likewise.
27097         * tests/test-lseek.c: Likewise.
27098         * tests/test-lstat.c: Likewise.
27099         * tests/test-mbmemcasecmp.c: Likewise.
27100         * tests/test-mbmemcasecoll.c: Likewise.
27101         * tests/test-mbrtowc.c: Likewise.
27102         * tests/test-mbscasecmp.c: Likewise.
27103         * tests/test-mbscasestr1.c: Likewise.
27104         * tests/test-mbscasestr2.c: Likewise.
27105         * tests/test-mbscasestr3.c: Likewise.
27106         * tests/test-mbscasestr4.c: Likewise.
27107         * tests/test-mbschr.c: Likewise.
27108         * tests/test-mbscspn.c: Likewise.
27109         * tests/test-mbsinit.c: Likewise.
27110         * tests/test-mbsncasecmp.c: Likewise.
27111         * tests/test-mbsnrtowcs.c: Likewise.
27112         * tests/test-mbspbrk.c: Likewise.
27113         * tests/test-mbspcasecmp.c: Likewise.
27114         * tests/test-mbsrchr.c: Likewise.
27115         * tests/test-mbsrtowcs.c: Likewise.
27116         * tests/test-mbsspn.c: Likewise.
27117         * tests/test-mbsstr1.c: Likewise.
27118         * tests/test-mbsstr2.c: Likewise.
27119         * tests/test-mbsstr3.c: Likewise.
27120         * tests/test-memchr.c: Likewise.
27121         * tests/test-memchr2.c: Likewise.
27122         * tests/test-memcmp.c: Likewise.
27123         * tests/test-memmem.c: Likewise.
27124         * tests/test-memrchr.c: Likewise.
27125         * tests/test-mkdir.c: Likewise.
27126         * tests/test-mkdirat.c: Likewise.
27127         * tests/test-mkfifo.c: Likewise.
27128         * tests/test-mkfifoat.c: Likewise.
27129         * tests/test-mknod.c: Likewise.
27130         * tests/test-nanosleep.c: Likewise.
27131         * tests/test-nl_langinfo.c: Likewise.
27132         * tests/test-obstack-printf.c: Likewise.
27133         * tests/test-open.c: Likewise.
27134         * tests/test-openat.c: Likewise.
27135         * tests/test-pipe-filter-gi1.c: Likewise.
27136         * tests/test-pipe-filter-gi2-main.c: Likewise.
27137         * tests/test-pipe-filter-ii1.c: Likewise.
27138         * tests/test-pipe-filter-ii2-main.c: Likewise.
27139         * tests/test-pipe2.c: Likewise.
27140         * tests/test-popen.h: Likewise.
27141         * tests/test-posixtm.c: Likewise.
27142         * tests/test-pread.c: Likewise.
27143         * tests/test-printf-frexp.c: Likewise.
27144         * tests/test-printf-frexpl.c: Likewise.
27145         * tests/test-printf-posix.c: Likewise.
27146         * tests/test-priv-set.c: Likewise.
27147         * tests/test-quotearg.c: Likewise.
27148         * tests/test-random_r.c: Likewise.
27149         * tests/test-rawmemchr.c: Likewise.
27150         * tests/test-rbtree_list.c: Likewise.
27151         * tests/test-rbtree_oset.c: Likewise.
27152         * tests/test-rbtreehash_list.c: Likewise.
27153         * tests/test-readlink.c: Likewise.
27154         * tests/test-remove.c: Likewise.
27155         * tests/test-rename.c: Likewise.
27156         * tests/test-renameat.c: Likewise.
27157         * tests/test-rmdir.c: Likewise.
27158         * tests/test-round1.c: Likewise.
27159         * tests/test-roundf1.c: Likewise.
27160         * tests/test-roundl.c: Likewise.
27161         * tests/test-safe-alloc.c: Likewise.
27162         * tests/test-sameacls.c: Likewise.
27163         * tests/test-set-mode-acl.c: Likewise.
27164         * tests/test-setenv.c: Likewise.
27165         * tests/test-sigaction.c: Likewise.
27166         * tests/test-signbit.c: Likewise.
27167         * tests/test-sleep.c: Likewise.
27168         * tests/test-snprintf-posix.c: Likewise.
27169         * tests/test-snprintf.c: Likewise.
27170         * tests/test-sprintf-posix.c: Likewise.
27171         * tests/test-stat-time.c: Likewise.
27172         * tests/test-stat.c: Likewise.
27173         * tests/test-strcasestr.c: Likewise.
27174         * tests/test-strchrnul.c: Likewise.
27175         * tests/test-strerror.c: Likewise.
27176         * tests/test-striconv.c: Likewise.
27177         * tests/test-striconveh.c: Likewise.
27178         * tests/test-striconveha.c: Likewise.
27179         * tests/test-strsignal.c: Likewise.
27180         * tests/test-strstr.c: Likewise.
27181         * tests/test-strtod.c: Likewise.
27182         * tests/test-strverscmp.c: Likewise.
27183         * tests/test-symlink.c: Likewise.
27184         * tests/test-symlinkat.c: Likewise.
27185         * tests/test-trunc1.c: Likewise.
27186         * tests/test-trunc2.c: Likewise.
27187         * tests/test-truncf1.c: Likewise.
27188         * tests/test-truncf2.c: Likewise.
27189         * tests/test-truncl.c: Likewise.
27190         * tests/test-uname.c: Likewise.
27191         * tests/test-unlink.c: Likewise.
27192         * tests/test-unlinkat.c: Likewise.
27193         * tests/test-unsetenv.c: Likewise.
27194         * tests/test-usleep.c: Likewise.
27195         * tests/test-utimens.c: Likewise.
27196         * tests/test-utimensat.c: Likewise.
27197         * tests/test-vasnprintf-posix.c: Likewise.
27198         * tests/test-vasnprintf-posix2.c: Likewise.
27199         * tests/test-vasnprintf.c: Likewise.
27200         * tests/test-vasprintf-posix.c: Likewise.
27201         * tests/test-vasprintf.c: Likewise.
27202         * tests/test-vdprintf-posix.c: Likewise.
27203         * tests/test-vfprintf-posix.c: Likewise.
27204         * tests/test-vprintf-posix.c: Likewise.
27205         * tests/test-vsnprintf-posix.c: Likewise.
27206         * tests/test-vsnprintf.c: Likewise.
27207         * tests/test-vsprintf-posix.c: Likewise.
27208         * tests/test-wcrtomb.c: Likewise.
27209         * tests/test-wcsnrtombs.c: Likewise.
27210         * tests/test-wcsrtombs.c: Likewise.
27211         * tests/test-wctype.c: Likewise.
27212         * tests/test-wcwidth.c: Likewise.
27213         * tests/test-xfprintf-posix.c: Likewise.
27214         * tests/test-xmemdup0.c: Likewise.
27215         * tests/test-xprintf-posix.c: Likewise.
27216         * tests/test-xvasprintf.c: Likewise.
27217         * tests/unicase/test-locale-language.c: Likewise.
27218         * tests/unicase/test-mapping-part1.h: Likewise.
27219         * tests/unicase/test-predicate-part1.h: Likewise.
27220         * tests/unicase/test-u8-casecmp.c: Likewise.
27221         * tests/unicase/test-u8-casecoll.c: Likewise.
27222         * tests/unicase/test-u8-casefold.c: Likewise.
27223         * tests/unicase/test-u8-is-cased.c: Likewise.
27224         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27225         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27226         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27227         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27228         * tests/unicase/test-u8-tolower.c: Likewise.
27229         * tests/unicase/test-u8-totitle.c: Likewise.
27230         * tests/unicase/test-u8-toupper.c: Likewise.
27231         * tests/unicase/test-u16-casecmp.c: Likewise.
27232         * tests/unicase/test-u16-casecoll.c: Likewise.
27233         * tests/unicase/test-u16-casefold.c: Likewise.
27234         * tests/unicase/test-u16-is-cased.c: Likewise.
27235         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27236         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27237         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27238         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27239         * tests/unicase/test-u16-tolower.c: Likewise.
27240         * tests/unicase/test-u16-totitle.c: Likewise.
27241         * tests/unicase/test-u16-toupper.c: Likewise.
27242         * tests/unicase/test-u32-casecmp.c: Likewise.
27243         * tests/unicase/test-u32-casecoll.c: Likewise.
27244         * tests/unicase/test-u32-casefold.c: Likewise.
27245         * tests/unicase/test-u32-is-cased.c: Likewise.
27246         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27247         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27248         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27249         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27250         * tests/unicase/test-u32-tolower.c: Likewise.
27251         * tests/unicase/test-u32-totitle.c: Likewise.
27252         * tests/unicase/test-u32-toupper.c: Likewise.
27253         * tests/unicase/test-ulc-casecmp.c: Likewise.
27254         * tests/unicase/test-ulc-casecoll.c: Likewise.
27255         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27256         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27257         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27258         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27259         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27260         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27261         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27262         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27263         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27264         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27265         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27266         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27267         * tests/unictype/test-bidi_byname.c: Likewise.
27268         * tests/unictype/test-bidi_name.c: Likewise.
27269         * tests/unictype/test-bidi_of.c: Likewise.
27270         * tests/unictype/test-bidi_test.c: Likewise.
27271         * tests/unictype/test-block_list.c: Likewise.
27272         * tests/unictype/test-block_of.c: Likewise.
27273         * tests/unictype/test-block_test.c: Likewise.
27274         * tests/unictype/test-categ_and.c: Likewise.
27275         * tests/unictype/test-categ_and_not.c: Likewise.
27276         * tests/unictype/test-categ_byname.c: Likewise.
27277         * tests/unictype/test-categ_name.c: Likewise.
27278         * tests/unictype/test-categ_none.c: Likewise.
27279         * tests/unictype/test-categ_of.c: Likewise.
27280         * tests/unictype/test-categ_or.c: Likewise.
27281         * tests/unictype/test-categ_test_withtable.c: Likewise.
27282         * tests/unictype/test-combining.c: Likewise.
27283         * tests/unictype/test-decdigit.c: Likewise.
27284         * tests/unictype/test-digit.c: Likewise.
27285         * tests/unictype/test-mirror.c: Likewise.
27286         * tests/unictype/test-numeric.c: Likewise.
27287         * tests/unictype/test-pr_byname.c: Likewise.
27288         * tests/unictype/test-pr_test.c: Likewise.
27289         * tests/unictype/test-predicate-part1.h: Likewise.
27290         * tests/unictype/test-scripts.c: Likewise.
27291         * tests/unictype/test-sy_c_ident.c: Likewise.
27292         * tests/unictype/test-sy_java_ident.c: Likewise.
27293         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27294         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27295         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27296         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27297         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27298         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27299         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27300         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27301         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27302         * tests/uninorm/test-compat-decomposition.c: Likewise.
27303         * tests/uninorm/test-composition.c: Likewise.
27304         * tests/uninorm/test-decomposing-form.c: Likewise.
27305         * tests/uninorm/test-decomposition.c: Likewise.
27306         * tests/uninorm/test-u8-nfc.c: Likewise.
27307         * tests/uninorm/test-u8-nfd.c: Likewise.
27308         * tests/uninorm/test-u8-nfkc.c: Likewise.
27309         * tests/uninorm/test-u8-nfkd.c: Likewise.
27310         * tests/uninorm/test-u8-normcmp.c: Likewise.
27311         * tests/uninorm/test-u8-normcoll.c: Likewise.
27312         * tests/uninorm/test-u16-nfc.c: Likewise.
27313         * tests/uninorm/test-u16-nfd.c: Likewise.
27314         * tests/uninorm/test-u16-nfkc.c: Likewise.
27315         * tests/uninorm/test-u16-nfkd.c: Likewise.
27316         * tests/uninorm/test-u16-normcmp.c: Likewise.
27317         * tests/uninorm/test-u16-normcoll.c: Likewise.
27318         * tests/uninorm/test-u32-nfc.c: Likewise.
27319         * tests/uninorm/test-u32-nfd.c: Likewise.
27320         * tests/uninorm/test-u32-nfkc.c: Likewise.
27321         * tests/uninorm/test-u32-nfkd.c: Likewise.
27322         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27323         * tests/uninorm/test-u32-normcmp.c: Likewise.
27324         * tests/uninorm/test-u32-normcoll.c: Likewise.
27325         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27326         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27327         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27328         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27329         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27330         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27331         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27332         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27333         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27334         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27335         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27336         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27337         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27338         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27339         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27340         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27341         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27342         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27343         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27344         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27345         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27346         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27347         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27348         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27349         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27350         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27351         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27352         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27353         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27354         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27355         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27356         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27357         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27358         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27359         * tests/uniwidth/test-u8-width.c: Likewise.
27360         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27361         * tests/uniwidth/test-u16-width.c: Likewise.
27362         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27363         * tests/uniwidth/test-u32-width.c: Likewise.
27364         * tests/uniwidth/test-uc_width.c: Likewise.
27365         * tests/uniwidth/test-uc_width2.c: Likewise.
27366         * modules/acl-tests (Files): Add tests/macros.h.
27367         * modules/areadlink-tests (Files): Likewise.
27368         * modules/areadlink-with-size-tests (Files): Likewise.
27369         * modules/areadlinkat-tests (Files): Likewise.
27370         * modules/areadlinkat-with-size-tests (Files): Likewise.
27371         * modules/argmatch-tests (Files): Likewise.
27372         * modules/argv-iter-tests (Files): Likewise.
27373         * modules/array-list-tests (Files): Likewise.
27374         * modules/array-mergesort-tests (Files): Likewise.
27375         * modules/array-oset-tests (Files): Likewise.
27376         * modules/avltree-list-tests (Files): Likewise.
27377         * modules/avltree-oset-tests (Files): Likewise.
27378         * modules/avltreehash-list-tests (Files): Likewise.
27379         * modules/base64-tests (Files): Likewise.
27380         * modules/binary-io-tests (Files): Likewise.
27381         * modules/bitrotate-tests (Files): Likewise.
27382         * modules/btowc-tests (Files): Likewise.
27383         * modules/byteswap-tests (Files): Likewise.
27384         * modules/c-ctype-tests (Files): Likewise.
27385         * modules/c-stack-tests (Files): Likewise.
27386         * modules/c-strcase-tests (Files): Likewise.
27387         * modules/c-strcasestr-tests (Files): Likewise.
27388         * modules/c-strstr-tests (Files): Likewise.
27389         * modules/canonicalize-lgpl-tests (Files): Likewise.
27390         * modules/canonicalize-tests (Files): Likewise.
27391         * modules/carray-list-tests (Files): Likewise.
27392         * modules/ceilf-tests (Files): Likewise.
27393         * modules/ceill-tests (Files): Likewise.
27394         * modules/chown-tests (Files): Likewise.
27395         * modules/cloexec-tests (Files): Likewise.
27396         * modules/copy-file-tests (Files): Likewise.
27397         * modules/count-one-bits-tests (Files): Likewise.
27398         * modules/dprintf-posix-tests (Files): Likewise.
27399         * modules/dup2-tests (Files): Likewise.
27400         * modules/dup3-tests (Files): Likewise.
27401         * modules/duplocale-tests (Files): Likewise.
27402         * modules/fbufmode-tests (Files): Likewise.
27403         * modules/fchdir-tests (Files): Likewise.
27404         * modules/fcntl-safer-tests (Files): Likewise.
27405         * modules/fcntl-tests (Files): Likewise.
27406         * modules/fdopendir-tests (Files): Likewise.
27407         * modules/fdutimensat-tests (Files): Likewise.
27408         * modules/fflush-tests (Files): Likewise.
27409         * modules/filevercmp-tests (Files): Likewise.
27410         * modules/flock-tests (Files): Likewise.
27411         * modules/floorf-tests (Files): Likewise.
27412         * modules/floorl-tests (Files): Likewise.
27413         * modules/fnmatch-tests (Files): Likewise.
27414         * modules/fopen-safer-tests (Files): Likewise.
27415         * modules/fopen-tests (Files): Likewise.
27416         * modules/fpending-tests (Files): Likewise.
27417         * modules/fprintf-posix-tests (Files): Likewise.
27418         * modules/fpurge-tests (Files): Likewise.
27419         * modules/freadable-tests (Files): Likewise.
27420         * modules/freadahead-tests (Files): Likewise.
27421         * modules/freading-tests (Files): Likewise.
27422         * modules/freadptr-tests (Files): Likewise.
27423         * modules/freadseek-tests (Files): Likewise.
27424         * modules/freopen-tests (Files): Likewise.
27425         * modules/frexp-nolibm-tests (Files): Likewise.
27426         * modules/frexp-tests (Files): Likewise.
27427         * modules/frexpl-nolibm-tests (Files): Likewise.
27428         * modules/frexpl-tests (Files): Likewise.
27429         * modules/fseek-tests (Files): Likewise.
27430         * modules/fseeko-tests (Files): Likewise.
27431         * modules/fstrcmp-tests (Files): Likewise.
27432         * modules/fsync-tests (Files): Likewise.
27433         * modules/ftell-tests (Files): Likewise.
27434         * modules/ftello-tests (Files): Likewise.
27435         * modules/func-tests (Files): Likewise.
27436         * modules/futimens-tests (Files): Likewise.
27437         * modules/fwritable-tests (Files): Likewise.
27438         * modules/fwriting-tests (Files): Likewise.
27439         * modules/getcwd-tests (Files): Likewise.
27440         * modules/getdate-tests (Files): Likewise.
27441         * modules/getdelim-tests (Files): Likewise.
27442         * modules/getdtablesize-tests (Files): Likewise.
27443         * modules/getgroups-tests (Files): Likewise.
27444         * modules/getline-tests (Files): Likewise.
27445         * modules/getndelim2-tests (Files): Likewise.
27446         * modules/glob-tests (Files): Likewise.
27447         * modules/hash-tests (Files): Likewise.
27448         * modules/i-ring-tests (Files): Likewise.
27449         * modules/iconv-tests (Files): Likewise.
27450         * modules/iconv_open-utf-tests (Files): Likewise.
27451         * modules/idpriv-drop-tests (Files): Likewise.
27452         * modules/idpriv-droptemp-tests (Files): Likewise.
27453         * modules/inet_ntop-tests (Files): Likewise.
27454         * modules/inet_pton-tests (Files): Likewise.
27455         * modules/isblank-tests (Files): Likewise.
27456         * modules/isfinite-tests (Files): Likewise.
27457         * modules/isinf-tests (Files): Likewise.
27458         * modules/isnan-tests (Files): Likewise.
27459         * modules/isnand-nolibm-tests (Files): Likewise.
27460         * modules/isnand-tests (Files): Likewise.
27461         * modules/isnanf-nolibm-tests (Files): Likewise.
27462         * modules/isnanf-tests (Files): Likewise.
27463         * modules/isnanl-nolibm-tests (Files): Likewise.
27464         * modules/isnanl-tests (Files): Likewise.
27465         * modules/lchown-tests (Files): Likewise.
27466         * modules/ldexpl-tests (Files): Likewise.
27467         * modules/link-tests (Files): Likewise.
27468         * modules/linkat-tests (Files): Likewise.
27469         * modules/linked-list-tests (Files): Likewise.
27470         * modules/linkedhash-list-tests (Files): Likewise.
27471         * modules/localename-tests (Files): Likewise.
27472         * modules/lseek-tests (Files): Likewise.
27473         * modules/lstat-tests (Files): Likewise.
27474         * modules/mbmemcasecmp-tests (Files): Likewise.
27475         * modules/mbmemcasecoll-tests (Files): Likewise.
27476         * modules/mbrtowc-tests (Files): Likewise.
27477         * modules/mbscasecmp-tests (Files): Likewise.
27478         * modules/mbscasestr-tests (Files): Likewise.
27479         * modules/mbschr-tests (Files): Likewise.
27480         * modules/mbscspn-tests (Files): Likewise.
27481         * modules/mbsinit-tests (Files): Likewise.
27482         * modules/mbsncasecmp-tests (Files): Likewise.
27483         * modules/mbsnrtowcs-tests (Files): Likewise.
27484         * modules/mbspbrk-tests (Files): Likewise.
27485         * modules/mbspcasecmp-tests (Files): Likewise.
27486         * modules/mbsrchr-tests (Files): Likewise.
27487         * modules/mbsrtowcs-tests (Files): Likewise.
27488         * modules/mbsspn-tests (Files): Likewise.
27489         * modules/mbsstr-tests (Files): Likewise.
27490         * modules/memchr-tests (Files): Likewise.
27491         * modules/memchr2-tests (Files): Likewise.
27492         * modules/memcmp-tests (Files): Likewise.
27493         * modules/memmem-tests (Files): Likewise.
27494         * modules/memrchr-tests (Files): Likewise.
27495         * modules/mkdir-tests (Files): Likewise.
27496         * modules/mkfifo-tests (Files): Likewise.
27497         * modules/mkfifoat-tests (Files): Likewise.
27498         * modules/mknod-tests (Files): Likewise.
27499         * modules/nanosleep-tests (Files): Likewise.
27500         * modules/nl_langinfo-tests (Files): Likewise.
27501         * modules/obstack-printf-tests (Files): Likewise.
27502         * modules/open-tests (Files): Likewise.
27503         * modules/openat-tests (Files): Likewise.
27504         * modules/pipe-filter-gi-tests (Files): Likewise.
27505         * modules/pipe-filter-ii-tests (Files): Likewise.
27506         * modules/pipe2-tests (Files): Likewise.
27507         * modules/popen-safer-tests (Files): Likewise.
27508         * modules/popen-tests (Files): Likewise.
27509         * modules/posixtm-tests (Files): Likewise.
27510         * modules/pread-tests (Files): Likewise.
27511         * modules/printf-frexp-tests (Files): Likewise.
27512         * modules/printf-frexpl-tests (Files): Likewise.
27513         * modules/printf-posix-tests (Files): Likewise.
27514         * modules/priv-set-tests (Files): Likewise.
27515         * modules/quotearg-tests (Files): Likewise.
27516         * modules/random_r-tests (Files): Likewise.
27517         * modules/rawmemchr-tests (Files): Likewise.
27518         * modules/rbtree-list-tests (Files): Likewise.
27519         * modules/rbtree-oset-tests (Files): Likewise.
27520         * modules/rbtreehash-list-tests (Files): Likewise.
27521         * modules/readlink-tests (Files): Likewise.
27522         * modules/remove-tests (Files): Likewise.
27523         * modules/rename-tests (Files): Likewise.
27524         * modules/renameat-tests (Files): Likewise.
27525         * modules/rmdir-tests (Files): Likewise.
27526         * modules/round-tests (Files): Likewise.
27527         * modules/roundf-tests (Files): Likewise.
27528         * modules/roundl-tests (Files): Likewise.
27529         * modules/safe-alloc-tests (Files): Likewise.
27530         * modules/setenv-tests (Files): Likewise.
27531         * modules/sigaction-tests (Files): Likewise.
27532         * modules/signbit-tests (Files): Likewise.
27533         * modules/sleep-tests (Files): Likewise.
27534         * modules/snprintf-posix-tests (Files): Likewise.
27535         * modules/snprintf-tests (Files): Likewise.
27536         * modules/sprintf-posix-tests (Files): Likewise.
27537         * modules/stat-tests (Files): Likewise.
27538         * modules/stat-time-tests (Files): Likewise.
27539         * modules/strcasestr-tests (Files): Likewise.
27540         * modules/strchrnul-tests (Files): Likewise.
27541         * modules/strerror-tests (Files): Likewise.
27542         * modules/striconv-tests (Files): Likewise.
27543         * modules/striconveh-tests (Files): Likewise.
27544         * modules/striconveha-tests (Files): Likewise.
27545         * modules/strsignal-tests (Files): Likewise.
27546         * modules/strstr-tests (Files): Likewise.
27547         * modules/strtod-tests (Files): Likewise.
27548         * modules/strverscmp-tests (Files): Likewise.
27549         * modules/symlink-tests (Files): Likewise.
27550         * modules/symlinkat-tests (Files): Likewise.
27551         * modules/trunc-tests (Files): Likewise.
27552         * modules/truncf-tests (Files): Likewise.
27553         * modules/truncl-tests (Files): Likewise.
27554         * modules/uname-tests (Files): Likewise.
27555         * modules/unicase/cased-tests (Files): Likewise.
27556         * modules/unicase/ignorable-tests (Files): Likewise.
27557         * modules/unicase/locale-language-tests (Files): Likewise.
27558         * modules/unicase/tolower-tests (Files): Likewise.
27559         * modules/unicase/totitle-tests (Files): Likewise.
27560         * modules/unicase/toupper-tests (Files): Likewise.
27561         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27562         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27563         * modules/unicase/u8-casefold-tests (Files): Likewise.
27564         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27565         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27566         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27567         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27568         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27569         * modules/unicase/u8-tolower-tests (Files): Likewise.
27570         * modules/unicase/u8-totitle-tests (Files): Likewise.
27571         * modules/unicase/u8-toupper-tests (Files): Likewise.
27572         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27573         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27574         * modules/unicase/u16-casefold-tests (Files): Likewise.
27575         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27576         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27577         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27578         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27579         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27580         * modules/unicase/u16-tolower-tests (Files): Likewise.
27581         * modules/unicase/u16-totitle-tests (Files): Likewise.
27582         * modules/unicase/u16-toupper-tests (Files): Likewise.
27583         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27584         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27585         * modules/unicase/u32-casefold-tests (Files): Likewise.
27586         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27587         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27588         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27589         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27590         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27591         * modules/unicase/u32-tolower-tests (Files): Likewise.
27592         * modules/unicase/u32-totitle-tests (Files): Likewise.
27593         * modules/unicase/u32-toupper-tests (Files): Likewise.
27594         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27595         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27596         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27597         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27598         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27599         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27600         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27601         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27602         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27603         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27604         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27605         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27606         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27607         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27608         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27609         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27610         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27611         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27612         * modules/unictype/block-list-tests (Files): Likewise.
27613         * modules/unictype/block-of-tests (Files): Likewise.
27614         * modules/unictype/block-test-tests (Files): Likewise.
27615         * modules/unictype/category-C-tests (Files): Likewise.
27616         * modules/unictype/category-Cc-tests (Files): Likewise.
27617         * modules/unictype/category-Cf-tests (Files): Likewise.
27618         * modules/unictype/category-Cn-tests (Files): Likewise.
27619         * modules/unictype/category-Co-tests (Files): Likewise.
27620         * modules/unictype/category-Cs-tests (Files): Likewise.
27621         * modules/unictype/category-L-tests (Files): Likewise.
27622         * modules/unictype/category-Ll-tests (Files): Likewise.
27623         * modules/unictype/category-Lm-tests (Files): Likewise.
27624         * modules/unictype/category-Lo-tests (Files): Likewise.
27625         * modules/unictype/category-Lt-tests (Files): Likewise.
27626         * modules/unictype/category-Lu-tests (Files): Likewise.
27627         * modules/unictype/category-M-tests (Files): Likewise.
27628         * modules/unictype/category-Mc-tests (Files): Likewise.
27629         * modules/unictype/category-Me-tests (Files): Likewise.
27630         * modules/unictype/category-Mn-tests (Files): Likewise.
27631         * modules/unictype/category-N-tests (Files): Likewise.
27632         * modules/unictype/category-Nd-tests (Files): Likewise.
27633         * modules/unictype/category-Nl-tests (Files): Likewise.
27634         * modules/unictype/category-No-tests (Files): Likewise.
27635         * modules/unictype/category-P-tests (Files): Likewise.
27636         * modules/unictype/category-Pc-tests (Files): Likewise.
27637         * modules/unictype/category-Pd-tests (Files): Likewise.
27638         * modules/unictype/category-Pe-tests (Files): Likewise.
27639         * modules/unictype/category-Pf-tests (Files): Likewise.
27640         * modules/unictype/category-Pi-tests (Files): Likewise.
27641         * modules/unictype/category-Po-tests (Files): Likewise.
27642         * modules/unictype/category-Ps-tests (Files): Likewise.
27643         * modules/unictype/category-S-tests (Files): Likewise.
27644         * modules/unictype/category-Sc-tests (Files): Likewise.
27645         * modules/unictype/category-Sk-tests (Files): Likewise.
27646         * modules/unictype/category-Sm-tests (Files): Likewise.
27647         * modules/unictype/category-So-tests (Files): Likewise.
27648         * modules/unictype/category-Z-tests (Files): Likewise.
27649         * modules/unictype/category-Zl-tests (Files): Likewise.
27650         * modules/unictype/category-Zp-tests (Files): Likewise.
27651         * modules/unictype/category-Zs-tests (Files): Likewise.
27652         * modules/unictype/category-and-not-tests (Files): Likewise.
27653         * modules/unictype/category-and-tests (Files): Likewise.
27654         * modules/unictype/category-byname-tests (Files): Likewise.
27655         * modules/unictype/category-name-tests (Files): Likewise.
27656         * modules/unictype/category-none-tests (Files): Likewise.
27657         * modules/unictype/category-of-tests (Files): Likewise.
27658         * modules/unictype/category-or-tests (Files): Likewise.
27659         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27660         * modules/unictype/combining-class-tests (Files): Likewise.
27661         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27662         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27663         * modules/unictype/ctype-blank-tests (Files): Likewise.
27664         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27665         * modules/unictype/ctype-digit-tests (Files): Likewise.
27666         * modules/unictype/ctype-graph-tests (Files): Likewise.
27667         * modules/unictype/ctype-lower-tests (Files): Likewise.
27668         * modules/unictype/ctype-print-tests (Files): Likewise.
27669         * modules/unictype/ctype-punct-tests (Files): Likewise.
27670         * modules/unictype/ctype-space-tests (Files): Likewise.
27671         * modules/unictype/ctype-upper-tests (Files): Likewise.
27672         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27673         * modules/unictype/decimal-digit-tests (Files): Likewise.
27674         * modules/unictype/digit-tests (Files): Likewise.
27675         * modules/unictype/mirror-tests (Files): Likewise.
27676         * modules/unictype/numeric-tests (Files): Likewise.
27677         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27678         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27679         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27680         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27681         Likewise.
27682         * modules/unictype/property-bidi-block-separator-tests (Files):
27683         Likewise.
27684         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27685         Likewise.
27686         * modules/unictype/property-bidi-common-separator-tests (Files):
27687         Likewise.
27688         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27689         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27690         Likewise.
27691         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27692         Likewise.
27693         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27694         Likewise.
27695         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27696         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27697         Likewise.
27698         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27699         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27700         Likewise.
27701         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27702         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27703         * modules/unictype/property-bidi-segment-separator-tests (Files):
27704         Likewise.
27705         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27706         * modules/unictype/property-byname-tests (Files): Likewise.
27707         * modules/unictype/property-combining-tests (Files): Likewise.
27708         * modules/unictype/property-composite-tests (Files): Likewise.
27709         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27710         * modules/unictype/property-dash-tests (Files): Likewise.
27711         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27712         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27713         Likewise.
27714         * modules/unictype/property-deprecated-tests (Files): Likewise.
27715         * modules/unictype/property-diacritic-tests (Files): Likewise.
27716         * modules/unictype/property-extender-tests (Files): Likewise.
27717         * modules/unictype/property-format-control-tests (Files): Likewise.
27718         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27719         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27720         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27721         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27722         * modules/unictype/property-hyphen-tests (Files): Likewise.
27723         * modules/unictype/property-id-continue-tests (Files): Likewise.
27724         * modules/unictype/property-id-start-tests (Files): Likewise.
27725         * modules/unictype/property-ideographic-tests (Files): Likewise.
27726         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27727         * modules/unictype/property-ids-trinary-operator-tests (Files):
27728         Likewise.
27729         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27730         * modules/unictype/property-iso-control-tests (Files): Likewise.
27731         * modules/unictype/property-join-control-tests (Files): Likewise.
27732         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27733         * modules/unictype/property-line-separator-tests (Files): Likewise.
27734         * modules/unictype/property-logical-order-exception-tests (Files):
27735         Likewise.
27736         * modules/unictype/property-lowercase-tests (Files): Likewise.
27737         * modules/unictype/property-math-tests (Files): Likewise.
27738         * modules/unictype/property-non-break-tests (Files): Likewise.
27739         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27740         * modules/unictype/property-numeric-tests (Files): Likewise.
27741         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27742         * modules/unictype/property-other-default-ignorable-code-point-tests
27743         (Files): Likewise.
27744         * modules/unictype/property-other-grapheme-extend-tests (Files):
27745         Likewise.
27746         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27747         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27748         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27749         * modules/unictype/property-other-math-tests (Files): Likewise.
27750         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27751         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27752         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27753         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27754         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27755         * modules/unictype/property-private-use-tests (Files): Likewise.
27756         * modules/unictype/property-punctuation-tests (Files): Likewise.
27757         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27758         * modules/unictype/property-radical-tests (Files): Likewise.
27759         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27760         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27761         * modules/unictype/property-space-tests (Files): Likewise.
27762         * modules/unictype/property-terminal-punctuation-tests (Files):
27763         Likewise.
27764         * modules/unictype/property-test-tests (Files): Likewise.
27765         * modules/unictype/property-titlecase-tests (Files): Likewise.
27766         * modules/unictype/property-unassigned-code-value-tests (Files):
27767         Likewise.
27768         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27769         * modules/unictype/property-uppercase-tests (Files): Likewise.
27770         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27771         * modules/unictype/property-white-space-tests (Files): Likewise.
27772         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27773         * modules/unictype/property-xid-start-tests (Files): Likewise.
27774         * modules/unictype/property-zero-width-tests (Files): Likewise.
27775         * modules/unictype/scripts-tests (Files): Likewise.
27776         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27777         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27778         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27779         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27780         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27781         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27782         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27783         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27784         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27785         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27786         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27787         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27788         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27789         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27790         * modules/uninorm/composition-tests (Files): Likewise.
27791         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27792         * modules/uninorm/decomposition-tests (Files): Likewise.
27793         * modules/uninorm/filter-tests (Files): Likewise.
27794         * modules/uninorm/nfc-tests (Files): Likewise.
27795         * modules/uninorm/nfd-tests (Files): Likewise.
27796         * modules/uninorm/nfkc-tests (Files): Likewise.
27797         * modules/uninorm/nfkd-tests (Files): Likewise.
27798         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27799         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27800         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27801         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27802         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27803         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27804         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27805         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27806         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27807         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27808         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27809         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27810         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27811         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27812         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27813         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27814         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27815         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27816         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27817         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27818         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27819         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27820         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27821         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27822         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27823         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27824         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27825         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27826         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27827         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27828         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27829         * modules/uniwidth/u8-width-tests (Files): Likewise.
27830         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27831         * modules/uniwidth/u16-width-tests (Files): Likewise.
27832         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27833         * modules/uniwidth/u32-width-tests (Files): Likewise.
27834         * modules/uniwidth/width-tests (Files): Likewise.
27835         * modules/unlink-tests (Files): Likewise.
27836         * modules/unsetenv-tests (Files): Likewise.
27837         * modules/usleep-tests (Files): Likewise.
27838         * modules/utimens-tests (Files): Likewise.
27839         * modules/utimensat-tests (Files): Likewise.
27840         * modules/vasnprintf-posix-tests (Files): Likewise.
27841         * modules/vasnprintf-tests (Files): Likewise.
27842         * modules/vasprintf-posix-tests (Files): Likewise.
27843         * modules/vasprintf-tests (Files): Likewise.
27844         * modules/vdprintf-posix-tests (Files): Likewise.
27845         * modules/vfprintf-posix-tests (Files): Likewise.
27846         * modules/vprintf-posix-tests (Files): Likewise.
27847         * modules/vsnprintf-posix-tests (Files): Likewise.
27848         * modules/vsnprintf-tests (Files): Likewise.
27849         * modules/vsprintf-posix-tests (Files): Likewise.
27850         * modules/wcrtomb-tests (Files): Likewise.
27851         * modules/wcsnrtombs-tests (Files): Likewise.
27852         * modules/wcsrtombs-tests (Files): Likewise.
27853         * modules/wctype-tests (Files): Likewise.
27854         * modules/wcwidth-tests (Files): Likewise.
27855         * modules/xmemdup0-tests (Files): Likewise.
27856         * modules/xprintf-posix-tests (Files): Likewise.
27857         * modules/xvasprintf-tests (Files): Likewise.
27858
27859 2009-12-24  Eric Blake  <ebb9@byu.net>
27860
27861         test-nanosleep: fix typo
27862         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27863         patch.
27864         Reported by Bruno Haible.
27865
27866 2009-12-24  Bruno Haible  <bruno@clisp.org>
27867
27868         Reduce namespace pollution on glibc systems.
27869         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27870         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27871         systems.
27872         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27873         <getopt.h> on glibc systems.
27874         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27875         systems.
27876         * lib/fcntl.c: Include <unistd.h> here instead.
27877
27878 2009-12-24  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27881
27882 2009-12-24  Eric Blake  <ebb9@byu.net>
27883
27884         tests: add signature checks
27885         * tests/signature.h (SIGNATURE_CHECK): New file.
27886         * modules/atexit-tests (Files): Use it.
27887         * modules/btowc-tests (Files): Likewise.
27888         * modules/canonicalize-lgpl-tests (Files): Likewise.
27889         * modules/ceilf-tests (Files): Likewise.
27890         * modules/ceill-tests (Files): Likewise.
27891         * modules/chown-tests (Files): Likewise.
27892         * modules/dprintf-posix-tests (Files): Likewise.
27893         * modules/dup2-tests (Files): Likewise.
27894         * modules/dup3-tests (Files): Likewise.
27895         * modules/duplocale-tests (Files): Likewise.
27896         * modules/fchdir-tests (Files): Likewise.
27897         * modules/fcntl-tests (Files): Likewise.
27898         * modules/fdopendir-tests (Files): Likewise.
27899         * modules/fflush-tests (Files): Likewise.
27900         * modules/flock-tests (Files): Likewise.
27901         * modules/floorf-tests (Files): Likewise.
27902         * modules/floorl-tests (Files): Likewise.
27903         * modules/fnmatch-tests (Files): Likewise.
27904         * modules/fopen-tests (Files): Likewise.
27905         * modules/fprintf-posix-tests (Files): Likewise.
27906         * modules/freopen-tests (Files): Likewise.
27907         * modules/frexp-nolibm-tests (Files): Likewise.
27908         * modules/frexp-tests (Files): Likewise.
27909         * modules/frexpl-nolibm-tests (Files): Likewise.
27910         * modules/frexpl-tests (Files): Likewise.
27911         * modules/fseek-tests (Files): Likewise.
27912         * modules/fseeko-tests (Files): Likewise.
27913         * modules/fsync-tests (Files): Likewise.
27914         * modules/ftell-tests (Files): Likewise.
27915         * modules/ftello-tests (Files): Likewise.
27916         * modules/futimens-tests (Files): Likewise.
27917         * modules/getaddrinfo-tests (Files): Likewise.
27918         * modules/getcwd-tests (Files): Likewise.
27919         * modules/getdelim-tests (Files): Likewise.
27920         * modules/getdtablesize-tests (Files): Likewise.
27921         * modules/getgroups-tests (Files): Likewise.
27922         * modules/gethostname-tests (Files): Likewise.
27923         * modules/getline-tests (Files): Likewise.
27924         * modules/getopt-posix-tests (Files): Likewise.
27925         * modules/gettimeofday-tests (Files): Likewise.
27926         * modules/glob-tests (Files): Likewise.
27927         * modules/iconv-tests (Files): Likewise.
27928         * modules/inet_ntop-tests (Files): Likewise.
27929         * modules/inet_pton-tests (Files): Likewise.
27930         * modules/isblank-tests (Files): Likewise.
27931         * modules/lchown-tests (Files): Likewise.
27932         * modules/ldexpl-tests (Files): Likewise.
27933         * modules/link-tests (Files): Likewise.
27934         * modules/linkat-tests (Files): Likewise.
27935         * modules/lseek-tests (Files): Likewise.
27936         * modules/lstat-tests (Files): Likewise.
27937         * modules/mbrtowc-tests (Files): Likewise.
27938         * modules/mbsinit-tests (Files): Likewise.
27939         * modules/mbsnrtowcs-tests (Files): Likewise.
27940         * modules/mbsrtowcs-tests (Files): Likewise.
27941         * modules/memchr-tests (Files): Likewise.
27942         * modules/memcmp-tests (Files): Likewise.
27943         * modules/memmem-tests (Files): Likewise.
27944         * modules/memrchr-tests (Files): Likewise.
27945         * modules/mkdir-tests (Files): Likewise.
27946         * modules/mkfifo-tests (Files): Likewise.
27947         * modules/mkfifoat-tests (Files): Likewise.
27948         * modules/mknod-tests (Files): Likewise.
27949         * modules/nanosleep-tests (Files): Likewise.
27950         * modules/nl_langinfo-tests (Files): Likewise.
27951         * modules/obstack-printf-tests (Files): Likewise.
27952         * modules/open-tests (Files): Likewise.
27953         * modules/openat-tests (Files): Likewise.
27954         * modules/perror-tests (Files): Likewise.
27955         * modules/pipe2-tests (Files): Likewise.
27956         * modules/poll-tests (Files): Likewise.
27957         * modules/popen-tests (Files): Likewise.
27958         * modules/posix_spawn-tests (Files): Likewise.
27959         * modules/posix_spawnp-tests (Files): Likewise.
27960         * modules/pread-tests (Files): Likewise.
27961         * modules/printf-posix-tests (Files): Likewise.
27962         * modules/pty-tests (Files): Likewise.
27963         * modules/random_r-tests (Files): Likewise.
27964         * modules/rawmemchr-tests (Files): Likewise.
27965         * modules/readlink-tests (Files): Likewise.
27966         * modules/remove-tests (Files): Likewise.
27967         * modules/rename-tests (Files): Likewise.
27968         * modules/renameat-tests (Files): Likewise.
27969         * modules/rmdir-tests (Files): Likewise.
27970         * modules/round-tests (Files): Likewise.
27971         * modules/roundf-tests (Files): Likewise.
27972         * modules/roundl-tests (Files): Likewise.
27973         * modules/select-tests (Files): Likewise.
27974         * modules/setenv-tests (Files): Likewise.
27975         * modules/sigaction-tests (Files): Likewise.
27976         * modules/sleep-tests (Files): Likewise.
27977         * modules/snprintf-posix-tests (Files): Likewise.
27978         * modules/snprintf-tests (Files): Likewise.
27979         * modules/sprintf-posix-tests (Files): Likewise.
27980         * modules/stat-tests (Files): Likewise.
27981         * modules/strcasestr-tests (Files): Likewise.
27982         * modules/strchrnul-tests (Files): Likewise.
27983         * modules/strerror-tests (Files): Likewise.
27984         * modules/strsignal-tests (Files): Likewise.
27985         * modules/strstr-tests (Files): Likewise.
27986         * modules/strtod-tests (Files): Likewise.
27987         * modules/strverscmp-tests (Files): Likewise.
27988         * modules/symlink-tests (Files): Likewise.
27989         * modules/symlinkat-tests (Files): Likewise.
27990         * modules/times-tests (Files): Likewise.
27991         * modules/trunc-tests (Files): Likewise.
27992         * modules/truncf-tests (Files): Likewise.
27993         * modules/truncl-tests (Files): Likewise.
27994         * modules/tsearch-tests (Files): Likewise.
27995         * modules/uname-tests (Files): Likewise.
27996         * modules/unlink-tests (Files): Likewise.
27997         * modules/unsetenv-tests (Files): Likewise.
27998         * modules/usleep-tests (Files): Likewise.
27999         * modules/utimensat-tests (Files): Likewise.
28000         * modules/vasprintf-tests (Files): Likewise.
28001         * modules/vdprintf-posix-tests (Files): Likewise.
28002         * modules/vfprintf-posix-tests (Files): Likewise.
28003         * modules/vprintf-posix-tests (Files): Likewise.
28004         * modules/vsnprintf-posix-tests (Files): Likewise.
28005         * modules/vsnprintf-tests (Files): Likewise.
28006         * modules/vsprintf-posix-tests (Files): Likewise.
28007         * modules/wcrtomb-tests (Files): Likewise.
28008         * modules/wcsnrtombs-tests (Files): Likewise.
28009         * modules/wcsrtombs-tests (Files): Likewise.
28010         * modules/wcwidth-tests (Files): Likewise.
28011         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28012         * tests/test-isinf.c (isinf): Likewise.
28013         * tests/test-isnan.c (isnan): Likewise.
28014         * tests/test-signbit.c (signbit): Likewise.
28015         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28016         declaration, either as macro or with correct signature.
28017         (select): Ensure function under test is declared with correct
28018         signature in correct header.
28019         * tests/test-atexit.c (atexit): Likewise.
28020         * tests/test-btowc.c (btowc): Likewise.
28021         * tests/test-canonicalize-lgpl.c (realpath)
28022         (canonicalize_file_name): Likewise.
28023         * tests/test-ceilf1.c (ceilf): Likewise.
28024         * tests/test-ceill.c (ceill): Likewise.
28025         * tests/test-chown.c (chown): Likewise.
28026         * tests/test-dprintf-posix.c (dprintf): Likewise.
28027         * tests/test-dup2.c (dup2): Likewise.
28028         * tests/test-dup3.c (dup3): Likewise.
28029         * tests/test-duplocale.c (duplocale): Likewise.
28030         * tests/test-fchdir.c (fchdir): Likewise.
28031         * tests/test-fchownat.c (fchownat): Likewise.
28032         * tests/test-fcntl.c (fcntl): Likewise.
28033         * tests/test-fdopendir.c (fdopendir): Likewise.
28034         * tests/test-fflush.c (fflush): Likewise.
28035         * tests/test-flock.c (flock): Likewise.
28036         * tests/test-floorf1.c (floorf): Likewise.
28037         * tests/test-floorl.c (floorl): Likewise.
28038         * tests/test-fnmatch.c (fnmatch): Likewise.
28039         * tests/test-fopen.c (fopen): Likewise.
28040         * tests/test-fprintf-posix.c (fprintf): Likewise.
28041         * tests/test-freopen.c (freopen): Likewise.
28042         * tests/test-frexp.c (frexp): Likewise.
28043         * tests/test-frexpl.c (frexpl): Likewise.
28044         * tests/test-fseek.c (fseek): Likewise.
28045         * tests/test-fseeko.c (fseeko): Likewise.
28046         * tests/test-fstatat.c (fstatat): Likewise.
28047         * tests/test-fsync.c (fsync): Likewise.
28048         * tests/test-ftell.c (ftell): Likewise.
28049         * tests/test-ftello.c (ftello): Likewise.
28050         * tests/test-futimens.c (futimens): Likewise.
28051         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28052         (gai_strerror): Likewise.
28053         * tests/test-getcwd.c (getcwd): Likewise.
28054         * tests/test-getdelim.c (getdelim): Likewise.
28055         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28056         * tests/test-getgroups.c (getgroups): Likewise.
28057         * tests/test-gethostname.c (gethostname): Likewise.
28058         * tests/test-getline.c (getline): Likewise.
28059         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28060         Likewise.
28061         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28062         * tests/test-glob.c (glob, globfree): Likewise.
28063         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28064         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28065         * tests/test-inet_pton.c (inet_pton): Likewise.
28066         * tests/test-isblank.c (isblank): Likewise.
28067         * tests/test-lchown.c (lchown): Likewise.
28068         * tests/test-ldexpl.c (ldexpl): Likewise.
28069         * tests/test-link.c (link): Likewise.
28070         * tests/test-linkat.c (linkat): Likewise.
28071         * tests/test-lseek.c (lseek): Likewise.
28072         * tests/test-lstat.c (lstat): Likewise.
28073         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28074         * tests/test-mbsinit.c (mbsinit): Likewise.
28075         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28076         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28077         * tests/test-memchr.c (memchr): Likewise.
28078         * tests/test-memcmp.c (memcmp): Likewise.
28079         * tests/test-memmem.c (memmem): Likewise.
28080         * tests/test-memrchr.c (memrchr): Likewise.
28081         * tests/test-mkdir.c (mkdir): Likewise.
28082         * tests/test-mkdirat.c (mkdirat): Likewise.
28083         * tests/test-mkfifo.c (mkfifo): Likewise.
28084         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28085         * tests/test-mknod.c (mknod): Likewise.
28086         * tests/test-nanosleep.c (nanosleep): Likewise.
28087         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28088         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28089         Likewise.
28090         * tests/test-open.c (open): Likewise.
28091         * tests/test-openat.c (openat): Likewise.
28092         * tests/test-perror.c (perror): Likewise.
28093         * tests/test-pipe2.c (pipe2): Likewise.
28094         * tests/test-poll.c (poll): Likewise.
28095         * tests/test-popen.c (popen, pclose): Likewise.
28096         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28097         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28098         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28099         (posix_spawn_file_actions_destroy)
28100         (posix_spawn_file_actions_addclose)
28101         (posix_spawn_file_actions_addopen)
28102         (posix_spawn_file_actions_adddup2): Likewise.
28103         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28104         * tests/test-pread.c (pread): Likewise.
28105         * tests/test-printf-posix.c (printf): Likewise.
28106         * tests/test-pty.c (openpty, forkpty): Likewise.
28107         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28108         (random_r): Likewise.
28109         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28110         * tests/test-readlink.c (readlink): Likewise.
28111         * tests/test-remove.c (remove): Likewise.
28112         * tests/test-rename.c (rename): Likewise.
28113         * tests/test-renameat.c (renameat): Likewise.
28114         * tests/test-rmdir.c (rmdir): Likewise.
28115         * tests/test-round1.c (round): Likewise.
28116         * tests/test-roundf1.c (roundf): Likewise.
28117         * tests/test-roundl.c (roundl): Likewise.
28118         * tests/test-setenv.c (setenv): Likewise.
28119         * tests/test-sigaction.c (sigaction): Likewise.
28120         * tests/test-sleep.c (sleep): Likewise.
28121         * tests/test-snprintf.c (snprintf): Likewise.
28122         * tests/test-sprintf-posix.c (sprintf): Likewise.
28123         * tests/test-stat.c (stat): Likewise.
28124         * tests/test-stpncpy.c (stpncpy): Likewise.
28125         * tests/test-strcasestr.c (strcasestr): Likewise.
28126         * tests/test-strchrnul.c (strchrnul): Likewise.
28127         * tests/test-strerror.c (strerror): Likewise.
28128         * tests/test-strsignal.c (strsignal): Likewise.
28129         * tests/test-strstr.c (strstr): Likewise.
28130         * tests/test-strtod.c (strtod): Likewise.
28131         * tests/test-strverscmp.c (strverscmp): Likewise.
28132         * tests/test-symlink.c (symlink): Likewise.
28133         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28134         * tests/test-times.c (times): Likewise.
28135         * tests/test-trunc1.c (trunc): Likewise.
28136         * tests/test-truncf1.c (truncf): Likewise.
28137         * tests/test-truncl.c (truncl): Likewise.
28138         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28139         Likewise.
28140         * tests/test-uname.c (uname): Likewise.
28141         * tests/test-unlink.c (unlink): Likewise.
28142         * tests/test-unlinkat.c (unlinkat): Likewise.
28143         * tests/test-unsetenv.c (unsetenv): Likewise.
28144         * tests/test-usleep.c (usleep): Likewise.
28145         * tests/test-utimensat.c (utimensat): Likewise.
28146         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28147         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28148         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28149         * tests/test-vprintf-posix.c (vprintf): Likewise.
28150         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28151         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28152         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28153         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28154         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28155         * tests/test-wcwidth.c (wcwidth): Likewise.
28156
28157         build: pull in conditional headers during GNULIB_POSIXCHECK
28158         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28159         definitions from any conditionally-included headers.
28160         * lib/stdlib.in.h (includes): Likewise.
28161         * lib/unistd.in.h (includes): Likewise.
28162
28163 2009-12-24  Bruno Haible  <bruno@clisp.org>
28164
28165         * tests/test-argv-iter.c: Include header file being tested immediately
28166         after config.h.
28167         * tests/test-base64.c: Likewise.
28168         * tests/test-flock.c: Likewise.
28169         * tests/test-fsync.c: Likewise.
28170         * tests/test-getdate.c: Likewise.
28171         * tests/test-getndelim2.c: Likewise.
28172         * tests/test-isfinite.c: Likewise.
28173         * tests/test-isinf.c: Likewise.
28174         * tests/test-strerror.c: Likewise.
28175         * tests/test-strsignal.c: Likewise.
28176
28177 2009-12-23  Eric Blake  <ebb9@byu.net>
28178
28179         unistd: work around cygwin bug
28180         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28181         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28182         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28183
28184 2009-12-23  Bruno Haible  <bruno@clisp.org>
28185
28186         localename: More tests.
28187         * tests/test-localename.c (SIZEOF): New macro.
28188         (categories): New variable.
28189         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28190         test_locale_name_default): Add test w.r.t. thread locale.
28191         (test_locale_name_thread): New function.
28192         (main): Invoke it.
28193
28194         localename: Make aware of thread locale.
28195         * lib/localename.h (gl_locale_name_thread): New declaration.
28196         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28197         behaviour with respect to thread locale.
28198         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28199         <langinfo.h>, glthread/lock.h.
28200         (SIZE_BITS): New macro.
28201         (string_hash): New function.
28202         (struct hash_node): New type.
28203         (HASH_TABLE_SIZE): New macro.
28204         (struniq_hash_table, struniq_lock): New variables.
28205         (struniq): New function.
28206         (gl_locale_name_thread): New function.
28207         (gl_locale_name): Invoke it.
28208         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28209         * modules/localename (Depends-on): Add lock.
28210         Reported by Mike Gran <spk121@yahoo.com>.
28211
28212 2009-12-23  Eric Blake  <ebb9@byu.net>
28213
28214         va-args: new module
28215         * modules/va-args: New file.
28216         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28217         * MODULES.html.sh (Core language properties): Mention it.
28218
28219         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28220         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28221         named alias for __attribute__((__unused__)).
28222         * lib/chown.c: Update client.
28223         * lib/fchmodat.c: Likewise.
28224         * lib/fts.c: Likewise.
28225         * lib/getdate.y: Likewise.
28226         * lib/getgroups.c: Likewise.
28227         * lib/getopt.c: Likewise.
28228         * lib/getugroups.c: Likewise.
28229         * lib/mkdir.c: Likewise.
28230         * lib/mkfifo.c: Likewise.
28231         * lib/mkfifoat.c: Likewise.
28232         * lib/mknod.c: Likewise.
28233         * lib/mknodat.c: Likewise.
28234         * lib/readlink.c: Likewise.
28235         * lib/se-context.in.h: Likewise.
28236         * lib/se-selinux.in.h: Likewise.
28237         * lib/sockets.c: Likewise.
28238         * lib/symlink.c: Likewise.
28239         * lib/symlinkat.c: Likewise.
28240         * lib/unicodeio.c: Likewise.
28241         * lib/unistr.h: Likewise.
28242         * tests/test-areadlink.c: Likewise.
28243         * tests/test-areadlinkat.c: Likewise.
28244         * tests/test-filenamecat.c: Likewise.
28245         * tests/test-fseeko.c: Likewise.
28246         * tests/test-ftello.c: Likewise.
28247         * tests/test-getdate.c: Likewise.
28248         * tests/test-getgroups.c: Likewise.
28249         * tests/test-gethostname.c: Likewise.
28250         * tests/test-quotearg.c: Likewise.
28251         * tests/test-version-etc.c: Likewise.
28252         * tests/test-xalloc-die.c: Likewise.
28253         * tests/test-xfprintf-posix.c: Likewise.
28254         * tests/test-xprintf-posix.c: Likewise.
28255         * tests/test-xvasprintf.c: Likewise.
28256
28257         tests: avoid compiler warnings
28258         * tests/test-fcntl.c (main): Delete unused parameters.
28259         * tests/test-freopen-safer.c (main): Likewise.
28260         * tests/test-xalloc-die.c (main): Mark unused parameters.
28261         * tests/test-fseeko.c (main): Likewise.
28262         * tests/test-ftello.c (main): Likewise.
28263         * tests/test-nanosleep.c (main): Avoid declaration warning.
28264         * tests/test-sleep.c (main): Likewise.
28265         * tests/test-unsetenv.c (main): Silence warning about string
28266         literal.
28267         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28268
28269 2009-12-23  Bruno Haible  <bruno@clisp.org>
28270
28271         * tests/test-localename.c (test_locale_name): New function, extracted
28272         from main. Also test mixed situations.
28273         (test_locale_name_posix, test_locale_name_environ,
28274         test_locale_name_default): New functions.
28275         (main): Invoke them all.
28276         * modules/localename-tests (configure.ac): Test for newlocale.
28277
28278 2009-12-23  Bruno Haible  <bruno@clisp.org>
28279
28280         unistd: Ensure getcwd gets declared before being overridden.
28281         * lib/unistd.in.h: Conditionally include <io.h>.
28282
28283 2009-12-22  Bruno Haible  <bruno@clisp.org>
28284
28285         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28286         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28287         (gl_WCHAR_H): Invoke it.
28288         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28289         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28290         Reported by Karl Berry <karl@freefriends.org>.
28291
28292 2009-12-22  Eric Blake  <ebb9@byu.net>
28293
28294         math, unistd: avoid redundant includes
28295         * lib/math.in.h (isnan): No need to re-include <math.h>.
28296         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28297
28298         getsubopt: work around cygwin bug
28299         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28300         avoid conflicting with system getsubopt.
28301         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28302         bug.
28303
28304         getopt: synchronize from glibc
28305         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28306         parameter order.  Adjust all callers.
28307         (_getopt_internal_r, main): Adjust quoting in error messages.
28308         Drop considerations for outdated POSIX 1003.2 error message.
28309         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28310         callers.
28311         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28312
28313         test-getopt: test stderr behavior
28314         * modules/getopt-posix-tests (Depends-on): Add dup2.
28315         * tests/test-getopt.c (ASSERT): Avoid stderr.
28316         (main): Move stderr to a temporary file.
28317         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28318         Instead, add parameter to inform caller if output occurred.
28319         (test_getopt): Adjust all existing tests to expect silence, and
28320         add new tests of leading ":".
28321         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28322         glibc shortcomings with leading "-:" or "+:" in optstring.
28323         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28324         Likewise.
28325         * doc/posix-functions/getopt.texi (getopt): Likewise.
28326
28327         test-getopt: enhance test
28328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28329         supports optind=0.
28330         * tests/test-getopt.c (OPTIND_MIN): Move...
28331         * tests/test-getopt.h (OPTIND_MIN): ...here.
28332         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28333         Require that optind=0 works, since modern BSD supports it in
28334         addition to optreset, and since coreutils expects it.
28335         (test_getopt_long_only): New test.
28336         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28337         glibc shortcomings with 'W;', and enforcement of optind=0.
28338         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28339         Likewise.
28340
28341 2009-12-21  Bruno Haible  <bruno@clisp.org>
28342
28343         localename: Improvements for MacOS X and Cygwin.
28344         * lib/localename.h (gl_locale_name_environ): New declaration.
28345         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28346         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28347         (gl_locale_name_posix): Invoke it.
28348         (gl_locale_name_default): Add comments. Use Windows native API also on
28349         Cygwin.
28350
28351 2009-12-21  Bruno Haible  <bruno@clisp.org>
28352
28353         Update list of Win32 locale ids.
28354         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28355         (LANG_SAMI): Renamed from LANG_SAAMI.
28356         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28357         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28358         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28359         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28360         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28361         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28362         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28363         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28364         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28365         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28366         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28367         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28368         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28369         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28370         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28371         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28372         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28373         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28374         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28375         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28376         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28377         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28378         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28379         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28380         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28381         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28382         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28383         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28384         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28385         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28386         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28387         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28388         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28389         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28390         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28391         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28392         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28393         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28394         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28395         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28396         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28397         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28398         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28399         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28400         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28401         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28402         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28403         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28404         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28405         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28406         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28407         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28408         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28409         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28410         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28411         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28412         Add more languages and countries for Sami, Sorbian. Add more countries
28413         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28414         for Pashto. Change country for Syriac, Tswana.
28415
28416 2009-12-21  Eric Blake  <ebb9@byu.net>
28417
28418         test-utimens: avoid spurious failure
28419         * tests/test-chown.h (nap): Factor...
28420         * tests/nap.h: ...into new file.
28421         * tests/test-lchown.h (nap): Avoid duplication.
28422         * tests/test-utimens-common.h (nap): Use shared implementation,
28423         necessary on file systems with 1-second resolution.
28424         * modules/chown-tests (Files): Include new file.
28425         * modules/fdutimensat-tests (Files): Likewise.
28426         * modules/futimens-tests (Files): Likewise.
28427         * modules/lchown-tests (Files): Likewise.
28428         * modules/openat-tests (Files): Likewise.
28429         * modules/utimens-tests (Files): Likewise.
28430         * modules/utimensat-tests (Files): Likewise.
28431
28432 2009-12-19  Eric Blake  <ebb9@byu.net>
28433
28434         futimens, utimensat: work around Linux bug
28435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28436         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28437         * lib/utimensat.c (rpl_utimensat): Work around it.
28438         * lib/futimens.c (rpl_futimens): Adjust comment.
28439
28440         utimens: work around Linux ctime bug
28441         * lib/utimens.c (detect_ctime_bug): New helper function.
28442         (update_timespec): Differentiate between workaround needed for
28443         this bug vs. what is needed for systems that lack utimensat.
28444         (fdutimens, lutimens): Work around bug.
28445
28446         utimens: check for ctime update
28447         * tests/test-utimens-common.h (check_ctime): Define.
28448         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28449         * tests/test-futimens.h (test_futimens): Likewise.
28450         * tests/test-lutimens.h (test_lutimens): Likewise.
28451         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28452         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28453
28454 2009-12-19  Bruno Haible  <bruno@clisp.org>
28455
28456         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28457         * tests/test-dprintf-posix2.sh: New file.
28458         * tests/test-dprintf-posix2.c: New file.
28459         * modules/dprintf-posix-tests (Files): Add them.
28460         (configure.ac): Check for getrlimit and setrlimit.
28461         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28462
28463 2009-12-19  Bruno Haible  <bruno@clisp.org>
28464
28465         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28466         * tests/test-fprintf-posix3.sh: New file.
28467         * tests/test-fprintf-posix3.c: New file.
28468         * modules/fprintf-posix-tests (Files): Add them.
28469         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28470
28471 2009-12-19  Eric Blake  <ebb9@byu.net>
28472
28473         dirfd: fix prototype
28474         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28475         * lib/dirfd.c (dirfd): Likewise.
28476
28477         canonicalize: reduce memory usage
28478         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28479         allocation to size.
28480         Reported by Solar Designer <solar@openwall.com>.
28481
28482 2009-12-19  Bruno Haible  <bruno@clisp.org>
28483
28484         New module attribute 'Applicability'.
28485         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28486         * gnulib-tool: New option --extract-applicability.
28487         (func_usage): Document it.
28488         (sed_extract_prog): Recognize it.
28489         (func_get_applicability): New function.
28490         (func_import): Generalize handling of 'link-warning' module.
28491         * modules/link-warning (Applicability): New section.
28492         * modules/arg-nonnull (Applicability): New section.
28493         Repoted by Simon Josefsson <simon@josefsson.org>.
28494
28495 2009-12-19  Bruno Haible  <bruno@clisp.org>
28496
28497         fflush: tweak
28498         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28499         * lib/fseeko.c (rpl_fseeko): Likewise.
28500
28501 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28502
28503         * lib/gl_list.h: Fix typo in comment.
28504
28505 2009-12-16  Eric Blake  <ebb9@byu.net>
28506
28507         fcntl: use to simplify other modules
28508         * modules/cloexec (Depends-on): Add fcntl.
28509         * modules/fchdir (Depends-on): Likewise.
28510         * modules/fd-safer-flag (Depends-on): Likewise.
28511         * modules/unistd-safer (Depends-on): Likewise.
28512         * modules/dup3 (configure.ac): Set module indicator.
28513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28514         missing.
28515         * lib/fchdir.c (_gl_register_dup): Fix comment.
28516         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28517         * lib/dup-safer.c (dup_safer): Likewise.
28518         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28519         * lib/dup3.c (dup3): Likewise.
28520         * tests/test-fchdir.c (main): Enhance test.
28521         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28522
28523         fcntl: port portions of fcntl to mingw
28524         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28525         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28526         replacement for mingw.
28527         * modules/fcntl (Description): Update.
28528         (Depends-on): Add dup2.
28529         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28530         * modules/fcntl-h (Makefile.am): Substitute it.
28531         * lib/fcntl.in.h (fcntl): Update declaration.
28532         (F_DUPFD, F_GETFD): New macros, when needed.
28533         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28534         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28535         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28536         we now guarantee.
28537
28538         fcntl: work around cygwin bug in F_DUPFD
28539         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28540         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28541         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28542         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28543         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28544
28545         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28546         * modules/fcntl (Files): List new files.
28547         (configure.ac): Run a test.
28548         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28549         * lib/fcntl.c (rpl_fcntl): Likewise.
28550         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28551         (gl_FCNTL_H): Always replace fcntl.h.
28552         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28553         * lib/fcntl.in.h (fcntl): Declare replacement.
28554         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28555         needed, plus a witness.
28556         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28557         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28558         * tests/test-fcntl.c: New file.
28559         * modules/fcntl-tests: Likewise.
28560
28561         binary-io: avoid potential compilation warning
28562         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28563         directives.
28564
28565         fflush: avoid compilation error on NetBSD
28566         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28567         between off_t and fpos_t, since the latter is sometimes a struct.
28568         * lib/fseeko.c (rpl_fseeko): Likewise.
28569         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28570
28571 2009-12-15  Eric Blake  <ebb9@byu.net>
28572
28573         fcntl-h, stdio, sys_ioctl: fix declarations
28574         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28575         function must not take arguments.
28576         * lib/sys_ioctl.in.h (ioctl): Likewise.
28577         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28578         (open): Add a link warning.
28579
28580 2009-12-15  Jim Meyering  <meyering@redhat.com>
28581
28582         areadlink, areadlink-with-size: relax license to LGPLv2+
28583         * modules/areadlink (License): Relax to LGPLv2+.
28584         * modules/areadlink-with-size (License): Likewise.
28585
28586 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28587             Bruno Haible  <bruno@clisp.org>
28588
28589         *printf: Fix memory leak.
28590         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28591         * lib/vfprintf.c (vfprintf): Likewise.
28592         * lib/dprintf.c (dprintf): Likewise.
28593         * lib/vdprintf.c (vdprintf): Likewise.
28594
28595 2009-12-14  Eric Blake  <ebb9@byu.net>
28596
28597         accept4: adjust module dependencies
28598         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28599
28600         utimens: one more try at avoiding compiler warning
28601         * lib/utimens.c (lutimens): Lower scope of result.
28602
28603 2009-12-13  Bruno Haible  <bruno@clisp.org>
28604
28605         Move the malloc checking from module 'list' to new module 'xlist'.
28606         * modules/xlist: New file.
28607         * lib/gl_xlist.h: New file.
28608         * lib/gl_xlist.c: New file.
28609         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28610         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28611         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28612         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28613         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28614         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28615         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28616         gl_sortedlist_nx_add): New declarations.
28617         (struct gl_list_implementation): Rename and change methods accordingly.
28618         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28619         (gl_list_nx_create): Renamed from gl_list_create.
28620         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28621         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28622         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28623         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28624         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28625         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28626         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28627         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28628         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28629         gl_list_create_empty.
28630         (gl_list_nx_create): Renamed from gl_list_create.
28631         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28632         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28633         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28634         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28635         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28636         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28637         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28638         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28639         * lib/gl_array_list.c: Don't include xalloc.h.
28640         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28641         NULL upon out-of-memory.
28642         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28643         out-of-memory.
28644         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28645         Change return type to 'int'.
28646         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28647         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28648         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28649         upon out-of-memory.
28650         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28651         upon out-of-memory.
28652         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28653         upon out-of-memory.
28654         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28655         upon out-of-memory.
28656         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28657         out-of-memory.
28658         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28659         Update.
28660         (gl_array_list_implementation): Update.
28661         * lib/gl_carray_list.c: Don't include xalloc.h.
28662         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28663         Return NULL upon out-of-memory.
28664         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28665         out-of-memory.
28666         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28667         Change return type to 'int'.
28668         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28669         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28670         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28671         upon out-of-memory.
28672         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28673         upon out-of-memory.
28674         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28675         out-of-memory.
28676         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28677         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28678         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28679         Update.
28680         (gl_carray_list_implementation): Update.
28681         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28682         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28683         gl_linked_create_empty. Return NULL upon out-of-memory.
28684         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28685         out-of-memory.
28686         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28687         Change return type to 'int'. Return -1 upon out-of-memory.
28688         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28689         out-of-memory.
28690         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28691         upon out-of-memory.
28692         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28693         upon out-of-memory.
28694         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28695         NULL upon out-of-memory.
28696         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28697         upon out-of-memory.
28698         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28699         out-of-memory.
28700         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28701         Update.
28702         * lib/gl_linked_list.c: Don't include xalloc.h.
28703         (gl_linked_list_implementation): Update.
28704         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28705         (add_to_bucket): Change return type to 'int'.
28706         (gl_linkedhash_list_implementation): Update.
28707         * lib/gl_anytree_list1.h (free_subtree): New function.
28708         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28709         gl_tree_create_empty. Return NULL upon out-of-memory.
28710         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28711         Change return type to 'int'. Return -1 upon out-of-memory.
28712         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28713         out-of-memory.
28714         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28715         (gl_tree_remove_node): New function, moved here from
28716         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28717         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28718         Update.
28719         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28720         malloc, not xmalloc. Return NULL upon out-of-memory.
28721         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28722         out-of-memory.
28723         (gl_tree_remove_node_from_tree): New function, extracted from
28724         gl_tree_remove_node.
28725         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28726         upon out-of-memory.
28727         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28728         out-of-memory.
28729         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28730         upon out-of-memory.
28731         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28732         upon out-of-memory.
28733         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28734         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28735         not xmalloc. Return NULL upon out-of-memory.
28736         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28737         out-of-memory.
28738         (gl_tree_remove_node_from_tree): New function, extracted from
28739         gl_tree_remove_node.
28740         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28741         upon out-of-memory.
28742         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28743         out-of-memory.
28744         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28745         upon out-of-memory.
28746         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28747         upon out-of-memory.
28748         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28749         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28750         gl_anytree_list1.h before gl_anyavltree_list2.h.
28751         (gl_avltree_list_implementation): Update.
28752         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28753         gl_anytree_list1.h before gl_anyavltree_list2.h.
28754         (gl_rbtree_list_implementation): Update.
28755         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28756         Change return type to 'int'. Return -1 upon out-of-memory. Use
28757         __builtin_expect.
28758         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28759         (gl_avltreehash_list_implementation): Update.
28760         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28761         (gl_rbtreehash_list_implementation): Update.
28762         * modules/array-list (Depends-on): Remove xalloc.
28763         * modules/carray-list (Depends-on): Likewise.
28764         * modules/linked-list (Depends-on): Likewise.
28765         * modules/linkedhash-list (Depends-on): Likewise.
28766         * modules/avltree-list (Depends-on): Likewise.
28767         * modules/rbtree-list (Depends-on): Likewise.
28768         * modules/avltreehash-list (Depends-on): Likewise.
28769         * modules/rbtreehash-list (Depends-on): Likewise.
28770
28771         * modules/xsublist: New file.
28772         * lib/gl_xsublist.h: New file.
28773         * lib/gl_xsublist.c: New file.
28774         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28775         (gl_sublist_nx_create): New declaration.
28776         * lib/gl_sublist.c: Don't include xalloc.h.
28777         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28778         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28779         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28780         Change return type to 'int'. Return -1 upon out-of-memory.
28781         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28782         upon out-of-memory.
28783         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28784         NULL upon out-of-memory.
28785         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28786         upon out-of-memory.
28787         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28788         NULL upon out-of-memory.
28789         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28790         NULL upon out-of-memory.
28791         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28792         upon out-of-memory.
28793         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28794         (gl_sublist_list_implementation): Update.
28795         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28796         upon out-of-memory.
28797         * modules/sublist (Depends-on): Remove xalloc.
28798
28799         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28800         * tests/test-carray_list.c: Likewise.
28801         * tests/test-linked_list.c: Likewise.
28802         * tests/test-linkedhash_list.c: Likewise.
28803         * tests/test-avltree_list.c: Likewise.
28804         * tests/test-rbtree_list.c: Likewise.
28805         * tests/test-avltreehash_list.c: Likewise.
28806         * tests/test-rbtreehash_list.c: Likewise.
28807         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28808         * modules/carray-list-tests (Makefile.am): Likewise.
28809         * modules/linked-list-tests (Makefile.am): Likewise.
28810         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28811         * modules/avltree-list-tests (Makefile.am): Likewise.
28812         * modules/rbtree-list-tests (Makefile.am): Likewise.
28813         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28814         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28815
28816         * NEWS: Mention the changes.
28817
28818         * lib/clean-temp.c: Include gl_xlist.h.
28819         * modules/clean-temp (Depends-on): Add xlist.
28820
28821         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28822         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28823
28824         * tests/test-array_oset.c: Include gl_xlist.h.
28825         * modules/array-oset-tests (Depends-on): Add xlist.
28826
28827         Reported by José E. Marchesi <jemarch@gnu.org>.
28828
28829 2009-12-13  Bruno Haible  <bruno@clisp.org>
28830
28831         Move the malloc checking from module 'oset' to new module 'xoset'.
28832         * modules/xoset: New file.
28833         * lib/gl_xoset.h: New file.
28834         * lib/gl_xoset.c: New file.
28835         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28836         declarations.
28837         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28838         (struct gl_oset_implementation): Rename and change methods accordingly.
28839         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28840         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28841         'int'. Mark as __warn_unused_result__.
28842         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28843         gl_oset_create_empty.
28844         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28845         'int'.
28846         * lib/gl_array_oset.c: Don't include xalloc.h.
28847         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28848         malloc, not xmalloc.
28849         (grow): Change return type to 'int'. Don't call xalloc_die.
28850         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28851         to 'int'.
28852         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28853         'int'.
28854         (gl_array_oset_implementation): Update.
28855         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28856         gl_tree_create_empty.
28857         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28858         'int'.
28859         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28860         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28861         xmalloc.
28862         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28863         not xmalloc.
28864         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28865         xmalloc.
28866         (gl_avltree_oset_implementation): Update.
28867         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28868         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28869         xmalloc.
28870         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28871         not xmalloc.
28872         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28873         xmalloc.
28874         (gl_rbtree_oset_implementation): Update.
28875         * modules/array-oset (Depends-on): Remove xalloc.
28876         * modules/avltree-oset (Depends-on): Likewise.
28877         * modules/rbtree-oset (Depends-on): Likewise.
28878         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28879         * tests/test-avltree_oset.c: Likewise.
28880         * tests/test-rbtree_oset.c: Likewise.
28881         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28882         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28883         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28884         * NEWS: Mention the change.
28885
28886 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28887
28888         maint.mk: allow a project to override release-prep commands
28889         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28890         commands into a new rule.
28891         (release-prep): New rule.
28892         (release-prep-hook): New overridable variable.
28893
28894 2009-12-13  Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28897
28898 2009-12-13  Jim Meyering  <meyering@redhat.com>
28899
28900         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28901         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28902
28903 2009-12-12  Bruno Haible  <bruno@clisp.org>
28904
28905         duplocale: Tweak.
28906         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28907
28908 2009-12-12  Karl Berry  <karl@gnu.org>
28909
28910         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28911
28912 2009-12-12  Bruno Haible  <bruno@clisp.org>
28913
28914         * m4/po.m4: Undo incorrect untabification.
28915
28916 2009-12-12  Bruno Haible  <bruno@clisp.org>
28917
28918         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28919         * modules/c-strtod (Depends-on): Add locale.
28920         * modules/c-strtold (Depends-on): Likewise.
28921
28922 2009-12-12  Bruno Haible  <bruno@clisp.org>
28923
28924         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28925
28926 2009-12-11  Eric Blake  <ebb9@byu.net>
28927
28928         setenv: relax requirement in light of POSIX ruling
28929         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28930         not NULL.
28931         * tests/test-setenv.c (main): Relax test.
28932         * tests/test-unsetenv.c (main): Likewise.
28933         * doc/posix-functions/setenv.texi (setenv): Document this.
28934         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28935
28936 2009-12-11  Bruno Haible  <bruno@clisp.org>
28937
28938         New module 'fd-safer-flag'.
28939         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28940         * lib/dup-safer.c (dup_safer_flag): Remove function.
28941         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28942         * lib/fd-safer.c (fd_safer_flag): Remove function.
28943         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28944         * modules/cloexec (configure.ac): Drop indicator macro.
28945         * modules/fd-safer-flag: New file.
28946         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28947         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28948         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28949
28950 2009-12-11  Bruno Haible  <bruno@clisp.org>
28951
28952         Tests for module 'nl_langinfo'.
28953         * modules/nl_langinfo-tests: New file.
28954         * tests/test-nl_langinfo.sh: New file.
28955         * tests/test-nl_langinfo.c: New file.
28956
28957         New module 'nl_langinfo'.
28958         * lib/nl_langinfo.c: New file.
28959         * m4/nl_langinfo.m4: New file.
28960         * modules/nl_langinfo: New file.
28961         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28962
28963 2009-12-11  Bruno Haible  <bruno@clisp.org>
28964
28965         Tests for module 'langinfo'.
28966         * modules/langinfo-tests: New file.
28967         * tests/test-langinfo.c: New file.
28968
28969         New module 'langinfo'.
28970         * lib/langinfo.in.h: New file.
28971         * m4/langinfo_h.m4: New file.
28972         * modules/langinfo: New file.
28973         * doc/posix-headers/langinfo.texi: Mention the new module.
28974
28975 2009-12-11  Bruno Haible  <bruno@clisp.org>
28976
28977         * lib/config.charset: Untabify.
28978
28979 2009-12-11  Bruno Haible  <bruno@clisp.org>
28980
28981         * modules/unistd-safer (configure.ac): Drop indicator macro.
28982
28983 2009-12-11  Bruno Haible  <bruno@clisp.org>
28984
28985         Move pipe2-safer code to its own file.
28986         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28987         * lib/pipe-safer.c (pipe2_safer): Remove function.
28988         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28989         (Makefile.am): Add it to lib_SOURCES.
28990
28991 2009-12-10  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28994
28995 2009-12-10  Bruno Haible  <bruno@clisp.org>
28996
28997         Declare which arguments expect non-NULL values, for GCC and clang.
28998         * build-aux/arg-nonnull.h: New file.
28999         * modules/arg-nonnull: New file.
29000         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29001         (inet_ntop, inet_pton): Use it.
29002         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29003         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29004         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29005         (open, openat): Use it.
29006         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29007         (fnmatch): Use it.
29008         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29009         (getopt, getopt_long, getopt_long_only): Use it.
29010         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29011         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29012         Use it.
29013         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29014         (iconv_open): Use it.
29015         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29016         (strtoimax, strtoumax): Use it.
29017         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29018         (duplocale): Use it.
29019         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29020         (frexp, frexpl): Use it.
29021         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29022         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29023         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29024         (tsearch, tfind, tdelete, twalk): Use it.
29025         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29026         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29027         sigpending): Use it.
29028         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29029         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29030         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29031         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29032         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29033         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29034         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29035         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29036         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29037         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29038         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29039         Use it.
29040         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29041         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29042         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29043         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29044         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29045         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29046         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29047         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29048         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29049         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29050         strtoull, unsetenv): Use it.
29051         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29052         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29053         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29054         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29055         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29056         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29057         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29058         (strcasecmp, strncasecmp): Use it.
29059         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29060         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29061         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29062         rpl_setsockopt): Use it.
29063         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29064         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29065         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29066         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29067         (gettimeofday): Use it.
29068         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29069         (times): Use it.
29070         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29071         (uname): Use it.
29072         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29073         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29074         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29075         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29076         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29077         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29078         unlinkat, write): Use it.
29079         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29080         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29081         * lib/argv-iter.h: Include arg-nonnull.h.
29082         (_ATTRIBUTE_NONNULL_): Remove macro.
29083         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29084         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29085         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29086         optimization.
29087         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29088         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29089         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29090         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29091         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29092         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29093         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29094         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29095         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29096         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29097         * modules/dirent (Depends-on): Add arg-nonnull.
29098         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29099         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29100         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29101         * modules/fnmatch (Depends-on): Add arg-nonnull.
29102         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29103         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29104         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29105         * modules/glob (Depends-on): Add arg-nonnull.
29106         (Makefile.am): Insert arg-nonnull.h into glob.h.
29107         * modules/iconv_open (Depends-on): Add arg-nonnull.
29108         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29109         * modules/inttypes (Depends-on): Add arg-nonnull.
29110         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29111         * modules/locale (Depends-on): Add arg-nonnull.
29112         (Makefile.am): Insert arg-nonnull.h into locale.h.
29113         * modules/math (Depends-on): Add arg-nonnull.
29114         (Makefile.am): Insert arg-nonnull.h into math.h.
29115         * modules/netdb (Depends-on): Add arg-nonnull.
29116         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29117         * modules/search (Depends-on): Add arg-nonnull.
29118         (Makefile.am): Insert arg-nonnull.h into search.h.
29119         * modules/signal (Depends-on): Add arg-nonnull.
29120         (Makefile.am): Insert arg-nonnull.h into signal.h.
29121         * modules/spawn (Depends-on): Add arg-nonnull.
29122         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29123         * modules/stdio (Depends-on): Add arg-nonnull.
29124         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29125         * modules/stdlib (Depends-on): Add arg-nonnull.
29126         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29127         * modules/string (Depends-on): Add arg-nonnull.
29128         (Makefile.am): Insert arg-nonnull.h into string.h.
29129         * modules/strings (Depends-on): Add arg-nonnull.
29130         (Makefile.am): Insert arg-nonnull.h into strings.h.
29131         * modules/sys_socket (Depends-on): Add arg-nonnull.
29132         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29133         * modules/sys_stat (Depends-on): Add arg-nonnull.
29134         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29135         * modules/sys_time (Depends-on): Add arg-nonnull.
29136         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29137         * modules/sys_times (Depends-on): Add arg-nonnull.
29138         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29139         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29140         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29141         * modules/time (Depends-on): Add arg-nonnull.
29142         (Makefile.am): Insert arg-nonnull.h into time.h.
29143         * modules/unistd (Depends-on): Add arg-nonnull.
29144         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29145         * modules/wchar (Depends-on): Add arg-nonnull.
29146         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29147         * modules/argv-iter (Depends-on): Add arg-nonnull.
29148         * tests/test-canonicalize.c (null_ptr): New function.
29149         (main): Use it.
29150         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29151         (main): Use it.
29152         * tests/test-memmem.c (null_ptr): New function.
29153         (main): Use it.
29154         Reported by Jim Meyering.
29155
29156 2009-12-10  Bruno Haible  <bruno@clisp.org>
29157
29158         Use spaces for indentation, not tabs.
29159         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29160         * m4/*.m4: Untabify.
29161         * build-aux/*.h: Untabify.
29162         * tests/**/*.[hc]: Untabify.
29163         * README: New section "Indent with spaces, not TABs", based on
29164         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29165         * NEWS: Mention the change.
29166
29167 2009-12-10  Bruno Haible  <bruno@clisp.org>
29168
29169         pty test: Fix link error.
29170         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29171         test_pty_LDADD.
29172
29173 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29174
29175         * modules/pty: New file.
29176         * modules/pty-tests: New file.
29177         * m4/pty.m4: New file.
29178         * tests/test-pty.c: New file.
29179         * doc/glibc-headers/pty.texi: Modified.
29180         * doc/glibc-functions/forkpty.texi: Modified.
29181         * doc/glibc-functions/openpty.texi: Modified.
29182
29183 2009-12-10  Bruno Haible  <bruno@clisp.org>
29184
29185         Avoid syntax error in C++ mode.
29186         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29187
29188 2009-12-10  Bruno Haible  <bruno@clisp.org>
29189
29190         Use sed with option -e.
29191         * gnulib-tool (func_version, func_emit_copyright_notice,
29192         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29193         option -e to sed.
29194         * modules/link-warning (Makefile.am): Likewise.
29195
29196 2009-12-10  Jim Meyering  <meyering@redhat.com>
29197
29198         mgetgroups: do not write bytes beyond end of malloc'd buffer
29199         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29200         username, we call getgroups with a one-element-shorter buffer,
29201         but still told it the length was original, max_n_groups.
29202
29203 2009-12-09  Eric Blake  <ebb9@byu.net>
29204
29205         cloexec: relax license
29206         * modules/cloexec (Maintainer): Add myself.
29207         (License): Use LGPL, not GPL.
29208
29209         link-warning: optimize generation
29210         * modules/link-warning (Makefile.am): Reduce process usage.
29211
29212 2009-12-09  Bruno Haible  <bruno@clisp.org>
29213
29214         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29215         workaround was added on 2009-11-17.
29216
29217 2009-12-09  Jim Meyering  <meyering@redhat.com>
29218             Bruno Haible  <bruno@clisp.org>
29219
29220         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29221         * modules/link-warning (Makefile.am): Make the comment-removing sed
29222         command more robust in the face of bootstrap-prepended comment lines.
29223
29224 2009-12-09  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29227         most one group.
29228
29229 2009-12-09  Simon Josefsson <simon@josefsson.org>
29230             Bruno Haible  <bruno@clisp.org>
29231
29232         * build-aux/link-warning.h: Add copyright notice.
29233         * modules/link-warning (Makefile.am): Generate link-warning.h from
29234         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29235         * NEWS: Mention change in link-warning module.
29236         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29237         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29238         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29239         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29240         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29241         * modules/math (Makefile.am): Add dependency to math.h.
29242         * modules/search (Makefile.am): Add dependency to search.h.
29243         * modules/signal (Makefile.am): Add dependency to signal.h.
29244         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29245         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29246         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29247         * modules/string (Makefile.am): Add dependency to string.h.
29248         * modules/strings (Makefile.am): Add dependency to strings.h.
29249         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29250         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29251         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29252         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29253         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29254         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29255         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29256         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29257         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29258
29259 2009-12-09  Bruno Haible  <bruno@clisp.org>
29260
29261         fchdir: Optimize away rpl_fstat when possible.
29262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29263         REPLACE_OPEN_DIRECTORY.
29264         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29265
29266 2009-12-09  Bruno Haible  <bruno@clisp.org>
29267
29268         * lib/fchdir.c: Update comment.
29269
29270 2009-12-09  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29273
29274 2009-12-08  Eric Blake  <ebb9@byu.net>
29275
29276         fchdir: avoid memory leak on re-registration.
29277         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29278
29279 2009-12-08  Jim Meyering  <meyering@redhat.com>
29280
29281         init.sh: avoid Solaris 10 /bin/sh portability problem
29282         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29283         sourced script:
29284           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29285           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29286           bar
29287         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29288         and two tests used that idiom.
29289         * tests/init.sh: Update suggested usage comments.
29290         (path_prepend_): New function, to be used in place
29291         of the --src-path=DIR option.
29292         (setup_): Move PATH-prepending code into path_prepend_.
29293         * tests/test-pread.sh: Adapt to new usage.
29294         * tests/test-xalloc-die.sh: Likewise.
29295
29296 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29297
29298         * doc/gnulib.texi (Glibc pty.h): Add.
29299         * doc/glibc-functions/forkpty.texi: Add.
29300         * doc/glibc-functions/openpty.texi: Add.
29301         Suggested by Bruno Haible.
29302
29303 2009-12-08  Eric Blake  <ebb9@byu.net>
29304
29305         fchdir: fix logic bugs
29306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29307         * tests/test-fchdir.c (main): Enhance test.
29308         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29309         is in use.
29310
29311         dup2: fix logic bugs
29312         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29313         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29314         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29315         exists.
29316         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29317
29318 2009-12-07  Eric Blake  <ebb9@byu.net>
29319
29320         unlink: fix m4 detection
29321         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29322
29323         unistd-safer: add unit test
29324         * modules/unistd-safer-tests: New file.
29325         * tests/test-dup-safer.c: Likewise.
29326         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29327         * tests/test-dup2.c (setmode): Likewise.
29328         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29329
29330         cloexec: preserve text vs. binary across dup_cloexec
29331         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29332         mode.
29333         * modules/dup2-tests (Depends-on): Add binary-io.
29334         * modules/cloexec-tests (Depends-on): Likewise.
29335         * tests/test-dup2.c (setmode, is_mode): New helpers.
29336         (main): Add tests that translation mode is preserved.
29337         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29338         Reported by Bruno Haible.
29339
29340         mgetgroups: reduce duplicate listings
29341         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29342         resulting array.
29343         * tests/test-chown.h (test_chown): Simplify client.
29344         * tests/test-lchown.h (test_lchown): Likewise.
29345
29346 2009-12-06  Bruno Haible  <bruno@clisp.org>
29347
29348         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29349         value.
29350
29351 2009-12-06  Bruno Haible  <bruno@clisp.org>
29352
29353         * lib/progname.c: Include stdio.h, stdlib.h.
29354         (set_program_name): Reject a NULL argument.
29355
29356 2009-12-05  Eric Blake  <ebb9@byu.net>
29357
29358         pipe2-safer: new module
29359         * modules/pipe2-safer: New file.
29360         * lib/unistd-safer.h (pipe2_safer): New prototype.
29361         * lib/unistd--.h (pipe2): New wrapper.
29362         * lib/pipe-safer.c (pipe2_safer): New function.
29363         * modules/pipe (Depends-on): Add pipe2-safer.
29364         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29365
29366         stdlib-safer: preserve cloexec flag for mkostemp[s]
29367         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29368         fd_safer_flag.
29369
29370         unistd-safer: allow preservation of cloexec status via flag
29371         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29372         prototypes.
29373         * lib/dup-safer.c (dup_safer_flag): New function.
29374         * lib/fd-safer.c (fd_safer_flag): Likewise.
29375         * modules/cloexec (configure.ac): Set witness.
29376
29377         test-dup2: enhance test
29378         * modules/dup2-tests (Depends-on): Add cloexec.
29379         * tests/test-dup2.c (main): Enhance test.
29380
29381         cloexec: add dup_cloexec
29382         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29383         header and comments.
29384         * lib/cloexec.c (set_cloexec_flag): Add comments.
29385         (dup_cloexec): New function, with mingw implementation borrowed
29386         from...
29387         * lib/w32spawn.h (dup_noinherit): ...here.
29388         * modules/execute (Depends-on): Add cloexec.
29389         * modules/pipe (Depends-on): Likewise.
29390         * modules/cloexec (Depends-on): Add dup2.
29391         * modules/cloexec-tests (Files): New file.
29392         * tests/test-cloexec.c: Likewise.
29393
29394         test-xalloc-die: fix test for mingw
29395         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29396         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29397         directory and .exe suffix off argv[0] output.
29398
29399         test-fseeko: fix test for mingw
29400         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29401         than undefining fseek, so test will pass on mingw.
29402
29403 2009-12-05  Bruno Haible  <bruno@clisp.org>
29404
29405         * lib/progname.h (set_program_name): Clarify specification.
29406         * lib/progname.c (set_program_name): Likewise.
29407         Reported by Jim Meyering.
29408
29409 2009-12-05  Jim Meyering  <meyering@redhat.com>
29410
29411         maint.mk: backslash-escape parens in default regexp
29412         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29413         backslash-escape the literal parentheses.
29414
29415         maint.mk: news-date-check: use grep -E
29416         * top/maint.mk (today): Define a Make variable, not a...
29417         (news-date-check): ...shell variable.
29418         (news-date-regexp): Use the Make variable.
29419         Use grep's -E option.  Change the failing diagnostic to mention
29420         the variable, $(news-date-regexp).
29421
29422 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29423
29424         maintainer-makefile: allow customization of NEWS entry format
29425         * top/maint.mk (news-date-regexp): New overridable variable.
29426         (news-date-check): Use it.
29427
29428 2009-12-04  Eric Blake  <ebb9@byu.net>
29429
29430         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29431         * lib/mgetgroups.h (xgetgroups): New prototype.
29432         * lib/mgetgroups.c (xgetgroups): New wrapper.
29433         (mgetgroups): Handle ENOSYS.
29434         * modules/mgetgroups (Depends-on): Add realloc.
29435         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29436
29437         mgetgroups: avoid argument promotion issues with -1
29438         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29439         for invalid gid_t.
29440         * tests/test-chown.h (getegid, test_chown): Likewise.
29441         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29442
29443 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29444
29445         exclude: Fix header file problems.
29446         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29447
29448 2009-12-01  Jim Meyering  <meyering@redhat.com>
29449
29450         fts: fts_open: do not let an empty string cause immediate failure
29451         This is required in support of GNU rm, for which the command
29452         "rm A '' B" must process and remove both A and B, in spite of
29453         the empty string argument.
29454         * lib/fts.c (fts_open): Do not let the presence of an empty string
29455         cause fts_open to fail immediately.  Most fts-using tools must be
29456         able to process all arguments, in order, and can be expected to
29457         diagnose such arguments themselves.
29458
29459 2009-11-30  Eric Blake  <ebb9@byu.net>
29460
29461         utimens: fix compilation error
29462         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29463         Declare variable at right scope.
29464
29465 2009-11-29  Jim Meyering  <meyering@redhat.com>
29466
29467         bootstrap: handle perl-5.11's changed --version output
29468         * build-aux/bootstrap (get_version): Handle perl separately,
29469         since perl-5.11's --version output is different.
29470
29471 2009-11-28  Jim Meyering  <meyering@redhat.com>
29472
29473         userspec: depend on the inttostr module, too
29474         * modules/userspec (Depends-on): Add inttostr.
29475
29476         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29477         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29478         number of MAXUID when it evaluates to (uid_t) -1.
29479         Likewise for group ID.  Reported by Matt McCutchen in
29480         <http://savannah.gnu.org/bugs/?28113>
29481
29482         userspec: reformat to use spaces, not TABs
29483         * lib/userspec.c: Expand TABs to spaces.
29484         Add Emacs' "indent-tabs-mode: nil" hint.
29485
29486 2009-11-27  Eric Blake  <ebb9@byu.net>
29487
29488         getopt-gnu: flush out another BSD bug
29489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29490         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29491         flush out BSD bug.
29492         * tests/test-getopt.h (test_getopt): End lists with NULL.
29493         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29494         (test_getopt_long_posix): Enhance test.
29495         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29496         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29497         getopt-gnu.
29498         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29499         Likewise.
29500
29501 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29502
29503         * modules/idpriv-droptemp-tests (Notice): Fix text.
29504
29505 2009-11-27  Jim Meyering  <meyering@redhat.com>
29506
29507         test-xalloc-die: avoid spurious failure due to libtool argv difference
29508         In a libtool-enabled project, this test would fail due to a difference
29509         in the emitted program name, e.g.,
29510         -test-xalloc-die: memory exhausted
29511         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29512         Use program to avoid that.
29513         * modules/xalloc-die-tests (Depends-on): Add progname.
29514         * tests/test-xalloc-die.c: Include progname.h".
29515         (program_name): Remove decl.
29516         (main): Call set_program_name.
29517         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29518
29519 2009-11-26  Richard Jones  <rjones@redhat.com>
29520
29521         w32sock: leave win32 error in place.
29522         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29523
29524 2009-11-26  Eric Blake  <ebb9@byu.net>
29525
29526         init.sh: suggest to use skip_ and fail_ functions in comments
29527         * tests/init.sh: Add a sentence.
29528
29529 2009-11-25  Bruno Haible  <bruno@clisp.org>
29530
29531         init.sh: add documentation in comments
29532         * tests/init.sh: Add some developer and user documentation.
29533
29534 2009-11-26  Jim Meyering  <meyering@redhat.com>
29535
29536         init.sh: accommodate even those who specify bogus srcdir manually
29537         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29538         configure-time tests to be sanitized, so that there is no need to
29539         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29540         (with no double quotes) suffices.  However, since tests may be
29541         invoked manually, and since you may explicitly set srcdir to the
29542         name of a directory containing spaces, do quote its uses here.
29543         * tests/test-pread.sh: Likewise.
29544         Suggested by Bruno Haible.
29545
29546         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29547         * tests/test-pread.sh: Write no data into the pipe, because
29548         test-pread actually reads none.  This avoids a diagnostic,
29549         "bash: echo: write error: Broken pipe", that arises in the unusual
29550         event something is ignoring SIGPIPE, and might be interpreted
29551         as some sort of failure.  Reported by Bruno Haible.
29552
29553 2009-11-25  Jim Meyering  <meyering@redhat.com>
29554
29555         test-pread: cover failure with ESPIPE and EINVAL
29556         * tests/test-pread.c (main): Test for failure, too.
29557         * tests/test-pread.sh: Invoke with stdin on a pipe.
29558         Suggested by Eric Blake.
29559
29560         pread: improvement and fix
29561         * modules/pread (Depends-on): Depend on lseek, for portability to
29562         e.g., mingw.  Suggested by Eric Blake.
29563         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29564
29565         unistd.in.h: correct declaration of pread
29566         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29567         Reported by Richard W.M. Jones.
29568
29569         test-pread.sh: distribute the test script
29570         * modules/pread-tests (Files): Include test-pread.sh.
29571
29572         test-pread.sh: clean up
29573         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29574         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29575         That is unnecessary, since it's always ".".
29576         Suggestion from Eric Blake.
29577
29578         test-pread.sh: make executable
29579         * tests/test-pread.sh: Set executable bit.
29580         Reported by Eric Blake.
29581
29582         correct typo in test-pread.sh
29583         * tests/test-pread.sh: Add #! line.
29584
29585         test pread
29586         * tests/test-pread.c: New file.
29587         * tests/test-pread.sh: Likewise.
29588         * modules/pread-tests: Likewise.
29589
29590         pread: new module
29591         * modules/pread: New file.
29592         * lib/unistd.in.h (pread): Define/declare.
29593         * lib/pread.c (pread): New file.
29594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29595         * modules/unistd (Makefile.am): Substitute witnesses.
29596         * doc/posix-functions/pread.texi (pread): Update.
29597         * MODULES.html.sh: Add pread.
29598
29599 2009-11-25  Jim Meyering  <meyering@redhat.com>
29600
29601         tests/init.sh: new file to be used via most *.sh tests
29602         * tests/init.sh: New file.
29603
29604 2009-11-25  Eric Blake  <ebb9@byu.net>
29605
29606         utimens: work around older Linux failure with symlinks
29607         * lib/utimens.c (lutimensat_works_really): New variable.
29608         (fdutimens, lutimens): Use it to manage kernels that support
29609         nanosecond times on files, but not on symlinks.
29610         Reported by OndÅ™ej Vašík.
29611
29612         utimes: fix configure grammar
29613         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29614
29615 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29616
29617         regex: Fix fastmap for multibyte character ranges.
29618         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29619         characters when a multibyte character range is included.
29620
29621 2009-11-22  Andy Wingo  <wingo@pobox.com>
29622
29623         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29624         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29625
29626 2009-11-24  Bruno Haible  <bruno@clisp.org>
29627
29628         doc: Most *_l functions exist in MacOS X 10.5.
29629         * doc/posix-functions/duplocale.texi: Update platforms list.
29630         * doc/posix-functions/freelocale.texi: Likewise.
29631         * doc/posix-functions/newlocale.texi: Likewise.
29632         * doc/posix-functions/uselocale.texi: Likewise.
29633         * doc/posix-functions/isalnum_l.texi: Likewise.
29634         * doc/posix-functions/isalpha_l.texi: Likewise.
29635         * doc/posix-functions/isblank_l.texi: Likewise.
29636         * doc/posix-functions/iscntrl_l.texi: Likewise.
29637         * doc/posix-functions/isdigit_l.texi: Likewise.
29638         * doc/posix-functions/isgraph_l.texi: Likewise.
29639         * doc/posix-functions/islower_l.texi: Likewise.
29640         * doc/posix-functions/isprint_l.texi: Likewise.
29641         * doc/posix-functions/ispunct_l.texi: Likewise.
29642         * doc/posix-functions/isspace_l.texi: Likewise.
29643         * doc/posix-functions/isupper_l.texi: Likewise.
29644         * doc/posix-functions/iswalnum_l.texi: Likewise.
29645         * doc/posix-functions/iswalpha_l.texi: Likewise.
29646         * doc/posix-functions/iswblank_l.texi: Likewise.
29647         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29648         * doc/posix-functions/iswctype_l.texi: Likewise.
29649         * doc/posix-functions/iswdigit_l.texi: Likewise.
29650         * doc/posix-functions/iswgraph_l.texi: Likewise.
29651         * doc/posix-functions/iswlower_l.texi: Likewise.
29652         * doc/posix-functions/iswprint_l.texi: Likewise.
29653         * doc/posix-functions/iswpunct_l.texi: Likewise.
29654         * doc/posix-functions/iswspace_l.texi: Likewise.
29655         * doc/posix-functions/iswupper_l.texi: Likewise.
29656         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29657         * doc/posix-functions/isxdigit_l.texi: Likewise.
29658         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29659         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29660         * doc/posix-functions/strcoll_l.texi: Likewise.
29661         * doc/posix-functions/strfmon_l.texi: Likewise.
29662         * doc/posix-functions/strftime_l.texi: Likewise.
29663         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29664         * doc/posix-functions/strxfrm_l.texi: Likewise.
29665         * doc/posix-functions/tolower_l.texi: Likewise.
29666         * doc/posix-functions/toupper_l.texi: Likewise.
29667         * doc/posix-functions/towctrans_l.texi: Likewise.
29668         * doc/posix-functions/towlower_l.texi: Likewise.
29669         * doc/posix-functions/towupper_l.texi: Likewise.
29670         * doc/posix-functions/wcscoll_l.texi: Likewise.
29671         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29672         * doc/posix-functions/wctrans_l.texi: Likewise.
29673         * doc/posix-functions/wctype_l.texi: Likewise.
29674         * doc/glibc-functions/strptime_l.texi: Likewise.
29675         * doc/glibc-functions/strtod_l.texi: Likewise.
29676         * doc/glibc-functions/strtof_l.texi: Likewise.
29677         * doc/glibc-functions/strtol_l.texi: Likewise.
29678         * doc/glibc-functions/strtold_l.texi: Likewise.
29679         * doc/glibc-functions/strtoll_l.texi: Likewise.
29680         * doc/glibc-functions/strtoul_l.texi: Likewise.
29681         * doc/glibc-functions/strtoull_l.texi: Likewise.
29682         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29683         * doc/glibc-functions/wcstod_l.texi: Likewise.
29684         * doc/glibc-functions/wcstof_l.texi: Likewise.
29685         * doc/glibc-functions/wcstol_l.texi: Likewise.
29686         * doc/glibc-functions/wcstold_l.texi: Likewise.
29687         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29688         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29689         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29690
29691 2009-11-24  Bruno Haible  <bruno@clisp.org>
29692
29693         duplocale: Fix logic bug.
29694         * lib/duplocale.c: Don't include <langinfo.h>.
29695         (_NL_LOCALE_NAME): Remove macro.
29696         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29697         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29698
29699 2009-11-23  Jim Meyering  <meyering@redhat.com>
29700
29701         test-update-copyright: don't hard-code /usr/bin/perl
29702         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29703         perl to print the current year.  Gilles Espinasse reported that
29704         the replaced use of perl was hard-coded as /usr/bin/perl.
29705
29706 2009-11-23  Bruno Haible  <bruno@clisp.org>
29707
29708         duplocale: Add support for glibc 2.3.x.
29709         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29710
29711 2009-11-22  Bruno Haible  <bruno@clisp.org>
29712
29713         vasnprintf: Tiny optimization.
29714         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29715         MacOS X.
29716
29717 2009-11-22  Bruno Haible  <bruno@clisp.org>
29718
29719         Tests for module 'duplocale'.
29720         * modules/duplocale-tests: New file.
29721         * tests/test-duplocale.c: New file.
29722
29723         New module 'duplocale'.
29724         * m4/duplocale.m4: New file.
29725         * lib/locale.in.h (duplocale): New declaration.
29726         * lib/duplocale.c: New file.
29727         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29728         gl_LOCALE_H_DEFAULTS): New macros.
29729         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29730         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29731         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29732         REPLACE_DUPLOCALE.
29733         * modules/duplocale: New file.
29734         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29735
29736 2009-11-22  Bruno Haible  <bruno@clisp.org>
29737
29738         * modules/locale-tests (configure.ac): Test for newlocale function.
29739         * tests/test-locale.c: When the system has extended locale functions,
29740         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29741
29742         locale: Make locale_t available when possible.
29743         * lib/locale.in.h: Include <xlocale.h> when it exists.
29744         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29745         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29746         * modules/locale (Depends-on): Add extensions.
29747         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29748         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29749
29750 2009-11-22  Bruno Haible  <bruno@clisp.org>
29751
29752         Add comments.
29753         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29754         invocation.
29755         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29756         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29757         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29758
29759 2009-11-22  Bruno Haible  <bruno@clisp.org>
29760
29761         error: account for the possibility of freopen (stdout).
29762         * lib/error.c: Include <unistd.h>.
29763         (flush_stdout): New function, extracted from error and error_at_line.
29764         Determine stdout's fd dynamically.
29765         (error, error_at_line): Invoke flush_stdout.
29766         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29767         * modules/error (Depends-on): Add unistd.
29768
29769 2009-11-22  Bruno Haible  <bruno@clisp.org>
29770
29771         diffseq: Add comment.
29772         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29773
29774 2009-11-22  Jim Meyering  <meyering@redhat.com>
29775
29776         c-stack: avoid defining an unused static function
29777         * lib/c-stack.c (find_stack_direction): Do not define this function
29778         when it will not be used.
29779
29780         diffseq: avoid spurious gcc warnings
29781         * lib/diffseq.h (IF_LINT2): Define.
29782         (compareseq): Use it to initialize two members of "part".
29783         This avoids two used-uninitialized warnings.
29784
29785 2009-11-21  Jim Meyering  <meyering@redhat.com>
29786
29787         c-stack: avoid "ignoring return value of `write'" warning
29788         * lib/c-stack.c: Include "ignore-value.h".
29789         (die): Explicitly ignore each write return value.
29790         * modules/c-stack (Depends-on): Add ignore-value.
29791
29792 2009-11-21  Bruno Haible  <bruno@clisp.org>
29793
29794         diffseq: reduce scope of variable 'best'.
29795         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29796         variable, earlier used for two different purposes.
29797
29798 2009-11-21  Jim Meyering  <meyering@redhat.com>
29799
29800         diffseq: remove useless assignment to "best"
29801         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29802         assignment.  At that point "best" is already guaranteed to be zero.
29803
29804 2009-11-20  Eric Blake  <ebb9@byu.net>
29805
29806         build: mention ftp redirector in release announcements
29807         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29808         values that used to come from cfg.mk; mention FTP redirect URL.
29809         * build-aux/announce-gen: Mention the mirror list.
29810         Suggested by Karl Berry.
29811
29812         nanosleep: improve port to mingw
29813         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29815         LIB_NANOSLEEP, but only when needed.
29816         * modules/select (Link): Document LIBSOCKET.
29817         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29818         enough.
29819
29820         nanosleep: work around cygwin bug
29821         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29822         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29823         bug.
29824         (getnow): Delete, not needed.
29825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29826         LIB_CLOCK_GETTIME.
29827         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29828         clock-time, gettime.
29829         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29830         bug.
29831         * modules/nanosleep-tests: New test.
29832         * tests/test-nanosleep.c: New file.
29833
29834         sleep: work around cygwin bug
29835         * lib/sleep.c (rpl_sleep): Work around the bug.
29836         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29837         (gl_PREREQ_SLEEP): Delete unused macro.
29838         * modules/sleep (Depends-on): Add verify.
29839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29840         * modules/unistd (Makefile.am): Substitute witness.
29841         * lib/unistd.in.h (sleep): Update prototype.
29842         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29843         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29844         * modules/sleep-tests (Depends-on): Check for alarm.
29845
29846 2009-11-20  Jim Meyering  <meyering@redhat.com>
29847
29848         maint.mk: improve sc_prohibit_magic_number_exit
29849         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29850         so it does not match uses like System.exit(1).
29851         Add comments showing how to correct all offenders.
29852
29853 2009-11-19  Eric Blake  <ebb9@byu.net>
29854
29855         xalloc-die-tests: add missing library
29856         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29857
29858         test-xvasprintf: silence compiler warnings
29859         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29860         empty string from gcc.
29861
29862 2009-11-19  Jim Meyering  <meyering@redhat.com>
29863
29864         xfreopen: new module, from coreutils
29865         * modules/xfreopen: New module.
29866         * lib/xfreopen.c: New file.
29867         * lib/xfreopen.h: New file.
29868         * MODULES.html.sh (File stream based Input/Output"): Add it.
29869
29870 2009-11-19  Eric Blake  <ebb9@byu.net>
29871
29872         manywarnings: depend on warnings
29873         * modules/manywarnings (Depends-on): Add warnings.
29874
29875         build: avoid compiler warnings
29876         * lib/select.c (rpl_select): Delete unused variable.
29877         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29878
29879 2009-11-18  Eric Blake  <ebb9@byu.net>
29880
29881         tests: avoid false negative with --with-packager
29882         * tests/test-version-etc.sh: Discard packager information.
29883         * tests/test-argp-version-etc-1.sh: Likewise.
29884         Reported by Mike Frysinger.
29885
29886         utimens: fix regression on Solaris
29887         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29888         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29889         can only change fd timestamps via futimesat.  Instead, use an
29890         additional witness macro to avoid BSD bug.
29891         Reported by Jim Meyering.
29892
29893 2009-11-17  Eric Blake  <ebb9@byu.net>
29894
29895         usleep: use it to simplify tests
29896         * modules/stat-time-tests (Depends-on): Add usleep.
29897         (configure.ac): Drop usleep check.
29898         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29899         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29900         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29901         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29902         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29903         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29904         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29905         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29906         Likewise.
29907         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29908         * tests/test-lchown.h (nap): Likewise.
29909         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29910         * tests/test-stat-time.c (nap): Likewise.
29911         * tests/test-utimens-common.h (nap): Update comments.
29912
29913         usleep: new module
29914         * modules/usleep: New file.
29915         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29916         * lib/usleep.c (usleep): Likewise.
29917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29918         * modules/unistd (Makefile.am): Substitute witnesses.
29919         * lib/unistd.in.h (usleep): Add declaration.
29920         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29921         * MODULES.html.sh (Date and time): Likewise.
29922         * modules/usleep-tests (Depends-on): New test.
29923         * tests/test-usleep.c: New file.
29924
29925         chown: work around OpenBSD bug
29926         * lib/chown.c (rpl_chown): Work around the bug.
29927         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29928         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29929         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29930         * modules/chown (Depends-on): Add stdbool.
29931         * modules/lchown (Depends-on): Likewise.
29932         * doc/posix-functions/chown.texi (chown): Document the bug.
29933         * doc/posix-functions/lchown.texi (lchown): Likewise.
29934         * tests/test-lchown.h (test_chown): Relax test.
29935
29936         mkstemp: avoid conflict with C++ keyword template
29937         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29938         * lib/mkostemp.c (mkostemp): Likewise.
29939         * lib/mkostemps.c (mkostemps): Likewise.
29940         * lib/mkstemp.c (mkstemp): Likewise.
29941         * lib/mkstemps.c (mkstemps): Likewise.
29942
29943         xalloc-die-tests: optimize
29944         * tests/test-xalloc-die.sh: Reduce number of processes.
29945
29946 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29947
29948         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29949         patch from ludo@gnu.org (Ludovic Courtès).
29950
29951 2009-11-17  Jim Meyering  <meyering@redhat.com>
29952
29953         version-etc: use proper license string
29954         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29955         * modules/version-etc-fsf: Likewise.
29956
29957 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29958
29959         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29960         printed to stdout.  Deal with EOL differences.
29961
29962 2009-11-17  Eric Blake  <ebb9@byu.net>
29963
29964         unsetenv: work around Solaris bug
29965         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29966         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29967         Reported by Jim Meyering.
29968
29969         vasnprintf: avoid compiler warnings
29970         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29971         variables.
29972         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29973
29974 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29975
29976         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29977         settings since xalloc-die is no longer the self test,
29978         xalloc-die.sh is.
29979
29980 2009-11-17  Jim Meyering  <meyering@redhat.com>
29981
29982         test-xalloc-die.sh: make the code agree with the commit log
29983         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29984         at the end, just in case you happen to have a test-xalloc-die
29985         program in some other PATH directory.
29986
29987         test-xalloc-die.sh: fix a portability bug
29988         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29989         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29990         Otherwise, argv[0] (as often seen in diagnostics) would be too
29991         system-dependent, sometimes with, and sometimes without the leading "./".
29992
29993         version-etc-fsf: relax license to LGPLv3+
29994         * modules/version-etc-fsf (License): Relax license.
29995
29996 2009-11-16  Eric Blake  <ebb9@byu.net>
29997
29998         xalloc-die-tests: avoid printing null pointer
29999         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30000         shell script.
30001         * tests/test-xalloc-die.c (program_name): Declare.
30002         * tests/test-xalloc-die.sh (tmpfiles): New file.
30003
30004         setenv, unsetenv: work around various bugs
30005         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30006         (setenv) [HAVE_SETENV]: Work around bugs.
30007         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30009         for bugs.
30010         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30011         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30013         * modules/stdlib (Makefile.am): Update substitutions.
30014         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30015         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30016         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30017         * modules/setenv-tests: New test.
30018         * modules/unsetenv-tests: Likewise.
30019         * tests/test-setenv.c: New file.
30020         * tests/test-unsetenv.c: Likewise.
30021
30022 2009-11-16  Jim Meyering  <meyering@redhat.com>
30023
30024         version-etc: relax license to LGPLv3+
30025         * modules/version-etc (License): Relax license.
30026
30027         better AC_REQUIRE expanded-before-required-warning avoidance
30028         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30029         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30030         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30031         which is no longer needed.
30032
30033 2009-11-16  Eric Blake  <ebb9@byu.net>
30034
30035         test-freading: clean up temporary file
30036         * tests/test-freading.c (main): Remove file on success, and use
30037         ASSERT more liberally.
30038         Reported by Jim Meyering.
30039
30040 2009-11-16  Jim Meyering  <meyering@redhat.com>
30041
30042         avoid new AC_REQUIRE expanded-before-required warnings
30043         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30044         merely using it.
30045         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30046         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30047
30048 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30049
30050         * tests/test-xalloc-die.c: New file.
30051         * modules/xalloc-die-tests: New file.
30052         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30053         XFAIL_TESTS so it can be appended by modules.
30054
30055 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30056
30057         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30058         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30059
30060 2009-11-14  Eric Blake  <ebb9@byu.net>
30061
30062         fnmatch: avoid compiler warning
30063         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30064         to silence compiler warning about mismatch signedness in ?:.
30065         Reported by Robert Millan.
30066
30067         intprops: add double-inclusion guard
30068         * lib/intprops.h: Allow idempotent includes.
30069         Suggested by Bruce Korb.
30070
30071         openat: detect Solaris fchownat bug
30072         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30073         penalizing glibc chownat when only lchownat is broken.
30074         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30075         trailing slash bugs.
30076         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30077         * modules/openat-tests (Files): Include more files.
30078         (Depends-on): Add mgetgroups, sleep, stat-time.
30079         (configure.ac): Add additional checks.
30080         (Makefile.am): Build new test.
30081         * tests/test-fchownat.c: New file.
30082
30083         lchown: detect Solaris and FreeBSD bug
30084         * lib/lchown.c (rpl_lchown): Work around bug.
30085         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30087         * modules/unistd (Makefile.am): Populate it.
30088         * lib/unistd.in.h (lchown): Update declaration.
30089         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30090         * modules/lchown-tests: New file.
30091         * tests/test-lchown.h (test_lchown): Likewise.
30092         * tests/test-lchown.c (main): Likewise.
30093
30094         chown: detect Solaris and FreeBSD bug
30095         * lib/chown.c (rpl_chown): Work around bug.
30096         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30097         (gl_PREREQ_CHOWN): Delete.
30098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30099         * modules/unistd (Makefile.am): Populate it.
30100         * lib/unistd.in.h (chown): Update declaration.
30101         * lib/lchown.c (chown): Update client.
30102         * modules/lchown (Depends-on): Add lstat.
30103         * doc/posix-functions/chown.texi (chown): Document the bug.
30104         * doc/posix-functions/getgroups.texi (getgroups): Document
30105         getgroups pitfall.
30106         * modules/chown-tests: New file.
30107         * tests/test-chown.h (test_chown): Likewise.
30108         * tests/test-chown.c (main): Likewise.
30109
30110 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30111
30112         gnulib-tool: correctly detect absence of m4 directories
30113         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30114
30115 2009-11-14  Jim Meyering  <meyering@redhat.com>
30116
30117         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30118         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30119
30120 2009-11-14  John W. Eaton  <jwe@gnu.org>
30121
30122         strftime.h: wrap funtion declaration in extern "C" block
30123         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30124
30125 2009-11-13  Eric Blake  <ebb9@byu.net>
30126
30127         getgroups: avoid compiler warning
30128         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30129
30130         getgroups: work around FreeBSD bug
30131         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30132         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30133         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30134         * tests/test-getgroups.c (main): Fix buffer overrun.
30135
30136         getgroups: avoid compilation failure
30137         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30138         * modules/getgroups (Depends-on): Add stdint.
30139
30140 2009-11-13  Jim Meyering  <meyering@redhat.com>
30141
30142         test-getgroups: avoid compilation failure
30143         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30144
30145 2009-11-13  Eric Blake  <ebb9@byu.net>
30146
30147         mgetgroups: new module, taken from coreutils
30148         * modules/mgetgroups: New file.
30149         * lib/mgetgroups.h: Likewise.
30150         * lib/mgetgroups.c (mgetgroups): Likewise.
30151         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30152         * MODULES.html.sh (Users and groups): Mention it.
30153
30154         getgroups: don't expose GETGROUPS_T to user
30155         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30156         an element at a time if GETGROUPS_T is wrong size.
30157         * lib/getugroups.h (getugroups): Change signature.
30158         * lib/unistd.in.h (getgroups): Likewise.
30159         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30160         signature needs fixing.
30161         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30162         AC_TYPE_GETGROUPS.
30163         * modules/group-member (Depends-on): Add getgroups.
30164         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30165         (group_member): Rely on getgroups replacement.
30166         * lib/getugroups.c (getugroups): Use gid_t.
30167         * tests/test-getgroups.c (main): Likewise.
30168         * NEWS: Mention the signature change.
30169         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30170         problem with signature.
30171         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30172         GETGROUPS_T is still useful for setgroups.
30173
30174         getgroups, getugroups: provide stubs for mingw
30175         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30176         * lib/getugroups.c (getugroups): Likewise.
30177         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30178         function.  Modernize replacement scheme.
30179         (gl_PREREQ_GETGROUPS): Delete.
30180         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30181         * modules/getgroups (configure.ac): Declare witness.
30182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30183         * modules/unistd (Depends-on): Substitute witness.
30184         * lib/unistd.in.h (getgroups): Declare replacement.
30185
30186         getgroups: avoid calling exit
30187         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30188         drop xalloc.
30189         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30190         dependencies.
30191         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30192         exiting, in the rare case of malloc failure.
30193
30194         getgroups: fix logic error
30195         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30196         has more than 20 groups.
30197         * modules/getgroups-tests: New test.
30198         * tests/test-getgroups.c: New file.
30199
30200 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30201
30202         * tests/test-base64.c: Improve.
30203
30204 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30205
30206         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30207         Blake <ebb9@byu.net>.
30208
30209 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30210
30211         * tests/test-xvasprintf.c: Add %s%s related checks.
30212
30213 2009-11-12  Eric Blake  <ebb9@byu.net>
30214
30215         version-etc: match standards.texi style
30216         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30217         and use <> only for URLs.
30218
30219 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30220
30221         fts: do not fail on a submount during traversal
30222         * lib/fts.c (fts_build): Read the stat info again after opening
30223         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30224         Original report at http://bugzilla.redhat.com/501848.
30225
30226 2009-11-12  Jim Meyering  <meyering@redhat.com>
30227
30228         bootstrap: sync from coreutils
30229         * build-aux/bootstrap (bootstrap_epilogue): New function.
30230         Use git_modules_config in one more place.  This make bootstrap's
30231         --gnulib-srcdir option more useful for testing.
30232
30233         bootstrap: generalize autoheader check
30234         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30235         AC_CONFIG_HEADERS.
30236
30237 2009-11-11  Eric Blake  <ebb9@byu.net>
30238
30239         mkfifoat: use new modules for Solaris and BSD bugs
30240         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30241         * lib/mkfifoat.c (mknodat): Split...
30242         * lib/mknodat.c (mknodat): ...into new file.
30243         * modules/mkfifoat (Files): Ship new file.
30244         (Depends-on): Add mkfifo, mknod.
30245         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30246         (Depends-on): Add symlink.
30247         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30248         redundant with test_mkfifo.h.
30249         (do_mkfifoat, do_mknodat): New helpers.
30250
30251         mknod: new module
30252         * modules/mknod: New file.
30253         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30254         * lib/mknod.c (mknod): Likewise.
30255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30256         defaults.
30257         * modules/sys_stat (Makefile.am): Substitute them.
30258         * lib/sys_stat.in.h (mknod): Declare replacement.
30259         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30260         Document it.
30261         * doc/posix-functions/mknod.texi (mknod): Likewise.
30262         * modules/mknod-tests: New test.
30263         * tests/test-mknod.c: Likewise.
30264
30265         mkfifo: new module
30266         * modules/mkfifo: New file.
30267         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30268         * lib/mkfifo.c (mkfifo): Likewise.
30269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30270         defaults.
30271         * modules/sys_stat (Makefile.am): Substitute them.
30272         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30273         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30274         Document it.
30275         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30276         * modules/mkfifo-tests: New test.
30277         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30278         from test-mkfifoat.c.
30279         * tests/test-mkfifo.c: New file.
30280
30281         readlink: detect FreeBSD bug
30282         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30283         slash on symlink.
30284         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30285         * tests/test-readlink.h (test_readlink): Enhance test.
30286
30287         symlink: detect FreeBSD bug
30288         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30289         slash on symlink.
30290         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30291         * tests/test-symlink.h (test_symlink): Enhance test.
30292
30293 2009-11-10  Eric Blake  <ebb9@byu.net>
30294
30295         link: detect FreeBSD bug
30296         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30297         symlink.
30298         * doc/posix-functions/link.texi (link): Document the bug.
30299         * tests/test-link.h (test_link): Enhance test.
30300         * tests/test-linkat.c (main): Update caller.
30301
30302         unlink, remove: detect FreeBSD bug
30303         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30304         slash on symlink.
30305         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30306         * doc/posix-functions/remove.texi (remove): Likewise.
30307         * tests/test-unlink.h (test_unlink): Enhance test.
30308         * tests/test-remove.c (main): Likewise.
30309
30310 2009-11-09  Eric Blake  <ebb9@byu.net>
30311
30312         rename: detect FreeBSD bug
30313         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30314         slash on symlink.
30315         * modules/renameat-tests (Depends-on): Add filenamecat.
30316         * tests/test-rename.h (test_rename): Allow one more errno.
30317         * tests/test-renameat.c (main): Likewise.
30318         * doc/posix-functions/rename.texi (rename): Document the bug.
30319
30320         open: detect FreeBSD bug
30321         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30322         symlink.
30323         * doc/posix-functions/open.texi (open): Document the bug.
30324         * doc/posix-functions/utimes.texi (utimes): Likewise.
30325         * tests/test-open.h (test_open): Add parameters, and test symlink
30326         handling.
30327         * tests/test-open.c (main): Adjust caller.
30328         * tests/test-fcntl-safer.c (main): Likewise.
30329         * modules/open-tests (Depends-on): Add stdbool, symlink.
30330         * modules/fcntl-safer-tests (Depends-on): Likewise.
30331         * tests/test-openat.c (main): Add test-open tests.
30332
30333         stat: detect FreeBSD bug
30334         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30335         symlink.
30336         * doc/posix-functions/stat.texi (stat): Document the bug.
30337         * tests/test-stat.h (test_stat_func): Add argument.
30338         * tests/test-stat.c (main): Adjust caller.
30339         * tests/test-fstatat.c (main): Likewise.
30340         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30341         Reported by Jim Meyering.
30342
30343 2009-11-09  James Youngman  <jay@gnu.org>
30344
30345         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30346         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30347
30348 2009-11-08  Jim Meyering  <meyering@redhat.com>
30349
30350         utimens: remove invalid futimesat call
30351         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30352         It used the file descriptor of the target file as the DIR_FD
30353         parameter and NULL as the file name.  That caused failure with
30354         errno == EFAULT on FreeBSD-8.0-rc2
30355
30356 2009-11-07  Eric Blake  <ebb9@byu.net>
30357
30358         fflush, freadseek: use fseeko, not fseek
30359         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30360         (clear_ungetc_buffer): Avoid potential problems on large files.
30361         * lib/freadseek.c (freadseek): Likewise.
30362         * modules/freadseek (Depends-on): Add fseeko.
30363         * modules/fseek (configure.ac): Set a witness.
30364         * tests/test-fflush.c (main): Use fseeko.
30365         * tests/test-fpurge.c (fseek): Disable link warning.
30366         * tests/test-freadable.c (fseek): Likewise.
30367         * tests/test-freading.c (fseek): Likewise.
30368         * tests/test-fseeko.c (fseek): Likewise.
30369         * tests/test-ftell.c (fseek): Likewise.
30370         * tests/test-ftello.c (fseek): Likewise.
30371         * tests/test-fwritable.c (fseek): Likewise.
30372         * tests/test-fwriting.c (fseek): Likewise.
30373
30374 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30375
30376         * modules/memchr (Depends-on): Drop getpagesize dependency.
30377
30378 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30379
30380         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30381         Reported by Ludovic Courtès.
30382         * build-aux/pmccabe2html: Improve example usage.
30383         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30384
30385 2009-11-06  Jim Meyering  <meyering@redhat.com>
30386
30387         do-release-commit-and-tag: New module.
30388         Automate the release-commit and tag process.
30389         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30390         * modules/do-release-commit-and-tag: New file.
30391         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30392
30393 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30394
30395         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30396         because test-select.c uses inet_pton.
30397
30398 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30399
30400         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30401         GETADDRINFO_LIB.  Bump serial number.
30402         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30403         Suggested by Eric Blake <ebb9@byu.net>.
30404
30405 2009-11-05  Eric Blake  <ebb9@byu.net>
30406
30407         strtod: detect darwin bug
30408         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30409         Reported by Leo Davis.
30410
30411         freopen-safer: new module
30412         * modules/freopen-safer: New module.
30413         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30414         * lib/freopen-safer.c (freopen_safer): New file.
30415         * lib/stdio-safer.h (freopen_safer): New declaration.
30416         * lib/stdio--.h (freopen): New override.
30417         * MODULES.html.sh (File stream based Input/Output): Mention it.
30418         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30419         freopen-safer module.
30420         * doc/posix-functions/stderr.texi (stderr): Likewise.
30421         * doc/posix-functions/stdin.texi (stdin): Likewise.
30422         * doc/posix-functions/stdout.texi (stdout): Likewise.
30423         * modules/freopen-safer-tests: New test.
30424         * tests/test-reopen-safer.c: New file.
30425
30426 2009-11-05  Jim Meyering  <meyering@redhat.com>
30427
30428         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30429         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30430
30431 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30432
30433         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30434
30435 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30436
30437         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30438
30439 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30440
30441         Fix link error.
30442         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30443         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30444
30445 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30446
30447         * tests/test-func.c: Also test value of __func__.
30448
30449 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30450
30451         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30452         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30453
30454 2009-11-05  Bruno Haible  <bruno@clisp.org>
30455
30456         Fix link error.
30457         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30458         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30459         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30460
30461 2009-11-05  Bruno Haible  <bruno@clisp.org>
30462
30463         Tests for module 'inet_pton'.
30464         * modules/inet_pton-tests: New file.
30465         * tests/test-inet_pton.c: New file.
30466
30467 2009-11-05  Bruno Haible  <bruno@clisp.org>
30468
30469         Tests for module 'inet_ntop'.
30470         * modules/inet_ntop-tests: New file.
30471         * tests/test-inet_ntop.c: New file.
30472
30473 2009-11-04  Eric Blake  <ebb9@byu.net>
30474
30475         stdlib-safer: wrap all mkstemp variants
30476         * modules/mkostemp (configure.ac): Set witness.
30477         * modules/mkostemps (configure.ac): Likewise.
30478         * modules/mkstemps (configure.ac): Likewise.
30479         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30480         (mkstemps_safer): Wrap more functions.
30481         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30482         wrapping.
30483         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30484         (mkstemps_safer): Implement the wrappers.
30485
30486         mkstemps, mkostemps: new modules
30487         * modules/mkostemps: New module.
30488         * modules/mkstemps: Likewise.
30489         * lib/mkostemps.c (mkostemps): New file.
30490         * lib/mkstemps.c (mkstemps): Likewise.
30491         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30492         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30494         * modules/stdlib (Makefile.am): Substitute them.
30495         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30496         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30497         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30498         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30499         * MODULES.html.sh (File system functions): Mention them.
30500
30501         tempname: resync from glibc
30502         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30503         same values for __GT_FILE as glibc.  Abort even when assertions
30504         are disabled.
30505         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30506         match its value otherwise.  Allow idempotent inclusion.
30507         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30508         * lib/mkostemp.c (mkostemp): Likewise.
30509         * lib/mkstemp.c (mkstemp): Likewise.
30510         * lib/tmpfile.c (tmpfile): Likewise.
30511         * NEWS: Document this.
30512
30513         utimens: fix use of futimens on older Linux
30514         * lib/utimens.c (fdutimens): Use updated, rather than original,
30515         timespec to avoid bug in older Linux kernel.
30516         Reported by Simon Josefsson.
30517
30518 2009-11-04  Bruno Haible  <bruno@clisp.org>
30519
30520         Make num_processors more flexible and consistent.
30521         * lib/nproc.h (enum nproc_query): New type.
30522         (num_processors): Add a 'query' argument.
30523         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30524         (num_processors): Add a 'query' argument. Test the value of the
30525         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30526         mingw, count the number of CPUs available for the current process.
30527         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30528         Check for sched_getaffinity and sched_getaffinity_np.
30529         * modules/nproc (Depends-on): Add c-ctype, extensions.
30530         * NEWS: Mention the change.
30531
30532 2009-11-03  Bruno Haible  <bruno@clisp.org>
30533
30534         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30535
30536 2009-11-03  Jim Meyering  <meyering@redhat.com>
30537
30538         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30539         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30540         if it is defined.
30541
30542 2009-11-02  Eric Blake  <ebb9@byu.net>
30543
30544         mktime, timegm: share common declaration
30545         * lib/mktime-internal.h: New file.
30546         * lib/mktime.c: Use it rather than open-coding a declaration.
30547         * lib/timegm.c: Likewise.
30548         * modules/mktime (Files): Ship it.
30549         * modules/timegm (Files): Likewise.
30550         Suggested by Bruno Haible.
30551
30552         test-update-copyright: update test to match script changes
30553         * tests/test-update-copyright.sh: Avoid hard-coding perl
30554         location.  Don't update *.bak created by earlier runs.
30555
30556 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30557             Simon Josefsson  <simon@josefsson.org>
30558             Bruno Haible  <bruno@clisp.org>
30559
30560         Fix link error on Solaris 8.
30561         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30562         also in libnsl. Define also INET_PTON_LIB.
30563         * modules/inet_pton (Link): New section.
30564
30565 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30566             Bruno Haible  <bruno@clisp.org>
30567
30568         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30569         * modules/inet_ntop (Link): New section.
30570         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30571
30572 2009-11-02  Eric Blake  <ebb9@byu.net>
30573
30574         maint: avoid compiler warnings in m4 macros
30575         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30576         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30577
30578 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30579
30580         * m4/pmccabe2html.m4: Remove file.
30581         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30582         function.  Change maintainer.
30583         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30584         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30585         Courtès).
30586
30587 2009-10-31  Eric Blake  <ebb9@byu.net>
30588
30589         fseeko: fix m4 regression
30590         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30591         regression from 2009-10-27.
30592         Reported by Ralf Wildenhues.
30593
30594 2009-10-31  Jim Meyering  <meyering@redhat.com>
30595
30596         inttostr: aesthetics and improved (compile-time) safety
30597         Define inttype_is_signed rather than inttype_is_unsigned,
30598         since the sole use is via "#if inttype_is_signed".
30599         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30600         inttype_is_unsigned.
30601         * lib/offtostr.c (inttype_is_signed): Likewise.
30602         * lib/uinttostr.c (inttype_is_signed): Likewise.
30603         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30604         * lib/inttostr.c (inttostr): Use verify to cross-check the
30605         inttype_is_signed value and the signedness of the actual type.
30606         * modules/inttostr (Depends-on): Add verify.
30607
30608 2009-10-30  Eric Blake  <ebb9@byu.net>
30609
30610         build: avoid compiler warnings
30611         * lib/fchmodat.c (lchmod): Mark unused variables.
30612         * lib/getopt.c (_getopt_initialize): Likewise.
30613         * lib/mktime.c (__mktime_internal): Provide prototype.
30614         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30615         older gcc that do not understand #pragma GCC diagnostic.
30616         * lib/uinttostr.c (inttype_is_unsigned): Define.
30617         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30618
30619 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30620
30621         stat: fix compilation on AIX
30622         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30623         only see struct stat64.
30624
30625 2009-10-30  Eric Blake  <ebb9@byu.net>
30626
30627         exclude: make more robust
30628         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30629         rather than masking a coding bug.
30630         Suggested by Bruno Haible.
30631
30632 2009-10-30  Jim Meyering  <meyering@redhat.com>
30633
30634         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30635         Rather than putting #!/usr/bin/perl on the first line,
30636         start with a variant of what's recommended by "man perlrun" that
30637         invokes the first "perl" program from your shell's search path.
30638         * build-aux/gitlog-to-changelog: Replace #!... as above.
30639         Add a "Local Variables" perl mode setting.
30640         Prompted by a patch from Ludovic Courtès.
30641         Improved by Eric Blake.
30642         * build-aux/useless-if-before-free: Likewise.
30643         * build-aux/announce-gen: Likewise.
30644         * build-aux/update-copyright: Likewise.
30645
30646 2009-10-29  Eric Blake  <ebb9@byu.net>
30647
30648         filenamecat-lgpl: adjust clients
30649         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30650         filenamecat.
30651         * modules/renameat (Depends-on): Likewise.
30652
30653         filenamecat: split into filenamecat-lgpl
30654         * modules/filenamecat-lgpl: New module.
30655         * modules/filenamecat (Files): Move library-safe files into
30656         filenamecat-lgpl.
30657         (Depends-on): Add filenamecat-lgpl.
30658         (configure.ac): Declare witness.
30659         * lib/filenamecat.h (file_name_concat): Only declare when using
30660         GPL module.
30661         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30662         Move...
30663         * lib/filenamecat-lgpl.c: ...into new file.
30664         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30665         (gl_FILE_NAME_CONCAT): Use it.
30666         * MODULES.html.sh (File system functions): Mention new module.
30667
30668         argp: avoid memory leak
30669         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30670         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30671         base_name, since the latter malloc()s and can call exit().
30672         Leak introduced 2006-07-03.
30673
30674         dirname-lgpl: adjust clients that don't need full dirname
30675         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30676         * modules/filenamecat (Depends-on): Likewise.
30677         * modules/linkat (Depends-on): Likewise.
30678         * modules/mkancesdirs (Depends-on): Likewise.
30679         * modules/mkdir (Depends-on): Likewise.
30680         * modules/openat (Depends-on): Likewise.
30681         * modules/savewd (Depends-on): Likewise.
30682         * modules/rename (Depends-on): Likewise.
30683         (License): Relax license.
30684         * modules/mkdir-tests (Depends-on): Drop progname.
30685         (Makefile.am): Delete unneeded LDADD.
30686         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30687
30688         dirname: split into dirname-lgpl
30689         * modules/dirname-lgpl: New module.
30690         * modules/dirname (Files): Move library-safe files into
30691         dirname-lgpl.
30692         (Depends-on): Add dirname-lgpl.
30693         (configure.ac): Declare witness.
30694         * modules/double-slash-root (License): Relax license.
30695         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30696         module.
30697         * lib/dirname.c (dir_len, mdir_name): Move...
30698         * lib/dirname-lgpl.c: ...into new file.
30699         * lib/basename.c (last_component, base_len): Move...
30700         * lib/basename-lgpl.c: ...into new file.
30701         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30702         (gl_DIRNAME): Use it.
30703         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30704         Mention new module.
30705         * modules/dirname-tests (Depends-on): Add progname.
30706         * tests/test-dirname.c (program_name): Delete.
30707
30708         mkdir: make safe for libraries
30709         * modules/mkdir (Depends-on): Drop xalloc.
30710         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30711         exit.
30712
30713         tests: avoid some compiler warnings
30714         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30715         literals.
30716         * tests/test-memchr.c (main): Avoid type mismatch.
30717         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30718         * tests/test-base64.c (main): Likewise.
30719         * tests/test-getdelim.c (main): Likewise.
30720         * tests/test-gethostname.c (main): Likewise.
30721         * tests/test-getline.c (main): Likewise.
30722         * tests/test-netinet_in.c (main): Likewise.
30723         * tests/test-select.c (open_server_socket, main): Likewise.
30724         * tests/test-select-stdin.c (main): Likewise.
30725         * tests/test-sockets.c (main): Likewise.
30726         * tests/test-strsignal.c (main): Likewise.
30727         * tests/test-sys_select.c (main): Likewise.
30728         * tests/test-sys_socket.c (main): Likewise.
30729         * tests/test-u64.c (main): Likewise.
30730         * tests/test-xfprintf-posix.c (main): Likewise.
30731         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30732
30733         sockets: avoid compiler warning
30734         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30735
30736         maint: detect usage(1) and other suspicious exits
30737         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30738
30739 2009-10-29  Jim Meyering  <meyering@redhat.com>
30740
30741         timespec: long-to-int truncation could make timespec_cmp malfunction
30742         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30743         a multiple of 2^32 nanoseconds as no difference.
30744
30745 2009-10-28  Jim Meyering  <meyering@redhat.com>
30746
30747         fprintftime: wrap macro code argument in "do {...} while(0)"
30748         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30749         cpy macro must be a statement that can be followed by a semicolon.
30750         Now that the else clause contains a comment and is hence longer
30751         than one line, I require curly braces.  That in turn requires
30752         that we wrap this code block in the standard do...while(0).
30753
30754         fprintftime: remove stray semicolon from previous change
30755         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30756
30757         fprintftime: avoid a warning about ignored fwrite return value
30758         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30759         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30760         that is unsafe.
30761         * modules/fprintftime (Depends-on): Add ignore-value.
30762
30763         exclude: avoid an unwarranted warning
30764         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30765
30766 2009-10-27  Eric Blake  <ebb9@byu.net>
30767
30768         fseek: avoid compilation failure when fflush is replaced
30769         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30770         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30771         module is in use.
30772         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30773         module is not in use; since REPLACE_FSEEK worked otherwise.
30774         (GNULIB_FTELLO): Likewise for ftell.
30775         Reported by Ian Beckwith and others.
30776
30777 2009-10-27  Bruno Haible  <bruno@clisp.org>
30778
30779         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30780         Reported by Jim Meyering.
30781
30782 2009-10-27  Jim Meyering  <jim@meyering.net>
30783             Bruno Haible  <bruno@clisp.org>
30784
30785         Avoid warning despite dropping the return value of fwrite.
30786         * lib/unicodeio.c: Include ignore-value.h.
30787         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30788         * modules/unicodeio (Depends-on): Add ignore-value.
30789
30790 2009-10-26  Eric Blake  <ebb9@byu.net>
30791
30792         areadlinkat: fix fallback path
30793         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30794         pointer and zero.
30795
30796 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30797
30798         Use a better IO block size for modern systems
30799         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30800         * lib/md2.c: Likewise.
30801         * lib/md4.c: Likewise.
30802         * lib/md5.c: Likewise.
30803         * lib/sha1.c: Likewise.
30804         * lib/sha256.c: Likewise.
30805         * lib/sha512.c: Likewise.
30806
30807 2009-10-22  Eric Blake  <ebb9@byu.net>
30808
30809         tests: avoid several compiler warnings
30810         * tests/test-getcwd.c (main): Avoid buffer underflow.
30811         * tests/test-getdate.c (main): String literals are not safe with
30812         putenv, so use setenv.  Declare unused argument.
30813         * modules/getdate-tests (Depends-on): Add setenv.
30814         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30815         problems with string literals in char *.
30816         * tests/test-hash.c (main): Avoid shadowing declaration.
30817         (insert_new): Treat string literals as char const *.
30818         * tests/test-getopt.h (test_getopt): Likewise.
30819         (getopt_loop): Alter types to minimize casting elsewhere.
30820         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30821         (test_getopt_long_posix): Likewise.
30822         (do_getopt_long): Add wrapper to minimize casting.
30823         * tests/test-atexit.c (clear_temp_file): Use void.
30824         * tests/test-areadlink-with-size.c (main): Declare unused
30825         arguments.
30826         * tests/test-areadlink.c (main): Likewise.
30827         * tests/test-areadlinkat-with-size.c (main): Likewise.
30828         * tests/test-areadlinkat.c (main): Likewise.
30829         * tests/test-canonicalize-lgpl.c (main): Likewise.
30830         * tests/test-canonicalize.c (main): Likewise.
30831         * tests/test-dirent-safer.c (main): Likewise.
30832         * tests/test-dirname.c (main): Likewise.
30833         * tests/test-dup2.c (main): Likewise.
30834         * tests/test-fchdir.c (main): Likewise.
30835         * tests/test-fcntl-h.c (main): Likewise.
30836         * tests/test-fcntl-safer.c (main): Likewise.
30837         * tests/test-fdopendir.c (main): Likewise.
30838         * tests/test-fdutimensat.c (main): Likewise.
30839         * tests/test-fflush.c (main): Likewise.
30840         * tests/test-filenamecat.c (main): Likewise.
30841         * tests/test-filevercmp.c (main): Likewise.
30842         * tests/test-fopen-safer.c (main): Likewise.
30843         * tests/test-fopen.c (main): Likewise.
30844         * tests/test-fpending.c (main): Likewise.
30845         * tests/test-fpurge.c (main): Likewise.
30846         * tests/test-freading.c (main): Likewise.
30847         * tests/test-fstatat.c (main): Likewise.
30848         * tests/test-fsync.c (main): Likewise.
30849         * tests/test-futimens.c (main): Likewise.
30850         * tests/test-getndelim2.c (main): Likewise.
30851         * tests/test-gettimeofday.c (main): Likewise.
30852         * tests/test-getopt.c (main): Likewise.
30853         * tests/test-i-ring.c (main): Likewise.
30854         * tests/test-inttypes.c (main): Likewise.
30855         * tests/test-link.c (main): Likewise.
30856         * tests/test-lstat.c (main): Likewise.
30857         * tests/test-math.c (main): Likewise.
30858         * tests/test-md5.c (main): Likewise.
30859         * tests/test-memchr2.c (main): Likewise.
30860         * tests/test-memrchr.c (main): Likewise.
30861         * tests/test-mkdir.c (main): Likewise.
30862         * tests/test-mkdirat.c (main): Likewise.
30863         * tests/test-mkfifoat.c (main): Likewise.
30864         * tests/test-open.c (main): Likewise.
30865         * tests/test-openat-safer.c (main): Likewise.
30866         * tests/test-openat.c (main): Likewise.
30867         * tests/test-quotearg.c (main): Likewise.
30868         * tests/test-rawmemchr.c (main): Likewise.
30869         * tests/test-readlink.c (main): Likewise.
30870         * tests/test-remove.c (main): Likewise.
30871         * tests/test-rename.c (main): Likewise.
30872         * tests/test-renameat.c (main): Likewise.
30873         * tests/test-rmdir.c (main): Likewise.
30874         * tests/test-sha1.c (main): Likewise.
30875         * tests/test-signal.c (main): Likewise.
30876         * tests/test-sigaction.c (main): Likewise.
30877         * tests/test-stat.c (main): Likewise.
30878         * tests/test-stat-time.c (main): Likewise.
30879         * tests/test-stddef.c (main): Likewise.
30880         * tests/test-stdint.c (main): Likewise.
30881         * tests/test-stdio.c (main): Likewise.
30882         * tests/test-stdlib.c (main): Likewise.
30883         * tests/test-strchrnul.c (main): Likewise.
30884         * tests/test-strerror.c (main): Likewise.
30885         * tests/test-string.c (main): Likewise.
30886         * tests/test-strtod.c (main): Likewise.
30887         * tests/test-strverscmp.c (main): Likewise.
30888         * tests/test-symlink.c (main): Likewise.
30889         * tests/test-symlinkat.c (main): Likewise.
30890         * tests/test-sys_stat.c (main): Likewise.
30891         * tests/test-sys_time.c (main): Likewise.
30892         * tests/test-time.c (main): Likewise.
30893         * tests/test-unistd.c (main): Likewise.
30894         * tests/test-unlink.c (main): Likewise.
30895         * tests/test-unlinkat.c (main): Likewise.
30896         * tests/test-utimens.c (main): Likewise.
30897         * tests/test-utimensat.c (main): Likewise.
30898         * tests/test-version-etc.c (main): Likewise.
30899         * tests/test-wchar.c (main): Likewise.
30900         * tests/test-wctype.c (main): Likewise.
30901         * tests/test-xprintf-posix.c (main): Likewise.
30902         * tests/test-posixtm.c (main): Likewise.
30903         (STREQ): Delete unused macro.
30904         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30905         shadowed variables.
30906         * tests/test-memchr.c (main): Likewise.
30907
30908 2009-10-21  Eric Blake  <ebb9@byu.net>
30909
30910         areadlinkat: avoid failure on older glibc
30911         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30912         rather than mis-comparing 0 against FUNC_RESULT of char*.
30913
30914 2009-10-21  Bruno Haible  <bruno@clisp.org>
30915
30916         * modules/stpncpy (License): Relicense under LGPLv2+.
30917         Reported by David Lutterkort <lutter@redhat.com>.
30918
30919 2009-10-20  Eric Blake  <ebb9@byu.net>
30920
30921         utimensat: work around Solaris 9 bug
30922         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30923         has trailing slash bugs.
30924         * tests/test-lutimens.h (test_lutimens): Enhance test.
30925         * tests/test-utimens.h (test_utimens): Likewise.
30926         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30927         * doc/posix-functions/utimes.texi (utimes): Likewise.
30928         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30929         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30930         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30931         * doc/posix-functions/futimens.texi (futimens): Likewise.
30932
30933         fdutimensat: new module
30934         * modules/fdutimensat: New file.
30935         * lib/fdutimensat.c (fdutimensat): Likewise.
30936         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30937         * MODULES.html.sh (File system functions): Mention module.
30938         * modules/fdutimensat-tests: New test.
30939         * tests/test-fdutimensat.c: Likewise.
30940
30941         doc: regenerate INSTALL
30942         * doc/INSTALL: Reflect recent autoconf update.
30943         * doc/INSTALL.ISO: Likewise.
30944         * doc/INSTALL.UTF-8: Likewise.
30945
30946 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30947
30948         acl: warn if ACL support is not detected
30949         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30950
30951 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30952
30953         * lib/nproc.h: Add extern "C" block for C++.
30954
30955 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30956             Bruno Haible  <bruno@clisp.org>
30957
30958         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30959         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30960         * doc/posix-functions/isalpha.texi: Likewise.
30961         * doc/posix-functions/isblank.texi: Likewise.
30962         * doc/posix-functions/iscntrl.texi: Likewise.
30963         * doc/posix-functions/isdigit.texi: Likewise.
30964         * doc/posix-functions/isgraph.texi: Likewise.
30965         * doc/posix-functions/islower.texi: Likewise.
30966         * doc/posix-functions/isprint.texi: Likewise.
30967         * doc/posix-functions/ispunct.texi: Likewise.
30968         * doc/posix-functions/isspace.texi: Likewise.
30969         * doc/posix-functions/isupper.texi: Likewise.
30970         * doc/posix-functions/isxdigit.texi: Likewise.
30971
30972 2009-10-18  Bruno Haible  <bruno@clisp.org>
30973
30974         Tests for module 'isblank'.
30975         * modules/isblank-tests: New file.
30976         * tests/test-isblank.c: New file.
30977
30978         New module 'isblank'.
30979         * lib/isblank.c: New file.
30980         * m4/isblank.m4: New file.
30981         * modules/isblank: New file.
30982         * doc/posix-functions/isblank.texi: Mention the new module.
30983
30984 2009-10-18  Bruno Haible  <bruno@clisp.org>
30985
30986         New module 'ctype'.
30987         * lib/ctype.in.h: New file.
30988         * m4/ctype.m4: New file.
30989         * modules/ctype: New file.
30990         * doc/posix-headers/ctype.texi: Mention the new module.
30991
30992 2009-10-18  Jim Meyering  <meyering@redhat.com>
30993
30994         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30995         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30996         right after its initialization, rather than farther down.
30997         Keeping these in close proximity makes it easier to ensure
30998         that each such variable is initialized.  E.g.,
30999
31000             LIB_CLOCK_GETTIME=
31001             AC_SUBST([LIB_CLOCK_GETTIME])
31002
31003         This change also increments these serial numbers.
31004         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31005         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31007
31008 2009-10-18  Bruno Haible  <bruno@clisp.org>
31009
31010         Don't let environment variables perturb build.
31011         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31012         (gl_PREREQ_GETHRXTIME): ... not here.
31013
31014 2009-10-18  Bruno Haible  <bruno@clisp.org>
31015
31016         Avoid symlink attack in localcharset module.
31017         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31018         (O_NOFOLLOW): Define fallback.
31019         (get_charset_aliases): Don't open the file if it is a symbolic link.
31020         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31021         gl_FCNTL_H.
31022         (gl_FCNTL_H): Require it.
31023         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31024         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31025         Reported by Fergal Glynn <fglynn@veracode.com>.
31026
31027 2009-10-18  Bruno Haible  <bruno@clisp.org>
31028
31029         Implement nproc for mingw.
31030         * lib/nproc.c: Include <windows.h>
31031         (num_processors): On native Windows platforms, try GetSystemInfo.
31032
31033 2009-10-18  Bruno Haible  <bruno@clisp.org>
31034
31035         Implement nproc for IRIX.
31036         * lib/nproc.c: Include <sys/sysmp.h>.
31037         (num_processors): On IRIX systems, try sysmp.
31038         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31039
31040 2009-10-18  Bruno Haible  <bruno@clisp.org>
31041
31042         Implement nproc for HP-UX.
31043         * lib/nproc.c: Include <sys/pstat.h>
31044         (num_processors): On HP-UX systems, try pstat_getdynamic.
31045         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31046         pstat_getdynamic.
31047
31048 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31049             Bruno Haible  <bruno@clisp.org>
31050
31051         Implement nproc for NetBSD, OpenBSD.
31052         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31053         (ARRAY_SIZE): New macro.
31054         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31055         * m4/nproc.m4: New file.
31056         * modules/nproc (Files): Add m4/nproc.m4.
31057         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31058         (Makefile.am): Instead, augment lib_SOURCES.
31059
31060 2009-10-18  Bruno Haible  <bruno@clisp.org>
31061
31062         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31063         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31064         sys/param.h.
31065
31066 2009-10-16  Eric Blake  <ebb9@byu.net>
31067
31068         utimensat: new module
31069         * modules/utimensat: New file.
31070         * lib/utimensat.c (utimensat): Likewise.
31071         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31072         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31073         so we can work around Linux bugs.
31074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31075         * modules/sys_stat (Makefile.am): Substitute them.
31076         * lib/sys_stat.in.h (utimensat): Declare it.
31077         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31078         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31079         * modules/utimensat-tests: New test.
31080         * tests/test-utimensat.c: Likewise.
31081
31082         utimens: let lutimens work on non-symlinks
31083         * lib/utimens.c (lutimens): Fall back to utimens rather than
31084         failing with ENOSYS, when file is not a symlink.
31085         (utimens): Reduce redirection.
31086         * tests/test-lutimens.h (test_lutimens): Update test to cover
31087         non-symlinks.
31088         * tests/test-utimens.h (test_utimens): Update test to cover
31089         symlinks.
31090         * tests/test-utimens.c (main): Update caller.
31091
31092         utimens: cache whether utimensat syscall works
31093         * lib/utimens.c (utimensat_works_really): New cache variable.
31094         (fdutimens, lutimens): Use it to avoid failing syscall.
31095
31096         test-stat-time, test-utimens: improve portability
31097         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31098         ext4 on alpha, and for cygwin.
31099         * tests/test-utimens-common.h: New file.
31100         (nap): Factor delays into single function.
31101         * tests/test-lutimens.h (test_lutimens): Use new header.
31102         * tests/test-futimens.h (test_futimens): Likewise.
31103         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31104         timestamps to occur from same machine, as was done previously for
31105         test_utimens.
31106         * modules/utimens-tests (Files): Ship new file.
31107         * modules/futimens-tests (Files): Likewise.
31108         Reported in part by Jim Meyering.
31109
31110         sys_stat: sort replacement declarations
31111         * lib/sys_stat.in.h: Sort declarations.
31112         * lib/futimens.c (futimens): Fix typo.
31113
31114 2009-10-15  Jim Meyering  <meyering@redhat.com>
31115
31116         don't let environment settings perturb build
31117         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31118         could cause a configure-time and/or build-time malfunction.
31119         Typically, a configure-time function-in-library test is performed
31120         via code like this:
31121
31122           LIB_VAR=
31123           AC_SUBST([LIB_VAR])
31124           prefix_saved_LIBS=$LIBS
31125             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31126                        [test "$ac_cv_search_FUNC" = "none required" ||
31127                         LIB_VAR=$ac_cv_search_FUNC])
31128           LIBS=$prefix_saved_LIBS
31129
31130         However, in each of the files affected by this change, the LIB_VAR=
31131         initialization was omitted.  Thus, when set in the environment, its
31132         value would propagate into generated Makefiles when FUNC is not found
31133         in LIB_NAME.
31134         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31135         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31137
31138 2009-10-14  Eric Blake  <ebb9@byu.net>
31139
31140         fchdir: avoid infinite recursion in mingw
31141         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31142         recursing.
31143
31144         test-stat-time: port to mingw
31145         * tests/test-stat-time.c (force_unlink): Return a value.
31146         (test_ctime) [W32]: Fix compilation error.
31147         (nap): Don't call usleep with too large an argument.  Use
31148         force_unlink.
31149         * doc/pastposix-functions/usleep.texi (usleep): Document the
31150         portability issue.
31151
31152 2009-10-13  Jim Meyering  <meyering@redhat.com>
31153
31154         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31155         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31156         * modules/pipe-filter-ii: Likewise.
31157         * modules/sys_socket-tests: Likewise.
31158         * modules/tsearch-tests: Likewise.
31159         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31160         (check): Depend on it.
31161
31162 2009-10-12  Eric Blake  <ebb9@byu.net>
31163
31164         utimens-tests: port to NFS file systems
31165         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31166         comparisons to avoid spurious failures from timestamp drift
31167         between NFS machines.
31168
31169 2009-10-12  Eric Blake  <ebb9@byu.net>
31170
31171         stat-time-tests: minor cleanups
31172         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31173         * tests/test-stat-time.c (nap): Separate assignment from call.
31174         Suggested by Paolo Bonzini and Bruno Haible.
31175
31176         sys_stat: guarantee struct timespec
31177         * lib/sys_stat.in.h (includes): Always include <time.h>
31178         * modules/sys_stat (Depends-on): Add time.
31179         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31180         mode_t permission values.
31181         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31182         get at subsecond timestamps.
31183
31184 2009-10-10  Eric Blake  <ebb9@byu.net>
31185
31186         futimens: new module
31187         * modules/futimens: New file.
31188         * lib/futimens.c (futimens): Likewise.
31189         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31190         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31191         we can work around Linux bugs.
31192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31193         * modules/sys_stat (Makefile.am): Substitute them.
31194         * lib/sys_stat.in.h (futimens): Declare it.
31195         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31196         * doc/posix-functions/futimens.texi (futimens): Likewise.
31197         * modules/futimens-tests: New test.
31198         * tests/test-futimens.c: Likewise.
31199
31200         utimens: introduce fdutimens
31201         * lib/utimens.h (fdutimens): New prototype.
31202         * lib/utimens.c (gl_futimens): Move guts...
31203         (fdutimens): ...to new interface.
31204         * tests/test-utimens.c (do_fdutimens): Use it.
31205
31206         utimens: add UTIME_NOW and UTIME_OMIT support
31207         * lib/utimens.c (validate_timespec, update_timespec): New helper
31208         functions.
31209         (gl_futimens, lutimens): Use them.
31210         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31211         stdbool, sys_stat.
31212         (Link): Mention resulting library dependency.
31213         * modules/utimecmp (Link): Likewise.
31214         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31215         (Makefile.am): Pick up library dependency.
31216         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31217         definition.
31218         * tests/test-sys_stat.c: Test the definitions.
31219         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31220         * NEWS: Document library dependency.
31221
31222         utimecmp: support symlink timestamps
31223         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31224         hashing when possible.  Use pathconf when available.
31225         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31226         * modules/utimecmp (Depends-on): Add lstat.
31227
31228         utimens: add lutimens interface
31229         * lib/utimens.c (lutimens): New function.
31230         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31231         * lib/utimens.h (lutimens): Declare new interface.
31232         * tests/test-utimens.c (main): Enhance test.
31233         * tests/test-lutimens.h (test_lutimens): New file.
31234         * modules/utimens-tests (Files): Distribute it.
31235         (Depends-on): Add symlink.
31236         (configure.ac): Check for usleep.
31237
31238         utimens: validate futimens usage
31239         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31240         fewer syscalls on failure later on.  Avoid compiler warning on
31241         mingw.
31242         * modules/utimens (Depends-on): Add dup2.
31243
31244         utimens: add test
31245         * modules/utimens-tests: New test.
31246         * tests/test-utimens.h: New file.
31247         * tests/test-futimens.h: Likewise.
31248         * tests/test-utimens.c: Likewise.
31249
31250         doc: mention timestamp portability issues
31251         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31252         instead.
31253         * doc/posix-functions/utime.texi (utime): Likewise.
31254         * doc/posix-functions/utimes.texi (utimes): Likewise.
31255         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31256         instead.
31257         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31258         module.
31259         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31260         Mention weakness with symlink timestamps.
31261         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31262         to utimensat/futimens instead.
31263         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31264
31265         test-dup2: enhance test
31266         * tests/test-dup2.c (main): Also check AT_FDCWD.
31267
31268         test-stat-time: avoid more spurious failures
31269         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31270         xfs; and avoid race if the two timestamps cross quantization edge.
31271
31272         relocatable: prefer 'file system' over 'filesystem'
31273         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31274         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31275         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31276         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31277         * lib/relocatable.c (compute_curr_prefix): Likewise.
31278
31279 2009-10-10  Jim Meyering  <meyering@redhat.com>
31280
31281         stat-time-tests: check for the usleep function
31282         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31283
31284 2009-10-10  Bruno Haible  <bruno@clisp.org>
31285
31286         * modules/xnanosleep: Put the Link section after the Include section.
31287
31288 2009-10-09  Eric Blake  <ebb9@byu.net>
31289
31290         dup2: work around FreeBSD 6.1 bug
31291         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31292         * doc/posix-functions/dup2.texi (dup2): Document it.
31293         Reported by Nelson H. F. Beebe and Jim Meyering.
31294
31295         test-stat-time: port to buggy NFS clients
31296         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31297         (test_ctime): Also skip test if mtime and ctime are skewed.
31298
31299         maint: prefer 'file system' over 'filesystem'
31300         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31301         * doc/posix-functions/lstat.texi (lstat): Likewise.
31302         * lib/file-has-acl.c (file_has_acl): Likewise.
31303         * lib/fwriteerror.c [TEST]: Likewise.
31304         * tests/test-areadlink.h (test_areadlink): Likewise.
31305         * tests/test-areadlinkat-with-size.c (main): Likewise.
31306         * tests/test-areadlinkat.c (main): Likewise.
31307         * tests/test-canonicalize-lgpl.c (main): Likewise.
31308         * tests/test-canonicalize.c (main): Likewise.
31309         * tests/test-fstatat.c (main): Likewise.
31310         * tests/test-linkat.c (main): Likewise.
31311         * tests/test-lstat.h (test_lstat_func): Likewise.
31312         * tests/test-mkdir.h (test_mkdir): Likewise.
31313         * tests/test-readlink.h (test_readlink): Likewise.
31314         * tests/test-remove.c (main): Likewise.
31315         * tests/test-rename.h (test_rename): Likewise.
31316         * tests/test-renameat.c (main): Likewise.
31317         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31318         * tests/test-symlink.h (test_symlink): Likewise.
31319         * tests/test-symlinkat.c (main): Likewise.
31320         * tests/test-unlink.h (test_unlink_func): Likewise.
31321         * tests/test-unlinkat.c (main): Likewise.
31322
31323         maint: make realtime library usage explicit
31324         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31325         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31326         * modules/settime (Link): Likewise.
31327         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31328
31329         test-stat-time: speed up execution
31330         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31331         warning on mingw.
31332         (nap): New helper function.
31333         (prepare_test): Use it to reduce sleep time.
31334         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31335         execution.
31336         * modules/stat-time-tests (configure.ac): Check for usleep.
31337
31338 2009-10-09  Jim Meyering  <meyering@redhat.com>
31339
31340         selinux-h: always use getfilecon wrappers
31341         * lib/getfilecon.c: New file.
31342         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31343         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31344         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31345         (fgetfilecon): Provide a stub.
31346         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31347         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31348         file unconditionally.
31349         When <selinux/selinux.h> is found, arrange to use wrappers.
31350         * modules/selinux-h (Files): Add getfilecon.c.
31351         (Makefile.am): Substitute include-next-related bits
31352         into the now-always-generated selinux/selinux.h file.
31353         * doc/glibc-functions/lgetfilecon.texi: New file.
31354         * doc/glibc-functions/fgetfilecon.texi: New file.
31355         * doc/glibc-functions/getfilecon.texi: New file.
31356         * doc/glibc-functions/getfilecon-desc.texi: New file.
31357         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31358         which to pull in the new files.
31359         * MODULES.html.sh (Misc): Add selinux-h.
31360
31361 2009-10-08  Jim Meyering  <meyering@redhat.com>
31362
31363         unistd: fix comment typo
31364         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31365
31366 2009-10-08  Eric Blake  <ebb9@byu.net>
31367
31368         areadlink: use SIZE_MAX consistently
31369         * modules/areadlink (Depends-on): Add stdint.
31370         * modules/areadlink-with-size (Depends-on): Likewise.
31371         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31372         gives NULL; drop sys/types, since unistd gives size_t; and add
31373         stdint for SIZE_MAX.
31374         (SIZE_MAX): Rely on headers.
31375         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31376         and add stdint.
31377         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31378         (SIZE_MAX): Likewise.
31379         (INITIAL_BUF_SIZE): Turn into enum.
31380         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31381
31382 2009-10-08  Jim Meyering  <meyering@redhat.com>
31383
31384         areadlinkat: avoid compilation failure
31385         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31386         Fix typo in comment.
31387
31388 2009-10-07  Eric Blake  <ebb9@byu.net>
31389
31390         areadlinkat-with-size: new module
31391         * modules/areadlinkat-with-size: New module.
31392         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31393         * lib/areadlink.h (areadlinkat): Declare it.
31394         * MODULES.html.sh (File system functions): Mention it.
31395         * modules/areadlinkat-with-size-tests: New test.
31396         * tests/test-areadlinkat-with-size.c: New file.
31397
31398         xreadlinkat: new module
31399         * modules/xreadlinkat: New module.
31400         * lib/xreadlinkat.c (xreadlinkat): New file.
31401         * lib/xreadlink.h (xreadlinkat): Declare it.
31402         * MODULES.html.sh (File system functions): Mention it.
31403
31404         areadlinkat: new module
31405         * lib/at-func.c (FUNC_FAIL): New define.
31406         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31407         * modules/areadlinkat: New module.
31408         * lib/linkat.c (areadlinkat): Move...
31409         * lib/areadlinkat.c (areadlinkat): ...to new file.
31410         * lib/areadlink.h (areadlinkat): Declare it.
31411         * modules/linkat (Depends-on): Add areadlinkat.
31412         * MODULES.html.sh (File system functions): Mention it.
31413         * modules/areadlinkat-tests: New test.
31414         * tests/test-areadlinkat.c: New file.
31415
31416         areadlink, areadlink-with-size: add tests
31417         * modules/areadlink-tests: New test.
31418         * modules/areadlink-with-size-tests: Likewise.
31419         * tests/test-areadlink.h: New file.
31420         * tests/test-areadlink.c: Likewise.
31421         * tests/test-areadlink-with-size.c: Likewise.
31422
31423         maint: minor cleanups
31424         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31425         _UNUSED_PARAMETER_ instead.
31426         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31427         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31428         * modules/linkat-tests (Files): Distribute test-link.h.
31429
31430         openat, utimens: whitespace cleanup
31431         * lib/openat.c: Prefer space throughout, rather than mix of 8
31432         spaces vs. tabs.
31433         * lib/at-func.c: Likewise.
31434         * lib/utimens.c: Likewise.
31435
31436         openat: avoid using wrong fd
31437         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31438         working directory chooses same fd.
31439         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31440
31441         mkdir, mkdirat: fix cygwin 1.5.x bug
31442         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31443         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31444         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31445         bug.
31446         (gl_PREREQ_MKDIR): Delete unused macro.
31447         * modules/mkdir (Files): Track file rename.
31448         (configure.ac): Update macro name.
31449         * modules/openat (Depends-on): Add mkdir.
31450         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31451
31452         mkdir, mkdirat: add tests
31453         * modules/mkdir-tests: New test.
31454         * tests/test-mkdir.h: New file.
31455         * tests/test-mkdir.c: Likewise.
31456         * tests/test-mkdirat.c: Likewise.
31457         * modules/openat-tests (Files): Add new files.
31458         (Makefile.am): Run new test.
31459
31460 2009-10-06  Eric Blake  <ebb9@byu.net>
31461
31462         doc: tweak *at function documentation
31463         * doc/posix-functions/faccessat.texi (faccessat): Mention
31464         known issue with replacement.
31465         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31466         * doc/posix-functions/linkat.texi (linkat): Likewise.
31467         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31468         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31469         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31470         * doc/posix-functions/renameat.texi (renameat): Likewise.
31471         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31472
31473         openat: fix GNU/Hurd bug in unlinkat
31474         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31475         broken.
31476         * doc/posix-functions/unlink.texi (unlink): Document this.
31477         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31478
31479         fdopendir: fix GNU/Hurd bug
31480         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31481         allowing non-directory fds.
31482         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31483         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31484         * modules/dirent (Makefile.am): Substitute it.
31485         * lib/dirent.in.h (fdopendir): Declare replacement.
31486         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31487         * tests/test-fdopendir.c (main): Test something other than
31488         /dev/null, since on Hurd that behaves like a directory.
31489
31490         test-symlink: port to GNU/Hurd
31491         * tests/test-symlink.h (test_symlink): Relax expected errno.
31492
31493         doc: tweak more cygwin information
31494         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31495         now compatible with glibc.
31496         * doc/posix-functions/getopt.texi (getopt): Likewise.
31497
31498         getopt-gnu: add another test
31499         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31500         guarantee behavior relied on by m4.
31501         * tests/test-getopt.c (main): Use it.
31502         * modules/getopt-posix-tests (Depends-on): Add setenv.
31503         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31504
31505         getopt: fix compilation on darwin
31506         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31507         include.
31508         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31509         Reported by Ludovic Courtès.
31510
31511 2009-10-06  Bruno Haible  <bruno@clisp.org>
31512
31513         * modules/size_max (Description): Discourage its use.
31514         Reported by Simon Josefsson.
31515
31516 2009-10-06  Jim Meyering  <meyering@redhat.com>
31517
31518         linkat: avoid compilation failure
31519         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31520
31521 2009-10-05  Eric Blake  <ebb9@byu.net>
31522
31523         linkat: support Linux 2.6.17
31524         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31525         linkat on Linux, but allow cache variable override.
31526         * lib/linkat.c (rpl_linkat): Define override.
31527         * modules/linkat (Depends-on): Add symlinkat.
31528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31529         * modules/unistd (Makefile.am): Substitute it.
31530         * lib/unistd.in.h (linkat): Declare replacement.
31531         Reported by Pádraig Brady.
31532
31533         quotearg: port test to systems with C.UTF-8 locale
31534         * tests/test-quotearg.c (struct result_strings): Add another
31535         member, differentiating between C.ASCII and C.UTF-8 handling.
31536         (compare_strings): Add parameter.
31537         (main): Adjust all callers.
31538
31539         getopt: avoid clash with FreeBSD _getopt_internal
31540         * lib/getopt.in.h (_getopt_internal): Override the name.
31541         * lib/getopt_int.h (includes): Pick up any overrides.
31542         Reported by Reuben Thomas.
31543
31544         hash: allow C89 compilation
31545         * lib/hash.c (check_tuning): Move declaration before statement.
31546         Reported by Reuben Thomas.
31547
31548 2009-10-05  Karl Berry  <karl@gnu.org>
31549
31550         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31551
31552 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31553             Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/uname.c (uname): Use a table-driven algorithm to compute
31556         Windows NT versions.
31557
31558 2009-10-04  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31561         program_invocation_short_name.
31562         * modules/progname (configure.ac): Test for presence of
31563         program_invocation_short_name.
31564         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31565
31566 2009-10-04  Bruno Haible  <bruno@clisp.org>
31567
31568         * lib/progname.c (set_program_name): Fix comment.
31569         Reported by Jim Meyering.
31570
31571 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31572             Bruno Haible  <bruno@clisp.org>
31573
31574         * lib/uname.c: Include <string.h>.
31575         (uname): Do only one call to GetVersionEx in the common case.
31576
31577 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31578             Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31581         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31582         (uname): Add support for Windows CE and various non-x86 CPU types.
31583
31584 2009-10-03  Bruno Haible  <bruno@clisp.org>
31585
31586         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31587         invocation to tests/configure.ac.
31588         Reported by Ian Beckwith <ianb@erislabs.net>.
31589
31590 2009-10-02  Eric Blake  <ebb9@byu.net>
31591
31592         fchdir: avoid compiler warning
31593         * lib/fchdir.c (canonicalize_file_name)
31594         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31595
31596         test-open: support mingw errno values
31597         * tests/test-open.h (test_open): Relax test.
31598         * tests/test-fopen.h (test_fopen): Likewise.
31599         * tests/test-openat-safer.c (main): Likewise.
31600
31601         open: fix opening directory on mingw
31602         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31603
31604         test-open: on GNU/Hurd, /dev/null is a directory
31605         * tests/test-fopen.h (main): Rename...
31606         (test_fopen): ...to this.  Use a guaranteed non-directory when
31607         confirming open behavior on trailing slash.
31608         * tests/test-openat-safer.c (main): Likewise.
31609         * tests/test-open.h (main): Likewise....
31610         (test_open): ...to this.
31611         * tests/test-fopen.c (main): Adjust caller.
31612         * tests/test-fopen-safer.c (main): Likewise.
31613         * tests/test-open.c (main): Likewise.
31614         * tests/test-fcntl-safer.c (main): Likewise.
31615         Reported by Samuel Thibault.
31616
31617         rename, fchdir: don't ignore chdir failure
31618         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31619         * lib/rename.c (rpl_rename) [W32]: Likewise.
31620         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31621         an empty destination directory if source cannot be renamed,
31622         although there is still possibility for failure.
31623         * doc/posix-functions/rename.texi (rename): Document the race.
31624         Reported by Jim Meyering.
31625
31626         maint: cleanup whitespace in recent commits
31627         * lib/rename.c (rpl_rename): Remove tabs.
31628         * tests/test-link.h (test_link): Likewise.
31629         * lib/fchdir.c (get_name): Likewise.
31630         Reported by Jim Meyering.
31631
31632 2009-10-02  Ben Pfaff  <blp@gnu.org>
31633
31634         relocatable-prog-wrapper: Add missing dependency on
31635         double-slash-root.
31636         * modules/relocatable-prog-wrapper: Add dependency.
31637         Reported by Ian Beckwith <ianb@erislabs.net>.
31638
31639 2009-10-02  Eric Blake  <ebb9@byu.net>
31640
31641         renameat: fix Solaris bugs
31642         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31643         needed fixing.
31644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31645         * modules/stdio (Makefile.am): Substitute it.
31646         * lib/stdio.in.h (renameat): Declare replacement.
31647         * lib/renameat.c (rpl_renameat): Implement fix.
31648
31649         renameat: new module
31650         * modules/renameat: New file.
31651         * lib/renameat.c (renameat): Likewise.
31652         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31654         * modules/stdio (Makefile.am): Substitute them.
31655         * lib/stdio.in.h (renameat): Declare it.
31656         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31657         * doc/posix-functions/renameat.texi (renameat): Likewise.
31658         * modules/renameat-tests: New test.
31659         * tests/test-renameat.c: Likewise.
31660
31661         rename: fix mingw bugs
31662         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31663         directory overwrite bugs.
31664
31665         rename: fix another cygwin 1.5 bug
31666         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31667         checks.
31668         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31669         unnecessary cygwin workarounds.  Also work around bug with moving
31670         full directory onto an empty one.
31671         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31672
31673         rename-dest-slash: merge into rename module
31674         * modules/rename-dest-slash (Status): Mark obsolete.
31675         (Depends-on): Add rename.
31676         (Files): Let rename do it all.
31677         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31678         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31679         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31680         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31681         * lib/rename.c (rpl_rename): Update comments.
31682
31683         rename: fix cygwin 1.5.x bugs
31684         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31685         * lib/rename.c (rpl_rename): Work around them.
31686         * modules/rename (Depends-on): Add same-inode.
31687
31688         rename: fix Solaris 10 bug
31689         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31690         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31691         was the only bug.
31692
31693         rename: fix Solaris 9 bug
31694         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31695         on non-directory.  Avoid calling exit.
31696         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31697         strdup.
31698         * modules/rename-tests (Depends-on): Drop lstat.
31699         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31700         (gl_PREREQ_RENAME): Delete unused macro.
31701
31702         rename-dest-slash: fix NetBSD bug
31703         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31704         links.
31705         * modules/rename-dest-slash (Depends-on): Add same-inode.
31706
31707         rename-tests: new test, exposes several platform bugs
31708         * modules/rename-tests: New file.
31709         * tests/test-rename.h: Likewise.
31710         * tests/test-rename.c: Likewise.
31711         * doc/posix-functions/rename.texi (rename): Improve documentation,
31712         including bugs that will eventually be fixed in gnulib.
31713
31714 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31715
31716         * lib/uname.c: Include <stdlib.h>
31717         (uname): Assume version info is available.
31718
31719 2009-10-02  Jim Meyering  <meyering@redhat.com>
31720
31721         gnu-web-doc-update: correct --help output
31722         * build-aux/gnu-web-doc-update: Make --help output relevant.
31723
31724         gnu-web-doc-update: add standard options
31725         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31726
31727         gnu-web-doc-update: New module.
31728         Use this script to automatically update the on-line web documentation
31729         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31730         * modules/gnu-web-doc-update: New file, from coreutils.
31731         * build-aux/gnu-web-doc-update: New script.
31732
31733 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31734
31735         link: LoadLibrary is not needed.
31736         * lib/link.c: Use GetModuleHandle.
31737
31738 2009-10-01  Eric Blake  <ebb9@byu.net>
31739
31740         getopt: bump serial number
31741         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31742         change.
31743
31744         tests: tighten link, rmdir, and remove tests
31745         * tests/test-link.h (includes): No need to use <config.h> here.
31746         Clean up if directory hard link was created, otherwise test for
31747         trailing '.'.
31748         * tests/test-linkat.c (main): Simplify.
31749         * tests/test-remove.c (main): Enhance test for trailing '.'.
31750         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31751
31752 2009-10-01  Jim Meyering  <meyering@redhat.com>
31753
31754         maint.mk: requiring "make major" was annoying, for a "minor" release.
31755         What is intended is "stable", to contrast with alpha and beta,
31756         so require "make stable", not "make major".
31757         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31758         (get_tool_versions): Likewise.
31759         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31760
31761 2009-09-30  Ben Pfaff  <blp@gnu.org>
31762
31763         Fix broken build of replacement for Windows tmpfile().
31764         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31765         flags argument added along with the 'mkostemp' module.
31766
31767 2009-09-28  Bruno Haible  <bruno@clisp.org>
31768
31769         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31770         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31771         to 'remove_elt'.
31772         (gl_list_remove): Update.
31773         * lib/gl_list.c (gl_list_remove): Update.
31774         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31775         to 'remove_elt'.
31776         (gl_oset_remove): Update.
31777         * lib/gl_list.c (gl_oset_remove): Update.
31778         Reported by Eric Blake.
31779
31780 2009-09-28  Eric Blake  <ebb9@byu.net>
31781
31782         doc: mention yet more cygwin 1.7 status
31783         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31784         cygwin.
31785         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31786         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31787
31788         argp: fix test failure
31789         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31790         that are not upper-case.  Pass correct range to tolower.
31791
31792 2009-09-27  Jim Meyering  <meyering@redhat.com>
31793
31794         test-yesno: work around sparc-dash here-document infelicity
31795         Without this change, the literal \177 byte in a here document
31796         would make dash 0.5.5.1-3 access uninitialized memory.
31797         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31798         Instead, use a marker, "@", and filter through tr to create the desired
31799         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31800
31801 2009-09-27  Bruno Haible  <bruno@clisp.org>
31802
31803         Disable untested support for new flavours of ACLs on AIX.
31804         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31805         progress.
31806         * lib/set-mode-acl.c (qset_acl): Likewise.
31807
31808 2008-12-07  Bruno Haible  <bruno@clisp.org>
31809
31810         Add support for new flavours of ACLs on AIX. (Untested.)
31811         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31812         (file_has_acl): Add support for newer AIX.
31813         * lib/set-mode-acl.c (qset_acl): Likewise.
31814         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31815         Rainer Tammer <tammer@tammer.net>.
31816
31817 2009-09-26  Eric Blake  <ebb9@byu.net>
31818
31819         argp: fix compilation of getopt
31820         * lib/getopt.in.h (includes): Use different guard than glibc.
31821         Reported by Sergey Poznyakoff.
31822
31823         doc: mention more cygwin 1.7 status
31824         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31825         bug.
31826         * doc/posix-functions/execl.texi (execl): Likewise.
31827         * doc/posix-functions/execle.texi (execle): Likewise.
31828         * doc/posix-functions/execlp.texi (execlp): Likewise.
31829         * doc/posix-functions/execv.texi (execv): Likewise.
31830         * doc/posix-functions/execve.texi (execve): Likewise.
31831         * doc/posix-functions/execvp.texi (execvp): Likewise.
31832         * doc/glibc-functions/canonicalize_file_name.texi
31833         (canonicalize_file_name): Cygwin 1.7 now provides this.
31834         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31835         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31836         on AT_SYMLINK_NOFOLLOW.
31837
31838 2009-09-24  Eric Blake  <ebb9@byu.net>
31839
31840         test-linkat: make test more robust
31841         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31842
31843         getopt: fix inclusion guards for cygwin
31844         * modules/getopt-posix (Depends-on): Add include-next.
31845         (Makefile.am): Substitute more items in replacement header.
31846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31847         <getopt.h>.
31848         * lib/getopt.in.h (includes): Use split inclusion guard, and
31849         prefer <getopt.h> over include <unistd.h> when one is present.
31850         (option): Also override name of 'struct option'.
31851
31852         same-inode: revert prior change; it is not yet ready
31853         * NEWS: Undo mention of this change.
31854         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31855         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31856         * lib/cycle-check.c (cycle_check): Likewise.
31857         * lib/same.c (same_name): Likewise.
31858         * lib/at-func2.c (at_func2): Likewise.
31859
31860 2009-09-23  Eric Blake  <ebb9@byu.net>
31861
31862         linkat: new module
31863         * modules/linkat: New file.
31864         * lib/at-func2.c (at_func2): Likewise.
31865         * lib/linkat.c (linkat): Likewise.
31866         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31867         * lib/openat-priv.h (at_func2): Add declaration.
31868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31869         * modules/unistd (Makefile.am): Substitute them.
31870         * lib/unistd.in.h (linkat): Declare it.
31871         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31872         * doc/posix-functions/linkat.texi (linkat): Likewise.
31873         * doc/posix-functions/link.texi (link): Tweak wording.
31874         * tests/test-link.c (main): Move guts...
31875         * tests/test-link.h (test_link): ...into new file.
31876         * modules/linkat-tests: New test.
31877         * tests/test-linkat.c: Likewise.
31878         * modules/link-tests (Files): Ship new file.
31879         (Depends-on): Add stdbool.
31880
31881         dirname: add library-safe mdir_name
31882         * lib/dirname.h (mdir_name): New prototype.
31883         * lib/dirname.c (dir_name): Move guts...
31884         (mdir_name): ...to new function that avoids xalloc_die.
31885
31886         fchdir: another mingw fix
31887         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31888         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31889         on mingw (where it has not yet been ported), and make it optional
31890         elsewhere.
31891         (_gl_register_fd): Use it.
31892
31893         same-inode: make SAME_INODE tri-state, to port to mingw
31894         * NEWS: Mention this change.
31895         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31896         st_ino always being 0.
31897         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31898         * lib/cycle-check.c (cycle_check): Likewise.
31899         * lib/same.c (same_name): Likewise.
31900
31901         lstat: avoid mingw compilation error
31902         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31903         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31904         lstat ourselves.
31905         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31906         was adequate.
31907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31908         the checks for lstat.
31909         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31910
31911         link: fix test failure on Solaris 9
31912         * lib/link.c (rpl_link): Don't assume link will catch bogus
31913         trailing slash on source.
31914
31915         test-symlinkat: enhance test
31916         * tests/test-readlink.c (main): Move guts...
31917         * tests/test-readlink.h (test_readlink): ...into new file.
31918         * tests/test-symlink.c (main): Move guts...
31919         * tests/test-symlink.h (test_symlink): ...into new file.
31920         * tests/test-symlinkat.c (main): Use new files for further
31921         coverage.
31922         (do_symlink, do_readlink): New helper functions.
31923         * modules/symlink-tests (Files): Ship new file.
31924         (Depends-on): Add stdbool.
31925         * modules/readlink-tests (Files): Ship new file.
31926         (Depends-on): Add stdbool.
31927         * modules/symlinkat-tests (Files): Use new files.
31928
31929 2009-09-23  Eric Blake  <ebb9@byu.net>
31930
31931         readlink: document portability issue with symlink length
31932         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31933         systems have bogus st_size on symlinks, and mention the
31934         areadlink-with-size module.
31935         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31936         * doc/posix-functions/readlink.texi (readlink): Mention the
31937         areadlink module, and ERANGE failure.
31938         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31939         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31940
31941         readlink: fix Solaris 9 bug with trailing slash
31942         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31943         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31944         * doc/posix-functions/readlink.texi (readlink): Document this.
31945         * modules/readlink-tests: New test.
31946         * tests/test-readlink.c: Likewise.
31947
31948         readlink: fix cygwin 1.5.x bug with return type
31949         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31950         * lib/unistd.in.h (readlink): Use ssize_t.
31951         * lib/readlink.c (readlink): Likewise.
31952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31953         * modules/unistd (Makefile.am): Substitute it.
31954         * lib/unistd.in.h (readlink): Declare replacement.
31955         * doc/posix-functions/readlink.texi (readlink): Document this.
31956
31957         symlink: use throughout gnulib
31958         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31959         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31960         symlink is not used.
31961         * modules/symlinkat (Depends-on): Add symlink.
31962         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31963         * modules/canonicalize-tests (Depends-on): Likewise.
31964         * modules/lstat-tests (Depends-on): Likewise.
31965         * modules/openat-tests (Depends-on): Likewise.
31966         * modules/remove-tests (Depends-on): Likewise.
31967         * modules/rmdir-tests (Depends-on): Likewise.
31968         * modules/unlink-tests (Depends-on): Likewise.
31969         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31970         * tests/test-canonicalize.c (symlink): Likewise.
31971         * tests/test-fstatat.c (symlink): Likewise.
31972         * tests/test-lstat.c (symlink): Likewise.
31973         * tests/test-remove.c (symlink): Likewise.
31974         * tests/test-rmdir.c (symlink): Likewise.
31975         * tests/test-unlink.c (symlink): Likewise.
31976         * tests/test-unlinkat.c (symlink): Likewise.
31977
31978         symlink: new module, for Solaris 9 bug
31979         * modules/symlink: New file.
31980         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31981         * lib/symlink.c: Likewise.
31982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31983         * modules/unistd (Makefile.am): Substitute them.
31984         * lib/unistd.in.h (symlink): Declare replacement.
31985         * MODULES.html.sh (File system functions): Mention it.
31986         * doc/posix-functions/symlink.texi (symlink): Likewise.
31987         * modules/symlink-tests: New test.
31988         * tests/test-symlink.c: Likewise.
31989
31990 2009-09-23  Bruno Haible  <bruno@clisp.org>
31991
31992         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31993         when needed.
31994         Test case: gnulib-tool --import --with-tests atexit inttypes.
31995         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31996
31997 2009-09-23  Bruno Haible  <bruno@clisp.org>
31998
31999         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32000         subcommand, not in a subshell.
32001
32002 2009-09-22  Eric Blake  <ebb9@byu.net>
32003
32004         unistd: sort replacement declarations
32005         * lib/unistd.in.h: Sort declarations.
32006
32007         open, openat: minor optimization
32008         * lib/open.c (open): If open succeeded, len is non-zero.
32009         * lib/openat.c (rpl_openat): Likewise.
32010
32011         link-follow: ensure correct result
32012         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32013         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32014         distinguish between possible failures.
32015
32016 2009-09-21  Eric Blake  <ebb9@byu.net>
32017
32018         fts: avoid compiler warning
32019         * lib/fts.c (dirent_inode_sort_may_be_useful)
32020         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32021
32022 2009-09-19  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/progreloc.c (canonicalize_file_name): New declaration.
32025
32026 2009-09-19  Eric Blake  <ebb9@byu.net>
32027
32028         link: fix quoting
32029         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32030
32031         openat: fix openat bugs on Solaris 9
32032         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32033         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32034         * modules/openat (Depends-on): Add open.
32035         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32036         * modules/fcntl-h (Makefile.am): Substitute it.
32037         * lib/fcntl.in.h (openat): Declare replacement.
32038         * doc/posix-functions/openat.texi (openat): Document this.
32039
32040         openat: move fstatat and unlinkat into correct files
32041         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32042         compiled.
32043         * lib/openat.c (fstatat, unlinkat): Move...
32044         * lib/fstatat.c (fstatat): ...into correct files.
32045         * lib/unlinkat.c (unlinkat): Likewise.
32046
32047         openat: fix unlinkat bugs on Solaris 9
32048         * lib/unlinkat.c (unlinkat): New file.
32049         * modules/openat (Depends-on): Add unlink.
32050         (Files): Distribute it.
32051         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32052         trailing slash behavior is broken.
32053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32054         * modules/unistd (Makefile.am): Substitute it.
32055         * lib/unistd.in.h (unlinkat): Declare replacement.
32056         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32057
32058         openat: fix fstatat bugs on Solaris 9
32059         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32060         stat.
32061         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32062
32063         test-unlinkat: enhance test, to expose Solaris 9 bug
32064         * tests/test-unlink.c (main): Factor guts...
32065         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32066         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32067         * tests/test-rmdir.c (main): Adjust caller.
32068         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32069         (unlinker): New helper function.
32070         (rmdirat): Enhance check.
32071         * modules/rmdir-tests (Depends-on): Add stdbool.
32072         * modules/unlink-tests (Depends-on): Likewise.
32073         (Files): Add test-unlink.h.
32074         * modules/openat-tests (Files): Likewise.
32075         (Depends-on): Add unlinkdir.
32076
32077         test-fstatat: new test, to expose Solaris 9 bugs
32078         * tests/test-stat.c (main): Factor guts...
32079         * tests/test-stat.h (test_stat_func): ...into new file.
32080         * tests/test-lstat.c (main): Factor guts...
32081         * tests/test-lstat.h (test_lstat_func): ...into new file.
32082         * tests/test-fstatat.c: New file.
32083         * modules/stat-tests (Files): Add test-stat.h.
32084         * modules/lstat-tests (Files): Add test-lstat.h.
32085         (Depends-on): Add stdbool.
32086         * modules/openat-tests (Depends-on): Add pathmax.
32087         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32088         (Makefile.am): Run new test.
32089
32090         remove: new module, for mingw and Solaris 9 bugs
32091         * modules/remove: New file.
32092         * lib/remove.c: Likewise.
32093         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32095         * modules/stdio (Makefile.am): Use them.
32096         * lib/stdio.in.h (remove): Declare replacement.
32097         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32098         * doc/posix-functions/remove.texi (remove): Likewise.
32099         * modules/remove-tests: New test.
32100         * tests/test-remove.c: Likewise.
32101
32102         unlink: new module, for Solaris 9 bug
32103         * modules/unlink: New file.
32104         * lib/unlink.c: Likewise.
32105         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32107         * modules/unistd (Makefile.am): Use them.
32108         * lib/unistd.in.h (stat): Declare replacement.
32109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32110         * doc/posix-functions/unlink.texi (unlink): Likewise.
32111         * modules/unlink-tests: New test.
32112         * tests/test-unlink.c: Likewise.
32113
32114         lstat: fix Solaris 9 bug
32115         * lib/lstat.c (lstat): Also check for trailing slash on
32116         non-symlink, non-directories.  Use stat module to simplify logic.
32117         * doc/posix-functions/lstat.texi (lstat): Document it.
32118         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32119         (configure.ac): Check for symlink.
32120         * tests/test-lstat.c (main): Add more tests.
32121
32122         stat: add as dependency to other modules
32123         * modules/chown (Depends-on): Add stat.
32124         * modules/euidaccess (Depends-on): Likewise.
32125         * modules/fchdir (Depends-on): Likewise.
32126         * modules/isdir (Depends-on): Likewise.
32127         * modules/link (Depends-on): Likewise.
32128         * modules/lstat (Depends-on): Likewise.
32129         * modules/mkdir-p (Depends-on): Likewise.
32130         * modules/modechange (Depends-on): Likewise.
32131         * modules/open (Depends-on): Likewise.
32132         * modules/readlink (Depends-on): Likewise.
32133         * modules/same (Depends-on): Likewise.
32134
32135         stat: fix Solaris 9 bug
32136         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32137         slash.
32138         * lib/stat.c (rpl_stat): Work around it.
32139         * doc/posix-functions/stat.texi (stat): Update documentation.
32140
32141         stat: new module, for mingw bug
32142         * modules/stat: New file.
32143         * lib/stat.c: Likewise.
32144         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32146         * modules/sys_stat (Makefile.am): Use them.
32147         * lib/sys_stat.in.h (stat): Declare replacement.
32148         * lib/openat.c (fstatat): Deal with lstat and stat being function
32149         macros.
32150         * modules/openat (Depends-on): Add inline.
32151         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32152         * doc/posix-functions/stat.texi (stat): Likewise.
32153         * modules/stat-tests: New test.
32154         * tests/test-stat.c: Likewise.
32155
32156 2009-09-19  Jim Meyering  <meyering@redhat.com>
32157
32158         syntax-check: detect unnecessary inclusion of canonicalize.h
32159         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32160
32161 2009-09-19  Eric Blake  <ebb9@byu.net>
32162
32163         canonicalize-lgpl: adjust clients to use correct header
32164         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32165         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32166         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32167         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32168         * lib/progreloc.c (includes): Likewise.
32169
32170 2009-09-19  Jim Meyering  <meyering@redhat.com>
32171
32172         test-posixtm.c: correct a comment
32173         * tests/test-posixtm.c: Correct first-line comment.
32174         Spotted by Eric Blake.
32175
32176 2009-09-16  Jim Meyering  <meyering@redhat.com>
32177
32178         posixtm-tests: make T const-correct; add a test case
32179         * tests/test-posixtm.c (T): Declare const.
32180         Add a test for -(2^31+1).
32181         Remove useless can-succeed-only-in-2002 test.
32182
32183         posixtm-tests: adjust the sole failing test
32184         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32185         expected output matches what mktime now produces.  Cross-checked via
32186         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32187
32188         posixtm: move #ifdef'd tests into a new module
32189         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32190         * tests/test-posixtm.c: ... this new file.
32191         * modules/posixtm-tests: New module.
32192
32193 2009-09-19  Eric Blake  <ebb9@byu.net>
32194
32195         openat: simplify use of at-func.c
32196         * lib/at-func.c (includes): Include prerequisites here, to
32197         simplify requirements on client files.
32198         * lib/openat-priv.h: Add double-inclusion guard.
32199         * lib/faccessat.c (includes): Simplify.
32200         * lib/fchmodat.c (includes): Likewise.
32201         * lib/fchownat.c (includes): Likewise.
32202         * lib/mkdirat.c (includes): Likewise.
32203         * lib/mkfifoat.c (includes): Likewise.
32204         * lib/symlinkat.c (includes): Likewise.
32205
32206         openat: allow return of fd 0
32207         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32208         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32209         unistd-safer.
32210         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32211         <fcntl.h>; this module does not leak fds.
32212         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32213         must be allowed to return 0, leaving openat_safer to add the
32214         safety.
32215         (openat_permissive): Avoid writing to just-opened fd 2 if
32216         restoring the current directory fails.
32217         * lib/openat-die.c (openat_restore_fail): Add comment.
32218         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32219         (save_cwd): Guarantee safe fd, but without use of open_safer.
32220         * tests/test-openat.c: New test.
32221         * modules/openat-tests (Files, Makefile.am): Distribute and build
32222         new file.
32223
32224         relocatable-prog-wrapper: fix build
32225         * modules/relocatable-prog-wrapper (Files): Update name of
32226         canonicalize m4 file, broken on 2009-09-17.
32227         Reported by emad hajjar <aleppos@hotmail.com>.
32228
32229 2009-09-19  Bruno Haible  <bruno@clisp.org>
32230
32231         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32232         * lib/safe-alloc.c: Likewise.
32233         Reported by Ian Beckwith <ianb@erislabs.net>.
32234
32235 2009-09-18  Bruno Haible  <bruno@clisp.org>
32236
32237         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32238         Reported by <erobles@sensacd.com.mx>.
32239
32240 2009-09-17  Eric Blake  <ebb9@byu.net>
32241
32242         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32243         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32244         slashes when checking if last component is missing.
32245         * tests/test-canonicalize.c (main): Test this.
32246
32247         canonicalize, canonicalize-lgpl: honor // if distinct from /
32248         * modules/canonicalize (Files): Add double-slash-root.m4.
32249         * modules/canonicalize-lgpl (Files): Likewise.
32250         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32251         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32252         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32253         fallback definition.
32254         (canonicalize_filename_mode): Use it to protect //.
32255         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32256         (__realpath): Likewise.
32257         * tests/test-canonicalize.c (main): Test this.
32258         * tests/test-canonicalize-lgpl.c (main): Likewise.
32259         * modules/canonicalize-tests (Depends-on): Add same-inode.
32260         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32261
32262         canonicalize-lgpl: fix glibc bug with trailing slash
32263         * m4/canonicalize-lgpl.m4: Move contents...
32264         * m4/canonicalize.m4: ...here.
32265         (gl_CANONICALIZE_LGPL): Factor realpath check...
32266         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32267         glibc 2.3.5 bug, fixed 2005-04-27.
32268         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32269         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32270         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32271         * modules/canonicalize-lgpl (Files): Manage file rename.
32272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32273         * modules/stdlib (Makefile.am): Substitute witness.
32274         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32275         is needed.
32276         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32277         replacement is required.
32278         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32279         * doc/glibc-functions/canonicalize_file_name.texi
32280         (canonicalize_file_name): Document this.
32281         * doc/posix-functions/realpath.texi (realpath): Likewise.
32282
32283         canonicalize-lgpl: reject non-directory with trailing slash
32284         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32285         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32286         catches failures in glibc 2.3.5.
32287         * tests/test-canonicalize.c (main): Likewise.
32288
32289         canonicalize-lgpl: use native realpath if it works
32290         * lib/canonicalize-lgpl.c (realpath): Guard with
32291         FUNC_REALPATH_WORKS.
32292         * lib/stdlib.in.h (realpath): Make declaration optional based on
32293         HAVE_REALPATH.
32294         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32295         native realpath works.
32296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32297         * modules/stdlib (Makefile.am): Substitute witness.
32298
32299         canonicalize, canonicalize-lgpl: use <stdlib.h>
32300         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32301         (Include): Mention <stdlib.h>.
32302         (configure.ac): Mention functions we provide.
32303         * modules/canonicalize (configure.ac): Likewise.
32304         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32305         realpath if canonicalize_file_name is missing.
32306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32307         * modules/stdlib (Makefile.am): Substitute witnesses.
32308         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32309         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32310         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32311         * NEWS: Document this.
32312         * doc/glibc-functions/canonicalize_file_name.texi
32313         (canonicalize_file_name): Likewise.
32314         * doc/posix-functions/realpath.texi (realpath): Likewise.
32315         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32316
32317         test-canonicalize: consolidate into single C program
32318         * tests/test-canonicalize.sh: Delete; move setup into...
32319         * tests/test-canonicalize.c (main): ...the program, making it
32320         easier to run in debugger.  Add some tests.
32321         * modules/canonicalize-tests (Files): Remove unused file.
32322         (Depends-on): Add progname.
32323         (configure.ac, Makefile.am): Simplify.
32324
32325         test-canonicalize-lgpl: consolidate into single C program
32326         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32327         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32328         easier to run in debugger.  Add some tests.
32329         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32330         (configure.ac, Makefile.am): Simplify.
32331
32332         canonicalize: avoid resolvepath
32333         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32334         unnecessary checks.
32335         * lib/canonicalize.c (includes): Simplify.
32336         (canonicalize_file_name): Drop resolvepath implementation.
32337         * modules/canonicalize (Depends-on): Drop filenamecat.
32338
32339         canonicalize: don't lose errno
32340         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32341         over calls to free.
32342
32343         canonicalize: simplify errno handling
32344         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32345         assignment.
32346
32347         canonicalize, canonicalize-lgpl: update module dependencies
32348         * modules/canonicalize (Depends-on): Add extensions, lstat,
32349         pathmax, stdlib.
32350         (Files): Drop pathmax.h.
32351         (configure.ac): Adjust macro name.
32352         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32353         lstat, stdlib, sys_stat.
32354         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32355         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32356         extensions.
32357         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32358         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32359         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32360         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32361         declaration, if available.
32362         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32363         we can rely on the readlink module.
32364         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32365         (includes): Use <unistd.h> unconditionally.
32366
32367 2009-09-17  Eric Blake  <ebb9@byu.net>
32368
32369         maint: make Include sections of modules consistent
32370         * modules/alloca: Use only header name; no need to list #include.
32371         * modules/alloca-opt: Likewise.
32372         * modules/arpa_inet: Likewise.
32373         * modules/canon-host: Likewise.
32374         * modules/configmake: Likewise.
32375         * modules/dirent: Likewise.
32376         * modules/eealloc: Likewise.
32377         * modules/environ: Likewise.
32378         * modules/fchdir: Likewise.
32379         * modules/fcntl: Likewise.
32380         * modules/fcntl-h: Likewise.
32381         * modules/gethrxtime: Likewise.
32382         * modules/gettime: Likewise.
32383         * modules/ignore-value: Likewise.
32384         * modules/inet_ntop: Likewise.
32385         * modules/inet_pton: Likewise.
32386         * modules/inttypes: Likewise.
32387         * modules/isnand-nolibm: Likewise.
32388         * modules/isnanf-nolibm: Likewise.
32389         * modules/mbchar: Likewise.
32390         * modules/mbfile: Likewise.
32391         * modules/mbiter: Likewise.
32392         * modules/mbuiter: Likewise.
32393         * modules/netdb: Likewise.
32394         * modules/netinet_in: Likewise.
32395         * modules/nproc: Likewise.
32396         * modules/pagealign_alloc: Likewise.
32397         * modules/poll: Likewise.
32398         * modules/printf-frexp: Likewise.
32399         * modules/pthread: Likewise.
32400         * modules/putenv: Likewise.
32401         * modules/random_r: Likewise.
32402         * modules/relocatable-prog: Likewise.
32403         * modules/search: Likewise.
32404         * modules/select: Likewise.
32405         * modules/selinux-h: Likewise.
32406         * modules/settime: Likewise.
32407         * modules/signal: Likewise.
32408         * modules/size_max: Likewise.
32409         * modules/socklen: Likewise.
32410         * modules/ssize_t: Likewise.
32411         * modules/stdarg: Likewise.
32412         * modules/stdbool: Likewise.
32413         * modules/stddef: Likewise.
32414         * modules/stdint: Likewise.
32415         * modules/stdio: Likewise.
32416         * modules/stdlib: Likewise.
32417         * modules/string: Likewise.
32418         * modules/strings: Likewise.
32419         * modules/sys_file: Likewise.
32420         * modules/sys_ioctl: Likewise.
32421         * modules/sys_select: Likewise.
32422         * modules/sys_socket: Likewise.
32423         * modules/sys_stat: Likewise.
32424         * modules/sys_time: Likewise.
32425         * modules/sys_times: Likewise.
32426         * modules/sys_utsname: Likewise.
32427         * modules/sys_wait: Likewise.
32428         * modules/sysexits: Likewise.
32429         * modules/time: Likewise.
32430         * modules/times: Likewise.
32431         * modules/tmpfile: Likewise.
32432         * modules/trim: Likewise.
32433         * modules/unistd: Likewise.
32434         * modules/wchar: Likewise.
32435         * modules/wctype: Likewise.
32436
32437 2009-09-17  Bruno Haible  <bruno@clisp.org>
32438
32439         Make getdate.y compile on QNX and NetBSD 5 / i386.
32440         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32441         TIME_T_FITS_IN_LONG_INT.
32442         * lib/getdate.y (long_time_t): New type.
32443         (relative_time): Change type of 'seconds' field to long_time_t.
32444         (get_date): Update types of local variables. Check against overflow
32445         during conversion from long_time_t to time_t.
32446         Reported by Matt Kraai <kraai@ftbfs.org>
32447         and Hasso Tepper <hasso@netbsd.org>.
32448
32449 2009-09-17  Bruno Haible  <bruno@clisp.org>
32450
32451         * modules/COPYING: Update copyright years.
32452         * modules/README: Likeiwse.
32453         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32454         Reported by Ian Beckwith <ianb@erislabs.net>.
32455
32456 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32457
32458         * users.txt: Update references for gnuit package.
32459
32460 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32461
32462         * m4/getdelim.m4: Fix typo in copyright line.
32463
32464 2009-09-17  Bruno Haible  <bruno@clisp.org>
32465
32466         * lib/atoll.c: Use the standard header with GPL copyright.
32467         * lib/argz.in.h: Likewise.
32468         * lib/glob.c: Likewise.
32469         * lib/glob-libc.h: Likewise.
32470         * lib/random_r.c: Likewise.
32471         * lib/siglist.h: Likewise.
32472         * lib/strsignal.c: Likewise.
32473         Reported by Ian Beckwith <ianb@erislabs.net>.
32474
32475 2009-09-17  Eric Blake  <ebb9@byu.net>
32476
32477         rmdir: ensure correct dependency order
32478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32479
32480 2009-09-17  Bruno Haible  <bruno@clisp.org>
32481
32482         Disable assertion that fails on NetBSD 5 / i386.
32483         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32484         Reported by Sam Steingold <sds@gnu.org>
32485         and Hasso Tepper <hasso@netbsd.org>.
32486
32487 2009-09-16  Eric Blake  <ebb9@byu.net>
32488
32489         unlinkdir: port to mingw
32490         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32491         on which no one can unlink a directory.
32492
32493         stdlib: sort witness names
32494         * modules/stdlib (Makefile.am): Sort replacements.
32495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32496         * lib/stdlib.in.h: Likewise.
32497
32498         parse-duration-tests: avoid link failure
32499         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32500         LIBINTL.
32501         Reported by Tom G. Christensen.
32502
32503         openat-tests: ensure unlinkat behaves like rmdir
32504         * tests/test-rmdir.c (main): Factor guts...
32505         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32506         * modules/rmdir-tests (Files): Ship new file.
32507         * modules/openat-tests: New test.
32508         * tests/test-unlinkat.c: Likewise.
32509
32510         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32511         * modules/rmdir-errno (Status, Notice): Now obsolete.
32512
32513         rmdir: work around cygwin 1.5.x and mingw bugs
32514         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32515         * lib/rmdir.c (rmdir): Work around it.
32516         * modules/rmdir (Status, Notice): No longer obsolete.
32517         (Files): Add dos.m4.
32518         (Depends-on): Add unistd.
32519         (configure.ac): Set witnesses.
32520         (License): Relax to LGPLv2+.
32521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32522         * modules/unistd (Makefile.am): Substitute witnesses.
32523         * lib/unistd.in.h (rmdir): Declare replacement.
32524         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32525         * modules/rmdir-tests: New tests.
32526         * tests/test-rmdir.c: Likewise.
32527
32528 2009-09-15  Eric Blake  <ebb9@byu.net>
32529
32530         fchdir: improve use of replacement functions
32531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32532         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32533         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32534         REPLACE_CLOSEDIR.
32535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32536         * modules/sys_stat (Makefile.am): Substitute correct witness.
32537         * modules/dirent (Makefile.am): Likewise.
32538         * modules/unistd (Makefile.am): Likewise.
32539         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32540         * lib/unistd.in.h (dup): Likewise.
32541         * lib/sys_stat.in.h (fstat): Likewise.
32542
32543         maint: ignore gnulib-tool temp files
32544         * .gitignore: Ignore files created during gnulib-tool --test.
32545
32546 2009-09-13  Jim Meyering  <meyering@redhat.com>
32547
32548         posixtm: don't reject a time that specify "60" as the number of seconds
32549         * lib/posixtm.c (posixtime): The code to reject invalid dates
32550         would also reject a time specified with the .60 suffix.
32551         But POSIX allows that, in order to accommodate leap seconds.
32552         So don't reject it.
32553         (main): Adjust tests accordingly.
32554         * modules/posixtm (Depends-on): Add stpcpy.
32555
32556 2009-09-11  Jim Meyering  <meyering@redhat.com>
32557
32558         announce-gen: include [$release_type] in emitted Subject:
32559         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32560         e.g., [stable] in the emitted Subject: line.
32561
32562 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32563
32564         Remove obsolete macros from several modules.
32565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32566         obsolete Autoconf macros with their modern counterparts.
32567         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32568         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32570         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32574         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32575         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32576         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32577         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32578         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32579         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32580         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32581         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32582         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32583         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32584         * m4/time_r.m4 (gl_TIME_R): Likewise.
32585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32586         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32587         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32588
32589         Fix copyright header in build-aux scripts.
32590         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32591         recommendation.
32592         * build-aux/ncftpput-ftp: Likewise.
32593         * build-aux/update-copyright: Likewise.
32594
32595 2009-09-09  Eric Blake  <ebb9@byu.net>
32596
32597         test-link: allow Linux choice of errno
32598         * tests/test-link.c (main): Relax test for alternate error.
32599
32600         strndup: fix improper m4 caching
32601         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32602         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32603         (gl_PREREQ_STRNDUP): Delete.
32604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32605         * modules/string (Makefile.am): Substitute it.
32606         * lib/string.in.h (strndup): Modernize prototype.
32607
32608         getcwd: port to mingw
32609         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32610         different from the POSIX assumptions made throughout the getcwd
32611         module; fortunately, the mingw getcwd does not need replacement.
32612         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32613         * modules/getcwd-tests: New test.
32614         * tests/test-getcwd.c: Likewise.
32615
32616         link: fix platform bugs
32617         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32618         * lib/link.c (link): Work around them.  Fix related mingw bug.
32619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32620         * modules/unistd (Makefile.am): Substitute it.
32621         * lib/unistd.in.h (link): Declare replacement.
32622         * doc/posix-functions/link.texi (link): Document this.
32623         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32624
32625         test-link: consolidate into single C program, test more cases
32626         * tests/test-link.sh: Delete.
32627         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32628         at least Cygwin and Solaris.
32629         * modules/link-tests (Files): Remove unused file.
32630         (Depends-on): Add errno, sys_stat.
32631         (Makefile.am): Simplify.
32632
32633 2009-09-08  Bruno Haible  <bruno@clisp.org>
32634
32635         Work around towlower, towupper bug on mingw.
32636         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32637         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32638         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32639         * doc/posix-functions/towupper.texi: Likewise.
32640         Reported by Eric Blake.
32641
32642 2009-09-08  Jim Meyering  <meyering@redhat.com>
32643
32644         build: don't try to run autoheader if we don't use it
32645         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32646         is not used in configure.ac.
32647
32648 2009-09-08  Eric Blake  <ebb9@byu.net>
32649
32650         euidaccess: fix compilation error
32651         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32652
32653         rawmemchr: relax license
32654         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32655         okay.
32656         Reported by Jim Meyering.
32657
32658         mkfifoat: new module
32659         * modules/mkfifoat: New file.
32660         * lib/mkfifoat.c: Likewise.
32661         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32662         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32663         * modules/sys_stat (Makefile.am): Use them.
32664         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32665         * MODULES.html.sh (File system functions): Mention module.
32666         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32667         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32668         * modules/mkfifoat-tests: New test.
32669         * tests/test-mkfifoat.c: Likewise.
32670
32671         strchrnul: relax license
32672         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32673         okay.
32674         Reported by Jim Meyering.
32675
32676 2009-09-08  Eric Blake  <ebb9@byu.net>
32677
32678         fstatat: fix compilation on Solaris
32679         * lib/fstatat.c (includes): Add fcntl.h.
32680         Reported by Pádraig Brady.
32681
32682 2009-09-07  Eric Blake  <ebb9@byu.net>
32683
32684         rename: modernize replacement
32685         * modules/rename (Depends-on): Add stdio.
32686         (configure.ac): Declare witness.
32687         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32688         stdio take care of replacement.
32689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32690         * modules/stdio (Makefile.am): Substitute them.
32691         * lib/stdio.in.h (rename): Declare replacement.
32692         * lib/rename.c (includes): Allow cross-compilation to non-windows
32693         machines.
32694         * doc/posix-functions/rename.texi (rename): Improve
32695         documentation.
32696
32697         stdio: sort witness names
32698         * modules/stdio (Makefile.am): Sort replacements.
32699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32700         * lib/stdio.in.h: Likewise.
32701
32702         getcwd: minor cleanups
32703         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32704         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32705
32706         openat: provide more convenience names
32707         * modules/faccessat (configure.ac): Add C witness.
32708         * lib/unistd.in.h (readlinkat): Fix typo.
32709         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32710         convenience wrappers.
32711         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32712         wrappers in syntax checks.
32713
32714 2009-09-06  Eric Blake  <ebb9@byu.net>
32715
32716         doc: fix comments in recent patches
32717         * lib/faccessat.c: Mention correct function.
32718         * lib/fchmodat.c: Likewise.
32719         * lib/fchownat.c: Likewise.
32720         * lib/symlinkat.c: Likewise.
32721         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32722         constants.
32723
32724         faccessat, symlinkat: continue cleanup of previous patch
32725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32726         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32727         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32729         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32730         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32731         set.
32732
32733 2009-09-06  Bruno Haible  <bruno@clisp.org>
32734
32735         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32736         (fstatat): Declare if GNULIB_FSTATAT is set.
32737         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32738         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32739         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32740         * modules/fcntl-h (Files): Remove m4/openat.m4.
32741         * modules/sys_stat (Files): Remove m4/openat.m4.
32742         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32743         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32744         * modules/unistd (Files): Remove m4/openat.m4.
32745         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32746         GNULIB_OPENAT.
32747         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32748         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32749         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32750         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32751         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32752         gl_OPENAT_DEFAULTS.
32753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32754         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32755         Don't require gl_OPENAT_DEFAULTS.
32756         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32757         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32758         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32759         (gl_OPENAT_DEFAULTS): Remove macro.
32760
32761 2009-09-06  Bruno Haible  <bruno@clisp.org>
32762
32763         * modules/openat (configure.ac): Remove unneeded witness.
32764
32765 2009-09-06  Bruno Haible  <bruno@clisp.org>
32766
32767         Set errno to ENOSYS when a function is entirely unsupported.
32768         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32769         EOPNOTSUPP.
32770         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32771         * modules/chown (Depends-on): Remove errno.
32772
32773 2009-09-06  Bruno Haible  <bruno@clisp.org>
32774
32775         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32776
32777 2009-09-06  Bruno Haible  <bruno@clisp.org>
32778
32779         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32780
32781 2009-09-06  Ben Pfaff  <blp@gnu.org>
32782             Bruno Haible  <bruno@clisp.org>
32783
32784         Work around a glibc bug in strtok_r.
32785         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32786         Undefine if UNDEFINE_STRTOK_R is set.
32787         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32789         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32791         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32792         UNDEFINE_STRTOK_R.
32793         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32794
32795 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32796
32797         exclude: minor fix
32798         * lib/exclude.c: Include wctype.h
32799
32800 2009-09-06  Akim Demaille  <demaille@gostai.com>
32801
32802         bootstrap: improve error message
32803         * build-aux/bootstrap (find_tool): Upon failure, report the list
32804         of candidates.
32805         Honor the initial value of the envvar.
32806
32807 2009-09-05  Eric Blake  <ebb9@byu.net>
32808
32809         symlinkat: new module
32810         * modules/symlinkat: New file.
32811         * lib/symlinkat.c: Likewise.
32812         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32814         * modules/unistd (Makefile.am): Use them.
32815         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32816         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32817         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32818         * MODULES.html.sh (File system functions): Mention module.
32819         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32820         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32821         * modules/symlinkat-tests: New test.
32822         * tests/test-symlinkat.c: Likewise.
32823
32824         test-openat-safer: add more checks
32825         * tests/test-openat-safer.c (main): Check more code paths.
32826
32827 2009-09-05  Jim Meyering  <meyering@redhat.com>
32828
32829         syntax-check: detect unnecessary inclusion of openat.h
32830         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32831
32832 2009-09-05  Bruno Haible  <bruno@clisp.org>
32833
32834         Support towlower, towupper.
32835         * doc/posix-functions/towlower.texi: Mention module wctype.
32836         * doc/posix-functions/towupper.texi: Likewise.
32837         * lib/wctype.in.h (towlower, towupper): New functions.
32838         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32839         (ASSERT): New macro.
32840         (e): New variable.
32841         (main): Test also towlower, towupper. Test WEOF argument.
32842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32843
32844 2009-09-05  Bruno Haible  <bruno@clisp.org>
32845
32846         Fix conversion behaviour when the input is invalid.
32847         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32848         mark occurring in first pass of indirect conversion.
32849         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32850         input.
32851         Found by clang's static analyzer.
32852
32853 2009-09-05  Bruno Haible  <bruno@clisp.org>
32854
32855         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32856         where direct conversion is possible.
32857
32858 2009-09-04  Eric Blake  <ebb9@byu.net>
32859
32860         openat: fail with ENOENT on empty name
32861         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32862         buffer.
32863
32864         link-follow: fix logic bug in prior patch
32865         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32866         reversed sense of yes and no in prior patch.  Avoid confusing
32867         compilation failure with desired semantics.
32868
32869         link-follow: accomodate mingw and cross-compilation
32870         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32871         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32872         cross-compilation results to -1, to make linkat easier to
32873         implement when cross-compiling.  Trivially support mingw.
32874         * modules/link-follow (configure.ac): Call new name.
32875         * NEWS: Mention this.
32876
32877 2009-09-03  Eric Blake  <ebb9@byu.net>
32878
32879         faccessat: compile replacement
32880         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32881         needed.
32882
32883         fts: fix compilation error
32884         * lib/fts.c (includes): Re-add "openat.h", for
32885         openat_needs_fchdir.
32886
32887         faccessat: new module
32888         * modules/faccessat: New file.
32889         * lib/faccessat.c: Likewise.
32890         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32892         * modules/unistd (Makefile.am): Use it.
32893         * lib/unistd.in.h (faccessat): Declare it.
32894         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32895         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32896         * MODULES.html.sh (File system functions): Mention it.
32897         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32898         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32899
32900         euidaccess: prefer POSIX over non-standard implementation
32901         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32902         * lib/euidaccess.c (euidaccess): Use it if available.
32903
32904         openat: make template easier to use
32905         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32906         AT_FUNC_F2 to be undefined.
32907         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32908         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32909         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32910         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32911         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32912         Likewise.
32913         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32914         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32915         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32916         Likewise.
32917
32918         openat: declare in POSIX headers
32919         * NEWS: Mention this.
32920         * modules/openat (configure.ac): Declare witnesses.
32921         (Depends-on): Add fcntl-h, sys_stat, unistd.
32922         (Include): Mention correct headers.
32923         * modules/fcntl-h (Depends-on): Add link-warning.
32924         (Files): Add openat.m4.
32925         (Makefile.am): Substitute witnesses.
32926         * modules/sys_stat (Files, Makefile.am): Likewise.
32927         * modules/unistd (Files, Makefile.am): Likewise.
32928         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32929         (gl_OPENAT_DEFAULTS): New macro.
32930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32933         (SYS_STAT_H): Remove unused variable.
32934         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32935         * lib/fcntl--.h (includes): Remove unneeded header.
32936         * lib/openat-safer.c (includes): Likewise.
32937         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32938         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32939         appropriate headers.
32940         (__OPENAT_PREFIX): Delete.
32941         * lib/fcntl.in.h (openat): Provide declaration.
32942         (AT_FDCWD): Fix Solaris bug.
32943         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32944         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32945         * lib/fchmodat.c (includes):  Adjust to find declaration.
32946         * lib/fchownat.c (includes): Likewise.
32947         * lib/mkdirat.c (includes): Likewise.
32948         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32949         still visible.
32950
32951 2009-09-02  Eric Blake  <ebb9@byu.net>
32952
32953         errno: use consistently
32954         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32955         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32956         * lib/canonicalize.c (ELOOP): Likewise.
32957         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32958         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32959         * lib/lchown.c (EOPNOTSUPP): Likewise.
32960         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32961         * lib/savewd.c (ESTALE): Likewise.
32962         * lib/settime.c (ENOSYS): Likewise.
32963         * lib/utimens.c (ENOSYS): Likewise.
32964         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32965         * lib/chdir-safer.c (ELOOP): Likewise.
32966         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32967         * modules/c-stack (Depends-on): Add errno.
32968         * modules/canonicalize (Depends-on): Likewise.
32969         * modules/chdir-safer (Depends-on): Likewise.
32970         * modules/fdopendir (Depends-on): Likewise.
32971         * modules/inet_ntop (Depends-on): Likewise.
32972         * modules/inet_pton (Depends-on): Likewise.
32973         * modules/lchown (Depends-on): Likewise.
32974         * modules/openat (Depends-on): Likewise.
32975         * modules/savewd (Depends-on): Likewise.
32976         * modules/settime (Depends-on): Likewise.
32977         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32978
32979         fts: avoid leaking fds
32980         * modules/fts (Depends-on): Add cloexec.
32981         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32982         flag.
32983
32984         fts: make directory fds more robust
32985         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32986         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32987
32988         backupfile, chdir-long, fts, savedir: make safer
32989         * lib/backupfile.c (includes): Use "dirent--.h", since
32990         numbered_backup can write to stderr during readdir.
32991         * lib/savedir.c (includes): Likewise.
32992         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32993         emulation can write to stderr on failure.
32994         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32995         * lib/getcwd.c: Document why opendir_safer is unused.
32996         * lib/glob.c: Likewise.
32997         * lib/scandir.c: Likewise.
32998         * lib/openat-proc.c: Likewise, for open_safer.
32999         * modules/backupfile (Depends-on): Add dirent-safer.
33000         * modules/savedir (Depends-on): Likewise.
33001         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33002         * modules/chdir-long (Depends-on): Add openat-safer.
33003
33004         openat-safer: new module
33005         * modules/openat-safer: New file.
33006         * lib/openat-safer.c: Likewise.
33007         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33008         * lib/fcntl-safer.h (openat_safer): Declare.
33009         * lib/fcntl--.h (openat): Override.
33010         * MODULES.html.sh (File descriptor based I/O): Mention it.
33011         * lib/openat.h: Add double-inclusion guards.
33012         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33013         "fcntl--.h", so we can implement openat.
33014         * modules/openat-safer-tests: New test.
33015         * tests/test-openat-safer.c: New file.
33016
33017         dirent-safer: new module
33018         * modules/dirent-safer: New file.
33019         * lib/dirent--.h: Likewise.
33020         * lib/dirent-safer.h: Likewise.
33021         * lib/opendir-safer.c: Likewise.
33022         * m4/dirent-safer.m4: Likewise.
33023         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33024         * modules/dirent-safer-tests: New test.
33025         * tests/test-dirent-safer.c: New file.
33026         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33027
33028         fdopendir: optimize on mingw
33029         * lib/unistd.in.h (_gl_directory_name): New prototype.
33030         * lib/fchdir.c (_gl_directory_name): Implement it.
33031         (fchdir): Use it to simplify implementation.
33032         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33033         fchdir, when available, to avoid calling [f]chdir().
33034
33035         fdopendir: split into its own module
33036         * lib/openat.c (fdopendir): Move...
33037         * lib/fdopendir.c: ...into new file.
33038         * modules/fdopendir: New module.
33039         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33040         * modules/openat (Depends-on): Add fdopendir.
33041         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33042         fdopendir here.
33043         * modules/savedir (Depends-on): Only need fdopendir, not full
33044         openat.
33045         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33046         * lib/openat.h (fdopendir): Drop prototype.
33047         * lib/dirent.in.h (fdopendir): Provide prototype.
33048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33049         * modules/dirent (Makefile.am): Substitute them.
33050         * MODULES.html.sh (File system functions): Mention it.
33051         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33052         * modules/fdopendir-tests: New file.
33053         * tests/test-fdopendir.c: Likewise.
33054
33055         fchdir: use more consistent macro convention
33056         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33057         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33058         REPLACE_FCHDIR, rather than relying on config.h macros.
33059         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33060         inside a single make-time REPLACE_FCHDIR block, rather than using
33061         the config.h FCHDIR_REPLACEMENT.
33062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33063         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33064         Manage fstat replacement.
33065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33066         REPLACE_FCHDIR.
33067         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33068         (Makefile.am): Substitute REPLACE_FCHDIR.
33069         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33070         FCHDIR_REPLACEMENT.
33071         * lib/dup-safer.c (dup_safer): Likewise.
33072         * lib/dup2.c (rpl_dup2): Likewise.
33073         * lib/dup3.c (rpl_dup3): Likewise.
33074         * lib/open.c (rpl_open): Likewise.
33075
33076         fchdir: simplify error handling, and support dup3
33077         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33078         stdbool, malloc-posix, realloc-posix.
33079         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33080         (ensure_dirs_slot): Return false on allocation failure.
33081         (rpl_dup2): Delete.
33082         (_gl_register_dup): New function.
33083         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33084         (_gl_register_fd): Close fd on allocation failure.
33085         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33086         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33087         prototype.
33088         (rpl_dup2_fchdir): Delete prototype.
33089         * lib/open.c (open): Update caller.
33090         * lib/dup2.c (dup2): Track fchdir metadata.
33091         * lib/dup3.c (dup3): Likewise.
33092         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33094
33095 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33096
33097         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33098         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33099         don't pass arguments to AC_OUTPUT.
33100
33101 2009-09-02  Bruno Haible  <bruno@clisp.org>
33102
33103         * modules/mkdtemp (License): Relicense under LGPLv2+.
33104         Reported by Paolo Bonzini.
33105
33106 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33107
33108         Replace uses of obsolete autoconf macros in Jim's modules.
33109         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33110         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33111         can evoke a warning from autoconf when run with -Wobsolete
33112         enabled.  They were declared obsolete for good reasons (see
33113         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33114         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33115         should not continue using the deprecated macros.
33116         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33117         obsolete Autoconf macros with modern counterparts.
33118         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33119         * m4/dos.m4 (gl_AC_DOS): Likewise.
33120         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33122         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33123         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33124         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33126         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33127         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33129         Likewise.
33130         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33131         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33132         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33133         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33134         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33135         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33136
33137 2009-09-01  Eric Blake  <ebb9@byu.net>
33138
33139         fchdir: fix off-by-one bug in previous patch
33140         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33141         (_gl_unregister_fd): Delete useless if.
33142
33143 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33144
33145         maint.mk: sort the list of syntax-check rules
33146         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33147         easier to get a sense of progress when the rules are run sequentially
33148         and take a long time.
33149
33150 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33151
33152         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33153         * modules/netinet_in: Likewise.
33154         * modules/sys_file: Likewise.
33155         * modules/sys_ioctl: Likewise.
33156         * modules/sys_select: Likewise.
33157         * modules/sys_socket: Likewise.
33158         * modules/sys_stat: Likewise.
33159         * modules/sys_time: Likewise.
33160         * modules/sys_times: Likewise.
33161         * modules/sys_utsname: Likewise.
33162         * modules/sys_wait: Likewise.
33163
33164 2009-09-01  Jim Meyering  <meyering@redhat.com>
33165
33166         fts: help ensure that return values are not ignored
33167         * lib/fts_.h (__GNUC_PREREQ): Define.
33168         (__attribute_warn_unused_result__): Define.
33169         (fts_children, fts_close, fts_open, fts_read): Declare with
33170         __attribute_warn_unused_result__.
33171
33172         fts: fts_close now fails also when closing a dir file descriptor fails
33173         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33174         and propagate to caller, along with errno.
33175
33176         announce-gen: correct formatting in --help output
33177         * build-aux/announce-gen (usage): Move the one-line description in
33178         --help output "up", to where it belongs, just after Usage:.
33179
33180 2009-08-31  Eric Blake  <ebb9@byu.net>
33181
33182         fchdir: port to mingw
33183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33184         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33185         opened, then use a substitute.
33186         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33187         replacement.
33188         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33189         (_gl_register_fd): No need to check stat if open already filters
33190         all directories.
33191         (fchdir): Fix error condition to match POSIX.
33192         * modules/fchdir (Depends-on): Add sys_stat.
33193         * doc/posix-functions/open.texi (open): Document the limitation.
33194         * modules/fchdir-tests: New file.
33195         * tests/test-fchdir.c: Likewise.
33196
33197         canonicalize: allow cross-testing from cygwin to mingw
33198         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33199         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33200         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33201         Likewise.
33202         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33203         target does not support symlinks.
33204         * tests/test-canonicalize-lgpl.sh: Likewise.
33205
33206         chown: avoid compilation warning on mingw
33207         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33208         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33209         mingw.
33210         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33211         * modules/chown (Depends-on): Add errno.
33212
33213 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33214
33215         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33216         command.
33217
33218 2009-08-31  Jim Meyering  <meyering@redhat.com>
33219
33220         canonicalize: remove useless initialization
33221         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33222         initialization of local, "end".
33223
33224 2009-08-30  Bruno Haible  <bruno@clisp.org>
33225
33226         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33227         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33228         ENOSYS.
33229
33230 2009-08-30  Bruno Haible  <bruno@clisp.org>
33231
33232         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33233         /usr/xpg4/bin/tr when it exists.
33234         * tests/test-pipe-filter-gi1.sh: Likewise.
33235
33236 2009-08-30  Bruno Haible  <bruno@clisp.org>
33237
33238         Work around deficient /usr/bin/id program on Solaris.
33239         * tests/test-file-has-acl.sh (ID): New variable.
33240         * tests/test-set-mode-acl.sh (ID): Likewise.
33241         * tests/test-copy-acl.sh (ID): Likewise.
33242         * tests/test-copy-file.sh (ID): Likewise.
33243
33244 2009-08-30  Bruno Haible  <bruno@clisp.org>
33245
33246         New module 'xstriconveh'.
33247         * lib/xstriconveh.h: New file.
33248         * lib/xstriconveh.c: New file.
33249         * modules/xstriconveh: New file.
33250
33251 2009-08-30  Bruno Haible  <bruno@clisp.org>
33252
33253         Make it easier to use mem_cd_iconveh.
33254         * lib/striconveh.h (iconveh_t): New type.
33255         (iconveh_open, iconveh_close): New declarations.
33256         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33257         with a single 'const iconveh_t *' argument.
33258         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33259         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33260         with a single 'const iconveh_t *' argument.
33261         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33262         * tests/test-striconveh.c (main): Update.
33263         * NEWS: Mention the change.
33264
33265 2009-08-30  Bruno Haible  <bruno@clisp.org>
33266
33267         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33268         problem.
33269
33270 2009-08-30  Bruno Haible  <bruno@clisp.org>
33271
33272         Work around iconv_open problem on Solaris.
33273         * lib/iconv_open-solaris.gperf: New file.
33274         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33275         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33276         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33277         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33278         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33279         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33280
33281 2009-08-29  Jim Meyering  <meyering@redhat.com>
33282
33283         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33284         * top/maint.mk (cvs-check): Remove target; it was just an alias
33285         to the better-named vc-diff-check.
33286         (maintainer-distcheck): Remove rule.  It was used only from
33287         the (alpha/beta/major) target, and all of its commands but one
33288         were coreutils-specific.
33289         (vc-dist): Remove rule.
33290         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33291         Run vc-diff-check, not vc-dist.
33292         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33293
33294 2009-08-27  Bruno Haible  <bruno@clisp.org>
33295
33296         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33297         of 0.
33298
33299 2009-08-27  Bruno Haible  <bruno@clisp.org>
33300
33301         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33302         compilers.
33303         * doc/func.texi: Document the SunPRO C bug.
33304
33305 2009-08-27  Bruno Haible  <bruno@clisp.org>
33306
33307         Fix link error on Solaris.
33308         * tests/test-parse-duration.c (xstrdup): Remove function.
33309
33310 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33311
33312         ignore-value: handle pointer types, too
33313         * lib/ignore-value.h (__attribute__): Remove definition.
33314         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33315         of a more concise and more-often effective "(void) i" statement.
33316         (ignore_ptr): New function to suppress warnings from functions that
33317         return pointers, and to make it explicit that one function doesn't
33318         handle all cases.
33319
33320 2009-08-25  Bruno Haible  <bruno@clisp.org>
33321
33322         dup2: work around a Linux bug.
33323         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33324         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33325         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33326         Reported by Simon Josefsson.
33327
33328 2009-08-25  Jim Meyering  <meyering@redhat.com>
33329
33330         libguestfs uses gnulib
33331         * users.txt: Add libguestfs.
33332
33333 2009-08-24  Eric Blake  <ebb9@byu.net>
33334
33335         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33336         * lib/pipe2.c (includes): Add binary-io.h.
33337         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33338
33339 2009-08-24  Bruno Haible  <bruno@clisp.org>
33340
33341         Tolerate declared but missing accept4 syscall.
33342         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33343         available.
33344         * lib/sys_socket.in.h (accept4): If the function is already present,
33345         override it.
33346         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33347         * modules/accept4 (Makefile.am): Compile accept4.c always.
33348         Reported by Paolo Bonzini and Eric Blake.
33349
33350 2009-08-23  Bruno Haible  <bruno@clisp.org>
33351
33352         New module 'accept4'.
33353         * lib/sys_socket.in.h (accept4): New declaration.
33354         * lib/accept4.c: New file.
33355         * m4/accept4.m4: New file.
33356         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33357         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33358         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33359         HAVE_ACCEPT4.
33360         * modules/accept4: New file.
33361         * doc/glibc-functions/accept4.texi: Mention the new module.
33362
33363 2009-08-24  Jim Meyering  <meyering@redhat.com>
33364
33365         progname: also set global program_invocation_name, when possible
33366         Before this change, a libtool-enabled program that calls glibc's
33367         error function would report the program name as
33368         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33369         * modules/progname (configure.ac): Check for a declaration of
33370         program_invocation_name.
33371         * lib/progname.c:  Include <errno.h>.
33372         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33373         Set program_invocation_name.
33374
33375 2009-08-23  Bruno Haible  <bruno@clisp.org>
33376
33377         * lib/dup3.c: Include <string.h>.
33378
33379 2009-08-23  Bruno Haible  <bruno@clisp.org>
33380
33381         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33382         * lib/pipe2.c (pipe2): Likewise.
33383         Suggested by Eric Blake.
33384
33385 2009-08-23  Bruno Haible  <bruno@clisp.org>
33386
33387         Tolerate declared but missing dup3 syscall.
33388         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33389         * lib/unistd.in.h (dup3): If the function is already present,
33390         override it.
33391         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33392         * modules/dup3 (Makefile.am): Compile dup3.c always.
33393         Reported by Paolo Bonzini.
33394
33395 2009-08-23  Bruno Haible  <bruno@clisp.org>
33396
33397         Tolerate declared but missing pipe2 syscall.
33398         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33399         available.
33400         * lib/unistd.in.h (pipe2): If the function is already present,
33401         override it.
33402         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33403         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33404         Reported by Paolo Bonzini.
33405
33406 2009-08-23  Bruno Haible  <bruno@clisp.org>
33407
33408         * lib/pipe2.c (pipe2): Move #ifs inside function.
33409
33410 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33411
33412         quotearg: document limitations of quote_these_too
33413         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33414         those limitations are created.
33415         * lib/quotearg.h (set_char_quoting): Document that digits and
33416         letters that are special after backslash are not permitted.
33417         (quotearg_char): Cross-reference set_char_quoting documentation.
33418
33419 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33420
33421         quotearg: implement custom_quoting_style
33422         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33423         right_quote fields.
33424         (set_custom_quoting): New public function.
33425         (quotearg_buffer_restyled): Add left_quote and right_quote
33426         arguments, handle them very much like locale quoting, and update
33427         all uses.
33428         (quotearg_n_custom): New public function.
33429         (quotearg_n_custom_mem): New public function.
33430         (quotearg_custom): New public function.
33431         (quotearg_custom_mem): New public function.
33432         * lib/quotearg.h: Prototype and document new public functions.
33433         (enum quoting_style): For escape_quoting_style and
33434         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33435         ignored even though they're otherwise like c_quoting_style.
33436         Add custom_quoting_style member and document with comparison to
33437         clocale_quoting_style.
33438         * tests/test-quotearg.c (custom_quotes): New array.
33439         (custom_results): New array.
33440         (main): Extend to test custom quoting.
33441
33442 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33443
33444         quotearg: fix right quote escaping when it's in quote_these_too
33445         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33446         quote, be sure to prepend only one backslash.
33447         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33448         (main): Test it.
33449
33450 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33451
33452         quotearg-tests: test escaping of embedded locale quotes
33453         * tests/test-quotearg.c (struct result_strings): Add member for
33454         new input.
33455         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33456         (inputs): Add new input.
33457         (results_g): Add expected results.
33458         (flag_results): Likewise.
33459         (locale_results): Likewise.
33460         (compare_strings): Check those.
33461
33462 2009-08-23  Bruno Haible  <bruno@clisp.org>
33463
33464         Tests for module 'dup3'.
33465         * modules/dup3-tests: New file.
33466         * tests/test-dup3.c: New file.
33467
33468         New module 'dup3'.
33469         * lib/unistd.in.h (dup3): New declaration.
33470         * lib/dup3.c: New file.
33471         * m4/dup3.m4: New file.
33472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33473         HAVE_DUP3.
33474         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33475         * modules/dup3: New file.
33476         * doc/glibc-functions/dup3.texi: Mention the new module.
33477
33478 2009-08-23  Bruno Haible  <bruno@clisp.org>
33479
33480         Tweak the dup2 test.
33481         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33482         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33483         the test file is still empty. Fix argument order of lseek.
33484
33485 2009-08-23  Bruno Haible  <bruno@clisp.org>
33486
33487         Avoid test link errors when the modules getopt-gnu, gettext are used.
33488         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33490
33491 2009-08-23  Bruno Haible  <bruno@clisp.org>
33492
33493         Fix getdtablesize() on mingw.
33494         * lib/getdtablesize.c (getdtablesize): Implement differently.
33495         * lib/unistd.in.h (getdtablesize): Improve comment.
33496
33497 2009-08-23  Bruno Haible  <bruno@clisp.org>
33498
33499         New module 'mkostemp'.
33500         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33501         * lib/stdlib.in.h (mksotemp): New declaration.
33502         * lib/mkostemp.c: New file, from glibc with modifications.
33503         * lib/tempname.h (GT_FILE): Remove outdated comment.
33504         (gen_tempname): Add flags argument.
33505         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33506         (__GT_FILE): Map to 1.
33507         (small_open, large_open): Remove macros.
33508         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33509         * lib/mkstemp.c (mkstemp): Update.
33510         * lib/mkdtemp.c (mkdtemp): Likewise.
33511         * m4/mkostemp.m4: New file.
33512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33513         HAVE_MKOSTEMP.
33514         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33515         HAVE_MKOSTEMP.
33516         * modules/mkostemp: New file, based on modules/mkstemp.
33517         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33518         * NEWS: Mention the change.
33519
33520 2009-08-23  Bruno Haible  <bruno@clisp.org>
33521
33522         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33523         Reported by Eric Blake.
33524
33525 2009-08-23  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33528         Reported by Eric Blake.
33529
33530 2009-08-23  Bruno Haible  <bruno@clisp.org>
33531
33532         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33533         * modules/pipe2 (Depends-on): Likewise.
33534
33535 2009-08-23  Eric Blake  <ebb9@byu.net>
33536
33537         fcntl-h: add O_TTY_INIT support
33538         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33539         * tests/test-fcntl-h.c (o): Test it.
33540         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33541
33542         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33543         * modules/fcntl: Move <fcntl.h> header replacement...
33544         * modules/fcntl-h: ...to new name, so as not to collide with
33545         like-named function.
33546         * tests/test-fcntl.c: Rename...
33547         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33548         * modules/fcntl-tests: Rename...
33549         * modules/fcntl-h-tests: ...to this.  Update test file name.
33550         * modules/chdir-long (Depends-on): Update clients.
33551         * modules/chdir-safer (Depends-on): Likewise.
33552         * modules/fcntl-safer (Depends-on): Likewise.
33553         * modules/fts (Depends-on): Likewise.
33554         * modules/mkancesdirs (Depends-on): Likewise.
33555         * modules/mkdir-p (Depends-on): Likewise.
33556         * modules/open (Depends-on): Likewise.
33557         * modules/savewd (Depends-on): Likewise.
33558         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33559         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33560
33561 2009-08-22  Bruno Haible  <bruno@clisp.org>
33562
33563         * modules/binary-io (License): Relicense under LGPL.
33564         * modules/pipe2 (License): Likewise.
33565
33566 2009-08-22  Bruno Haible  <bruno@clisp.org>
33567
33568         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33569         return value.
33570         * lib/pipe-filter-gi.c (filter_init): Likewise.
33571         Reported by Eric Blake.
33572
33573 2009-08-22  Bruno Haible  <bruno@clisp.org>
33574
33575         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33576         * modules/pipe (Depends-on): Add pipe2.
33577
33578 2009-08-22  Bruno Haible  <bruno@clisp.org>
33579
33580         Tests for module 'pipe2'.
33581         * modules/pipe2-tests: New file.
33582         * tests/test-pipe2.c: New file.
33583
33584         New module 'pipe2'.
33585         * lib/unistd.in.h (pipe2): New declaration.
33586         * lib/pipe2.c: New file.
33587         * m4/pipe2.m4: New file.
33588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33589         HAVE_PIPE2.
33590         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33591         * modules/pipe2: New file.
33592         * doc/glibc-functions/pipe2.texi: Mention the new module.
33593
33594 2009-08-22  Bruno Haible  <bruno@clisp.org>
33595
33596         Reference some new glibc functions.
33597         * doc/glibc-functions/accept4.texi: New file.
33598         * doc/glibc-functions/dup3.texi: New file.
33599         * doc/glibc-functions/mkostemp.texi: New file.
33600         * doc/glibc-functions/pipe2.texi: New file.
33601         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33602         (Glibc sys/socket.h): Refer to accept4.
33603         (Glibc unistd.h): Refer to dup3, pipe2.
33604         Reported by Eric Blake.
33605
33606 2009-08-22  Jim Meyering  <meyering@redhat.com>
33607             Bruno Haible  <bruno@clisp.org>
33608
33609         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33610         This makes it so packages using automake-1.11's silent-rules option
33611         can print e.g., a single "GEN    configmake.h" line, rather than
33612         the 30+ statements that perform the job.  If you want to see the
33613         actual commands, you can still run "make V=1".
33614         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33615         so that make output is abbreviated when those variables are defined
33616         appropriately.
33617         * modules/argz: Likewise.
33618         * modules/arpa_inet: Likewise.
33619         * modules/byteswap: Likewise.
33620         * modules/configmake: Likewise.
33621         * modules/dirent: Likewise.
33622         * modules/errno: Likewise.
33623         * modules/fcntl: Likewise.
33624         * modules/float: Likewise.
33625         * modules/fnmatch: Likewise.
33626         * modules/getopt-posix: Likewise.
33627         * modules/glob: Likewise.
33628         * modules/iconv_open: Likewise.
33629         * modules/inttypes: Likewise.
33630         * modules/localcharset: Likewise.
33631         * modules/locale: Likewise.
33632         * modules/math: Likewise.
33633         * modules/netdb: Likewise.
33634         * modules/netinet_in: Likewise.
33635         * modules/poll: Likewise.
33636         * modules/posix_spawnp-tests: Likewise.
33637         * modules/sched: Likewise.
33638         * modules/search: Likewise.
33639         * modules/selinux-h: Likewise.
33640         * modules/signal: Likewise.
33641         * modules/spawn: Likewise.
33642         * modules/stdarg: Likewise.
33643         * modules/stdbool: Likewise.
33644         * modules/stddef: Likewise.
33645         * modules/stdint: Likewise.
33646         * modules/stdio: Likewise.
33647         * modules/stdlib: Likewise.
33648         * modules/string: Likewise.
33649         * modules/strings: Likewise.
33650         * modules/sys_file: Likewise.
33651         * modules/sys_ioctl: Likewise.
33652         * modules/sys_select: Likewise.
33653         * modules/sys_socket: Likewise.
33654         * modules/sys_stat: Likewise.
33655         * modules/sys_time: Likewise.
33656         * modules/sys_times: Likewise.
33657         * modules/sys_utsname: Likewise.
33658         * modules/sys_wait: Likewise.
33659         * modules/sysexits: Likewise.
33660         * modules/time: Likewise.
33661         * modules/unistd: Likewise.
33662         * modules/wchar: Likewise.
33663         * modules/wctype: Likewise.
33664
33665 2009-08-22  Jim Meyering  <meyering@redhat.com>
33666
33667         announce-gen: detect write failure
33668         * build-aux/announce-gen: Add Coda at end.
33669         Remove equivalent-but-more-verbose block at top.
33670
33671 2009-08-19  Akim Demaille  <demaille@gostai.com>
33672
33673         bootstrap: --help to stdout.
33674         * bootstrap (usage): Don't send --help to stderr.
33675         Use a here doc instead of a long string.
33676
33677 2009-08-21  Eric Blake  <ebb9@byu.net>
33678
33679         test-popen-safer: split from test-popen
33680         * tests/test-popen.c (main): Move...
33681         * tests/test-popen.h: ...into new file.
33682         * tests/test-popen-safer2.c: New file.
33683         * modules/popen-tests (Files): Add test-popen.h.
33684         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33685         Suggested by Bruno Haible.
33686
33687         test-fcntl-safer: split from test-open
33688         * tests/test-open.c (main): Move...
33689         * tests/test-open.h: ...into new file.
33690         * tests/test-fcntl-safer.c: New file.
33691         * modules/open-tests (Files): Add test-open.h.
33692         * modules/fcntl-safer-tests: New file.
33693         Suggested by Bruno Haible.
33694
33695         test-fopen-safer: split from test-fopen
33696         * tests/test-fopen.c (main): Move...
33697         * tests/test-fopen.h: ...into new file.
33698         * tests/test-fopen-safer.c: New file.
33699         * modules/fopen-tests (Files): Add test-fopen.h.
33700         * modules/fopen-safer-tests: New file.
33701         Suggested by Bruno Haible.
33702
33703 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33704
33705         popen-safer: test O_CLOEXEC at run-time.
33706         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33707
33708 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33709
33710         fcntl: move more flags to the header
33711         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33712         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33713         * lib/fcntl.in.h: Do both things here.
33714
33715 2009-08-21  Jim Meyering  <meyering@redhat.com>
33716
33717         consistently remove $@-t before redirecting to it
33718         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33719         * modules/alloca-opt: Likewise.
33720         * modules/byteswap: Likewise.
33721         * modules/fnmatch: Likewise.
33722         * modules/getopt-posix: Likewise.
33723         * modules/glob: Likewise.
33724         * modules/poll: Likewise.
33725         * modules/posix_spawnp-tests: Likewise.
33726         * modules/sys_socket: Likewise.
33727         * modules/sysexits: Likewise.
33728
33729 2009-08-21  Eric Blake  <ebb9@byu.net>
33730
33731         popen: simplify access to original popen
33732         * lib/popen.c (rpl_popen): No need to worry about popen being a
33733         macro.
33734         Reported by Bruno Haible.
33735
33736 2009-08-20  Eric Blake  <ebb9@byu.net>
33737
33738         build: avoid some compiler warnings
33739         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33740         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33741         type.
33742         (new_exclude_segment, excluded_file_pattern_p)
33743         (excluded_file_name_p): Reduce scope.
33744         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33745         old-style declaration.
33746
33747 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33748
33749         * tests/test-exclude1.sh: Handle Windows EOL.
33750         * tests/test-exclude2.sh: Likewise.
33751         * tests/test-exclude3.sh: Likewise.
33752         * tests/test-exclude4.sh: Likewise.
33753         * tests/test-exclude5.sh: Likewise.
33754         * tests/test-exclude6.sh: Likewise.
33755         * tests/test-exclude7.sh: Likewise.
33756
33757 2009-08-19  Akim Demaille  <demaille@gostai.com>
33758
33759         bootstrap: find sha1sum when named gsha1sum.
33760         * bootstrap (find_tool): New.
33761         ($SHA1SUM): New.
33762         Use it.
33763
33764 2009-08-20  Jim Meyering  <meyering@redhat.com>
33765
33766         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33767         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33768         expression that converts "." in a file name to "\." in the resulting
33769         regexp.  Start with a dummy statement, so that prior shell variable
33770         definitions are expanded portably.  Reported by Simon Josefsson.
33771
33772 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33773
33774         Fix polling for writeability of a screen buffer.
33775         * lib/poll.c: Distinguish input and screen buffers for the
33776         Win32 implementation.
33777         * lib/select.c: Likewise.
33778
33779 2009-08-19  Eric Blake  <ebb9@byu.net>
33780
33781         popen-safer: prevent popen from clobbering std descriptors
33782         * modules/popen-safer: New file.
33783         * lib/popen-safer.c: Likewise.
33784         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33785         * lib/stdio--.h (popen): Provide override.
33786         * lib/stdio-safer.h (popen_safer): Provide declaration.
33787         * tests/test-popen.c (includes): Partially test this.
33788         * modules/popen-safer-tests: New file, for more tests.
33789         * tests/test-popen-safer.c: Likewise.
33790         * MODULES.html.sh (file stream based Input/Output): Mention it.
33791
33792         tests: test some of the *-safer modules
33793         * modules/fopen-safer (Depends-on): Add fopen.
33794         * modules/fcntl-safer (Depends-on): Add fcntl.
33795         * modules/stdlib-safer (Depends-on): Add stdlib.
33796         (configure.ac): Set indicator.
33797         * modules/unistd-safer (configure.ac): Likewise.
33798         * modules/tmpfile-safer (configure.ac): Likewise.
33799         (Depends-on): Add tmpfile.
33800         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33801         active.
33802         * tests/test-fopen.c (includes): Test safer versions when they are
33803         in use.
33804         * tests/test-open.c (includes): Likewise.
33805
33806         popen: fix cygwin 1.5 bug when stdin closed
33807         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33808         * modules/popen: New file.
33809         * modules/popen-tests: Likewise.
33810         * tests/test-popen.c: Likewise.
33811         * m4/popen.m4: Likewise.
33812         * lib/popen.c: Likewise.
33813         * lib/stdio.in.h (popen): New declaration.
33814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33815         * modules/stdio (Makefile.am): Likewise.
33816         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33817
33818 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33819
33820         maint.mk: give full control over update-copyright exclusions
33821         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33822         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33823         (update-copyright): Don't force inclusion of top-level
33824         ChangeLog.  Don't force exclusion of all COPYING files, but make
33825         them the default exclusion instead.
33826
33827 2009-08-16  Bruno Haible  <bruno@clisp.org>
33828
33829         Fix test failures on Solaris 10.
33830         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33831         tests when Solaris iconv() is used.
33832         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33833         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33834         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33835         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33836         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33837
33838 2009-08-16  Bruno Haible  <bruno@clisp.org>
33839
33840         Fix test failures on Solaris 10.
33841         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33842         'tr' program and pass it as first argument.
33843         * tests/test-pipe-filter-gi1.sh: Likewise.
33844         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33845         program as first argument.
33846         * tests/test-pipe-filter-gi1.c (main): Likewise.
33847
33848 2009-08-16  Eric Blake  <ebb9@byu.net>
33849
33850         fpurge: fix previous commits
33851         * modules/fpurge (Makefile.am): Make replacement conditional,
33852         partially reverting 2007-04-29 change; missed in previous
33853         attempt.
33854         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33855         is missing.
33856
33857 2009-08-16  Bruno Haible  <bruno@clisp.org>
33858
33859         Clarify fpurge's effect on the file position.
33860         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33861         * tests/test-fpurge.c (main): Make a second pass for checking the file
33862         position.
33863
33864 2009-08-16  Bruno Haible  <bruno@clisp.org>
33865
33866         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33867         declaration of fpurge is missing.
33868         * tests/test-fpurge.c (main): Check that the file has not more contents
33869         than expected. Close the file before removing it.
33870
33871 2009-08-15  Eric Blake  <ebb9@byu.net>
33872
33873         fpurge: don't wrap working cygwin implementation
33874         * lib/fpurge.c (fpurge): Fix comment typo.
33875         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33876         1.7 to avoid replacement.
33877         * tests/test-fpurge.c (main): Enhance test.
33878
33879 2009-08-15  Eric Blake  <ebb9@byu.net>
33880         and Jim Meyering  <meyering@redhat.com>
33881
33882         test-update-copyright: skip if perl is insufficient
33883         * tests/test-update-copyright.sh: Failure to run maintainer tool
33884         should not cause testsuite failure on cygwin 1.5.
33885
33886 2009-08-14  Eric Blake  <ebb9@byu.net>
33887
33888         doc: mention more functions added in cygwin 1.7.0
33889         * doc/posix-headers/limits.texi (limits.h): Update for recent
33890         cygwin additions.
33891         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33892         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33893         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33894         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33895         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33896
33897 2009-08-14  Eric Blake  <ebb9@byu.net>
33898
33899         maint.mk: simplify update-copyright rule
33900         * top/maint.mk (update-copyright-local): Delete, and document how
33901         to do it in cfg.mk instead.
33902         (update-copyright-exclude-regexp): Delete, and document how to do
33903         it in .x-update-copyright instead.
33904         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33905         exclude ChangeLog.
33906
33907 2009-08-14  Bruno Haible  <bruno@clisp.org>
33908
33909         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33910
33911 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33912
33913         maint.mk: support update-copyright-env
33914         * top/maint.mk (update-copyright-env): Define place-holder.
33915         (update-copyright): Expand $(update-copyright-env) before
33916         invoking update-copyright.
33917
33918 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33919
33920         update-copyright: implement forced reformatting
33921         * build-aux/update-copyright: Implement and document
33922         UPDATE_COPYRIGHT_FORCE.
33923         * tests/test-update-copyright.sh: Test it.
33924
33925 2009-08-14  Eric Blake  <ebb9@byu.net>
33926         and Bruno Haible  <bruno@clisp.org>
33927
33928         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33929         * tests/test-locale.c: Revert previous patch related to NULL.
33930         * tests/test-stdio.c: Likewise.
33931         * tests/test-stdlib.c: Likewise.
33932         * tests/test-string.c: Likewise.
33933         * tests/test-unistd.c: Likewise.
33934         * modules/time-tests (Depends-on): Add verify.
33935         * modules/wchar-tests (Depends-on): Likewise.
33936         * tests/test-time.c: Test for NULL compliance.
33937         * tests/test-wchar.c: Likewise.
33938         * modules/locale (Depends-on): Add stddef.
33939         * modules/stdio (Depends-on): Likewise.
33940         * modules/stdlib (Depends-on): Likewise.
33941         * modules/string (Depends-on): Likewise.
33942         * modules/time (Depends-on): Likewise.
33943         * modules/unistd (Depends-on): Likewise.
33944         * modules/wchar (Depends-on): Likewise.
33945         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33946         * lib/stdlib.in.h (includes): Likewise.
33947         * lib/string.in.h (includes): Likewise.
33948         * lib/time.in.h (includes): Likewise.
33949         * lib/unistd.in.h (includes): Likewise.
33950         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33951         replaced.
33952         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33953         * m4/stddef_h.m4: New file.
33954         * modules/stddef: Likewise.
33955         * lib/stddef.in.h: Likewise.
33956         * modules/stddef-tests: Likewise.
33957         * tests/test-stddef.c: Likewise.
33958         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33959         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33960         * doc/posix-headers/locale.texi (locale.h): Likewise.
33961         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33962         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33963         * doc/posix-headers/string.texi (string.h): Likewise.
33964         * doc/posix-headers/time.texi (time.h): Likewise.
33965         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33966         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33967
33968 2009-08-14  Eric Blake  <ebb9@byu.net>
33969
33970         doc: improve git diff of texinfo files
33971         * .gitattributes: Add rule for *.texi files, with hint on how to
33972         use it.
33973         Copied from m4, and based on a report by Bruno Haible.
33974
33975 2009-08-14  Bruno Haible  <bruno@clisp.org>
33976
33977         Disable multithread support by default on Cygwin 1.5.x for real.
33978         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33979
33980 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33981
33982         update-copyright: much ado about intervals
33983         * build-aux/update-copyright: Implement and document
33984         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33985         of copyright year intervals.
33986         Also, document UPDATE_COPYRIGHT_YEAR.
33987         * tests/test-update-copyright.sh: Test it.
33988
33989         update-copyright: convert 2-digit to 4-digit years
33990         * build-aux/update-copyright: Implement and document.
33991         * tests/test-update-copyright.sh: Update.
33992
33993 2009-08-14  Jim Meyering  <meyering@redhat.com>
33994
33995         test-exclude: avoid coreutils "make check" failure
33996         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33997         just as in test-argmatch.c.
33998
33999 2009-08-13  Eric Blake  <ebb9@byu.net>
34000
34001         test-dup2: fix bad assumption
34002         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34003         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34004
34005         test-version-etc: fix CRLF portability issue
34006         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34007         recognize \r.
34008         * tests/test-argp-version-etc-1.sh: Likewise.
34009
34010         getopt: update client modules
34011         * modules/argp (Depends-on): Use getopt-gnu.
34012         * modules/git-merge-changelog (Depends-on): Likewise.
34013         * modules/long-options (Depends-on): Likewise.
34014         * modules/xstrtol (Depends-on): Likewise.
34015
34016 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34017
34018         * tests/test-version-etc.sh: Don't fail on different
34019         project/version.  Don't fail on CRLF differences.  Rewrite to use
34020         multiple -e instead of multiple sed forks, suggested by Eric Blake
34021         <ebb9@byu.net>.
34022         * tests/test-argp-version-etc-1.sh: Likewise.
34023
34024 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34025
34026         * tests/test-version-etc.sh: Don't fail on different
34027         project/version.
34028
34029 2009-08-12  Bruno Haible  <bruno@clisp.org>
34030
34031         Tests for modules 'getopt-posix', 'getopt-gnu'.
34032         * modules/getopt-posix-tests: New file.
34033         * tests/test-getopt.c: New file.
34034         * tests/test-getopt.h: New file.
34035         * tests/test-getopt_long.h: New file.
34036
34037         New modules 'getopt-posix', 'getopt-gnu'.
34038         * modules/getopt-gnu: New file, renamed from modules/getopt.
34039         * modules/getopt-posix: New file.
34040         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34041         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34042         (gl_GETOPT): Remove macro.
34043         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34044         Disable the test against BSD systems that declare optreset. Test
34045         against mingw bug. Test against lack of support of optional arguments
34046         on many platforms.
34047         * doc/glibc-headers/getopt.texi: Update module name and list of
34048         relevant platforms.
34049         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34050         'getopt-gnu' and more portability problems.
34051         * NEWS: Mention the changes.
34052
34053 2009-08-12  Bruno Haible  <bruno@clisp.org>
34054
34055         Ensure that optarg etc. get declared by <unistd.h>.
34056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34057         AC_USE_SYSTEM_EXTENSIONS.
34058         * modules/getopt (Depends-on): Add 'extensions'.
34059
34060 2009-08-12  Bruno Haible  <bruno@clisp.org>
34061
34062         Avoid test link errors.
34063         * modules/pipe-filter-ii-tests (Makefile.am): Define
34064         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34065         * modules/pipe-filter-gi-tests (Makefile.am): Define
34066         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34068
34069 2009-08-12  Bruno Haible  <bruno@clisp.org>
34070
34071         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34072         gl_GETOPT_SUBSTITUTE before.
34073         (gl_GETOPT): Use it.
34074         * m4/argp.m4 (gl_ARGP): Update.
34075         Reported by Sergey Poznyakoff.
34076
34077         * m4/getopt.m4: Reorder macros.
34078         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34079         (gl_GETOPT_SUBSTITUTE): Remove macro.
34080
34081 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34082
34083         Minor improvement in gitlog-to-changelog
34084
34085         * build-aux/gitlog-to-changelog: New option `--format' makes
34086         output format string configurable.
34087
34088 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34089
34090         Optimize exclude: use hash tables for non-wildcard patterns.
34091
34092         * lib/exclude.c: Include hash.h and mbuiter.h
34093         (struct exclude_pattern, exclude_segment): New data types.
34094         (struct exclude): Rewrite.
34095         (fnmatch_pattern_has_wildcards): New function.
34096         (new_exclude_segment, free_exclude_segment): New functions.
34097         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34098         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34099         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34100         * modules/exclude: Depend on hash and mbuiter.
34101
34102         * modules/exclude-tests: New file.
34103         * tests/test-exclude.c: New file.
34104         * tests/test-exclude1.sh: New file.
34105         * tests/test-exclude2.sh: New file.
34106         * tests/test-exclude3.sh: New file.
34107         * tests/test-exclude4.sh: New file.
34108         * tests/test-exclude5.sh: New file.
34109         * tests/test-exclude6.sh: New file.
34110         * tests/test-exclude7.sh: New file.
34111
34112 2009-08-12  Bruno Haible  <bruno@clisp.org>
34113
34114         Ensure that getopt() gets declared by <unistd.h>.
34115         * lib/unistd.in.h: Conditionally include getopt.h.
34116         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34117         Set GNULIB_UNISTD_H_GETOPT.
34118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34119         GNULIB_UNISTD_H_GETOPT.
34120         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34121
34122 2009-08-12  Bruno Haible  <bruno@clisp.org>
34123
34124         Clarify logic.
34125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34126         gl_replace_getopt instead of GETOPT_H.
34127
34128 2009-08-12  Bruno Haible  <bruno@clisp.org>
34129
34130         * m4/getopt.m4: Add comments.
34131
34132 2009-08-12  Bruno Haible  <bruno@clisp.org>
34133
34134         Disable multithread support by default on Cygwin 1.5.x.
34135         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34136         set gl_use_threads=no if not specified otherwise.
34137
34138 2009-08-11  Bruno Haible  <bruno@clisp.org>
34139
34140         Avoid compilation error on NetBSD 5.0.
34141         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34142         * tests/test-stdio.c: Likewise.
34143         * tests/test-stdlib.c: Likewise.
34144         * tests/test-string.c: Likewise.
34145         * tests/test-unistd.c: Likewise.
34146         Reported by Greg Troxel <gdt@ir.bbn.com>
34147         at <https://savannah.gnu.org/support/?106973>.
34148
34149 2009-08-11  Bruno Haible  <bruno@clisp.org>
34150
34151         * modules/dup2-tests (Depends-on): Remove close.
34152
34153         Undo 2009-07-19 commit.
34154         * modules/acl-tests (Depends-on): Remove close.
34155         * modules/binary-io-tests (Depends-on): Likewise.
34156         * modules/closein-tests (Depends-on): Likewise.
34157         * modules/flock-tests (Depends-on): Likewise.
34158         * modules/fsync-tests (Depends-on): Likewise.
34159         * modules/lseek-tests (Depends-on): Likewise.
34160         * modules/pipe-tests (Depends-on): Likewise.
34161         * modules/posix_spawn-tests (Depends-on): Likewise.
34162         * modules/posix_spawnp-tests (Depends-on): Likewise.
34163         * modules/stat-time-tests (Depends-on): Likewise.
34164         * modules/yesno-tests (Depends-on): Likewise.
34165
34166 2009-08-10  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34169
34170 2009-08-10  Bruno Haible  <bruno@clisp.org>
34171
34172         Fix a gcc warning.
34173         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34174
34175 2009-08-10  Bruno Haible  <bruno@clisp.org>
34176
34177         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34178         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34179         not only the first time.
34180         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34181         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34182         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34183         is 1, not only the the first time.
34184
34185 2009-08-10  Bruno Haible  <bruno@clisp.org>
34186
34187         Make it possible to use module 'gethostname' without module 'close'.
34188         * lib/unistd.in.h (close): Evoke a link error only if
34189         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34191         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34192         * modules/unistd (Makefile.am): Substitute
34193         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34194         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34195         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34196         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34197         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34198         * modules/sys_ioctl (Makefile.am): Substitute
34199         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34200         * modules/socket (configure.ac): On native Windows, set
34201         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34202         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34203         Reported by Sam Steingold <sds@gnu.org>.
34204
34205 2009-08-10  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34208         * modules/ioctl (configure.ac): Likewise.
34209
34210 2009-08-10  Bruno Haible  <bruno@clisp.org>
34211
34212         Avoid collision between gnulib wrapper and libintl wrapper.
34213         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34214         already defined in intl/printf.c.
34215         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34216         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34217
34218 2009-08-09  Bruno Haible  <bruno@clisp.org>
34219
34220         Make <sys/select.h> really self-contained, also on Solaris 10.
34221         * lib/sys_select.in.h: Include <string.h>.
34222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34223         Solaris 10 problem.
34224         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34225         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34226         Reported by Jim Meyering.
34227
34228 2009-08-09  Bruno Haible  <bruno@clisp.org>
34229
34230         Avoid warnings from 'aclocal' that are due to a use of macro name
34231         AM_XGETTEXT_OPTION that is not defined in automake.
34232         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34233         automake.
34234         * modules/error (configure.ac): Likewise.
34235         * modules/propername (configure.ac): Likewise.
34236         * modules/vasprintf (configure.ac): Likewise.
34237         * modules/verror (configure.ac): Likewise.
34238         * modules/xprintf (configure.ac): Likewise.
34239         * modules/xvasprintf (configure.ac): Likewise.
34240
34241 2009-08-08  Bruno Haible  <bruno@clisp.org>
34242
34243         Avoid compilation error in C++ mode.
34244         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34245         Reported by Sam Steingold <sds@gnu.org>.
34246
34247 2009-08-08  Bruno Haible  <bruno@clisp.org>
34248
34249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34250         for the various Unix platforms.
34251         * doc/posix-headers/limits.texi: Update platforms list regarding
34252         HOST_NAME_MAX.
34253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34254
34255 2009-08-07  Jim Meyering  <meyering@redhat.com>
34256
34257         selinux-at: fix typo in a comment
34258         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34259         Spotted by Paolo Bonzini.
34260
34261         selinux-at: remove redundant m4 code, add documentation
34262         * modules/selinux-at (configure.ac): Remove redundant code.
34263         LIB_SELINUX is already set via the dependent module, selinux-h.
34264         (Include): Add quotes around selinux-at.h.
34265         * lib/selinux-at.h: Add documentation.
34266         Reported by Bruno Haible in
34267         http://marc.info/?l=gnulib-bug&m=124958988300749
34268
34269 2009-08-07  Bruno Haible  <bruno@clisp.org>
34270
34271         Avoid link error on MacOS X 10.3 and 10.4.
34272         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34273         on non-ELF systems.
34274         * lib/argp-pv.c (argp_program_version): Likewise.
34275         Reported by Simon Josefsson.
34276
34277 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34278
34279         * tests/test-version-etc.sh: Use $EXEEXT.
34280
34281 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34282
34283         update-copyright: update documentation to point to maint.mk
34284         * build-aux/update-copyright: Here.
34285
34286 2009-08-06  Jim Meyering  <meyering@redhat.com>
34287
34288         maint.mk: support update-copyright-local
34289         * top/maint.mk (update-copyright-local): Define place-holder.
34290         (update-copyright): Depend on $(update-copyright-local).
34291
34292 2009-08-06  Jim Meyering  <meyering@redhat.com>
34293
34294         selinux-at: new module
34295         Initially written for coreutils, this module will soon be
34296         used by findutils, too.
34297         * MODULES.html.sh [Misc]: Add selinux-at.
34298         * lib/selinux-at.h: New file, from coreutils.
34299         * lib/selinux-at.c: Likewise.
34300         * modules/selinux-at: Likewise.
34301         (License): Change from LGPL to GPL, since it depends
34302         on the GPL'd openat module.
34303
34304         doc: update README
34305         * README: Remove references to cogito.
34306         Remove cvs-repo-updating instructions from 2007.
34307         Don't imply that CVS is better if you have limited disk space.
34308
34309 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34310
34311         update-copyright: support C-style comments
34312         * build-aux/update-copyright: Implement and document.
34313         * tests/test-update-copyright.sh: Test.
34314
34315 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34316
34317         update-copyright: support omitted "(C)"
34318         * build-aux/update-copyright: Implement and document.  Also,
34319         allow variable whitespace before "(C)".
34320         * tests/test-update-copyright.sh: Test.
34321
34322 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34323
34324         update-copyright: don't trip on non-FSF copyright statements
34325         * build-aux/update-copyright: Fix so that the first correctly
34326         formatted FSF copyright statement is recognized no matter what
34327         appears before it.  Update documentation.
34328         * tests/test-update-copyright.sh: Test that.
34329
34330 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34331
34332         update-copyright: clean up code a little
34333         * build-aux/update-copyright: Append "_re" to the name of any
34334         variable holding a regular expression.
34335         Replace "old" and "new" with "stmt" in variable names.
34336         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34337         handled correctly.
34338         Format code more consistently.
34339
34340 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34341
34342         update-copyright-tests: improve portability
34343         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34344         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34345
34346 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34347
34348         update-copyright: support @copyright{} and &copy;
34349         * build-aux/update-copyright: Implement and document.
34350         * tests/test-update-copyright.sh: Test.
34351
34352 2009-08-04  Jim Meyering  <meyering@redhat.com>
34353
34354         update-copyright-tests: correctly test EOL=\r\n handling
34355         * tests/test-update-copyright.sh: Put \r at the end of some lines
34356         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34357
34358         maint.mk: make update-copyright exclusion list more configurable
34359         * top/maint.mk (update-copyright): Default to excluding COPYING,
34360         but allow an override, in case someone does want to update that file.
34361
34362         maint.mk: don't update copyright date in COPYING
34363         * top/maint.mk (update-copyright): Exclude COPYING.
34364
34365         maint.mk: add a copyright-updating rule
34366         * top/maint.mk (update-copyright): New rule.
34367         Derived from coreutils/Makefile.am.
34368
34369         update-copyright: rename some variables
34370         * build-aux/update-copyright: Rename a few variables for clarity.
34371         Tweak syntax.  List Joel E. Denny as coauthor.
34372
34373 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34374
34375         update-copyright: fix bug for 2-digit last year and add tests
34376         * build-aux/update-copyright: Fix bug.
34377         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34378         specified.
34379         * modules/update-copyright-tests: New
34380         * tests/test-update-copyright.sh: New.
34381
34382 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34383
34384         update-copyright: handle leading tabs in line prefix
34385         * build-aux/update-copyright: Count leading tabs as 8 spaces
34386         when computing margin.  This helps with the formatting of
34387         ChangeLogs, for example.
34388         Fix documentation a little.
34389
34390 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34391
34392         update-copyright: support EOL=\r\n
34393         * build-aux/update-copyright: Implement that.
34394
34395 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34396
34397         update-copyright: automatically format copyright statements
34398         * build-aux/update-copyright: Implement that.
34399         Also, be a little more predictable and safer by always failing
34400         when the full copyright format is not perfectly recognized as an
34401         unbroken whole.  Discussed at
34402         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34403         Rewrite documentation.
34404
34405 2009-08-03  Bruno Haible  <bruno@clisp.org>
34406
34407         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34408
34409 2009-08-02  Bruno Haible  <bruno@clisp.org>
34410
34411         Tests for module 'uname'.
34412         * modules/uname-tests: New file.
34413         * tests/test-uname.c: New file.
34414
34415         New module 'uname'.
34416         * lib/uname.c: New file.
34417         * m4/uname.m4: New file.
34418         * modules/uname: New file.
34419         * doc/posix-functions/uname.texi: Mention the new module.
34420
34421 2009-08-02  Bruno Haible  <bruno@clisp.org>
34422
34423         Tests for module 'sys_utsname'.
34424         * modules/sys_utsname-tests: New file.
34425         * tests/test-sys_utsname.c: New file.
34426
34427         New module 'sys_utsname'.
34428         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34429         * m4/sys_utsname_h.m4: New file.
34430         * modules/sys_utsname: New file.
34431         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34432
34433 2009-08-02  Bruno Haible  <bruno@clisp.org>
34434
34435         Implicitly initialize the sockets library.
34436         * lib/gethostname.c: Include sockets.h.
34437         (rpl_gethostname): Invoke gl_sockets_startup.
34438         * lib/socket.c: Include sockets.h.
34439         (rpl_socket): Invoke gl_sockets_startup.
34440         * modules/gethostname (Depends-on): Add sockets.
34441         * modules/socket (Depends-on): Likewise.
34442         * tests/test-poll.c: Don't include sockets.h.
34443         (main): Don't invoke gl_sockets_startup.
34444         * tests/test-select.c: Don't include sockets.h.
34445         (main): Don't invoke gl_sockets_startup.
34446
34447 2009-08-02  Bruno Haible  <bruno@clisp.org>
34448
34449         Allow multiple calls to gl_sockets_startup.
34450         * lib/sockets.c (initialized_sockets_version): New variable.
34451         (gl_sockets_startup): Do nothing if already called for this or a higher
34452         version.
34453         (gl_sockets_cleanup): Reset initialized_sockets_version.
34454
34455 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34456
34457         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34458         different project/version.
34459
34460 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34461             Bruno Haible  <bruno@clisp.org>
34462
34463         Tests for module 'pipe-filter-gi'.
34464         * modules/pipe-filter-gi-tests: New file.
34465         * tests/test-pipe-filter-gi1.sh: New file.
34466         * tests/test-pipe-filter-gi1.c: New file.
34467         * tests/test-pipe-filter-gi2.sh: New file.
34468         * tests/test-pipe-filter-gi2-main.c: New file.
34469         * tests/test-pipe-filter-gi2-child.c: New file.
34470
34471         New module 'pipe-filter-gi'.
34472         * lib/pipe-filter-gi.c: New file.
34473         * modules/pipe-filter-gi: New file.
34474
34475 2009-08-02  Bruno Haible  <bruno@clisp.org>
34476             Paolo Bonzini  <bonzini@gnu.org>
34477
34478         Tests for module 'pipe-filter-ii'.
34479         * modules/pipe-filter-ii-tests: New file.
34480         * tests/test-pipe-filter-ii1.sh: New file.
34481         * tests/test-pipe-filter-ii1.c: New file.
34482         * tests/test-pipe-filter-ii2.sh: New file.
34483         * tests/test-pipe-filter-ii2-main.c: New file.
34484         * tests/test-pipe-filter-ii2-child.c: New file.
34485
34486         New module 'pipe-filter-ii'.
34487         * lib/pipe-filter.h: New file.
34488         * lib/pipe-filter-ii.c: New file.
34489         * lib/pipe-filter-aux.h: New file.
34490         * modules/pipe-filter-ii: New file.
34491
34492 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34493
34494         * lib/gc-libgcrypt.c: Change copyright to FSF.
34495         * lib/gc-gnulib.c: Likewise.
34496
34497 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34498
34499         * lib/gethostname.c: Include limits.h.
34500
34501 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34502             Bruno Haible  <bruno@clisp.org>
34503
34504         Ensure HOST_NAME_MAX as part of the gethostname module.
34505         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34506         define also HOST_NAME_MAX.
34507         * tests/test-gethostname.c: Include <limits.h>.
34508         (main): Check also HOST_NAME_MAX.
34509         * doc/posix-headers/limits.texi: Document the mingw problem.
34510
34511 2009-08-02  Bruno Haible  <bruno@clisp.org>
34512
34513         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34514         Add comments.
34515
34516 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34517
34518         * lib/gethostname.c: Add Windows wrapper.
34519         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34520         * modules/gethostname: Depend on sys_socket & errno, for also
34521         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34522         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34523
34524 2009-07-31  Jim Meyering  <meyering@redhat.com>
34525
34526         getloadavg: fix symbol name in comment
34527         * lib/getloadavg.c: Correct a typo I introduced when adding
34528         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34529         Matt Kraai spotted the problem.
34530
34531 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34532
34533         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34534         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34535         code also if ! defined N_NAME_POINTER.
34536         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34537         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34538         but the n_name member is a 12-byte array.
34539
34540 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34541
34542         update-copyright: generalize comment handling
34543         * build-aux/update-copyright: Handle copyright statements
34544         within more comment styles.
34545         Document usage.
34546         Report any file with an external copyright holder or parse failure.
34547
34548 2009-07-29  Jim Meyering  <meyering@redhat.com>
34549
34550         mktime: correct setting of REPLACE_MKTIME
34551         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34552
34553         update-copyright: new module
34554         * modules/update-copyright: New file.
34555         * build-aux/update-copyright: New file.
34556         * MODULES.html.sh (maint+release support): Add update-copyright.
34557
34558 2009-07-27  Bruno Haible  <bruno@clisp.org>
34559
34560         Fix compilation error when <ctime> is used and mktime is replaced.
34561         * lib/time.in.h (mktime): New declaration.
34562         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34563         REPLACE_MKTIME instead of defining mktime in config.h.
34564         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34565         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34566         Reported by Ross McFarland <rwmcfa1@neces.com>.
34567
34568 2009-07-27  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34571         Reported by Matt Kraai <mkraai@beckman.com>.
34572
34573 2009-07-25  Jim Meyering  <meyering@redhat.com>
34574
34575         maint.mk: avoid warnings about missing files
34576         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34577         diagnostic when .prev-version does not exist.
34578         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34579         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34580         nonexistent cfg.mk.
34581         Suggestions from Simon Josefsson.
34582
34583 2009-07-25  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34586         defined as macros. Needed on QNX 6.4.1.
34587         Reported by Matt Kraai <mkraai@beckman.com>.
34588
34589 2009-07-23  Jim Meyering  <meyering@redhat.com>
34590
34591         maint.mk: invoke "make dist" with a working value of XZ_OPT
34592         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34593
34594 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34595
34596         Make fseeko.c compile on QNX.
34597         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34598
34599 2009-07-22  Peter Simons  <simons@cryp.to>
34600
34601         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34602         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34603         * lib/md4.h: Likewise.
34604         * lib/md5.h: Likewise.
34605         * lib/sha1.h: Likewise.
34606         * lib/sha256.h: Likewise.
34607         * lib/sha512.h: Likewise.
34608
34609         tests-sha1: don't assign literal string to 'char *' variable
34610         * tests/test-sha1.c (main): Declare locals with "const" to match
34611         attributes of the right hand side.
34612
34613 2009-07-21  Eric Blake  <ebb9@byu.net>
34614
34615         dup2: fix more mingw problems
34616         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34617         fd to itself.
34618         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34619         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34620         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34621         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34622         care of mingw bugs.
34623
34624 2009-07-21  Jim Meyering  <meyering@redhat.com>
34625
34626         vc-list-files: avoid failure when /bin/sh is dash
34627         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34628         On some Debian based systems, /bin/sh is a symlink to dash, and running
34629         this command would omit the "/" following each 'tests' prefix:
34630           dash -x build-aux/vc-list-files -C . tests
34631         That is because bash and dash work differently:
34632           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34633           bash ok
34634           dash odd
34635
34636 2009-07-21  Eric Blake  <ebb9@byu.net>
34637
34638         dup2-tests: test previous patch
34639         * modules/dup2-tests: New file.
34640         * tests/test-dup2.c: Likewise.
34641         * tests/test-open.c (main): Avoid unspecified behavior.
34642         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34643         test.
34644
34645         dup2: work around mingw and cygwin 1.5 bug
34646         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34648         * modules/unistd (Makefile.am): Substitute it.
34649         * lib/unistd.in.h (dup2): Declare the replacement.
34650         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34651         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34652         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34653         * modules/execute (Depends-on): Add dup2.
34654         * modules/fseterr (Depends-on): Likewise.
34655         * modules/pipe (Depends-on): Likewise.
34656         * modules/posix_spawn-internal (Depends-on): Likewise.
34657
34658 2009-07-21  Bruno Haible  <bruno@clisp.org>
34659
34660         * modules/.gitattributes: New file.
34661
34662 2009-07-20  Bruno Haible  <bruno@clisp.org>
34663
34664         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34665         (main): Use it.
34666
34667 2009-07-20  Eric Blake  <ebb9@byu.net>
34668
34669         test-pipe: make a bit more robust.
34670         * tests/test-pipe.c (myerr): Allow error messages regardless of
34671         what we do to stderr.
34672         (test_pipe): Rearrange to avoid deadlock.
34673         (child_main): Try a larger read, to ensure we avoided deadlock.
34674         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34675         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34676         if misused.
34677
34678 2009-07-19  Jim Meyering  <meyering@redhat.com>
34679
34680         fts: avoid false-positive cycle-detection
34681         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34682         for each new command line argument.
34683
34684 2009-07-19  Bruno Haible  <bruno@clisp.org>
34685
34686         Fix build error on mingw with the modules sys_select and unistd.
34687         * modules/acl-tests (Depends-on): Add close.
34688         * modules/binary-io-tests (Depends-on): Likewise.
34689         * modules/closein-tests (Depends-on): Likewise.
34690         * modules/flock-tests (Depends-on): Likewise.
34691         * modules/fsync-tests (Depends-on): Likewise.
34692         * modules/lseek-tests (Depends-on): Likewise.
34693         * modules/pipe-tests (Depends-on): Likewise.
34694         * modules/posix_spawn-tests (Depends-on): Likewise.
34695         * modules/posix_spawnp-tests (Depends-on): Likewise.
34696         * modules/stat-time-tests (Depends-on): Likewise.
34697         * modules/yesno-tests (Depends-on): Likewise.
34698
34699 2009-07-19  Bruno Haible  <bruno@clisp.org>
34700
34701         Unify conditionals.
34702         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34703         macros, not at the compiler macros.
34704         * lib/pipe.c: Likewise.
34705         * lib/execute.c: Likewise.
34706         * lib/spawni.c: Likewise.
34707
34708 2009-07-19  Bruno Haible  <bruno@clisp.org>
34709
34710         Fix handling of closed stdin/stdout/stderr on mingw.
34711         * lib/w32spawn.h: Include unistd.h.
34712         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34713         file descriptor with O_NOINHERIT flag.
34714         (fd_safer_noinherit): New function, based on fd-safer.c.
34715         (dup_safer_noinherit): New function, based on dup-safer.c.
34716         (undup_safer_noinherit): New function.
34717         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34718         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34719         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34720         instead of fd_safer.
34721         * tests/test-pipe.c: Include <windows.h>.
34722         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34723         result.
34724
34725         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34726         from main.
34727         (test_pipe): Pass an extra argument for disambiguation.
34728         (main): Invoke parent_main or child_main.
34729
34730         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34731         consistently.
34732
34733 2009-07-18  Eric Blake  <ebb9@byu.net>
34734
34735         test-pipe: fix mingw build
34736         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34737
34738 2009-07-18  Bruno Haible  <bruno@clisp.org>
34739
34740         * modules/pipe-tests (Makefile.am): Fix typo.
34741
34742 2009-07-18  Eric Blake  <ebb9@byu.net>
34743
34744         error: fix mingw build
34745         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34746         Reported by Bruno Haible.
34747
34748         error: avoid undefined use of stdout
34749         * lib/error.c (error, error_at_line): Check that fd 1 is open
34750         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34751         is handling faults and the close_stdout module wants to report the
34752         detection of closed stdout as an error.
34753
34754 2009-07-17  Eric Blake  <ebb9@byu.net>
34755
34756         pipe: be robust in face of closed fds
34757         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34758         should cause child to misbehave.
34759         * modules/pipe-tests: New module.
34760         * tests/test-pipe.c: New file.
34761         * tests/test-pipe.sh: New file.
34762         Reported by Akim Demaille.
34763
34764 2009-07-14  Bruno Haible  <bruno@clisp.org>
34765
34766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34767         Reported by anonymous kc.
34768
34769 2009-07-07  Jim Meyering  <meyering@redhat.com>
34770
34771         maint.mk: don't look for translatable strings in *.m4 or *.mk
34772         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34773         when searching for translatable strings.
34774
34775 2009-07-05  Jim Meyering  <meyering@redhat.com>
34776
34777         remove superfluous parentheses in STREQ definition
34778         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34779         * lib/getugroups.c (STREQ): Likewise.
34780         * lib/fnmatch.c (STREQ): Likewise.
34781         Spotted by Bruno Haible.
34782
34783 2009-07-04  Jim Meyering  <meyering@redhat.com>
34784
34785         argv-iter: new module
34786         * MODULES.html.sh: Add argv-iter.
34787         * lib/argv-iter.c, lib/argv-iter.h: New files.
34788         * modules/argv-iter: New file.
34789         * modules/argv-iter-tests: New file.
34790         * tests/test-argv-iter.c: Test it.
34791
34792 2009-07-04  Bruno Haible  <bruno@clisp.org>
34793
34794         Fix assertion.
34795         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34796         contains more exact copies of a given entry than file2, leave the extra
34797         copies unpaired rather than aborting.
34798         Reported by Eric Blake.
34799
34800 2009-07-02  Bruno Haible  <bruno@clisp.org>
34801
34802         Speedup git-merge-changelog for git cherry-pick.
34803         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34804         (entries_mapping_get): New function, extracted from compute_mapping.
34805         (entries_mapping_reverse_get): New function.
34806         (compute_mapping): Add a 'full' argument. Return the result in a
34807         'struct entries_mapping'.
34808         (main): Update. Access the mappings through entries_mapping_get.
34809         Reported by Eric Blake.
34810
34811 2009-07-02  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34814         best_i.
34815
34816 2009-07-02  Bruno Haible  <bruno@clisp.org>
34817
34818         Speed up approximate search for matching ChangeLog entries.
34819         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34820         argument. Call fstrcmp_bounded instead of fstrcmp.
34821         (compute_mapping, try_split_merged_entry, main): Update callers.
34822
34823 2009-07-02  Bruno Haible  <bruno@clisp.org>
34824
34825         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34826
34827 2009-06-30  Bruno Haible  <bruno@clisp.org>
34828
34829         Reduce the number of uc_is_cased calls.
34830         * lib/unicase.h (casing_suffix_context_t): Add
34831         'first_char_except_ignorable' field.
34832         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34833         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34834         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34835         Update initializer.
34836         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34837         case-ignorable characters.
34838         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34839         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34840         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34841         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34842         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34843
34844 2009-06-30  Bruno Haible  <bruno@clisp.org>
34845
34846         Tests for module 'unicase/ignorable'.
34847         * modules/unicase/ignorable-tests: New file.
34848         * tests/unicase/test-ignorable.c: New file, generated by
34849         gen-uni-tables.
34850
34851         Tests for module 'unicase/cased'.
34852         * modules/unicase/cased-tests: New file.
34853         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34854         * tests/unicase/test-predicate-part1.h: New file, derived from
34855         tests/unictype/test-predicate-part1.h.
34856         * tests/unicase/test-predicate-part2.h: New file, same as
34857         tests/unictype/test-predicate-part2.h.
34858
34859         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34860         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34861         (output_casing_properties): New function.
34862         (main): Call it.
34863         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34864         * lib/unicase/cased.c: Include unictype/bitmap.h.
34865         (uc_is_cased): Define through a bitmap lookup.
34866         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34867         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34868         (uc_is_case_ignorable): Define through a bitmap lookup.
34869         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34870         lib/unictype/bitmap.h.
34871         (Depends-on): Add inline. Clean up.
34872         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34873         lib/unictype/bitmap.h.
34874         (Depends-on): Add inline. Clean up.
34875         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34876         recognition.
34877         * tests/unicase/test-u16-tolower.c (main): Likewise.
34878         * tests/unicase/test-u32-tolower.c (main): Likewise.
34879
34880 2009-06-30  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34883         * lib/unicase/u16-casemap.c: Likewise.
34884         * lib/unicase/u32-casemap.c: Likewise.
34885
34886 2009-06-29  Bruno Haible  <bruno@clisp.org>
34887
34888         Define u32_casefold as a wrapper around u32_ct_casefold.
34889         * lib/unicase/u32-casefold.c: Update.
34890         * modules/unicase/u32-casefold (Depends-on): Add
34891         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34892         unicase/empty-suffix-context. Clean up.
34893
34894         Define u16_casefold as a wrapper around u16_ct_casefold.
34895         * lib/unicase/u16-casefold.c: Update.
34896         * modules/unicase/u16-casefold (Depends-on): Add
34897         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34898         unicase/empty-suffix-context. Clean up.
34899
34900         Define u8_casefold as a wrapper around u8_ct_casefold.
34901         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34902         * lib/unicase/u8-casefold.c: Update.
34903         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34904         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34905
34906         Define u32_totitle as a wrapper around u32_ct_totitle.
34907         * lib/unicase/u32-totitle.c: Update.
34908         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34909         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34910
34911         Define u16_totitle as a wrapper around u16_ct_totitle.
34912         * lib/unicase/u16-totitle.c: Update.
34913         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34914         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34915
34916         Define u8_totitle as a wrapper around u8_ct_totitle.
34917         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34918         functions.
34919         (FUNC): Delegate to U_CT_TOTITLE.
34920         * lib/unicase/u8-totitle.c: Update.
34921         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34922         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34923
34924         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34925         invocation.
34926         * modules/unicase/u32-tolower (Depends-on): Add
34927         unicase/empty-prefix-context, unicase/empty-suffix-context.
34928
34929         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34930         invocation.
34931         * modules/unicase/u16-tolower (Depends-on): Add
34932         unicase/empty-prefix-context, unicase/empty-suffix-context.
34933
34934         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34935         * modules/unicase/u8-tolower (Depends-on): Add
34936         unicase/empty-prefix-context, unicase/empty-suffix-context.
34937
34938         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34939         invocation.
34940         * modules/unicase/u32-toupper (Depends-on): Add
34941         unicase/empty-prefix-context, unicase/empty-suffix-context.
34942
34943         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34944         invocation.
34945         * modules/unicase/u16-toupper (Depends-on): Add
34946         unicase/empty-prefix-context, unicase/empty-suffix-context.
34947
34948         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34949         * modules/unicase/u8-toupper (Depends-on): Add
34950         unicase/empty-prefix-context, unicase/empty-suffix-context.
34951
34952         New module 'unicase/u32-ct-casefold'.
34953         * lib/unicase/u32-ct-casefold.c: New file.
34954         * modules/unicase/u32-ct-casefold: New file.
34955
34956         New module 'unicase/u16-ct-casefold'.
34957         * lib/unicase/u16-ct-casefold.c: New file.
34958         * modules/unicase/u16-ct-casefold: New file.
34959
34960         New module 'unicase/u8-ct-casefold'.
34961         * lib/unicase/u8-ct-casefold.c: New file.
34962         * lib/unicase/u-ct-casefold.h: New file, derived from
34963         lib/unicase/u-casefold.h.
34964         * modules/unicase/u8-ct-casefold: New file.
34965
34966         New module 'unicase/u32-ct-totitle'.
34967         * lib/unicase/u32-ct-totitle.c: New file.
34968         * modules/unicase/u32-ct-totitle: New file.
34969
34970         New module 'unicase/u16-ct-totitle'.
34971         * lib/unicase/u16-ct-totitle.c: New file.
34972         * modules/unicase/u16-ct-totitle: New file.
34973
34974         New module 'unicase/u8-ct-totitle'.
34975         * lib/unicase/u8-ct-totitle.c: New file.
34976         * lib/unicase/u-ct-totitle.h: New file, derived from
34977         lib/unicase/u-totitle.h.
34978         * modules/unicase/u8-ct-totitle: New file.
34979
34980         New module 'unicase/u32-ct-tolower'.
34981         * lib/unicase/u32-ct-tolower.c: New file.
34982         * modules/unicase/u32-ct-tolower: New file.
34983
34984         New module 'unicase/u16-ct-tolower'.
34985         * lib/unicase/u16-ct-tolower.c: New file.
34986         * modules/unicase/u16-ct-tolower: New file.
34987
34988         New module 'unicase/u8-ct-tolower'.
34989         * lib/unicase/u8-ct-tolower.c: New file.
34990         * modules/unicase/u8-ct-tolower: New file.
34991
34992         New module 'unicase/u32-ct-toupper'.
34993         * lib/unicase/u32-ct-toupper.c: New file.
34994         * modules/unicase/u32-ct-toupper: New file.
34995
34996         New module 'unicase/u16-ct-toupper'.
34997         * lib/unicase/u16-ct-toupper.c: New file.
34998         * modules/unicase/u16-ct-toupper: New file.
34999
35000         New module 'unicase/u8-ct-toupper'.
35001         * lib/unicase/u8-ct-toupper.c: New file.
35002         * modules/unicase/u8-ct-toupper: New file.
35003
35004         Add context arguments to u*_casemap functions.
35005         * lib/unicase/unicasemap.h: Include unicase.h.
35006         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35007         suffix_context arguments.
35008         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35009         functions.
35010         (FUNC): Add prefix_context and suffix_context arguments. Use
35011         uc_is_cased and uc_is_case_ignorable.
35012         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35013         * lib/unicase/u16-casemap.c: Likewise.
35014         * lib/unicase/u32-casemap.c: Likewise.
35015         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35016         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35017         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35018         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35019         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35020         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35021
35022         New module 'unicase/u32-suffix-context'.
35023         * lib/unicase/u32-suffix-context.c: New file.
35024         * modules/unicase/u32-suffix-context: New file.
35025
35026         New module 'unicase/u16-suffix-context'.
35027         * lib/unicase/u16-suffix-context.c: New file.
35028         * modules/unicase/u16-suffix-context: New file.
35029
35030         New module 'unicase/u8-suffix-context'.
35031         * lib/unicase/u8-suffix-context.c: New file.
35032         * lib/unicase/u-suffix-context.h: New file.
35033         * modules/unicase/u8-suffix-context: New file.
35034
35035         New module 'unicase/empty-suffix-context'.
35036         * lib/unicase/empty-suffix-context.c: New file.
35037         * modules/unicase/empty-suffix-context: New file.
35038
35039         New module 'unicase/u32-prefix-context'.
35040         * lib/unicase/u32-prefix-context.c: New file.
35041         * modules/unicase/u32-prefix-context: New file.
35042
35043         New module 'unicase/u16-prefix-context'.
35044         * lib/unicase/u16-prefix-context.c: New file.
35045         * modules/unicase/u16-prefix-context: New file.
35046
35047         New module 'unicase/u8-prefix-context'.
35048         * lib/unicase/u8-prefix-context.c: New file.
35049         * lib/unicase/u-prefix-context.h: New file.
35050         * lib/unicase/context.h: New file.
35051         * modules/unicase/u8-prefix-context: New file.
35052
35053         New module 'unicase/empty-prefix-context'.
35054         * lib/unicase/empty-prefix-context.c: New file.
35055         * modules/unicase/empty-prefix-context: New file.
35056
35057         New module 'unicase/ignorable'.
35058         * lib/unicase/ignorable.c: New file.
35059         * modules/unicase/ignorable: New file.
35060
35061         New module 'unicase/cased'.
35062         * lib/unicase/caseprop.h: New file.
35063         * lib/unicase/cased.c: New file.
35064         * modules/unicase/cased: New file.
35065
35066         New functions for case mapping of substrings.
35067         * lib/unicase.h (casing_prefix_context_t): New type.
35068         (unicase_empty_prefix_context): New variable.
35069         (u8_casing_prefix_context, u16_casing_prefix_context,
35070         u32_casing_prefix_context, u8_casing_prefixes_context,
35071         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35072         declarations.
35073         (casing_suffix_context_t): New type.
35074         (unicase_empty_suffix_context): New variable.
35075         (u8_casing_suffix_context, u16_casing_suffix_context,
35076         u32_casing_suffix_context, u8_casing_suffixes_context,
35077         u16_casing_suffixes_context, u32_casing_suffixes_context,
35078         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35079         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35080         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35081         declarations.
35082
35083 2009-06-28  Jim Meyering  <meyering@redhat.com>
35084
35085         boostrap: indent only with spaces
35086         * build-aux/bootstrap: Indent only with spaces, never TABs.
35087
35088         bootstrap: split long lines
35089         * build-aux/bootstrap: Keep line length < 80.
35090
35091         bootstrap: sync from coreutils
35092         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35093         just as autoreconf does.  Verify a list of prerequisite
35094         package-name,version-number pairs if defined in bootstrap.conf.
35095         Refer to README-prereq, if prerequisites are not satisfied.
35096
35097 2009-06-27  Eric Blake  <ebb9@byu.net>
35098
35099         tests: add test for bogus NULL definition
35100         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35101         * tests/test-stdlib.c: Likewise.
35102         * tests/test-string.c: Likewise.
35103         * tests/test-locale.c: Likewise.
35104         * tests/test-unistd.c: Likewise.
35105         * modules/stdio-tests (Depends-on): Add verify.
35106         * modules/stdlib-tests (Depends-on): Likewise.
35107         * modules/string-tests (Depends-on): Likewise.
35108         * modules/locale-tests (Depends-on): Likewise.
35109         * modules/unistd-tests (Depends-on): Likewise.
35110
35111 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35112
35113         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35114         self-explaining comment.
35115         * m4/selinux-selinux-h: Update serial.
35116         (gl_LIBSELINUX): New macro, adding a warning for missing development
35117         packages to code extracted from...
35118         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35119         Add warning for missing development packages here, too.
35120
35121 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35122
35123         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35124
35125 2009-06-25  Eric Blake  <ebb9@byu.net>
35126
35127         version-etc: fix regression
35128         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35129         gcc.
35130         (version_etc): Use it, to catch bugs with trailing NULL.
35131         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35132         (version_etc_va): Fix logic bug.
35133         * modules/version-etc-tests: Add test.
35134         * tests/test-version-etc.c: New file.
35135         * tests/test-version-etc.sh: Likewise.
35136
35137 2009-06-25  Sam Steingold  <sds@gnu.org>
35138
35139         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35140         mbtowc declaration.
35141
35142 2009-06-25  Eric Blake  <ebb9@byu.net>
35143
35144         fpurge: migrate into <stdio.h>
35145         * lib/fpurge.h: Delete...
35146         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35147         * lib/fpurge.c (fpurge): Change declaring header.
35148         * modules/fpurge (Files): Drop deleted file.
35149         (Depends-on): Add stdio.
35150         (configure.ac): Set witness.
35151         * modules/stdio (Makefile.am): Support fpurge macros.
35152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35153         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35154         * lib/fflush.c: Update client.
35155         * tests/test-fpurge.c: Likewise.
35156         * NEWS: Mention the change.
35157
35158 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35159
35160         * lib/argp-version-etc.c (program_authors): Add const
35161         qualifier.
35162         * lib/version-etc.c: Fix typos in the comments.
35163         * modules/argp-version-etc: Depends on version-etc.
35164
35165 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35166
35167         argp-version-etc: new module.
35168
35169         * lib/argp-version-etc.c: New file.
35170         * lib/argp-version-etc.h: New file.
35171         * modules/argp-version-etc: New file.
35172         * modules/argp-version-etc-tests: New file.
35173         * tests/test-argp-version-etc.c: New test.
35174         * tests/test-argp-version-etc-1.sh: New test.
35175
35176 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35177
35178         Provide additional interfaces and documentation for version-etc
35179         module.
35180
35181         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35182         interfaces.
35183         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35184         prototypes.
35185
35186 2009-06-24  Bruno Haible  <bruno@clisp.org>
35187
35188         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35189         HAVE_LIB${NAME} macro.
35190         Reported by Sam Steingold <sds@gnu.org>.
35191
35192 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35193
35194         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35195         needed.
35196
35197 2009-06-21  Bruno Haible  <bruno@clisp.org>
35198
35199         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35200         work.
35201         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35202         together with LIB${NAME}, LTLIB${NAME}.
35203         Reported by Sam Steingold <sds@gnu.org>.
35204
35205 2009-06-20  Jim Meyering  <meyering@redhat.com>
35206
35207         tests: make sc_require_test_exit_idiom more generic
35208         * top/maint.mk (Exit_witness_file): New overridable variable.
35209         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35210         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35211
35212 2009-06-19  Jim Meyering  <meyering@redhat.com>
35213
35214         hash: reverse order of src/dst parameters in an internal interface
35215         * lib/hash.c (transfer_entries): Reverse order of parameters to
35216         put DST before SRC.  Adjust callers.
35217
35218         tests: test-hash: avoid wholesale duplication
35219         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35220         Instead, use a loop and add a single conditional.
35221
35222         tests: test-hash: allow seed selection via a command line argument
35223         * tests/test-hash.c (get_seed): New function.
35224         (main): Use it.
35225
35226 2009-06-19  Eric Blake  <ebb9@byu.net>
35227
35228         hash: avoid memory leak on allocation failure
35229         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35230         failure.  Factor repeated algorithm...
35231         (transfer_entries): ...into new helper routine.
35232         (hash_delete): React to hash_rehash return value.
35233
35234         hash: reduce memory pressure in hash_rehash no-op case
35235         * lib/hash.c (next_prime): Avoid overflow.
35236         (hash_initialize): Factor bucket size computation...
35237         (compute_bucket_size): ...into new helper function.
35238         (hash_rehash): Use new function and open coding to reduce memory
35239         pressure, and avoid a memory leak in USE_OBSTACK code.
35240         Reported by Jim Meyering.
35241
35242 2009-06-18  Eric Blake  <ebb9@byu.net>
35243
35244         hash: make rotation more obvious
35245         * modules/hash (Depends-on): Add bitrotate and stdint.
35246         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35247         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35248         (SIZE_MAX): Rely on headers for definition.
35249         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35250         (raw_hasher): Use rotr_sz.
35251         Suggested by Jim Meyering.
35252
35253         hash: fix memory leak in last patch
35254         * lib/hash.c (hash_rehash): Avoid memory leak.
35255
35256         hash: avoid no-op rehashing
35257         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35258
35259         hash: provide default callback functions
35260         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35261         (hash_initialize): Use them as defaults.
35262         * tests/test-hash.c (main): Test this.
35263
35264         hash: minor optimization
35265         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35266         when possible.
35267         (hash_initialize): Document this promise.
35268         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35269         * tests/test-hash.c (hash_compare_strings): Test this.
35270
35271 2009-06-18  Bruno Haible  <bruno@clisp.org>
35272
35273         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35274         going to be replaced anyway.
35275
35276 2009-06-18  Bruno Haible  <bruno@clisp.org>
35277
35278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35279         in one place.
35280         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35281         be replaced anyway.
35282
35283 2009-06-18  Eric Blake  <ebb9@byu.net>
35284
35285         hash: check for resize before insertion
35286         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35287         threshold before insertion, so that a pathological hash_rehash
35288         that fills every bucket can still trigger another rehash.
35289
35290 2009-06-18  Jim Meyering  <meyering@redhat.com>
35291
35292         hash-tests: add a loop around the small tests
35293         * tests/test-hash.c (main): Repeat small tests with selected
35294         small initial table sizes.
35295
35296 2009-06-17  Eric Blake  <ebb9@byu.net>
35297
35298         hash: minor cleanups
35299         * lib/hash.h (hash_entry): Make opaque, by moving...
35300         * lib/hash.c (hash_entry): ...here.
35301         (hash_insert): Clarify restrictions on what can be inserted.
35302         (hash_get_next): Clarify when it is safe to remove an element
35303         during traversal.
35304         (check_tuning): Skip verification when tuning is known safe.
35305         (hash_initialize): Clarify restrictions on tuning.
35306
35307 2009-06-17  Jim Meyering  <jim@meyering.net>
35308         and Eric Blake  <ebb9@byu.net>
35309
35310         hash-tests: new module
35311         * modules/hash-tests: New file.
35312         * tests/test-hash.c: New file.
35313
35314 2009-06-17  Eric Blake  <ebb9@byu.net>
35315
35316         strstr-simple: document new module
35317         * MODULES.html.sh: Document new module.
35318
35319         strstr, strcasestr: replace on platforms with broken memchr
35320         * modules/strstr: Split into...
35321         * modules/strstr-simple: ...new module that does not care about
35322         performance, but does care about glibc bug.
35323         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35324         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35325         if platform memchr is broken, per Debian bug 521737.
35326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35327         memchr.
35328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35329         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35330         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35331         * modules/mountlist (Depends-on): Add strstr-simple.
35332         * modules/gen-uni-tables (Depends-on): Likewise.
35333         * modules/argz (Depends-on): Add strstr.
35334
35335 2009-06-17  Bruno Haible  <bruno@clisp.org>
35336
35337         * modules/posix_spawn-internal (Depends-on): Add errno.
35338
35339 2009-06-17  Bruno Haible  <bruno@clisp.org>
35340
35341         Define missing ESTALE on Interix 3.5.
35342         * lib/errno.in.h (ESTALE): Assign a value if missing.
35343         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35344         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35345         missing.
35346         * doc/posix-headers/errno.texi: Mention the Interix bug.
35347         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35348
35349 2009-06-15  Eric Blake  <ebb9@byu.net>
35350
35351         memchr, memchr2: add valgrind exception
35352         * lib/memchr.valgrind: New file.
35353         * lib/memchr2.valgrind: New file.
35354         * modules/memchr (Files): Distribute valgrind file.
35355         * modules/memchr2 (Files): Likewise.
35356
35357         docs: memchr is no longer obsolete
35358         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35359         * lib/string.in.h (memchr): Simplify logic.
35360
35361 2009-06-14  Jim Meyering  <meyering@redhat.com>
35362
35363         link-follow: fix the "checking..." message to not mention trailing slash
35364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35365         never considered trailing slashes.
35366
35367 2009-06-14  Bruno Haible  <bruno@clisp.org>
35368
35369         * m4/memchr.m4: Mention also the bug on IA-64.
35370         * doc/posix-functions/memchr.texi: Likewise.
35371
35372 2009-06-12  Eric Blake  <ebb9@byu.net>
35373
35374         memchr: detect broken x86_64 and alpha implementations
35375         * modules/memchr-tests (Depends-on): Move mmap detection...
35376         * modules/memchr (Depends-on): ...here.
35377         (configure.ac): Set indicator.
35378         * lib/string.in.h (memchr): Declare replacement.
35379         * modules/string (Makefile.am): Trigger replacement.
35380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35381         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35382         bugs.
35383         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35384         * modules/getpagesize (License): Relax license.
35385
35386 2009-06-11  Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/idpriv.h: Add more references.
35389
35390 2009-06-08  Bruno Haible  <bruno@clisp.org>
35391
35392         Tests for module 'idpriv-droptemp'.
35393         * modules/idpriv-droptemp-tests: New file.
35394         * tests/test-idpriv-droptemp.sh: New file.
35395         * tests/test-idpriv-droptemp.su.sh: New file.
35396         * tests/test-idpriv-droptemp.c: New file.
35397
35398         New module 'idpriv-droptemp'.
35399         * lib/idpriv-droptemp.c: New file.
35400         * modules/idpriv-droptemp: New file.
35401
35402 2009-06-08  Bruno Haible  <bruno@clisp.org>
35403
35404         Tests for module 'idpriv-drop'.
35405         * modules/idpriv-drop-tests: New file.
35406         * tests/test-idpriv-drop.sh: New file.
35407         * tests/test-idpriv-drop.su.sh: New file.
35408         * tests/test-idpriv-drop.c: New file.
35409
35410         New module 'idpriv-drop'.
35411         * lib/idpriv.h: New file.
35412         * lib-idpriv-drop.c: New file.
35413         * m4/idpriv.m4: New file.
35414         * modules/idpriv-drop: New file.
35415
35416 2009-06-08  Bruno Haible  <bruno@clisp.org>
35417
35418         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35419         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35420         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35421         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35422         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35423         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35424         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35425
35426 2009-06-08  Eric Blake  <ebb9@byu.net>
35427
35428         test-strstr: use memory fence, when possible
35429         * tests/test-strstr.c (main): Use memory fence, in order to be
35430         more likely to trigger Debian bug 521737.
35431         * modules/strstr-tests (Files): Pull in additional files.
35432
35433         memchr: no longer obsolete, for wider field testing
35434         * modules/memchr (Status, Notice): Delete, this module is no
35435         longer obsolete.
35436         * modules/vasnprintf (Depends-on): Add memchr.
35437
35438 2009-06-07  Jim Meyering  <meyering@redhat.com>
35439
35440         hash: declare some functions with the warn_unused_result attribute
35441         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35442
35443 2009-06-07  Bruno Haible  <bruno@clisp.org>
35444
35445         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35446         Reported by Eric Blake.
35447
35448 2009-06-06  Eric Blake  <ebb9@byu.net>
35449
35450         test-alignof: fix typo with long double
35451         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35452         compiler error.
35453
35454 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35455
35456         Escape non-texinfo { and }s.
35457         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35458         markup error.
35459
35460 2009-06-04  Jim Meyering  <meyering@redhat.com>
35461
35462         gitlog-to-changelog: don't infloop on an empty commit log
35463         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35464         Reported by Boris Petersen <transacid@centerim.org>.
35465
35466 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35467
35468         version-etc: extend for packagers
35469         Add three new configure options, intended for packagers:
35470           --with-packager="packager name"
35471           --with-packager-version="packager-specific version"
35472           --with-packager-bug-reports="packager bug reporting"
35473         An example with coreutils:
35474           $ ./configure \
35475             --with-packager=Gentoo \
35476             --with-packager-bug-report=http://bugs.gentoo.org/ \
35477             --with-packager-version="patchset 1.6"
35478           $ ./src/ls --version | head -n2
35479           ls (GNU coreutils) 7.1-dirty
35480           Packaged by Gentoo (patchset 1.6)
35481         Note that the bug reporting info via --help doesn't show up because
35482         coreutils uses its own custom emit_bug_reporting_address() implementation
35483         in src/system.h.  If it didn't, it'd look like:
35484           $ ./src/ls --help | tail -n4
35485           Report bugs to <bug-coreutils@gnu.org>.
35486           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35487           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35488           General help using GNU software: <http://www.gnu.org/gethelp/>.
35489         * lib/version-etc.c: Print new information, if provided.
35490         * m4/version-etc.m4: New file.
35491         * modules/version-etc (Files): Add m4/version-etc.m4.
35492         (configure.ac): Add gl_VERSION_ETC.
35493
35494 2009-05-31  Bruno Haible  <bruno@clisp.org>
35495
35496         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35497         and 'int64_t'.
35498         * modules/alignof-tests (Dependencies): Add stdint.
35499         Reported by Eric Blake.
35500
35501 2009-05-31  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35504         restriction due to compiler bugs.
35505         Reported by Eric Blake.
35506
35507 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35508             Bruno Haible  <bruno@clisp.org>
35509
35510         Fix test-alignof failure.
35511         * lib/alignof.h (alignof_slot): New macro.
35512         (alignof_type): New macro, with the same semantics as the previous
35513         'alignof'.
35514         (alignof): Alias to alignof_slot.
35515         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35516         check that the results are usable as constant expressions.
35517
35518 2009-05-31  Bruno Haible  <bruno@clisp.org>
35519
35520         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35521         * tests/test-memchr.c (main): Check that memchr does not read past the
35522         first occurrence of the byte.
35523         * tests/test-strstr.c (main): Update comment.
35524         Suggested by Eric Blake.
35525
35526 2009-05-30  Bruno Haible  <bruno@clisp.org>
35527
35528         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35529         detail how to use dumpbin.
35530         Reported by David Byron <dbyron@dbyron.com>.
35531
35532 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35533
35534         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35535
35536 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35537
35538         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35539
35540 2009-05-28  Bruno Haible  <bruno@clisp.org>
35541
35542         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35543         build-aux/ files.
35544
35545 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35546
35547         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35548
35549 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35550
35551         * gnulib-tool (sed_transform_main_lib_file)
35552         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35553         regexps.
35554
35555 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35556
35557         * tests/test-strstr.c: Add another self-test.
35558         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35559         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35560
35561 2009-05-23  Bruno Haible  <bruno@clisp.org>
35562
35563         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35564         change.
35565
35566 2009-05-21  Bruno Haible  <bruno@clisp.org>
35567
35568         Simplify use of mode_t varargs.
35569         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35570         uses 'mode_t' or 'int'.
35571         * lib/openat.c (openat): Likewise.
35572         * lib/open-safer.c (open_safer): Likewise.
35573         * m4/mode_t.m4: New file.
35574         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35575         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35576         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35577         * modules/open (Files): Add m4/mode_t.m4.
35578         * modules/openat (Files): Likewise.
35579         * modules/fcntl-safer (Files): Likewise.
35580         Suggested by Eric Blake.
35581
35582 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35583
35584         * doc/glibc-functions/fallocate.texi: New file.
35585         * doc/gnulib.texi: Include it.
35586
35587 2009-05-21  Eric Blake  <ebb9@byu.net>
35588             Bruno Haible  <bruno@clisp.org>
35589
35590         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35591         invocations.
35592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35593
35594 2009-05-21  Eric Blake  <ebb9@byu.net>
35595             Bruno Haible  <bruno@clisp.org>
35596
35597         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35598         include_next. Fix of 2008-11-20 commit.
35599         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35600         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35601         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35602         NEXT_MATH_H.
35603         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35604         instead of NEXT_MATH_H.
35605
35606 2009-05-21  Bruno Haible  <bruno@clisp.org>
35607
35608         Avoid redefinition warnings for SIZE_MAX.
35609         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35610         Reported by Simon Josefsson.
35611
35612 2009-05-21  Bruno Haible  <bruno@clisp.org>
35613
35614         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35615         AC_CACHE_VAL.
35616
35617 2009-05-20  Bruno Haible  <bruno@clisp.org>
35618
35619         Make zeroptr.h work on mingw.
35620         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35621         mprotect.
35622         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35623         * modules/memchr2-tests (configure.ac): Likewise.
35624         * modules/memcmp-tests (configure.ac): Likewise.
35625         * modules/memmem-tests (configure.ac): Likewise.
35626         * modules/memrchr-tests (configure.ac): Likewise.
35627         Reported by Simon Josefsson.
35628
35629 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35630
35631         * tests/test-glob.c: Include string.h for strcmp prototype.
35632
35633 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35634
35635         * modules/getdelim (Depends-on): Add explicit stdint, although it
35636         was implicitly already pulled in via realloc-posix.
35637         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35638
35639 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35640
35641         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35642         G. Christensen" <tgc@jupiterrise.com>.
35643         * m4/sys_socket_h.m4: Check for sa_family_t.
35644         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35645         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35646         * tests/test-sys_socket.c: Check that sa_family_t works.
35647
35648 2009-05-18  Eric Blake  <ebb9@byu.net>
35649
35650         maint.mk: allow gnulib_dir in VPATH build
35651         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35652
35653 2009-05-15  Jim Meyering  <meyering@redhat.com>
35654
35655         maint.mk: Give gnulib_dir a default definition.
35656         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35657         Thus, most packages no longer need to specify this variable in cfg.mk
35658
35659 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35660
35661         rename.m4: fix typos that would make non-mingw cross-configure fail
35662         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35663
35664 2009-05-13  Eric Blake  <ebb9@byu.net>
35665
35666         mmap-anon: avoid out-of-order autoconf expansion
35667         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35668         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35669         * modules/memchr-tests (Depends-on): Add extensions.
35670         * modules/memchr2-tests (Depends-on): Add extensions.
35671         * modules/memcmp-tests (Depends-on): Add extensions.
35672         * modules/memmem-tests (Depends-on): Add extensions.
35673         * modules/memrchr-tests (Depends-on): Add extensions.
35674
35675 2009-05-13  Bruno Haible  <bruno@clisp.org>
35676
35677         Make some tests ISO C 99 compliant.
35678         * tests/zerosize-ptr.h: New file.
35679         * tests/test-memchr.c: Include zerosize-ptr.h.
35680         (main): Use a zero-size object pointer instead of NULL.
35681         * tests/test-memchr2.c: Include zerosize-ptr.h.
35682         (main): Use a zero-size object pointer instead of NULL.
35683         * tests/test-memcmp.c: Include zerosize-ptr.h.
35684         (main): Use a zero-size object pointer instead of NULL.
35685         * tests/test-memmem.c: Include zerosize-ptr.h.
35686         (main): Use a zero-size object pointer instead of NULL.
35687         * tests/test-memrchr.c: Include zerosize-ptr.h.
35688         (main): Use a zero-size object pointer instead of NULL.
35689         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35690         m4/mmap-anon.m4.
35691         (Depends-on): Add getpagesize.
35692         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35693         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35694         m4/mmap-anon.m4.
35695         (Depends-on): Add getpagesize.
35696         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35697         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35698         m4/mmap-anon.m4.
35699         (Depends-on): Add getpagesize.
35700         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35701         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35702         m4/mmap-anon.m4.
35703         (Depends-on): Add getpagesize.
35704         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35705         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35706         m4/mmap-anon.m4.
35707         (Depends-on): Add getpagesize.
35708         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35709
35710 2009-05-12  Bruno Haible  <bruno@clisp.org>
35711
35712         Tests for module 'alignof'.
35713         * modules/alignof-tests: New file.
35714         * tests/test-alignof.c: New file.
35715
35716 2009-05-12  Bruno Haible  <bruno@clisp.org>
35717
35718         Fix alignof macro.
35719         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35720         vendor compilers that are always correct.
35721
35722 2009-05-12  Bruno Haible  <bruno@clisp.org>
35723
35724         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35726         not whether its fully works.
35727
35728 2009-05-12  Bruno Haible  <bruno@clisp.org>
35729
35730         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35731
35732 2009-05-12  Jim Meyering  <meyering@redhat.com>
35733
35734         * top/maint.mk: Adjust backslash alignment.
35735
35736 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35737
35738         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35739
35740 2009-05-11  Eric Blake  <ebb9@byu.net>
35741
35742         argp: avoid undefined behavior
35743         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35744         macros.
35745
35746 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35747
35748         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35749         user.name to prevent git commit from complaining.
35750
35751 2009-05-10  Bruno Haible  <bruno@clisp.org>
35752
35753         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35754         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35755         it rewrites every file name only once.
35756         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35757
35758 2009-05-08  Bruno Haible  <bruno@clisp.org>
35759
35760         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35761         instead of 'max'.
35762
35763 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35764
35765         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35766         sockaddr_storage test.
35767
35768 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35769
35770         * modules/sys_socket (Makefile.am): Substitute
35771         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35772         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35773         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35774         * tests/test-sys_socket.c: Check sockaddr_storage.
35775
35776 2009-05-08  Bruno Haible  <bruno@clisp.org>
35777
35778         New module 'alignof'.
35779         * lib/alignof.h: New file.
35780         * modules/alignof: New file.
35781
35782 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35783             Bruno Haible  <bruno@clisp.org>
35784
35785         Fix test-file-has-acl on FreeBSD.
35786         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35787         mask is implicitly added.
35788         * tests/test-file-has-acl.c: Include <signal.h>.
35789         (main): Terminate the test after 5 seconds.
35790         * modules/acl-tests (configure.ac): Check for alarm function.
35791
35792 2009-05-04  Bruno Haible  <bruno@clisp.org>
35793
35794         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35795         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35796         * modules/errno (configure.ac): Drop AC_REQUIRE.
35797         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35798         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35799
35800 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35801
35802         * modules/glob-tests: New module.
35803         * tests/test-glob.c: Add.
35804
35805 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35806
35807         * modules/fnmatch-tests: New module.
35808         * tests/test-fnmatch.c: Add.
35809
35810 2009-05-04  Eric Blake  <ebb9@byu.net>
35811
35812         maint: make the new no-submodule-changes rule VPATH-safe
35813         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35814
35815 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35816             Bruno Haible  <bruno@clisp.org>
35817
35818         acl: Fix infinite loop on FreeBSD.
35819         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35820         of return value from acl_get_entry.
35821         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35822         Likewise.
35823
35824 2009-05-03  Bruno Haible  <bruno@clisp.org>
35825
35826         * lib/acl-internal.h (acl_entries): Clarify return value.
35827         * lib/acl_entries.c (acl_entries): Likewise.
35828
35829 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35830
35831         Bug fix in acl module.
35832         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35833
35834 2009-05-03  Bruno Haible  <bruno@clisp.org>
35835
35836         Create gperf-generated file in the source dir, not in the build dir.
35837         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35838         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35839         * modules/unicase/locale-language (unicase/locale-languages.h):
35840         Likewise.
35841         * modules/unicase/special-casing (unicase/special-casing-table.h):
35842         Likewise.
35843         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35844         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35845         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35846         Reported by Ralf Wildenhues.
35847
35848 2009-05-03  Bruno Haible  <bruno@clisp.org>
35849
35850         * modules/fnmatch (Description, configure.ac): Taken from
35851         fnmatch-posix.
35852         * modules/fnmatch-posix: Turn into a symbolic reference to the
35853         'fnmatch' module, and deprecate.
35854         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35855
35856 2009-05-03  Bruno Haible  <bruno@clisp.org>
35857
35858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35859         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35860         Reported by Ralf Wildenhues.
35861
35862 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35863
35864         * m4/fnmatch.m4: Fix fnmatch re-define.
35865
35866 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35867
35868         priv-set: new module and tests; adapt write-any-file
35869         * lib/priv-set.c: New file.
35870         * lib/priv-set.h: New file.
35871         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35872         * lib/write-any-file.c: Simplify by using priv-set module.
35873         * m4/priv-set.m4: New file.
35874         * modules/priv-set: New file.
35875         * modules/unlinkdir: Add dependency on priv-set module.
35876         * modules/write-any-file: Likewise.
35877
35878         Tests for module 'priv-set'.
35879         * modules/priv-set-tests: New file.
35880         * tests/test-priv-set.c: New file.
35881
35882 2009-05-03  Jim Meyering  <meyering@redhat.com>
35883             Bruno Haible  <bruno@clisp.org>
35884
35885         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35886         use the converted UTF-8 variant of the name instead.
35887
35888 2009-05-03  Jim Meyering  <meyering@redhat.com>
35889
35890         tests: tighten some getdate tests
35891         * tests/test-getdate.c (main): Tighten tests: require equality,
35892         not just greater than.  Set TZ envvar to UTC0.
35893
35894 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35895
35896         getdate: correctly interpret "next monday" when run on a Monday
35897         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35898         that e.g., "next tues" (when run on a tuesday) results in a date
35899         that is one week in the future, and not today's date.
35900         I.e., add a week when the wday is the same as the current one.
35901         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35902         and earlier by Martin Bernreuther and Jan Minář.
35903         * tests/test-getdate.c (main): Check that "next DAY" is always in
35904         the future and that "last DAY" is always in the past.
35905
35906 2009-05-02  Jim Meyering  <meyering@redhat.com>
35907
35908         build: ensure that a release build fails when a submodule is unclean
35909         * top/maint.mk (no-submodule-changes): New rule.
35910         (alpha beta major): Depend on it.
35911
35912 2009-05-02  Bruno Haible  <bruno@clisp.org>
35913
35914         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35915         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35916         shell variable gl_fnmatch_required to detect which variant is
35917         requested.
35918         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35919         gl_FUNC_FNMATCH_POSIX.
35920         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35921         exclude fnmatch-posix.
35922
35923 2009-05-02  Bruno Haible  <bruno@clisp.org>
35924
35925         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35926         * modules/mbsrtowcs (License): Change to LGPLv2+.
35927         * modules/strnlen1 (License): Likewise.
35928         Reported by Simon Josefsson.
35929
35930 2009-05-02  Bruno Haible  <bruno@clisp.org>
35931
35932         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35933         "cross".
35934         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35935         gnulib-tool was called with option --source-base=lib.
35936
35937 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35938
35939         Use automake *-local hooks without commands, for extensibility.
35940         * modules/localcharset (Makefile.am): Rename install-exec-local
35941         rule to install-exec-localcharset, and make it a prerequisite of
35942         install-exec-local.  Likewise, rename the uninstall-local rule to
35943         uninstall-localcharset, and make it a prerequisite of the former.
35944
35945 2009-05-01  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35948         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35949         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35951         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35952         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35953         m4/locale-zh.m4, m4/codeset.m4.
35954
35955         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35956         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35957         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35958         m4/locale-zh.m4.
35959
35960         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35961         REPLACE_WCRTOMB if mbstate_t must be replaced.
35962         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35963         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35964
35965 2009-05-01  Bruno Haible  <bruno@clisp.org>
35966
35967         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35968         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35969         dngettext, dcngettext, textdomain, bindtextdomain,
35970         bind_textdomain_codeset): Undefine before redefining.
35971
35972 2009-04-30  Bruno Haible  <bruno@clisp.org>
35973
35974         Fix bug introduced on 2009-04-25.
35975         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35976         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35977         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35978         is defined.
35979         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35980         is defined.
35981         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35982         is defined.
35983         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35984
35985 2009-04-28  Bruno Haible  <bruno@clisp.org>
35986
35987         Comment tweaks.
35988         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35989         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35990         * lib/unicase.h (u*_casexfrm): Likewise.
35991         Reported by Paolo Bonzini.
35992
35993 2009-04-28  Bruno Haible  <bruno@clisp.org>
35994
35995         Fix a compilation error.
35996         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35997         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35998         Reported by Jim Meyering.
35999
36000 2009-04-27  Bruno Haible  <bruno@clisp.org>
36001
36002         New module 'libunistring'.
36003         * modules/libunistring: New file.
36004         * m4/libunistring.m4: New file.
36005         * MODULES.html.sh (Unicode string functions): Add it.
36006
36007 2009-04-27  Eric Blake  <ebb9@byu.net>
36008
36009         maint.mk: allow package-specific header to provide <config.h>
36010         * top/maint.mk (sc_require_config_h): New variable.
36011         (sc_require_config_h, sc_require_config_h_first): Use it.
36012
36013 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36014
36015         * top/maint.mk (sc_avoid_if_before_free): Except
36016         useless-if-before-free script.
36017
36018 2009-04-27  Eric Blake  <ebb9@byu.net>
36019
36020         maintainer-makefile: depend on all required helper scripts
36021         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36022         useless-if-before-free.
36023         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36024         version, rather than assuming gnulib checkout is available.
36025         Reported by Simen Josefsson.
36026
36027 2009-04-26  Bruno Haible  <bruno@clisp.org>
36028
36029         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36030         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36031         "../" or "..".
36032
36033 2009-04-26  Bruno Haible  <bruno@clisp.org>
36034
36035         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36036         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36037         AC_LIB_HAVE_LINKFLAGS.
36038
36039 2009-04-26  Bruno Haible  <bruno@clisp.org>
36040
36041         Simplify calling convention of u*_conv_from_encoding.
36042         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36043         u32_conv_from_encoding): Expect a resultbuf argument and return the
36044         result directly as a pointer.
36045         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36046         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36047         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36048         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36049         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36050         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36051         Update.
36052         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36053         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36054         * lib/vasnprintf.c (VASNPRINTF): Update.
36055         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36056         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36057         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36058         * NEWS: Mention the change.
36059
36060 2009-04-26  Bruno Haible  <bruno@clisp.org>
36061
36062         Simplify calling convention of u*_conv_to_encoding.
36063         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36064         u32_conv_to_encoding): Expect a resultbuf argument and return the
36065         result directly as a pointer.
36066         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36067         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36068         freeing scaled_offsets if mem_iconveha failed.
36069         * lib/unicase/u-casexfrm.h (FUNC): Update.
36070         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36071         * lib/vasnprintf.c (VASNPRINTF): Update.
36072         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36073         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36074         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36075         * NEWS: Mention the change.
36076
36077 2009-04-26  Bruno Haible  <bruno@clisp.org>
36078
36079         Avoid test failures on AIX and OSF/1.
36080         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36081         malloc(0).
36082         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36083         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36084         Likewise.
36085         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36086         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36087         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36088         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36089         * doc/posix-functions/malloc.texi: Document the portability problem
36090         related to malloc(0).
36091
36092 2009-04-26  Bruno Haible  <bruno@clisp.org>
36093
36094         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36095         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36096         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36097
36098 2009-04-25  Bruno Haible  <bruno@clisp.org>
36099
36100         Avoid link error when creating a namespace clean library.
36101         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36102         as macro with arguments if already defined as an alias.
36103         * lib/signbitf.c (gl_signbitf): Don't undefine.
36104         * lib/signbitd.c (gl_signbitd): Don't undefine.
36105         * lib/signbitl.c (gl_signbitl): Don't undefine.
36106
36107 2009-04-25  Jim Meyering  <meyering@redhat.com>
36108
36109         vc-list-files: fix another quoting bug
36110         * build-aux/vc-list-files: Avoid sed backslash expansion
36111         of pathological directory names.
36112
36113 2009-04-25  Eric Blake  <ebb9@byu.net>
36114
36115         vc-list-files: fix shell quoting error
36116         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36117         timestamp.
36118
36119 2009-04-25  Jim Meyering  <meyering@redhat.com>
36120
36121         vc-list-files: restore lost functionality with subdir argument
36122         * build-aux/vc-list-files: When given a non-"." sub-directory
36123         argument, substitute the $dir/ prefix back onto each resulting name.
36124         Otherwise, coreutils' root_tests check would fail.
36125
36126 2009-04-24  Eric Blake  <ebb9@byu.net>
36127
36128         vc-list-files: ignore git symlinks
36129         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36130         than ls-files, to ignore git symlinks.
36131
36132         maint.mk: import improvements from m4
36133         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36134         (move_if_change): Delete unused macro.
36135         (news-date-check, vc-diff-check): Support VPATH builds.
36136         (announcement): Likewise.  Split --bootstrap-tools list...
36137         (boostrap-tools): ...into separate list, which can be overridden
36138         in cfg.mk.
36139         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36140         requiring dependency on useless-if-before-free module.
36141         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36142         Support VPATH builds.
36143
36144 2009-04-24  Jim Meyering  <meyering@redhat.com>
36145
36146         maint.mk: remove coreutils-specific rules and variables
36147         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36148         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36149         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36150
36151         maint.mk: remove obsolete rule
36152         * top/maint.mk (rel-check): Remove rule.
36153         (WGET, WGETFLAGS): Remove now-unused variables.
36154
36155 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36156
36157         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36158         consistency.
36159
36160         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36161         '$(PATH_SEPARATOR)' instead of ':'.
36162
36163 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36164
36165         * lib/getopt1.c (main): Use 'const' for static array.
36166
36167 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36168
36169         * top/maint.mk: Sync with coreutils.
36170         * NEWS: Explain incompatibilities.
36171
36172 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36173             Bruno Haible  <bruno@clisp.org>
36174
36175         Fix cross-compilation results.
36176         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36177         statement, as third argument of AC_TRY_RUN.
36178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36179         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36180         Likewise.
36181         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36182         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36183         Likewise.
36184         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36185         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36186         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36187
36188 2009-04-20  Bruno Haible  <bruno@clisp.org>
36189
36190         Avoid test failure on mingw.
36191         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36192
36193 2009-04-20  Bruno Haible  <bruno@clisp.org>
36194
36195         Avoid compilation error on mingw.
36196         * modules/localename-tests (Depends-on): Add locale.
36197
36198 2009-04-19  Bruno Haible  <bruno@clisp.org>
36199
36200         Support for building a shared library on Windows platforms.
36201         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36202         (main): Test the presence of UNINORM_NFC here.
36203         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36204         (main): Test the presence of UNINORM_NFD here.
36205         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36206         (main): Test the presence of UNINORM_NFKC here.
36207         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36208         (main): Test the presence of UNINORM_NFKD here.
36209
36210 2009-04-19  Bruno Haible  <bruno@clisp.org>
36211
36212         Avoid a compiler warning.
36213         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36214         Change type of variable 'sequence'.
36215
36216 2009-04-19  Bruno Haible  <bruno@clisp.org>
36217
36218         * modules/configmake (Makefile.am): When the contents of configmake.h
36219         does not change, arrange to preserve its modification time.
36220
36221 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36222
36223         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36224         gettext domain.
36225
36226 2009-04-16  Jim Meyering  <meyering@redhat.com>
36227
36228         useless-if-before-free: improve conversion code
36229         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36230         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36231
36232 2009-04-14  Bruno Haible  <bruno@clisp.org>
36233
36234         * modules/fcntl (Depends-on): Add extensions.
36235         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36236
36237 2009-04-12  Ben Pfaff  <blp@gnu.org>
36238
36239         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36240         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36241
36242 2009-03-20  Ben Pfaff  <blp@gnu.org>
36243
36244         Make rename replace existing destinations on Windows.
36245         * m4/rename.m4: Add test for Mingw.
36246         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36247         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36248         * doc/posix-functions/rename.texi: Document.
36249
36250 2009-04-10  Bruno Haible  <bruno@clisp.org>
36251
36252         New include file "iconveh.h".
36253         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36254         * lib/striconveh.h: Include it.
36255         (enum iconv_ilseq_handler): Remove definition.
36256         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36257         striconveh.h.
36258         * lib/striconveha.c: Include striconveh.h.
36259         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36260         * modules/striconveh (Files): Add lib/iconveh.h.
36261         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36262         lib/striconveh.h.
36263
36264 2009-04-10  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/uniconv.h: Update comment.
36267
36268 2009-04-10  Bruno Haible  <bruno@clisp.org>
36269
36270         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36271         always.
36272         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36273         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36274         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36275         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36276         "unistring-notinline.h", so that the function gets defined always.
36277         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36278         * lib/unistr/u8-uctomb.c: Likewise.
36279         * lib/unistr/u16-mbtouc.c: Likewise.
36280         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36281         * lib/unistr/u16-uctomb.c: Likewise.
36282         * lib/unistr/u32-mbtouc.c: Likewise.
36283         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36284         * lib/unistr/u32-uctomb.c: Likewise.
36285
36286 2009-04-10  Bruno Haible  <bruno@clisp.org>
36287
36288         Mark 'utime' obsolete.
36289         * modules/utime (Status, Notice): New sections.
36290         Suggested by Jim Meyering.
36291
36292         Fix cross-compile guess for utime test.
36293         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36294         autoconf.
36295         * doc/posix-functions/utime.texi: Give more precisions.
36296         Reported by Jan <ipif@ymail.com>.
36297
36298 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36299
36300         filevercmp: correct today's change
36301         * lib/filevercmp.c: Also handle coreutils' test inputs.
36302         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36303
36304         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36305         for reporting it.
36306         * lib/filevercmp.c: Special handle for "", "." and "..".
36307         * tests/test-filevercmp.c: Enlarge the set suite.
36308
36309 2009-04-07  Jim Meyering  <meyering@redhat.com>
36310
36311         useless-if-before-free: show how to remove braced useless free, too
36312         * build-aux/useless-if-before-free: still only in a comment, though.
36313
36314 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36315
36316         maint.mk: import changes to syntax-check macros from coreutils
36317         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36318         Use them in the relevant macros.
36319
36320 2009-04-06  Bruno Haible  <bruno@clisp.org>
36321
36322         Fix unportable use of bit-fields.
36323         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36324         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36325         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36326
36327 2009-04-06  Bruno Haible  <bruno@clisp.org>
36328
36329         Avoid test failures on AIX and OSF/1.
36330         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36331         that malloc(0) = NULL.
36332         * tests/unicase/test-u8-tolower.c (check): Likewise.
36333         * tests/unicase/test-u8-totitle.c (check): Likewise.
36334         * tests/unicase/test-u8-toupper.c (check): Likewise.
36335         * tests/unicase/test-u16-casefold.c (check): Likewise.
36336         * tests/unicase/test-u16-tolower.c (check): Likewise.
36337         * tests/unicase/test-u16-totitle.c (check): Likewise.
36338         * tests/unicase/test-u16-toupper.c (check): Likewise.
36339         * tests/unicase/test-u32-casefold.c (check): Likewise.
36340         * tests/unicase/test-u32-tolower.c (check): Likewise.
36341         * tests/unicase/test-u32-totitle.c (check): Likewise.
36342         * tests/unicase/test-u32-toupper.c (check): Likewise.
36343         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36344         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36345         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36346         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36347         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36348         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36349         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36350         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36351         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36352         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36353         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36354         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36355
36356 2009-04-05  Bruno Haible  <bruno@clisp.org>
36357
36358         Work around an autoconf limitation.
36359         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36360         comment line if it would be longer than 3 KB.
36361
36362 2009-04-05  Bruno Haible  <bruno@clisp.org>
36363
36364         Avoid test failure with libiconv-1.13.
36365         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36366         of the expected test results.
36367
36368 2009-04-05  Bruno Haible  <bruno@clisp.org>
36369
36370         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36371         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36372         that it should be installed.
36373
36374 2009-04-05  Bruno Haible  <bruno@clisp.org>
36375
36376         * gnulib-tool: New option --copy-file.
36377         (func_usage): Document it.
36378         (func_dest_tmpfilename): Moved out of func_import.
36379         (func_add_file, func_update_file): New functions, extracted from
36380         func_import.
36381         (func_import): Update.
36382
36383 2009-04-05  Karl Berry  <karl@gnu.org>
36384
36385         * README: prominently mention gnulib-tool.
36386         Rearrange sections so getting the code is near the top.
36387
36388 2009-04-05  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/unicase.h: Mention u*_cmp2.
36391         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36392         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36393         * lib/unicase/ulc-casecmp.c: Likewise.
36394         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36395         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36396         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36397         unistr/u8-cmp.
36398         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36399         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36400         unistr/u16-cmp.
36401         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36402         unistr/u32-cmp.
36403
36404         * lib/uninorm.h: Mention u*_cmp2.
36405         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36406         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36407         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36408         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36409         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36410         unistr/u8-cmp.
36411         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36412         unistr/u16-cmp.
36413         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36414         unistr/u32-cmp.
36415
36416         New module 'unistr/u32-cmp2'.
36417         * lib/unistr/u32-cmp2.c: New file.
36418         * modules/unistr/u32-cmp2: New file.
36419
36420         New module 'unistr/u16-cmp2'.
36421         * lib/unistr/u16-cmp2.c: New file.
36422         * modules/unistr/u16-cmp2: New file.
36423
36424         New module 'unistr/u8-cmp2'.
36425         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36426         * lib/unistr/u8-cmp2.c: New file.
36427         * lib/unistr/u-cmp2.h: New file.
36428         * modules/unistr/u8-cmp2: New file.
36429
36430 2009-04-05  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/unictype.h (uc_property_is_valid): New macro.
36433         * tests/unictype/test-pr_byname.c (main): Use it.
36434
36435         * lib/unistr.h: Doc fixes.
36436         * lib/uniconv.h: Doc fixes.
36437         * lib/unictype.h: Doc fixes.
36438
36439 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36440
36441         Port coreutils 7.2 to Solaris 8.
36442
36443         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36444         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36445         for Solaris 8.  This is a bit of a hack, as it means it's the
36446         caller's responsibility to add -lnsl if needed, but most likely it
36447         won't be needed since only getaddrinfo uses this and getaddrinfo
36448         isn't needed on Solaris 8.
36449
36450         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36451         problem to Solaris 8 encountered with coreutils 7.2, which
36452         resulted in a message "fnmatch.c:292: warning: passing argument 4
36453         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36454         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36455
36456 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36457
36458         * m4/ld-version-script.m4: Add FIXME comment.
36459
36460 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36461
36462         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36463         SOVERSION variable.
36464
36465 2009-04-02  Bruno Haible  <bruno@clisp.org>
36466
36467         * Makefile (info, html, dvi, pdf): Combine the rules.
36468         Suggested by Jim Meyering.
36469
36470 2009-04-01  Bruno Haible  <bruno@clisp.org>
36471
36472         * Makefile (info, html, dvi, pdf): New targets.
36473         Reported by Reuben Thomas <rrt@sc3d.org>.
36474
36475 2009-04-01  Bruno Haible  <bruno@clisp.org>
36476
36477         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36478         can be put into PATH.
36479         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36480
36481 2009-04-01  Bruno Haible  <bruno@clisp.org>
36482
36483         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36484
36485 2009-04-01  Bruno Haible  <bruno@clisp.org>
36486
36487         Rename module 'visibility'.
36488         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36489         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36490         * doc/gnulib.texi: Update.
36491         * MODULES.html.sh (Misc): Update.
36492         * NEWS: Mention the change.
36493
36494 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36495
36496         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36497         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36498         Eric Blake <ebb9@byu.net> for review.
36499         * MODULES.html.sh: Add lib-msvc-compat.
36500         * doc/gnulib.texi: Link to new section.
36501         * m4/ld-output-def.m4: New file.
36502         * doc/ld-output-def.texi: New file.
36503
36504 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36505
36506         Rename ld-version-script to lib-symbol-versions.  Suggested by
36507         Bruno Haible <bruno@clisp.org>.
36508         * modules/ld-version-script: Renamed to lib-symbol-versions.
36509         * doc/ld-version-script.texi: Fix module name.
36510         * MODULES.html.sh: Add lib-symbol-versions.
36511
36512 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36513
36514         * modules/u64-tests: New file.
36515         * tests/test-u64.c: New file.
36516
36517 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36518
36519         * MODULES.html.sh: Mention u64.
36520         * modules/u64: New module.
36521         * modules/crypto/sha512: Depend on u64 module instead of providing
36522         u64.h.
36523
36524 2009-03-27  Eric Blake  <ebb9@byu.net>
36525
36526         test-strerror: make debugging EAI_SYSTEM easier
36527         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36528         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36529         failure was EAI_SYSTEM.
36530
36531 2009-03-25  Bruno Haible  <bruno@clisp.org>
36532
36533         Fix a problem with --enable-relocatable on Solaris 7.
36534         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36535         since 2008-02-24.
36536
36537 2009-03-25  Eric Blake  <ebb9@byu.net>
36538
36539         test-sockets: avoid gcc warning
36540         * tests/test-sockets.c (main): Silence compiler warning.
36541
36542 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36543
36544         New modules nproc, pthread, contributed by Glen Lenker.
36545
36546         * MODULES.html.sh: Add pthread, nproc.
36547         * lib/nproc.c: New file.
36548         * lib/nproc.h: New file.
36549         * lib/pthread.in.h: New file.
36550         * m4/pthread.m4: New file.
36551         * modules/nproc: New file.
36552         * modules/pthread: New file.
36553
36554 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36555
36556         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36557         New variable.
36558
36559 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36560
36561         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36562         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36563         * tests/test-filevercmp.c: Add tests for backup suffixes.
36564
36565 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36566
36567         * modules/stdlib (Depends-on): Add stdint, needed when defining
36568         struct random_data on, for example, HP-UX 10.20.  Reported by
36569         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36570
36571 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36572
36573         * lib/readline.c (readline): Call fflush on stdout after printing
36574         prompt.
36575
36576 2009-03-20  Bruno Haible  <bruno@clisp.org>
36577
36578         Remove dependency from 'close' module to -lws2_32 on native Windows.
36579         * lib/close-hook.h: New file.
36580         * lib/close-hook.c: New file.
36581         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36582         w32sock.h.
36583         (_gl_close_fd_maybe_socket): Remove function.
36584         (rpl_close): Invoke execute_all_close_hooks instead of
36585         _gl_close_fd_maybe_socket.
36586         * lib/sockets.c: Include close-hook.h, w32sock.h.
36587         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36588         (close_sockets_hook): New variable.
36589         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36590         (gl_sockets_cleanup): Unregister it.
36591         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36592         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36593         * modules/close-hook: New file.
36594         * modules/close (Files): Remove lib/w32sock.h.
36595         (Depends-on): Add close-hook.
36596         (Link): Remove section.
36597         * modules/sockets (Files): Add lib/w32sock.h.
36598         (Depends-on): Add close-hook.
36599         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36600         invocation.
36601         * NEWS: Mention that LIB_CLOSE is gone.
36602
36603 2009-03-23  Eric Blake  <ebb9@byu.net>
36604
36605         signal-tests: test previous patch
36606         * tests/test-signal.c: New file.
36607         * modules/signal-tests: Likewise.
36608
36609         signal.h: always support 'volatile sig_atomic_t'
36610         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36611         (gl_SIGNAL_H_DEFAULTS): Add a default.
36612         * modules/signal (Makefile.am): Substitute if needed.
36613         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36614         users can blindly add volatile.
36615         * doc/posix-headers/signal.texi (signal.h): Document it.
36616         Reported by Matthew Woehlke.
36617
36618 2009-03-23  Jim Meyering  <meyering@redhat.com>
36619
36620         pathmax: PATH_MAX: use pathconf only when available
36621         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36622         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36623         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36624         This avoids a link failure in a PSP cross-compilation environment
36625         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36626
36627         * lib/vasnprintf.c (divide): Fix typo in comment.
36628
36629 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36630
36631         * gnulib-tool (func_filter_filelist): Fix comment.
36632
36633 2009-03-20  Bruno Haible  <bruno@clisp.org>
36634
36635         Make sockets.h self-contained.
36636         * lib/sockets.c: Include sockets.h first.
36637         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36638
36639 2009-03-19  Eric Blake  <ebb9@byu.net>
36640
36641         doc: mention more functions added in cygwin 1.7.0
36642         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36643         addition.
36644         * doc/posix-functions/log2f.texi: Likewise.
36645
36646 2009-03-19  Jim Meyering  <meyering@redhat.com>
36647
36648         fsusage: avoid syntax error due to statement-before-declaration
36649         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36650         after all declarations.  Reported by Matthew Woehlke in
36651         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36652
36653 2009-03-18  Eric Blake  <ebb9@byu.net>
36654
36655         build-aux/compile: sync from automake
36656         * build-aux/compile: New file, from automake.
36657         * config/srclist.txt: Mention build-aux/compile.
36658
36659 2009-03-17  Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/git-merge-changelog.c: Fix typo in comment.
36662         Reported by Reuben Thomas <rrt@sc3d.org>.
36663
36664 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36665
36666         * m4/regex.m4: update and improve help for
36667         --without-included-regex.
36668
36669 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36670
36671         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36672         failure on missing include files.
36673
36674 2009-03-17  Eric Blake  <ebb9@byu.net>
36675
36676         doc: mention more functions added in cygwin 1.7.0
36677         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36678         addition.
36679         * doc/posix-functions/fwscanf.texi: Likewise.
36680         * doc/posix-functions/swprintf.texi: Likewise.
36681         * doc/posix-functions/swscanf.texi: Likewise.
36682         * doc/posix-functions/vfwprintf.texi: Likewise.
36683         * doc/posix-functions/vfwscanf.texi: Likewise.
36684         * doc/posix-functions/vswprintf.texi: Likewise.
36685         * doc/posix-functions/vswscanf.texi: Likewise.
36686         * doc/posix-functions/vwprintf.texi: Likewise.
36687         * doc/posix-functions/vwscanf.texi: Likewise.
36688         * doc/posix-functions/wcscasecmp.texi: Likewise.
36689         * doc/posix-functions/wcsdup.texi: Likewise.
36690         * doc/posix-functions/wcsftime.texi: Likewise.
36691         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36692         * doc/posix-functions/wprintf.texi: Likewise.
36693         * doc/posix-functions/wscanf.texi: Likewise.
36694         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36695
36696 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36697
36698         maint.mk: really add $(AM_MAKEFLAGS)
36699         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36700         was inadvertently omitted in the last commit.
36701         Spotted by Bruno Haible.
36702
36703         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36704         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36705         $(AM_MAKEFLAGS)' rather than plain `make'.
36706
36707         gnulib-tool: execute $MAKE not make
36708         * gnulib-tool: Default $MAKE to 'make'.
36709         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36710         than make.  Initialize $MAKE in the do-autobuild script.
36711
36712         gnulib-tool: use $MAKE not make in generated files
36713         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36714         make, in generated files.  Initialize $MAKE in the do-autobuild
36715         script.
36716
36717         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36718
36719         GNUmakefile: disable parallelism only for multiple, recursive targets
36720         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36721         additions in the Makefile.
36722         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36723         by Automake.
36724         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36725         are listed on the command line and at least one of them is
36726         listed in $(ALL_RECURSIVE_TARGETS).
36727
36728 2009-03-14  Bruno Haible  <bruno@clisp.org>
36729
36730         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36731         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36732         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36733         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36734         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36735         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36736         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36737         unistr/u8-uctomb.
36738         * modules/unistr/u8-strchr (Depends-on): Likewise.
36739         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36740         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36741         unistr/u16-uctomb.
36742         * modules/unistr/u16-strchr (Depends-on): Likewise.
36743         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36744
36745 2009-03-12  Bruno Haible  <bruno@clisp.org>
36746
36747         Work around select() bug on Interix 3.5.
36748         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36749         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36750         * m4/select.m4: New file.
36751         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36752         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36753         * modules/select (Files): Add m4/select.m4.
36754         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36755         * modules/nanosleep (Depends-on): Add select.
36756         * modules/poll (Depends-on): Likewise.
36757         * doc/posix-functions/select.texi: Mention the Interix bug.
36758         Reported by Markus Duft <mduft@gentoo.org>.
36759
36760         * lib/select.c: Renamed from lib/winsock-select.c.
36761         * modules/select (Files): Add lib/select.c, remove
36762         lib/winsock-select.c.
36763         (configure.ac): Update.
36764
36765 2009-03-12  Jim Meyering  <meyering@redhat.com>
36766
36767         avoid gcc warnings about unused macro definitions
36768         * lib/readtokens.c (STREQ): Remove unused definition.
36769         * lib/xmalloc.c (SIZE_MAX): Likewise.
36770         * lib/openat-die.c (N_): Likewise.
36771         * lib/mountlist.c (SIZE_MAX): Remove definition.
36772         Instead, include <stdint.h>.
36773         * lib/readutmp.c: Likewise.
36774         * modules/readutmp (Depends-on): Add stdint.
36775         * modules/mountlist (Depends-on): Add stdint.
36776         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36777
36778 2009-03-10  Bruno Haible  <bruno@clisp.org>
36779
36780         Tests for module 'mbmemcasecoll'.
36781         * modules/mbmemcasecoll-tests: New file.
36782         * tests/test-mbmemcasecoll1.sh: New file.
36783         * tests/test-mbmemcasecoll2.sh: New file.
36784         * tests/test-mbmemcasecoll3.sh: New file.
36785         * tests/test-mbmemcasecoll.c: New file.
36786
36787         New module 'mbmemcasecoll'.
36788         * lib/mbmemcasecoll.h: New file.
36789         * lib/mbmemcasecoll.c: New file.
36790         * modules/mbmemcasecoll: New file.
36791
36792         * tests/test-mbmemcasecmp.h: New file, extracted from
36793         tests/test-mbmemcasecmp.c.
36794         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36795         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36796         (main): Update.
36797         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36798
36799 2009-03-09  Bruno Haible  <bruno@clisp.org>
36800
36801         Tests for module 'mbmemcasecmp'.
36802         * modules/mbmemcasecmp-tests: New file.
36803         * tests/test-mbmemcasecmp1.sh: New file.
36804         * tests/test-mbmemcasecmp2.sh: New file.
36805         * tests/test-mbmemcasecmp3.sh: New file.
36806         * tests/test-mbmemcasecmp.c: New file.
36807
36808         New module 'mbmemcasecmp'.
36809         * lib/mbmemcasecmp.h: New file.
36810         * lib/mbmemcasecmp.c: New file.
36811         * modules/mbmemcasecmp: New file.
36812
36813 2009-03-09  Bruno Haible  <bruno@clisp.org>
36814
36815         Tests for module 'unicase/ulc-casecoll'.
36816         * modules/unicase/ulc-casecoll-tests: New file.
36817         * tests/unicase/test-ulc-casecoll1.sh: New file.
36818         * tests/unicase/test-ulc-casecoll2.sh: New file.
36819         * tests/unicase/test-ulc-casecoll.c: New file.
36820
36821         New module 'unicase/ulc-casecoll'.
36822         * lib/unicase.h (ulc_casecoll): New declaration.
36823         * lib/unicase/ulc-casecoll.c: New file.
36824         * modules/unicase/ulc-casecoll: New file.
36825
36826         New module 'unicase/ulc-casexfrm'.
36827         * lib/unicase.h (ulc_casexfrm): New declaration.
36828         * lib/unicase/ulc-casexfrm.c: New file.
36829         * modules/unicase/ulc-casexfrm: New file.
36830
36831 2009-03-09  Bruno Haible  <bruno@clisp.org>
36832
36833         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36834         invocations.
36835
36836         * m4/mbscasecmp.m4: Remove file.
36837         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36838         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36839
36840         * m4/mbscasestr.m4: Remove file.
36841         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36842         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36843
36844         * m4/mbschr.m4: Remove file.
36845         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36846         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36847
36848         * m4/mbscspn.m4: Remove file.
36849         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36850         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36851
36852         * m4/mbslen.m4: Remove file.
36853         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36854         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36855
36856         * m4/mbsncasecmp.m4: Remove file.
36857         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36858         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36859
36860         * m4/mbsnlen.m4: Remove file.
36861         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36862         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36863
36864         * m4/mbspbrk.m4: Remove file.
36865         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36866         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36867
36868         * m4/mbspcasecmp.m4: Remove file.
36869         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36870         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36871
36872         * m4/mbsrchr.m4: Remove file.
36873         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36874         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36875
36876         * m4/mbssep.m4: Remove file.
36877         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36878         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36879
36880         * m4/mbsspn.m4: Remove file.
36881         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36882         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36883
36884         * m4/mbsstr.m4: Remove file.
36885         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36886         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36887
36888         * m4/mbstok_r.m4: Remove file.
36889         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36890         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36891
36892         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36893
36894         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36895         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36896
36897         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36898
36899 2009-03-08  Bruno Haible  <bruno@clisp.org>
36900
36901         Tests for module 'unicase/ulc-casecmp'.
36902         * modules/unicase/ulc-casecmp-tests: New file.
36903         * tests/unicase/test-ulc-casecmp1.sh: New file.
36904         * tests/unicase/test-ulc-casecmp2.sh: New file.
36905         * tests/unicase/test-ulc-casecmp.c: New file.
36906
36907         New module 'unicase/ulc-casecmp'.
36908         * lib/unicase.h (ulc_casecmp): New declaration.
36909         * lib/unicase/ulc-casecmp.c: New file.
36910         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36911         'const SRC_UNIT *'.
36912         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36913         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36914         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36915         * modules/unicase/ulc-casecmp: New file.
36916
36917         Tests for module 'unicase/u32-is-cased'.
36918         * modules/unicase/u32-is-cased-tests: New file.
36919         * tests/unicase/test-u32-is-cased.c: New file.
36920
36921         Tests for module 'unicase/u16-is-cased'.
36922         * modules/unicase/u16-is-cased-tests: New file.
36923         * tests/unicase/test-u16-is-cased.c: New file.
36924
36925         Tests for module 'unicase/u8-is-cased'.
36926         * modules/unicase/u8-is-cased-tests: New file.
36927         * tests/unicase/test-u8-is-cased.c: New file.
36928         * tests/unicase/test-is-cased.h: New file.
36929
36930         New module 'unicase/u32-is-cased'.
36931         * lib/unicase/u32-is-cased.c: New file.
36932         * modules/unicase/u32-is-cased: New file.
36933
36934         New module 'unicase/u16-is-cased'.
36935         * lib/unicase/u16-is-cased.c: New file.
36936         * modules/unicase/u16-is-cased: New file.
36937
36938         New module 'unicase/u8-is-cased'.
36939         * lib/unicase/u8-is-cased.c: New file.
36940         * lib/unicase/u-is-cased.h: New file.
36941         * modules/unicase/u8-is-cased: New file.
36942
36943         Tests for module 'unicase/u32-is-casefolded'.
36944         * modules/unicase/u32-is-casefolded-tests: New file.
36945         * tests/unicase/test-u32-is-casefolded.c: New file.
36946
36947         Tests for module 'unicase/u16-is-casefolded'.
36948         * modules/unicase/u16-is-casefolded-tests: New file.
36949         * tests/unicase/test-u16-is-casefolded.c: New file.
36950
36951         Tests for module 'unicase/u8-is-casefolded'.
36952         * modules/unicase/u8-is-casefolded-tests: New file.
36953         * tests/unicase/test-u8-is-casefolded.c: New file.
36954         * tests/unicase/test-is-casefolded.h: New file.
36955
36956         New module 'unicase/u32-is-casefolded'.
36957         * lib/unicase/u32-is-casefolded.c: New file.
36958         * modules/unicase/u32-is-casefolded: New file.
36959
36960         New module 'unicase/u16-is-casefolded'.
36961         * lib/unicase/u16-is-casefolded.c: New file.
36962         * modules/unicase/u16-is-casefolded: New file.
36963
36964         New module 'unicase/u8-is-casefolded'.
36965         * lib/unicase/u8-is-casefolded.c: New file.
36966         * modules/unicase/u8-is-casefolded: New file.
36967
36968         Tests for module 'unicase/u32-is-titlecase'.
36969         * modules/unicase/u32-is-titlecase-tests: New file.
36970         * tests/unicase/test-u32-is-titlecase.c: New file.
36971
36972         Tests for module 'unicase/u16-is-titlecase'.
36973         * modules/unicase/u16-is-titlecase-tests: New file.
36974         * tests/unicase/test-u16-is-titlecase.c: New file.
36975
36976         Tests for module 'unicase/u8-is-titlecase'.
36977         * modules/unicase/u8-is-titlecase-tests: New file.
36978         * tests/unicase/test-u8-is-titlecase.c: New file.
36979         * tests/unicase/test-is-titlecase.h: New file.
36980
36981         New module 'unicase/u32-is-titlecase'.
36982         * lib/unicase/u32-is-titlecase.c: New file.
36983         * modules/unicase/u32-is-titlecase: New file.
36984
36985         New module 'unicase/u16-is-titlecase'.
36986         * lib/unicase/u16-is-titlecase.c: New file.
36987         * modules/unicase/u16-is-titlecase: New file.
36988
36989         New module 'unicase/u8-is-titlecase'.
36990         * lib/unicase/u8-is-titlecase.c: New file.
36991         * modules/unicase/u8-is-titlecase: New file.
36992
36993         Tests for module 'unicase/u32-is-lowercase'.
36994         * modules/unicase/u32-is-lowercase-tests: New file.
36995         * tests/unicase/test-u32-is-lowercase.c: New file.
36996
36997         Tests for module 'unicase/u16-is-lowercase'.
36998         * modules/unicase/u16-is-lowercase-tests: New file.
36999         * tests/unicase/test-u16-is-lowercase.c: New file.
37000
37001         Tests for module 'unicase/u8-is-lowercase'.
37002         * modules/unicase/u8-is-lowercase-tests: New file.
37003         * tests/unicase/test-u8-is-lowercase.c: New file.
37004         * tests/unicase/test-is-lowercase.h: New file.
37005
37006         New module 'unicase/u32-is-lowercase'.
37007         * lib/unicase/u32-is-lowercase.c: New file.
37008         * modules/unicase/u32-is-lowercase: New file.
37009
37010         New module 'unicase/u16-is-lowercase'.
37011         * lib/unicase/u16-is-lowercase.c: New file.
37012         * modules/unicase/u16-is-lowercase: New file.
37013
37014         New module 'unicase/u8-is-lowercase'.
37015         * lib/unicase/u8-is-lowercase.c: New file.
37016         * modules/unicase/u8-is-lowercase: New file.
37017
37018         Tests for module 'unicase/u32-is-uppercase'.
37019         * modules/unicase/u32-is-uppercase-tests: New file.
37020         * tests/unicase/test-u32-is-uppercase.c: New file.
37021
37022         Tests for module 'unicase/u16-is-uppercase'.
37023         * modules/unicase/u16-is-uppercase-tests: New file.
37024         * tests/unicase/test-u16-is-uppercase.c: New file.
37025
37026         Tests for module 'unicase/u8-is-uppercase'.
37027         * modules/unicase/u8-is-uppercase-tests: New file.
37028         * tests/unicase/test-u8-is-uppercase.c: New file.
37029         * tests/unicase/test-is-uppercase.h: New file.
37030
37031         New module 'unicase/u32-is-uppercase'.
37032         * lib/unicase/u32-is-uppercase.c: New file.
37033         * modules/unicase/u32-is-uppercase: New file.
37034
37035         New module 'unicase/u16-is-uppercase'.
37036         * lib/unicase/u16-is-uppercase.c: New file.
37037         * modules/unicase/u16-is-uppercase: New file.
37038
37039         New module 'unicase/u8-is-uppercase'.
37040         * lib/unicase/u8-is-uppercase.c: New file.
37041         * modules/unicase/u8-is-uppercase: New file.
37042
37043         New module 'unicase/u32-is-invariant'.
37044         * lib/unicase/u32-is-invariant.c: New file.
37045         * modules/unicase/u32-is-invariant: New file.
37046
37047         New module 'unicase/u16-is-invariant'.
37048         * lib/unicase/u16-is-invariant.c: New file.
37049         * modules/unicase/u16-is-invariant: New file.
37050
37051         New module 'unicase/u8-is-invariant'.
37052         * lib/unicase/u8-is-invariant.c: New file.
37053         * lib/unicase/invariant.h: New file.
37054         * lib/unicase/u-is-invariant.h: New file.
37055         * modules/unicase/u8-is-invariant: New file.
37056
37057         Tests for module 'unicase/u32-casecoll'.
37058         * modules/unicase/u32-casecoll-tests: New file.
37059         * tests/unicase/test-u32-casecoll.c: New file.
37060
37061         Tests for module 'unicase/u16-casecoll'.
37062         * modules/unicase/u16-casecoll-tests: New file.
37063         * tests/unicase/test-u16-casecoll.c: New file.
37064
37065         Tests for module 'unicase/u8-casecoll'.
37066         * modules/unicase/u8-casecoll-tests: New file.
37067         * tests/unicase/test-u8-casecoll.c: New file.
37068
37069         New module 'unicase/u32-casecoll'.
37070         * lib/unicase/u32-casecoll.c: New file.
37071         * modules/unicase/u32-casecoll: New file.
37072
37073         New module 'unicase/u16-casecoll'.
37074         * lib/unicase/u16-casecoll.c: New file.
37075         * modules/unicase/u16-casecoll: New file.
37076
37077         New module 'unicase/u8-casecoll'.
37078         * lib/unicase/u8-casecoll.c: New file.
37079         * lib/unicase/u-casecoll.h: New file.
37080         * modules/unicase/u8-casecoll: New file.
37081
37082         New module 'unicase/u32-casexfrm'.
37083         * lib/unicase/u32-casexfrm.c: New file.
37084         * modules/unicase/u32-casexfrm: New file.
37085
37086         New module 'unicase/u16-casexfrm'.
37087         * lib/unicase/u16-casexfrm.c: New file.
37088         * modules/unicase/u16-casexfrm: New file.
37089
37090         New module 'unicase/u8-casexfrm'.
37091         * lib/unicase/u8-casexfrm.c: New file.
37092         * lib/unicase/u-casexfrm.h: New file.
37093         * modules/unicase/u8-casexfrm: New file.
37094
37095         Tests for module 'unicase/u32-casecmp'.
37096         * modules/unicase/u32-casecmp-tests: New file.
37097         * tests/unicase/test-u32-casecmp.c: New file.
37098
37099         Tests for module 'unicase/u16-casecmp'.
37100         * modules/unicase/u16-casecmp-tests: New file.
37101         * tests/unicase/test-u16-casecmp.c: New file.
37102
37103         Tests for module 'unicase/u8-casecmp'.
37104         * modules/unicase/u8-casecmp-tests: New file.
37105         * tests/unicase/test-u8-casecmp.c: New file.
37106         * tests/unicase/test-casecmp.h: New file.
37107
37108         New module 'unicase/u32-casecmp'.
37109         * lib/unicase/u32-casecmp.c: New file.
37110         * modules/unicase/u32-casecmp: New file.
37111
37112         New module 'unicase/u16-casecmp'.
37113         * lib/unicase/u16-casecmp.c: New file.
37114         * modules/unicase/u16-casecmp: New file.
37115
37116         New module 'unicase/u8-casecmp'.
37117         * lib/unicase/u8-casecmp.c: New file.
37118         * lib/unicase/u-casecmp.h: New file.
37119         * modules/unicase/u8-casecmp: New file.
37120
37121         Tests for module 'unicase/u32-casefold'.
37122         * modules/unicase/u32-casefold-tests: New file.
37123         * tests/unicase/test-u32-casefold.c: New file.
37124
37125         Tests for module 'unicase/u16-casefold'.
37126         * modules/unicase/u16-casefold-tests: New file.
37127         * tests/unicase/test-u16-casefold.c: New file.
37128
37129         Tests for module 'unicase/u8-casefold'.
37130         * modules/unicase/u8-casefold-tests: New file.
37131         * tests/unicase/test-u8-casefold.c: New file.
37132
37133         New module 'unicase/u32-casefold'.
37134         * lib/unicase/u32-casefold.c: New file.
37135         * modules/unicase/u32-casefold: New file.
37136
37137         New module 'unicase/u16-casefold'.
37138         * lib/unicase/u16-casefold.c: New file.
37139         * modules/unicase/u16-casefold: New file.
37140
37141         New module 'unicase/u8-casefold'.
37142         * lib/unicase/u8-casefold.c: New file.
37143         * lib/unicase/u-casefold.h: New file.
37144         * modules/unicase/u8-casefold: New file.
37145
37146         New module 'unicase/tocasefold'.
37147         * lib/unicase/casefold.h: New file.
37148         * lib/unicase/tocasefold.c: New file.
37149         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37150         * modules/unicase/tocasefold: New file.
37151
37152         Tests for module 'unicase/u32-totitle'.
37153         * modules/unicase/u32-totitle-tests: New file.
37154         * tests/unicase/test-u32-totitle.c: New file.
37155
37156         Tests for module 'unicase/u16-totitle'.
37157         * modules/unicase/u16-totitle-tests: New file.
37158         * tests/unicase/test-u16-totitle.c: New file.
37159
37160         Tests for module 'unicase/u8-totitle'.
37161         * modules/unicase/u8-totitle-tests: New file.
37162         * tests/unicase/test-u8-totitle.c: New file.
37163
37164         New module 'unicase/u32-totitle'.
37165         * lib/unicase/u32-totitle.c: New file.
37166         * modules/unicase/u32-totitle: New file.
37167
37168         New module 'unicase/u16-totitle'.
37169         * lib/unicase/u16-totitle.c: New file.
37170         * modules/unicase/u16-totitle: New file.
37171
37172         New module 'unicase/u8-totitle'.
37173         * lib/unicase/u8-totitle.c: New file.
37174         * lib/unicase/u-totitle.h: New file.
37175         * modules/unicase/u8-totitle: New file.
37176
37177         Tests for module 'unicase/u32-tolower'.
37178         * modules/unicase/u32-tolower-tests: New file.
37179         * tests/unicase/test-u32-tolower.c: New file.
37180
37181         Tests for module 'unicase/u16-tolower'.
37182         * modules/unicase/u16-tolower-tests: New file.
37183         * tests/unicase/test-u16-tolower.c: New file.
37184
37185         Tests for module 'unicase/u8-tolower'.
37186         * modules/unicase/u8-tolower-tests: New file.
37187         * tests/unicase/test-u8-tolower.c: New file.
37188
37189         New module 'unicase/u32-tolower'.
37190         * lib/unicase/u32-tolower.c: New file.
37191         * modules/unicase/u32-tolower: New file.
37192
37193         New module 'unicase/u16-tolower'.
37194         * lib/unicase/u16-tolower.c: New file.
37195         * modules/unicase/u16-tolower: New file.
37196
37197         New module 'unicase/u8-tolower'.
37198         * lib/unicase/u8-tolower.c: New file.
37199         * modules/unicase/u8-tolower: New file.
37200
37201         Tests for module 'unicase/u32-toupper'.
37202         * modules/unicase/u32-toupper-tests: New file.
37203         * tests/unicase/test-u32-toupper.c: New file.
37204
37205         Tests for module 'unicase/u16-toupper'.
37206         * modules/unicase/u16-toupper-tests: New file.
37207         * tests/unicase/test-u16-toupper.c: New file.
37208
37209         Tests for module 'unicase/u8-toupper'.
37210         * modules/unicase/u8-toupper-tests: New file.
37211         * tests/unicase/test-u8-toupper.c: New file.
37212
37213         New module 'unicase/u32-toupper'.
37214         * lib/unicase/u32-toupper.c: New file.
37215         * modules/unicase/u32-toupper: New file.
37216
37217         New module 'unicase/u16-toupper'.
37218         * lib/unicase/u16-toupper.c: New file.
37219         * modules/unicase/u16-toupper: New file.
37220
37221         New module 'unicase/u8-toupper'.
37222         * lib/unicase/u8-toupper.c: New file.
37223         * modules/unicase/u8-toupper: New file.
37224
37225         New module 'unicase/u32-casemap'.
37226         * lib/unicase/u32-casemap.c: New file.
37227         * modules/unicase/u32-casemap: New file.
37228
37229         New module 'unicase/u16-casemap'.
37230         * lib/unicase/u16-casemap.c: New file.
37231         * modules/unicase/u16-casemap: New file.
37232
37233         New module 'unicase/u8-casemap'.
37234         * lib/unicase/unicasemap.h: New file.
37235         * lib/unicase/u8-casemap.c: New file.
37236         * lib/unicase/u-casemap.h: New file.
37237         * modules/unicase/u8-casemap: New file.
37238
37239         New module 'unicase/special-casing'.
37240         * lib/unicase/special-casing.h: New file.
37241         * lib/unicase/special-casing.c: New file.
37242         * lib/unicase/special-casing-table.gperf: New file, generated by
37243         gen-uni-tables.c.
37244         * modules/unicase/special-casing: New file.
37245
37246         Tests for module 'unicase/locale-language'.
37247         * modules/unicase/locale-language-tests: New file.
37248         * tests/unicase/test-locale-language.sh: New file.
37249         * tests/unicase/test-locale-language.c: New file.
37250
37251         New module 'unicase/locale-language'.
37252         * lib/unicase/locale-language.c: New file.
37253         * lib/unicase/locale-languages.gperf: New file.
37254         * modules/unicase/locale-language: New file.
37255
37256         Generate more tables for case conversion and case folding.
37257         * lib/gen-uni-tables.c (SCC_*): New enum items.
37258         (struct special_casing_rule): New type.
37259         (casing_rules, num_casing_rules, allocated_casing_rules): New
37260         variables.
37261         (add_casing_rule, fill_casing_rules): New functions.
37262         (struct casefold_rule): New type.
37263         (casefolding_rules, num_casefolding_rules,
37264         allocated_casefolding_rules): New variables.
37265         (fill_casefolding_rules): New function.
37266         (unicode_casefold): New variable.
37267         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37268         sort_casing_rules, output_casing_rules): New functions.
37269         (main): Accept to more arguments: SpecialCasing.txt and
37270         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37271         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37272         Output mapping for casefolding.
37273
37274         * lib/unicase.h: Include stdbool.h, uninorm.h.
37275         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37276         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37277         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37278         arguments.
37279         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37280         resultp arguments.
37281         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37282         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37283         resultp arguments.
37284         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37285         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37286         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37287         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37288         declarations.
37289         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37290
37291 2009-03-08  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37294         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37295         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37296         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37297
37298 2009-03-07  Bruno Haible  <bruno@clisp.org>
37299
37300         Adjust u*_normcmp, u*_normcoll API.
37301         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37302         u16_normcoll, u32_normcoll): Change failure conventions.
37303         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37304         errno and return -1.
37305         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37306
37307 2009-03-07  Bruno Haible  <bruno@clisp.org>
37308
37309         Tests for module 'uninorm/u32-normcoll'.
37310         * modules/uninorm/u32-normcoll-tests: New file.
37311         * tests/uninorm/test-u32-normcoll.c: New file.
37312
37313         Tests for module 'uninorm/u16-normcoll'.
37314         * modules/uninorm/u16-normcoll-tests: New file.
37315         * tests/uninorm/test-u16-normcoll.c: New file.
37316
37317         Tests for module 'uninorm/u8-normcoll'.
37318         * modules/uninorm/u8-normcoll-tests: New file.
37319         * tests/uninorm/test-u8-normcoll.c: New file.
37320
37321 2009-03-07  Bruno Haible  <bruno@clisp.org>
37322
37323         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37324         tests/uninorm/test-u32-normcmp.c.
37325         * tests/uninorm/test-u32-normcmp.c: Include it.
37326         (test_nonascii): New function, extracted from main. Add some more
37327         tests.
37328         (main): Invoke test_ascii and test_nonascii.
37329         * modules/uninorm/u32-normcmp-tests (Files): Add
37330         tests/uninorm/test-u32-normcmp.h.
37331         (Depends-on): Remove uninorm/u32-normcmp.
37332
37333         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37334         tests/uninorm/test-u16-normcmp.c.
37335         * tests/uninorm/test-u16-normcmp.c: Include it.
37336         (test_nonascii): New function, extracted from main. Add some more
37337         tests.
37338         (main): Invoke test_ascii and test_nonascii.
37339         * modules/uninorm/u16-normcmp-tests (Files): Add
37340         tests/uninorm/test-u16-normcmp.h.
37341         (Depends-on): Remove uninorm/u16-normcmp.
37342
37343         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37344         tests/uninorm/test-u8-normcmp.c.
37345         * tests/uninorm/test-u8-normcmp.c: Include it.
37346         (test_nonascii): New function, extracted from main. Add some more
37347         tests.
37348         (main): Invoke test_ascii and test_nonascii.
37349         * modules/uninorm/u8-normcmp-tests (Files): Add
37350         tests/uninorm/test-u8-normcmp.h.
37351         (Depends-on): Remove uninorm/u8-normcmp.
37352
37353 2009-03-07  Bruno Haible  <bruno@clisp.org>
37354
37355         New module 'uninorm/u32-normcoll'.
37356         * lib/uninorm/u32-normcoll.c: New file.
37357         * modules/uninorm/u32-normcoll: New file.
37358
37359         New module 'uninorm/u16-normcoll'.
37360         * lib/uninorm/u16-normcoll.c: New file.
37361         * modules/uninorm/u16-normcoll: New file.
37362
37363         New module 'uninorm/u8-normcoll'.
37364         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37365         declarations.
37366         * lib/uninorm/u8-normcoll.c: New file.
37367         * lib/uninorm/u-normcoll.h: New file.
37368         * modules/uninorm/u8-normcoll: New file.
37369
37370         New module 'uninorm/u32-normxfrm'.
37371         * lib/uninorm/u32-normxfrm.c: New file.
37372         * modules/uninorm/u32-normxfrm: New file.
37373
37374         New module 'uninorm/u16-normxfrm'.
37375         * lib/uninorm/u16-normxfrm.c: New file.
37376         * modules/uninorm/u16-normxfrm: New file.
37377
37378         New module 'uninorm/u8-normxfrm'.
37379         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37380         declarations.
37381         * lib/uninorm/u8-normxfrm.c: New file.
37382         * lib/uninorm/u-normxfrm.h: New file.
37383         * modules/uninorm/u8-normxfrm: New file.
37384
37385 2009-03-07  Bruno Haible  <bruno@clisp.org>
37386
37387         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37388         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37389         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37390
37391 2009-03-07  Bruno Haible  <bruno@clisp.org>
37392
37393         New module 'memxfrm'.
37394         * lib/memxfrm.h: New file.
37395         * lib/memxfrm.c: New file.
37396         * modules/memxfrm: New file.
37397
37398 2009-03-07  Bruno Haible  <bruno@clisp.org>
37399
37400         New module 'memcmp2'.
37401         * lib/memcmp2.h: New file.
37402         * lib/memcmp2.c: New file.
37403         * modules/memcmp2: New file.
37404
37405 2009-03-07  Bruno Haible  <bruno@clisp.org>
37406
37407         Tests for module 'uninorm/decomposing-form'.
37408         * modules/uninorm/decomposing-form-tests: New file.
37409         * tests/uninorm/test-decomposing-form.c: New file.
37410
37411         New module 'uninorm/decomposing-form'.
37412         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37413         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37414         Add 'decomposing_variant' field.
37415         * lib/uninorm/decomposing-form.c: New file.
37416         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37417         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37418         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37419         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37420         * modules/uninorm/decomposing-form: New file.
37421         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37422         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37423
37424 2009-03-07  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37427         strings.
37428
37429 2009-03-06  Bruno Haible  <bruno@clisp.org>
37430
37431         Tests for module 'uninorm/u32-normcmp'.
37432         * tests/uninorm/test-u32-normcmp.c: New file.
37433         * modules/uninorm/u32-normcmp-tests: New file.
37434
37435         Tests for module 'uninorm/u16-normcmp'.
37436         * tests/uninorm/test-u16-normcmp.c: New file.
37437         * modules/uninorm/u16-normcmp-tests: New file.
37438
37439         Tests for module 'uninorm/u8-normcmp'.
37440         * tests/uninorm/test-u8-normcmp.c: New file.
37441         * modules/uninorm/u8-normcmp-tests: New file.
37442
37443         New module 'uninorm/u32-normcmp'.
37444         * lib/uninorm/u32-normcmp.c: New file.
37445         * modules/uninorm/u32-normcmp: New file.
37446
37447         New module 'uninorm/u16-normcmp'.
37448         * lib/uninorm/u16-normcmp.c: New file.
37449         * modules/uninorm/u16-normcmp: New file.
37450
37451         New module 'uninorm/u8-normcmp'.
37452         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37453         declarations.
37454         * lib/uninorm/u8-normcmp.c: New file.
37455         * lib/uninorm/u-normcmp.h: New file.
37456         * modules/uninorm/u8-normcmp: New file.
37457
37458 2009-03-06  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37461         Reported by Eric Blake.
37462
37463 2009-03-06  Eric Blake  <ebb9@byu.net>
37464             Bruno Haible  <bruno@clisp.org>
37465
37466         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37467         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37468         condition.
37469         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37470         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37471         condition.
37472         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37473
37474 2009-03-06  Eric Blake  <ebb9@byu.net>
37475
37476         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37477         to avoid compiler warnings.
37478         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37479
37480 2009-03-05  Bruno Haible  <bruno@clisp.org>
37481
37482         * tests/test-ftell.c (main): Disable test beyond end of file on
37483         FreeMiNT.
37484         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37485
37486 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37487
37488         * lib/filevercmp.c: Move hidden files up in ordering.
37489         * tests/test-filevercmp.c: Add tests for hidden files.
37490
37491 2009-03-04  Bruno Haible  <bruno@clisp.org>
37492
37493         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37494         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37495         AM_CFLAGS.
37496         Reported by Simon Josefsson.
37497
37498 2009-03-03  Bruno Haible  <bruno@clisp.org>
37499
37500         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37501         Reported by Simon Josefsson.
37502
37503         * doc/ld-version-script.texi: Update node reference.
37504
37505 2009-03-03  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/visibility (License): Change to 'unlimited'.
37508         Suggested by Simon Josefsson.
37509
37510 2009-03-03  Jim Meyering  <meyering@redhat.com>
37511
37512         unlinkdir: cannot_unlink_dir may modify process state
37513         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37514         it's neither thread-safe nor appropriate for use in a library.
37515
37516 2009-03-03  Eric Blake  <ebb9@byu.net>
37517
37518         test-closein: silence test under Darwin
37519         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37520         care if it dies from EPIPE or EBADF.
37521
37522 2009-03-03  Bruno Haible  <bruno@clisp.org>
37523
37524         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37525         earlier.
37526         * doc/visibility.texi: Fix @node and @section.
37527
37528 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37529
37530         * doc/gnulib.texi: Link to sections for ld version script and
37531         visibility.
37532         * doc/visibility.texi: Add @node and @section.
37533         * modules/ld-version-script: New module.
37534         * m4/ld-version-script.m4: New file.
37535         * doc/ld-version-script.texi: New file.
37536
37537 2009-03-02  David Lutterkort  <lutter@redhat.com>
37538
37539         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37541
37542 2009-03-02  Bruno Haible  <bruno@clisp.org>
37543
37544         * doc/visibility.texi: Mention libtool's -export-symbols option.
37545
37546 2009-03-02  Jim Meyering  <meyering@redhat.com>
37547
37548         announce-gen: new option: --no-print-checksums
37549         * build-aux/announce-gen (usage): Describe it.
37550         (print_checksums): Print a newline here, not in the [*] footnote.
37551         (main): Honor it.
37552
37553 2009-03-01  Bruno Haible  <bruno@clisp.org>
37554
37555         Use socklen_t in the native Windows replacements prototypes.
37556         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37557         instead of 'int'.
37558         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37559         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37560         * modules/getsockopt (Depends-on): Add socklen.
37561         * modules/setsockopt (Depends-on): Add socklen.
37562
37563 2009-03-01  Bruno Haible  <bruno@clisp.org>
37564
37565         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37566         least 4.2.
37567
37568 2009-03-01  Eric Blake  <ebb9@byu.net>
37569             Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37572         error messages.
37573         * lib/wait-process.c (wait_subprocess): Omit error message about
37574         deadly signal sent to the child of termsigp != NULL.
37575
37576 2009-03-01  Eric Blake  <ebb9@byu.net>
37577
37578         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37579
37580 2009-03-01  Bruno Haible  <bruno@clisp.org>
37581
37582         Avoid a gcc warning.
37583         * tests/test-sched.c (b): Make global.
37584         Reported by Eric Blake.
37585
37586 2009-01-19  Martin Lambers  <marlam@marlam.de>
37587
37588         Provide POSIX semantics for socket timeout options on W32.
37589         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37590         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37591         * modules/setsockopt: Depend on sys_time module for struct timeval.
37592         * modules/getsockopt: Depend on sys_time module for struct timeval.
37593
37594 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37595
37596         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37597         __USE_GNU, for consistency with netdb.in.h.
37598         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37599
37600 2009-03-01  Bruno Haible  <bruno@clisp.org>
37601
37602         More support for FreeMiNT.
37603         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37604         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37605
37606 2009-03-01  Bruno Haible  <bruno@clisp.org>
37607
37608         More support for FreeMiNT.
37609         * lib/fpurge.c (fpurge): Correct last commit.
37610         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37611
37612 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37613
37614         Fix unportable awk script in vc-list-files.
37615         * build-aux/vc-list-files: In the replacement awk script, use
37616         substr with a second argument of 1, not zero.
37617         Report by Simon Josefsson.
37618
37619 2009-02-28  Bruno Haible  <bruno@clisp.org>
37620
37621         More support for FreeMiNT.
37622         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37623         to FreeMiNT today.
37624         * lib/fwriting.c (fwriting): Likewise.
37625         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37626
37627 2009-02-28  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-freadseek.c (main): Disable test beyond end of file on
37630         FreeMiNT.
37631         * tests/test-ftello.c (main): Likewise.
37632         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37633
37634 2009-02-28  Bruno Haible  <bruno@clisp.org>
37635
37636         Add tentative support for FreeMiNT.
37637         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37638         * lib/fpurge.c (fpurge): Likewise.
37639         * lib/freadable.c (freadable): Likewise.
37640         * lib/freading.c (freading): Likewise.
37641         * lib/freadptr.c (freadptr): Likewise.
37642         * lib/freadseek.c (freadptrinc): Likewise.
37643         * lib/fseeko.c (rpl_fseeko): Likewise.
37644         * lib/fseterr.c (fseterr): Likewise.
37645         * lib/fwritable.c (fwritable): Likewise.
37646         * lib/fwriting.c (fwriting): Likewise.
37647         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37648         Hourihane.
37649         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37650
37651 2009-02-28  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37654         SIGCHLD.
37655         Reported by Jim Meyering.
37656
37657 2009-02-28  Bruno Haible  <bruno@clisp.org>
37658
37659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37660         Mention the results of these tests on various platforms.
37661         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37662         order.
37663         * doc/posix-functions/printf.texi: Likewise.
37664         * doc/posix-functions/snprintf.texi: Likewise.
37665         * doc/posix-functions/sprintf.texi: Likewise.
37666         * doc/posix-functions/vfprintf.texi: Likewise.
37667         * doc/posix-functions/vprintf.texi: Likewise.
37668         * doc/posix-functions/vsnprintf.texi: Likewise.
37669         * doc/posix-functions/vsprintf.texi: Likewise.
37670         * doc/glibc-functions/obstack_printf.texi: Likewise.
37671         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37672
37673 2009-02-28  Bruno Haible  <bruno@clisp.org>
37674
37675         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37676         Reported by Loïc Minier <lool@dooz.org>.
37677
37678 2009-02-27  Bruno Haible  <bruno@clisp.org>
37679
37680         * gnulib-tool (func_import): Make the sed expression used to create the
37681         sed script for updating the .gitignore file POSIX compliant.
37682         Reported by Eric Blake.
37683
37684 2009-02-27  Bruno Haible  <bruno@clisp.org>
37685
37686         * gnulib-tool (sed): Don't alias as "sed --posix".
37687         Reported by Eric Blake.
37688
37689 2009-02-27  Bruno Haible  <bruno@clisp.org>
37690
37691         Avoid test link errors.
37692         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37693         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37694         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37695         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37697
37698 2009-02-27  Bruno Haible  <bruno@clisp.org>
37699
37700         Avoid spurious "(cached)" in configure output.
37701         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37702         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37703         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37704         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37705         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37706         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37707         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37708         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37709         Reported by Eric Blake.
37710
37711 2009-02-27  Eric Blake  <ebb9@byu.net>
37712
37713         printf: fix regression in previous patch
37714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37715
37716 2009-02-27  Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37719         value.
37720         * lib/stdint.in.h: Likewise.
37721         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37722
37723 2009-02-27  Eric Blake  <ebb9@byu.net>
37724
37725         doc: mention more functions added in cygwin 1.7.0
37726         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37727         addition.
37728         * doc/posix-functions/open_wmemstream.texi: Likewise.
37729         * doc/posix-functions/wcsnlen.texi: Likewise.
37730         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37731         * doc/posix-functions/wcstod.texi: Likewise.
37732         * doc/posix-functions/wcstof.texi: Likewise.
37733         * doc/posix-functions/wcstoimax.texi: Likewise.
37734         * doc/posix-functions/wcstok.texi: Likewise.
37735         * doc/posix-functions/wcstoumax.texi: Likewise.
37736
37737         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37739         * doc/posix-functions/fprintf.texi: Update.
37740         * doc/posix-functions/printf.texi: Update.
37741         * doc/posix-functions/snprintf.texi: Update.
37742         * doc/posix-functions/sprintf.texi: Update.
37743         * doc/posix-functions/vfprintf.texi: Update.
37744         * doc/posix-functions/vprintf.texi: Update.
37745         * doc/posix-functions/vsnprintf.texi: Update.
37746         * doc/posix-functions/vsprintf.texi: Update.
37747         * doc/glibc-functions/obstack_printf.texi: Update.
37748         * doc/glibc-functions/obstack_vprintf.texi: Update.
37749
37750 2009-02-26  Eric Blake  <ebb9@byu.net>
37751
37752         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37753         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37754         compilation bug by using runtime conversion.
37755         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37756         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37757         * modules/ceill-tests (Files): Use nan.h.
37758         * modules/floorl-tests (Files): Likewise.
37759         * modules/frexpl-tests (Files): Likewise.
37760         * modules/isnanl-tests (Files): Likewise.
37761         * modules/ldexpl-tests (Files): Likewise.
37762         * modules/roundl-tests (Files): Likewise.
37763         * modules/truncl-tests (Files): Likewise.
37764         * tests/test-ceill.c (main): Use a working NaN.
37765         * tests/test-floorl.c (main): Likewise.
37766         * tests/test-frexpl.c (main): Likewise.
37767         * tests/test-isnan.c (test_long_double): Likewise.
37768         * tests/test-isnanl.h (main): Likewise.
37769         * tests/test-ldexpl.h (main): Likewise.
37770         * tests/test-roundl.h (main): Likewise.
37771         * tests/test-truncl.h (main): Likewise.
37772         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37773
37774 2009-02-26  Eric Blake  <ebb9@byu.net>
37775             Bruno Haible  <bruno@clisp.org>
37776
37777         Work around a *printf bug with %ls on Solaris.
37778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37779         precision is specified, sprintf stops converting the wide string
37780         argument when the number of bytes that have been produced by this
37781         conversion equals or exceeds the precision.
37782         * doc/posix-functions/fprintf.texi: Update.
37783         * doc/posix-functions/printf.texi: Update.
37784         * doc/posix-functions/snprintf.texi: Update.
37785         * doc/posix-functions/sprintf.texi: Update.
37786         * doc/posix-functions/vfprintf.texi: Update.
37787         * doc/posix-functions/vprintf.texi: Update.
37788         * doc/posix-functions/vsnprintf.texi: Update.
37789         * doc/posix-functions/vsprintf.texi: Update.
37790         * doc/glibc-functions/obstack_printf.texi: Update.
37791         * doc/glibc-functions/obstack_vprintf.texi: Update.
37792
37793 2009-02-26  Eric Blake  <ebb9@byu.net>
37794
37795         stdlib: favor compiler check of random.h
37796         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37797         to avoid an ObjC random.h installed by Swarm.
37798
37799 2009-02-26  Bruno Haible  <bruno@clisp.org>
37800
37801         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37802         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37803         Reported by Gary V. Vaughan <gary@gnu.org>.
37804
37805 2009-02-26  Bruno Haible  <bruno@clisp.org>
37806
37807         Fix *printf behaviour regarding the %ls directive.
37808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37809         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37810         NEED_PRINTF_DIRECTIVE_LS.
37811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37812         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37813         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37814         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37815         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37816         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37822         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37826         * doc/posix-functions/fprintf.texi: Update.
37827         * doc/posix-functions/printf.texi: Update.
37828         * doc/posix-functions/snprintf.texi: Update.
37829         * doc/posix-functions/sprintf.texi: Update.
37830         * doc/posix-functions/vfprintf.texi: Update.
37831         * doc/posix-functions/vprintf.texi: Update.
37832         * doc/posix-functions/vsnprintf.texi: Update.
37833         * doc/posix-functions/vsprintf.texi: Update.
37834         * doc/glibc-functions/obstack_printf.texi: Update.
37835         * doc/glibc-functions/obstack_vprintf.texi: Update.
37836         Reported by Eric Blake.
37837
37838 2009-02-25  Bruno Haible  <bruno@clisp.org>
37839
37840         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37841         with known value.
37842         Reported by Gary V. Vaughan <gary@gnu.org>.
37843
37844 2009-02-25  Bruno Haible  <bruno@clisp.org>
37845
37846         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37847         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37848         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37849         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37850         Reported by Gary V. Vaughan <gary@gnu.org>.
37851
37852 2009-02-25  Bruno Haible  <bruno@clisp.org>
37853
37854         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37855         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37856         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37857         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37858         Reported by Gary V. Vaughan <gary@gnu.org>.
37859
37860 2009-02-25  Eric Blake  <ebb9@byu.net>
37861
37862         tests: skip fseek/ftell tests if ungetc is broken
37863         * m4/ungetc.m4: New file.
37864         * modules/fseek-tests: Split test, so ungetc dependency is
37865         separate from rest of test.
37866         * modules/fseeko-tests: Likewise.
37867         * modules/ftell-tests: Likewise.
37868         * modules/ftello-tests: Likewise.
37869         * tests/test-fseek.c (main): Isolate ungetc dependency.
37870         * tests/test-fseeko.c (main): Likewise.
37871         * tests/test-ftell.c (main): Likewise.
37872         * tests/test-ftello.c (main): Likewise.
37873         * tests/test-fseek2.sh: New file.
37874         * tests/test-fseeko2.sh: Likewise.
37875         * tests/test-ftell2.sh: Likewise.
37876         * tests/test-ftello2.sh: Likewise.
37877
37878 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37879
37880         test-getaddrinfo: fix usage of skip return code 77
37881         * tests/test-gettaddrinfo.c: Return skip code 77 only
37882         for first occurance of skip (4x77 is not 77)
37883
37884 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37885
37886         strtod: avoid C99 decl-after-statement
37887         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37888
37889 2009-02-24  Eric Blake  <ebb9@byu.net>
37890
37891         strtod: detect HP-UX 11.31 bug
37892         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37893         Reported by Gary V. Vaughan.
37894
37895 2009-02-23  Bruno Haible  <bruno@clisp.org>
37896
37897         Fix invalid read past end of memory block.
37898         * lib/vasnprintf.c (DCHAR_SET): Define.
37899         (local_wcslen): Define only when needed.
37900         (local_strnlen, local_wcsnlen): New functions.
37901         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37902         directives that involve a conversion ourselves.
37903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37904         wcsnlen, mbrtowc, wcrtomb.
37905         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37906         * tests/test-vasprintf-posix.c (test_function): Likewise.
37907         * tests/test-snprintf-posix.h (test_function): Likewise.
37908         * tests/test-sprintf-posix.h (test_function): Likewise.
37909         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37910
37911 2009-02-22  Bruno Haible  <bruno@clisp.org>
37912
37913         Implement new clarified decomposition of Hangul syllables.
37914         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37915         of type LTV, return only a pairwise decomposition.
37916         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37917         Likewise.
37918         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37919         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37920         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37921
37922 2009-02-22  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37925         zero-length results and shrink excess allocated memory.
37926         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37927         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37928         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37929         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37930         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37931         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37932         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37933         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37934         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37935         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37936         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37937         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37938
37939 2009-02-21  Bruno Haible  <bruno@clisp.org>
37940
37941         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37942         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37943         spaces after a period. Put a space between a macro name and its
37944         argument list. Trivial rewordings.
37945         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37946         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37947         (main): Return 0 explicitly.
37948
37949 2009-02-21  Bruno Haible  <bruno@clisp.org>
37950
37951         Tests for module 'uninorm/filter'.
37952         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37953         * modules/uninorm/filter-tests: New file.
37954
37955         New module 'uninorm/filter'.
37956         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37957         uninorm_filter_flush, uninorm_filter_free): New declarations.
37958         * lib/uninorm/uninorm-filter.c: New file.
37959         * modules/uninorm/filter: New file.
37960
37961 2009-02-21  Bruno Haible  <bruno@clisp.org>
37962
37963         Tests for module 'uninorm/nfkc'.
37964         * tests/uninorm/test-nfkc.c: New file.
37965         * tests/uninorm/test-u8-nfkc.c: New file.
37966         * tests/uninorm/test-u16-nfkc.c: New file.
37967         * tests/uninorm/test-u32-nfkc.c: New file.
37968         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37969         * tests/uninorm/test-u32-nfkc-big.c: New file.
37970         * modules/uninorm/nfkc-tests: New file.
37971
37972         New module 'uninorm/nfkc'.
37973         * lib/uninorm/nfkc.c: New file.
37974         * modules/uninorm/nfkc: New file.
37975
37976         Tests for module 'uninorm/nfkd'.
37977         * tests/uninorm/test-nfkd.c: New file.
37978         * tests/uninorm/test-u8-nfkd.c: New file.
37979         * tests/uninorm/test-u16-nfkd.c: New file.
37980         * tests/uninorm/test-u32-nfkd.c: New file.
37981         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37982         * tests/uninorm/test-u32-nfkd-big.c: New file.
37983         * modules/uninorm/nfkd-tests: New file.
37984
37985         New module 'uninorm/nfkd'.
37986         * lib/uninorm/nfkd.c: New file.
37987         * modules/uninorm/nfkd: New file.
37988
37989         Tests for module 'uninorm/nfc'.
37990         * tests/uninorm/test-nfc.c: New file.
37991         * tests/uninorm/test-u8-nfc.c: New file.
37992         * tests/uninorm/test-u16-nfc.c: New file.
37993         * tests/uninorm/test-u32-nfc.c: New file.
37994         * tests/uninorm/test-u32-nfc-big.sh: New file.
37995         * tests/uninorm/test-u32-nfc-big.c: New file.
37996         * modules/uninorm/nfc-tests: New file.
37997
37998         New module 'uninorm/nfc'.
37999         * lib/uninorm/nfc.c: New file.
38000         * modules/uninorm/nfc: New file.
38001
38002         Tests for module 'uninorm/nfd'.
38003         * tests/uninorm/test-nfd.c: New file.
38004         * tests/uninorm/test-u8-nfd.c: New file.
38005         * tests/uninorm/test-u16-nfd.c: New file.
38006         * tests/uninorm/test-u32-nfd.c: New file.
38007         * tests/uninorm/test-u32-nfd-big.sh: New file.
38008         * tests/uninorm/test-u32-nfd-big.c: New file.
38009         * tests/uninorm/test-u32-normalize-big.h: New file.
38010         * tests/uninorm/test-u32-normalize-big.c: New file.
38011         * tests/uninorm/NormalizationTest.txt: New file, created from
38012         Unicode 5.1.0 NormalizationTest.txt.
38013         * modules/uninorm/nfd-tests: New file.
38014
38015         New module 'uninorm/nfd'.
38016         * lib/uninorm/nfd.c: New file.
38017         * modules/uninorm/nfd: New file.
38018
38019         New module 'uninorm/u32-normalize'.
38020         * lib/uninorm/u32-normalize.c: New file.
38021         * modules/uninorm/u32-normalize: New file.
38022
38023         New module 'uninorm/u16-normalize'.
38024         * lib/uninorm/u16-normalize.c: New file.
38025         * modules/uninorm/u16-normalize: New file.
38026
38027         New module 'uninorm/u8-normalize'.
38028         * lib/uninorm/u8-normalize.c: New file.
38029         * lib/uninorm/normalize-internal.h: New file.
38030         * lib/uninorm/u-normalize-internal.h: New file.
38031         * modules/uninorm/u8-normalize: New file.
38032
38033         New module 'uninorm/decompose-internal'.
38034         * lib/uninorm/decompose-internal.c: New file.
38035         * modules/uninorm/decompose-internal: New file.
38036
38037         Tests for module 'uninorm/composition'.
38038         * tests/uninorm/test-composition.c: New file.
38039         * modules/uninorm/composition-tests: New file.
38040
38041         New module 'uninorm/composition'.
38042         * lib/uninorm/composition.c: New file.
38043         * lib/uninorm/composition-table.gperf: New file, generated by
38044         gen-uni-tables.
38045         * modules/uninorm/composition: New file.
38046
38047         Tests for module 'uninorm/compat-decomposition'.
38048         * tests/uninorm/test-compat-decomposition.c: New file.
38049         * modules/uninorm/compat-decomposition-tests: New file.
38050
38051         New module 'uninorm/compat-decomposition'.
38052         * lib/uninorm/decompose-internal.h: New file.
38053         * lib/uninorm/compat-decomposition.c: New file.
38054         * modules/uninorm/compat-decomposition: New file.
38055
38056         Tests for module 'uninorm/canonical-decomposition'.
38057         * tests/uninorm/test-canonical-decomposition.c: New file.
38058         * modules/uninorm/canonical-decomposition-tests: New file.
38059
38060         New module 'uninorm/canonical-decomposition'.
38061         * lib/uninorm/canonical-decomposition.c: New file.
38062         * modules/uninorm/canonical-decomposition: New file.
38063
38064         Tests for module 'uninorm/decomposition'.
38065         * tests/uninorm/test-decomposition.c: New file.
38066         * modules/uninorm/decomposition-tests: New file.
38067
38068         New module 'uninorm/decomposition'.
38069         * lib/uninorm/decomposition.c: New file.
38070         * modules/uninorm/decomposition: New file.
38071
38072         New module 'uninorm/decomposition-table'.
38073         * lib/uninorm/decomposition-table.h: New file.
38074         * lib/uninorm/decomposition-table.c: New file.
38075         * lib/uninorm/decomposition-table1.h: New file, generated by
38076         gen-uni-tables.
38077         * lib/uninorm/decomposition-table2.h: New file, generated by
38078         gen-uni-tables.
38079         * modules/uninorm/decomposition-table: New file.
38080
38081         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38082         (UC_DECOMP_*): New enumeration items.
38083         (get_decomposition): New function.
38084         (struct decomp_table): New type.
38085         (output_decomposition, output_decomposition_tables): New functions.
38086         (unicode_composition_exclusions): New variable.
38087         (fill_composition_exclusions, debug_output_composition_tables): New
38088         functions.
38089         (main): Accept one more argument. Invoke fill_composition_exclusions.
38090         Output decomposition and composition tables.
38091
38092         New module 'uninorm/base'.
38093         * lib/uninorm.h: New file.
38094         * lib/unictype.h: Update comment.
38095         * modules/uninorm/base: New file.
38096
38097 2009-02-21  David Lutterkort  <lutter@redhat.com>
38098
38099         Tests for module 'safe-alloc'.
38100         * tests/test-safe-alloc.c: New file.
38101         * modules/safe-alloc-tests: New file.
38102
38103         New module 'safe-alloc'.
38104         * lib/safe-alloc.h: New file.
38105         * lib/safe-alloc.c: New file.
38106         * m4/safe-alloc.m4: New file.
38107         * modules/safe-alloc: New file.
38108         * doc/safe-alloc.texi: New file.
38109         * doc/gnulib.texi: Include it.
38110         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38111         safe-alloc.
38112
38113 2009-02-18  Bruno Haible  <bruno@clisp.org>
38114
38115         Fix link error on non-glibc systems.
38116         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38117         variable.
38118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38119
38120 2009-02-18  Jim Meyering  <meyering@redhat.com>
38121
38122         fts: avoid used-uninitialized error due to recent change
38123         * lib/fts.c (fts_read): Guard uses of the new member,
38124         parent->fts_n_dirs_remaining, since it's not relevant for
38125         the parent of a directory specified on the command-line.
38126
38127 2009-02-17  James Youngman  <jay@gnu.org>
38128             Bruno Haible  <bruno@clisp.org>
38129
38130         * m4/include_next.m4: Reformulate comment.
38131
38132 2009-02-16  Jim Meyering  <meyering@redhat.com>
38133
38134         fts: add #if guards so that the fts_lgpl module still builds
38135         * lib/fts.c: Guard just-added hash-table-using parts with
38136         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38137         Reported by Simon Josefsson.
38138
38139 2009-02-15  Bruno Haible  <bruno@clisp.org>
38140
38141         * modules/array-mergesort-tests: New file.
38142         * tests/test-array-mergesort.c: New file.
38143
38144         New module 'array-mergesort'.
38145         * modules/array-mergesort: New file.
38146         * lib/array-mergesort.h: New file.
38147
38148 2009-02-15  Bruno Haible  <bruno@clisp.org>
38149
38150         Fix 2009-02-07 commit.
38151         * lib/gen-uni-tables.c (output_predicate, output_category,
38152         output_combclass, output_bidi_category, output_decimal_digit,
38153         output_digit, output_numeric, output_mirror, output_scripts,
38154         output_ident_category, output_simple_mapping): Fix format directives.
38155         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38156
38157 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38158
38159         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38160         fixes are available from IBM.
38161
38162 2009-02-13  Jim Meyering  <meyering@redhat.com>
38163
38164         fts: arrange not to stat non-directories in more cases
38165         This makes GNU find (when it doesn't need to stat each file)
38166         *much* more efficient at traversing reiserfs file systems.
38167         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38168         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38169         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38170         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38171         (leaf_optimization_applies): New function.
38172         (LCO_hash, LCO_compare): New helper functions.
38173         (link_count_optimize_ok): New function.
38174         (fts_stat): Initialize new member (if dir).
38175         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38176         we've just stat'ed a directory.  Skip the stat call when possible.
38177         ---
38178         Note this AFS-related exchange:
38179         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38180         and note find's pioctl call in find/fstype.c.
38181         But that is necessary only if you want to enable the
38182         optimization for AFS, and for now, I don't.
38183
38184         fts: move a function definition "up" (no semantic change)
38185         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38186         "up" to precede upcoming use of a related function.
38187
38188 2009-02-11  Jim Meyering  <meyering@redhat.com>
38189
38190         fts: correct internal computation of nlinks (optimization-related)
38191         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38192         whether the current entry is a directory, so don't test it.
38193
38194 2009-02-10  Bruno Haible  <bruno@clisp.org>
38195
38196         Tests for module 'uniwbrk/ulc-wordbreaks'.
38197         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38198         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38199         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38200
38201         Tests for module 'uniwbrk/u32-wordbreaks'.
38202         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38203         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38204
38205         Tests for module 'uniwbrk/u16-wordbreaks'.
38206         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38207         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38208
38209         Tests for module 'uniwbrk/u8-wordbreaks'.
38210         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38211         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38212
38213 2009-02-10  Bruno Haible  <bruno@clisp.org>
38214
38215         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38216         property.
38217         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38218         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38219         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38220
38221 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38222
38223         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38224         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38225
38226 2009-02-10  Bruno Haible  <bruno@clisp.org>
38227
38228         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38229         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38230         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38231         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38232         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38233         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38234
38235 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38236
38237         * lib/sockets.h (gl_fd_to_handle): New function.
38238
38239         * tests/test-sockets.c: Call gl_fd_to_handle.
38240
38241 2009-02-09  Bruno Haible  <bruno@clisp.org>
38242
38243         * doc/havelib.texi: Document the conventions on bi-arch systems.
38244
38245 2009-02-08  Bruno Haible  <bruno@clisp.org>
38246
38247         Document the AC_LIB_LINKFLAGS macro.
38248         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38249         * doc/gnulib.texi: Include it.
38250
38251 2009-02-08  Bruno Haible  <bruno@clisp.org>
38252
38253         Fix wrong order of sections, compared to TOC.
38254         * doc/gnulib.texi: Include relocatable-maint.texi after the
38255         "Regular expressions" node, not before.
38256
38257 2009-02-08  Bruno Haible  <bruno@clisp.org>
38258
38259         Tests for module 'unicase/totitle'.
38260         * modules/unicase/totitle-tests: New file.
38261
38262         Tests for module 'unicase/tolower'.
38263         * modules/unicase/tolower-tests: New file.
38264
38265         Tests for module 'unicase/toupper'.
38266         * modules/unicase/toupper-tests: New file.
38267         * tests/unicase/test-mapping-part1.h: New file.
38268         * tests/unicase/test-mapping-part2.h: New file.
38269
38270         New module 'unicase/totitle'.
38271         * modules/unicase/totitle: New file.
38272         * lib/unicase/totitle.c: New file.
38273
38274         New module 'unicase/tolower'.
38275         * modules/unicase/tolower: New file.
38276         * lib/unicase/tolower.c: New file.
38277
38278         New module 'unicase/toupper'.
38279         * modules/unicase/toupper: New file.
38280         * lib/unicase/toupper.c: New file.
38281         * lib/unicase/simple-mapping.h: New file.
38282
38283         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38284         (mapping_table): New structure.
38285         (output_simple_mapping): New function.
38286         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38287         * modules/gen-uni-tables (Description): Update.
38288         * lib/unicase/toupper.h: New file, automatically generated by
38289         gen-uni-tables.
38290         * lib/unicase/tolower.h: New file, automatically generated by
38291         gen-uni-tables.
38292         * lib/unicase/totitle.h: New file, automatically generated by
38293         gen-uni-tables.
38294         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38295         gen-uni-tables.
38296         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38297         gen-uni-tables.
38298         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38299         gen-uni-tables.
38300
38301         New module 'unicase/base'.
38302         * modules/unicase/base: New file.
38303         * lib/unicase.h: New file.
38304
38305 2009-02-08  Bruno Haible  <bruno@clisp.org>
38306
38307         New module 'uniwbrk/ulc-wordbreaks'.
38308         * modules/uniwbrk/ulc-wordbreaks: New file.
38309         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38310
38311         New module 'uniwbrk/u32-wordbreaks'.
38312         * modules/uniwbrk/u32-wordbreaks: New file.
38313         * lib/uniwbrk/u32-wordbreaks.c: New file.
38314
38315         New module 'uniwbrk/u16-wordbreaks'.
38316         * modules/uniwbrk/u16-wordbreaks: New file.
38317         * lib/uniwbrk/u16-wordbreaks.c: New file.
38318
38319         New module 'uniwbrk/u8-wordbreaks'.
38320         * modules/uniwbrk/u8-wordbreaks: New file.
38321         * lib/uniwbrk/u8-wordbreaks.c: New file.
38322         * lib/uniwbrk/u-wordbreaks.h: New file.
38323
38324         New module 'uniwbrk/table'.
38325         * modules/uniwbrk/table: New file.
38326         * lib/uniwbrk/wbrktable.h: New file.
38327         * lib/uniwbrk/wbrktable.c: New file.
38328
38329         New module 'uniwbrk/wordbreak-property'.
38330         * modules/uniwbrk/wordbreak-property: New file.
38331         * lib/uniwbrk/wordbreak-property.c: New file.
38332
38333         * lib/gen-uni-tables.c (WBP_*): New enum items.
38334         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38335         (unicode_org_wbp): New variable.
38336         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38337         New functions.
38338         (wbp_table): New structure.
38339         (output_wbp, output_wbrk_tables): New functions.
38340         (main): Accept additional argument. Invoke fill_org_wbp,
38341         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38342         output_wbrk_tables.
38343         * modules/gen-uni-tables (Description): Update.
38344         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38345         gen-uni-tables.
38346
38347         New module 'uniwbrk/base'.
38348         * modules/uniwbrk/base: New file.
38349         * lib/uniwbrk.h: New file.
38350
38351 2009-02-08  Bruno Haible  <bruno@clisp.org>
38352
38353         Update to Unicode 5.1.0.
38354         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38355         U+2185..U+2188.
38356         (is_property_default_ignorable_code_point): Don't include characters
38357         of category Cc or Cs and not-a-characters.
38358         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38359         U+0D79, U+109E, U+109F, U+A60C.
38360         * lib/unictype/bidi_of.h: Regenerated.
38361         * lib/unictype/blocks.h: Regenerated.
38362         * lib/unictype/categ_C.h: Regenerated.
38363         * lib/unictype/categ_Cf.h: Regenerated.
38364         * lib/unictype/categ_Cn.h: Regenerated.
38365         * lib/unictype/categ_L.h: Regenerated.
38366         * lib/unictype/categ_Ll.h: Regenerated.
38367         * lib/unictype/categ_Lm.h: Regenerated.
38368         * lib/unictype/categ_Lo.h: Regenerated.
38369         * lib/unictype/categ_Lu.h: Regenerated.
38370         * lib/unictype/categ_M.h: Regenerated.
38371         * lib/unictype/categ_Mc.h: Regenerated.
38372         * lib/unictype/categ_Me.h: Regenerated.
38373         * lib/unictype/categ_Mn.h: Regenerated.
38374         * lib/unictype/categ_N.h: Regenerated.
38375         * lib/unictype/categ_Nd.h: Regenerated.
38376         * lib/unictype/categ_Nl.h: Regenerated.
38377         * lib/unictype/categ_No.h: Regenerated.
38378         * lib/unictype/categ_P.h: Regenerated.
38379         * lib/unictype/categ_Pd.h: Regenerated.
38380         * lib/unictype/categ_Pe.h: Regenerated.
38381         * lib/unictype/categ_Pf.h: Regenerated.
38382         * lib/unictype/categ_Pi.h: Regenerated.
38383         * lib/unictype/categ_Po.h: Regenerated.
38384         * lib/unictype/categ_Ps.h: Regenerated.
38385         * lib/unictype/categ_S.h: Regenerated.
38386         * lib/unictype/categ_Sk.h: Regenerated.
38387         * lib/unictype/categ_Sm.h: Regenerated.
38388         * lib/unictype/categ_So.h: Regenerated.
38389         * lib/unictype/categ_of.h: Regenerated.
38390         * lib/unictype/combining.h: Regenerated.
38391         * lib/unictype/ctype_alnum.h: Regenerated.
38392         * lib/unictype/ctype_alpha.h: Regenerated.
38393         * lib/unictype/ctype_graph.h: Regenerated.
38394         * lib/unictype/ctype_lower.h: Regenerated.
38395         * lib/unictype/ctype_print.h: Regenerated.
38396         * lib/unictype/ctype_punct.h: Regenerated.
38397         * lib/unictype/ctype_upper.h: Regenerated.
38398         * lib/unictype/decdigit.h: Regenerated.
38399         * lib/unictype/digit.h: Regenerated.
38400         * lib/unictype/mirror.h: Regenerated.
38401         * lib/unictype/numeric.h: Regenerated.
38402         * lib/unictype/pr_alphabetic.h: Regenerated.
38403         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38404         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38405         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38406         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38407         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38408         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38409         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38410         * lib/unictype/pr_combining.h: Regenerated.
38411         * lib/unictype/pr_dash.h: Regenerated.
38412         * lib/unictype/pr_decimal_digit.h: Regenerated.
38413         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38414         * lib/unictype/pr_deprecated.h: Regenerated.
38415         * lib/unictype/pr_diacritic.h: Regenerated.
38416         * lib/unictype/pr_extender.h: Regenerated.
38417         * lib/unictype/pr_format_control.h: Regenerated.
38418         * lib/unictype/pr_grapheme_base.h: Regenerated.
38419         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38420         * lib/unictype/pr_grapheme_link.h: Regenerated.
38421         * lib/unictype/pr_id_continue.h: Regenerated.
38422         * lib/unictype/pr_id_start.h: Regenerated.
38423         * lib/unictype/pr_ideographic.h: Regenerated.
38424         * lib/unictype/pr_ignorable_control.h: Regenerated.
38425         * lib/unictype/pr_lowercase.h: Regenerated.
38426         * lib/unictype/pr_math.h: Regenerated.
38427         * lib/unictype/pr_numeric.h: Regenerated.
38428         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38429         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38430         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38431         * lib/unictype/pr_other_id_continue.h: Regenerated.
38432         * lib/unictype/pr_other_lowercase.h: Regenerated.
38433         * lib/unictype/pr_other_math.h: Regenerated.
38434         * lib/unictype/pr_punctuation.h: Regenerated.
38435         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38436         * lib/unictype/pr_soft_dotted.h: Regenerated.
38437         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38438         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38439         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38440         * lib/unictype/pr_uppercase.h: Regenerated.
38441         * lib/unictype/pr_xid_continue.h: Regenerated.
38442         * lib/unictype/pr_xid_start.h: Regenerated.
38443         * lib/unictype/pr_zero_width.h: Regenerated.
38444         * lib/unictype/scripts.h: Regenerated.
38445         * lib/unictype/scripts_byname.gperf: Regenerated.
38446         * lib/unictype/sy_java_ident.h: Regenerated.
38447         * lib/unilbrk/lbrkprop1.h: Regenerated.
38448         * lib/unilbrk/lbrkprop2.h: Regenerated.
38449         * tests/unictype/test-categ_C.c: Regenerated.
38450         * tests/unictype/test-categ_Cf.c: Regenerated.
38451         * tests/unictype/test-categ_Cn.c: Regenerated.
38452         * tests/unictype/test-categ_L.c: Regenerated.
38453         * tests/unictype/test-categ_Ll.c: Regenerated.
38454         * tests/unictype/test-categ_Lm.c: Regenerated.
38455         * tests/unictype/test-categ_Lo.c: Regenerated.
38456         * tests/unictype/test-categ_Lu.c: Regenerated.
38457         * tests/unictype/test-categ_M.c: Regenerated.
38458         * tests/unictype/test-categ_Mc.c: Regenerated.
38459         * tests/unictype/test-categ_Me.c: Regenerated.
38460         * tests/unictype/test-categ_Mn.c: Regenerated.
38461         * tests/unictype/test-categ_N.c: Regenerated.
38462         * tests/unictype/test-categ_Nd.c: Regenerated.
38463         * tests/unictype/test-categ_Nl.c: Regenerated.
38464         * tests/unictype/test-categ_No.c: Regenerated.
38465         * tests/unictype/test-categ_P.c: Regenerated.
38466         * tests/unictype/test-categ_Pd.c: Regenerated.
38467         * tests/unictype/test-categ_Pe.c: Regenerated.
38468         * tests/unictype/test-categ_Pf.c: Regenerated.
38469         * tests/unictype/test-categ_Pi.c: Regenerated.
38470         * tests/unictype/test-categ_Po.c: Regenerated.
38471         * tests/unictype/test-categ_Ps.c: Regenerated.
38472         * tests/unictype/test-categ_S.c: Regenerated.
38473         * tests/unictype/test-categ_Sk.c: Regenerated.
38474         * tests/unictype/test-categ_Sm.c: Regenerated.
38475         * tests/unictype/test-categ_So.c: Regenerated.
38476         * tests/unictype/test-ctype_alnum.c: Regenerated.
38477         * tests/unictype/test-ctype_alpha.c: Regenerated.
38478         * tests/unictype/test-ctype_graph.c: Regenerated.
38479         * tests/unictype/test-ctype_lower.c: Regenerated.
38480         * tests/unictype/test-ctype_print.c: Regenerated.
38481         * tests/unictype/test-ctype_punct.c: Regenerated.
38482         * tests/unictype/test-ctype_upper.c: Regenerated.
38483         * tests/unictype/test-decdigit.h: Regenerated.
38484         * tests/unictype/test-digit.h: Regenerated.
38485         * tests/unictype/test-numeric.h: Regenerated.
38486         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38487         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38488         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38489         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38490         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38491         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38492         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38493         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38494         * tests/unictype/test-pr_combining.c: Regenerated.
38495         * tests/unictype/test-pr_dash.c: Regenerated.
38496         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38497         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38498         * tests/unictype/test-pr_deprecated.c: Regenerated.
38499         * tests/unictype/test-pr_diacritic.c: Regenerated.
38500         * tests/unictype/test-pr_extender.c: Regenerated.
38501         * tests/unictype/test-pr_format_control.c: Regenerated.
38502         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38503         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38504         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38505         * tests/unictype/test-pr_id_continue.c: Regenerated.
38506         * tests/unictype/test-pr_id_start.c: Regenerated.
38507         * tests/unictype/test-pr_ideographic.c: Regenerated.
38508         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38509         * tests/unictype/test-pr_lowercase.c: Regenerated.
38510         * tests/unictype/test-pr_math.c: Regenerated.
38511         * tests/unictype/test-pr_numeric.c: Regenerated.
38512         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38513         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38514         Regenerated.
38515         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38516         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38517         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38518         * tests/unictype/test-pr_other_math.c: Regenerated.
38519         * tests/unictype/test-pr_punctuation.c: Regenerated.
38520         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38521         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38522         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38523         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38524         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38525         * tests/unictype/test-pr_uppercase.c: Regenerated.
38526         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38527         * tests/unictype/test-pr_xid_start.c: Regenerated.
38528         * tests/unictype/test-pr_zero_width.c: Regenerated.
38529
38530         Update to Unicode 5.1.0.
38531         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38532         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38533         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38534         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38535         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38536         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38537         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38538         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38539         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38540         (nonspacing_table_ind): Update.
38541         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38542
38543         Update to Unicode 5.1.0.
38544         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38545         code transform.
38546         * lib/uniname/uniname.c (unicode_character_name,
38547         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38548         * lib/uniname/uninames.h: Regenerated.
38549         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38550
38551 2009-02-07  Bruno Haible  <bruno@clisp.org>
38552
38553         Merge gen-ctype and gen-lbrk into a single program.
38554         * lib/gen-uni-tables.c: New file, incorporating
38555         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38556         Add directory prefixes to the names of the generated files.
38557         * lib/unictype/gen-ctype.c: Remove file.
38558         * lib/unilbrk/gen-lbrk.c: Remove file.
38559         * modules/gen-uni-tables: New file.
38560         * modules/unictype/gen-ctype: Remove file.
38561         * modules/unilbrk/gen-lbrk: Remove file.
38562
38563 2009-02-07  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38566
38567         New module 'unistr/u32-strcoll'.
38568         * modules/unistr/u32-strcoll: New file.
38569         * lib/unistr/u32-strcoll.c: New file.
38570
38571         New module 'unistr/u16-strcoll'.
38572         * modules/unistr/u16-strcoll: New file.
38573         * lib/unistr/u16-strcoll.c: New file.
38574
38575         New module 'unistr/u8-strcoll'.
38576         * modules/unistr/u8-strcoll: New file.
38577         * lib/unistr/u8-strcoll.c: New file.
38578         * lib/unistr/u-strcoll.h: New file.
38579
38580 2009-02-07  Bruno Haible  <bruno@clisp.org>
38581
38582         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38583         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38584         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38585         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38586         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38587         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38588
38589 2009-02-07  Bruno Haible  <bruno@clisp.org>
38590
38591         Make 64-bit clean.
38592         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38593         output_combclass, output_bidi_category, output_decimal_digit,
38594         output_digit, output_numeric, output_mirror, output_scripts,
38595         output_ident_category): Use proper width specifier in format strings.
38596
38597 2009-02-07  Bruno Haible  <bruno@clisp.org>
38598
38599         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38600         failure behaviour.
38601
38602 2009-02-07  Jim Meyering  <meyering@redhat.com>
38603
38604         regex: avoid compilation failure with upcoming gcc-4.4
38605         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38606         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38607         "... error: integer overflow in preprocessor expression".
38608
38609 2009-02-05  Ben Pfaff  <blp@gnu.org>
38610
38611         Fix link errors on Windows when close module is used.
38612         * modules/close: Add $(LIB_CLOSE) to Link section.
38613         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38614         $(LIB_CLOSE) on Windows.
38615
38616 2009-02-05  Jim Meyering  <meyering@redhat.com>
38617
38618         still avoid unused-parameter warnings, but do it cleanly
38619         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38620         (get_fs_usage): Cast to void instead.
38621         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38622         (dev_from_mount_options, read_file_system_list): Cast to void.
38623         Prompted by Bruno Haible.
38624
38625 2009-02-04  Jim Meyering  <meyering@redhat.com>
38626
38627         fsusage.c: correct copyright year
38628         * lib/fsusage.c: Reflect year in which the change is pushed into
38629
38630         avoid misc. warnings
38631         * lib/fsusage.c (UNUSED_PARAM): Define.
38632         (get_fs_usage): Mark parameter "disk" as unused.
38633         * lib/getugroups.c (getgrent): Use "void" in prototype.
38634         * lib/mountlist.c: Mark unused parameters.
38635         (read_file_system_list): Declare a local with "const".
38636         * lib/nanosleep.c (getnow): Declare static.
38637         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38638
38639         dirfd: set errno upon failure
38640         * lib/dirfd.c: Include <errno.h>.
38641         Set errno to ENOTSUP when returning -1.
38642         * modules/dirfd (Depends-on): Add errno.
38643         Suggested by John Kodis <kodis@comcast.net>.
38644
38645 2009-02-01  Bruno Haible  <bruno@clisp.org>
38646
38647         Don't assume sizeof (long) >= sizeof (void *).
38648         * lib/memcmp.c: Include stdint.h.
38649         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38650         srcp2 to 'const byte *'.
38651         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38652         types to uintptr_t.
38653         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38654         * modules/memcmp (Depends-on): Add stdint.
38655         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38656
38657 2009-01-30  Eric Blake  <ebb9@byu.net>
38658
38659         fix more require-before-expand issues
38660         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38661         expand, AC_PROG_AWK.
38662         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38663
38664 2009-01-28  Eric Blake  <ebb9@byu.net>
38665
38666         version-etc: use consistent URL formatting
38667         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38668         Improve formatting.  Use fputs for string without %.
38669
38670 2009-01-28  Jim Meyering  <meyering@redhat.com>
38671
38672         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38673         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38674         "underquoted definition of NAME" from autoconf-2.59.
38675
38676 2009-01-28  Bruno Haible  <bruno@clisp.org>
38677
38678         * doc/gnulib.texi: Add "Obsolete modules" to index.
38679
38680 2009-01-28  Jim Meyering  <meyering@redhat.com>
38681
38682         useless-if-before-free: recognize more variants
38683         * build-aux/useless-if-before-free: Also recognize e.g.,
38684         if (NULL != p) free (p);
38685
38686 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38687
38688         test-getaddrinfo: skip (don't fail) this test when there's no network
38689         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38690         on the presumption that it means you lack network access.
38691
38692 2009-01-26  Jim Meyering  <meyering@redhat.com>
38693
38694         fflush: avoid warnings on modern systems
38695         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38696         pos and result, into scopes where they're used.
38697
38698 2009-01-26  Eric Blake  <ebb9@byu.net>
38699
38700         Silence warning reintroduced by recent extensions patch.
38701         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38702         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38703         autoconf.
38704
38705         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38706         * m4/00gnulib.m4: New file.
38707         * gnulib-tool (func_get_filelist): Always use it.
38708         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38709         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38710
38711 2009-01-25  Bruno Haible  <bruno@clisp.org>
38712
38713         Make test-quotearg work on MacOS X and AIX.
38714         * tests/test-quotearg.sh: New file.
38715         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38716         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38717         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38718         include <libintl.h>.
38719         (fake_locale): Remove variable.
38720         (gettext, dgettext, dcgettext): Remove functions.
38721         (main): Instead of setting a fake locale, set a real locale. Call
38722         textdomain and bindtextdomain.
38723         * modules/quotearg-tests (Files): Add the new files.
38724         (Depends-on): Add gettext, setenv, unsetenv.
38725         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38726         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38727         Augment TESTS_ENVIRONMENT.
38728
38729 2009-01-25  Bruno Haible  <bruno@clisp.org>
38730
38731         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38732         fr_FR.ISO8859-1 locale on MacOS X.
38733         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38734         ja_JP.eucJP locale on MacOS X.
38735         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38736         zh_CN.GB18030 locale on MacOS X.
38737
38738 2009-01-25  Bruno Haible  <bruno@clisp.org>
38739
38740         Avoid link errors on MacOS X 10.3.
38741         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38742         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38743
38744 2009-01-25  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38747         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38748         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38749         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38750         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38751         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38752         posix_spawnattr_init, posix_spawnattr_setsigmask,
38753         posix_spawnattr_setflags, posix_spawnattr_destroy.
38754
38755         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38756         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38757         * modules/execute (Files): Remove m4/posix_spawn.m4.
38758         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38759         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38760         posix_spawnattr_init, posix_spawnattr_setsigmask,
38761         posix_spawnattr_setflags, posix_spawnattr_destroy.
38762
38763 2009-01-25  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/glthread/threadlib.c: Include <stdlib.h>.
38766
38767 2009-01-25  Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/glthread/threadlib.c (dummy): New declaration.
38770
38771 2009-01-25  Bruno Haible  <bruno@clisp.org>
38772
38773         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38774         multibyte characters also for the GB18030 encoding. Don't crash when
38775         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38776
38777 2009-01-25  Bruno Haible  <bruno@clisp.org>
38778
38779         Avoid redefining 'struct random_data' on OSF/1 5.1.
38780         * lib/stdlib.in.h: Include <random.h> if it exists.
38781         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38782         HAVE_RANDOM_H. Include <random.h> when testing whether
38783         'struct random_data' exists.
38784         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38785
38786 2009-01-25  Bruno Haible  <bruno@clisp.org>
38787
38788         Don't install charset.alias on MacOS X >= 10.3.
38789         * lib/localcharset.c (DARWIN7): New macro.
38790         (get_charset_aliases): Hardcode the result for Darwin7.
38791         * modules/localcharset (install-exec-local): Don't install
38792         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38793
38794 2009-01-25  Bruno Haible  <bruno@clisp.org>
38795
38796         Don't install charset.alias on mingw and Cygwin.
38797         * modules/localcharset (install-exec-local): Don't install
38798         charset.alias on mingw and Cygwin, if the file does not yet exist.
38799         The result for these platforms is hardcoded in localcharset.c.
38800
38801 2009-01-25  Bruno Haible  <bruno@clisp.org>
38802
38803         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38805         before requiring AC_USE_SYSTEM_EXTENSIONS.
38806
38807 2009-01-25  Jim Meyering  <meyering@redhat.com>
38808
38809         c-strtod: avoid warnings
38810         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38811         "assignment discards qualifiers from pointer target type" warnings.
38812
38813 2009-01-24  Bruno Haible  <bruno@clisp.org>
38814
38815         Add support for non-UTF-8 locales on MacOS X.
38816         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38817         canonical encodings. For Darwin 7 and newer, don't map traditional
38818         encodings to UTF-8.
38819         Reported by Vincent Lefevre <vincent@vinc17.org>
38820         at <http://savannah.gnu.org/bugs/?25235>.
38821
38822 2009-01-24  Bruno Haible  <bruno@clisp.org>
38823
38824         * doc/gnulib.texi (Obsolete modules): New section.
38825         Reported by Mike Frysinger <vapier@gentoo.org>.
38826
38827 2009-01-24  Bruno Haible  <bruno@clisp.org>
38828
38829         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38830         (%.dvi): New rule.
38831
38832 2009-01-24  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38835         Reported by Eric Blake.
38836
38837 2009-01-24  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38840         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38841         Reported by Gary V. Vaughan <gary@gnu.org>.
38842
38843 2009-01-24  Bruno Haible  <bruno@clisp.org>
38844
38845         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38846
38847 2009-01-23  Bruno Haible  <bruno@clisp.org>
38848
38849         Make c-strtod, c-strtold usable in libraries.
38850         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38851         (C_STRTOD): Call strdup instead of xstrdup.
38852         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38853         * modules/c-strtold (Depends-on): Likewise.
38854         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38855         * NEWS: Mention the change.
38856         Reported by Michael Gold <mgold@ncf.ca>.
38857
38858 2009-01-23  Jim Meyering  <meyering@redhat.com>
38859
38860         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38861         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38862         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38863
38864 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38865
38866         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38867         GNU CoreUtils.
38868         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38869         * modules/version-etc (Description): Update.
38870
38871 2009-01-22  Bruno Haible  <bruno@clisp.org>
38872
38873         Cache the C locale object.
38874         * lib/c-strtod.c (c_locale_cache): New variable.
38875         (c_locale): New function.
38876         (C_STRTOD): Use it, and don't call freelocale.
38877         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38878         Suggested by Paolo Bonzini.
38879
38880 2009-01-21  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38883         conditions other than overflow.
38884
38885 2009-01-21  Bruno Haible  <bruno@clisp.org>
38886
38887         * lib/c-strtod.c: Include errno.h.
38888         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38889         value from STRTOD_L and STRTOD.
38890
38891 2009-01-21  Bruno Haible  <bruno@clisp.org>
38892         and Jim Meyering  <meyering@redhat.com>
38893
38894         nanosleep: skip configure test (fail it) for apple universal builds
38895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38896         universal builds, assume that nanosleep does not work.
38897         * modules/nanosleep (Depends-on): Add multiarch.
38898
38899         mktime: skip configure test (fail it) for apple universal builds
38900         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38901         universal builds, assume that mktime does not work.
38902         * modules/mktime (Depends-on): Add multiarch.
38903
38904 2009-01-21  Eric Blake  <ebb9@byu.net>
38905
38906         multiarch: avoid expand-before-require warning
38907         * modules/multiarch (configure.ac): Require, rather than expand,
38908         gl_MULTIARCH.
38909         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38910         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38911         enforce that all clients require it.  Partial reversion of
38912         2008-12-29 patch.
38913
38914         error: avoid expand-before-require warning
38915         * modules/errno (configure.ac): Require, rather than expand,
38916         gl_HEADER_ERRNO_H.
38917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38918         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38919         enforce that all clients require it.
38920
38921         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38922         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38923         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38924         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38925
38926 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38927
38928         Revert:
38929         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38930
38931         regex: do not depend on obsolete modules.
38932         * modules/regex: Remove memcmp and memmove.
38933
38934 2009-01-20  Bruno Haible  <bruno@clisp.org>
38935
38936         Make the 'link' module link on Windows NT 4.
38937         * lib/link.c (_WIN32_WINNT): Don't define.
38938         (CreateHardLinkFuncType): New type.
38939         (CreateHardLinkFunc, initialized): New variables.
38940         (initialize): New function.
38941         (link): Invoke CreateHardLink indirectly through the function pointer.
38942
38943 2009-01-20  Bruno Haible  <bruno@clisp.org>
38944
38945         Fix compilation failure on mingw.
38946         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38947
38948 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38949
38950         * doc/c-strtod.texi: Mention a couple of restrictions.
38951
38952 2009-01-20  Jim Meyering  <meyering@redhat.com>
38953
38954         gettimeofday: move more declarations out of functions
38955         * lib/gettimeofday.c: Move extern declarations of tzset and
38956         gmtime out of containing functions.  Prompted by Bruno Haible.
38957
38958 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38959
38960         regex: do not depend on obsolete modules.
38961         * modules/regex: Remove memcmp and memmove.
38962
38963 2009-01-19  Bruno Haible  <bruno@clisp.org>
38964
38965         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38966         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38967         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38968         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38969         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38970
38971 2009-01-19  Bruno Haible  <bruno@clisp.org>
38972
38973         * tests/test-link.c: Include <errno.h>.
38974         (main): Exit with code 77 when a hard link cannot be created due to
38975         the file system.
38976         * tests/test-link.sh: Skip test when a hard link cannot be created due
38977         to the file system.
38978         Suggested by Eric Blake.
38979
38980 2009-01-19  Martin Lambers  <marlam@marlam.de>
38981
38982         * modules/link-tests: New file.
38983         * tests/test-link.sh: New file.
38984         * tests/test-link.c: New file.
38985
38986 2009-01-19  Eric Blake  <ebb9@byu.net>
38987
38988         doc: mention another function added in cygwin 1.7.0
38989         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38990         Another new function in cygwin 1.7.
38991
38992 2009-01-19  Bruno Haible  <bruno@clisp.org>
38993
38994         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38995         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38996         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38997         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38998         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38999         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39000         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39001         * m4/md4.m4 (gl_MD4): Likewise.
39002         * m4/md5.m4 (gl_MD5): Likewise.
39003         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39004         * m4/sha1.m4 (gl_SHA1): Likewise.
39005         * m4/sha256.m4 (gl_SHA256): Likewise.
39006         * m4/sha512.m4 (gl_SHA512): Likewise.
39007
39008 2009-01-19  Bruno Haible  <bruno@clisp.org>
39009
39010         * modules/uniname/uniname-tests (Depends-on): Add progname.
39011         * tests/uniname/test-uninames.c: Include progname.h.
39012         (main): Call set_program_name.
39013
39014         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39015         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39016         (main): Call set_program_name.
39017
39018         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39019         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39020         (main): Call set_program_name.
39021
39022         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39023         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39024         (main): Call set_program_name.
39025
39026         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39027         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39028         (main): Call set_program_name.
39029
39030         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39031         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39032         (main): Call set_program_name.
39033
39034         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39035         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39036         (main): Call set_program_name.
39037
39038         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39039         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39040         (main): Call set_program_name.
39041
39042         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39043         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39044         (main): Call set_program_name.
39045
39046 2009-01-19  Eric Blake  <ebb9@byu.net>
39047
39048         test-unistd: test previous patch
39049         * tests/test-unistd.c: Test *_FILENO macros.
39050
39051         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39052         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39053         Guarantee a definition.
39054         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39055         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39056         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39057         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39058         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39059         Likewise.
39060         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39061         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39062         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39063         Likewise.
39064         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39065         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39066         (STDERR_FILENO): Likewise.
39067         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39068         (STDERR_FILENO): Likewise.
39069         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39070         (STDERR_FILENO): Likewise.
39071         Reported by Elbert Pol.
39072
39073 2009-01-19  Eric Blake  <ebb9@byu.net>
39074
39075         doc: mention more functions added in cygwin 1.7.0
39076         * doc/posix-functions/abort.texi (abort): Update wording related
39077         to cygwin.
39078         * doc/posix-functions/daylight.texi (daylight): Likewise.
39079         * doc/posix-functions/optarg.texi (optarg): Likewise.
39080         * doc/posix-functions/optarg.texi (opterr): Likewise.
39081         * doc/posix-functions/optarg.texi (optind): Likewise.
39082         * doc/posix-functions/optarg.texi (optopt): Likewise.
39083         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39084         worked in 1.5.x, and was withdrawn in 1.7.
39085         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39086         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39087         cygwin versions.
39088         * doc/posix-functions/perror.texi (perror): Likewise.
39089         * doc/posix-functions/printf.texi (printf): Likewise.
39090         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39091         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39092         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39093         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39094         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39095         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39096         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39097         Likewise.
39098         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39099         Likewise.
39100         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39101         this function.
39102         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39103         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39104         Likewise.
39105         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39106         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39107         * doc/posix-functions/confstr.texi (confstr): Likewise.
39108         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39109         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39110         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39111         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39112         * doc/posix-functions/fputws.texi (fputws): Likewise.
39113         * doc/posix-functions/fwide.texi (fwide): Likewise.
39114         * doc/posix-functions/getwc.texi (getwc): Likewise.
39115         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39116         * doc/posix-functions/putwc.texi (putwc): Likewise.
39117         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39118         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39119         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39120         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39121         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39122         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39123         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39124         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39125         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39126         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39127         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39128
39129 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39130
39131         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39132         * lib/ioctl.c: Include <sys/ioctl.h>.
39133
39134 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39135
39136         * modules/getdate-tests (Depends-on): Add progname.
39137         * tests/test-getdate.c: Use progname module, to avoid link errors
39138         on non-glibc systems.
39139
39140 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39141
39142         * modules/filenamecat-tests (Depends-on): Add progname.
39143         * modules/fstrcmp-tests (Depends-on): Likewise.
39144
39145         * tests/test-filenamecat.c: Use progname module, to avoid link
39146         errors on non-glibc systems.
39147         * tests/test-fstrcmp.c: Likewise.
39148
39149 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39150
39151         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39152         * lib/gettimeofday.c: Move extern declaration out of function.
39153
39154 2009-01-18  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39157         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39158         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39159
39160 2009-01-18  Bruno Haible  <bruno@clisp.org>
39161
39162         * lib/strftime.c (MEMPCPY): Remove unused macro.
39163         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39164
39165 2009-01-18  Martin Lambers  <marlam@marlam.de>
39166
39167         New module 'link'.
39168         * lib/unistd.in.h (link): New declaration.
39169         * lib/link.c: New file.
39170         * m4/link.m4: New file.
39171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39172         HAVE_LINK.
39173         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39174         * modules/link: New file.
39175         * doc/posix-functions/link.texi: Mention the new module.
39176
39177 2009-01-18  Bruno Haible  <bruno@clisp.org>
39178
39179         * tests/test-avltree_list.c (main): Call set_program_name.
39180         * tests/test-avltree_oset.c (main): Likewise.
39181         * tests/test-obstack-printf.c: Include progname.h.
39182         (main): Call set_program_name.
39183         * tests/test-quotearg.c: Include progname.h.
39184         (main): Call set_program_name.
39185         * tests/test-xmemdup0.c: Include progname.h.
39186         (main): Call set_program_name.
39187
39188 2009-01-18  Bruno Haible  <bruno@clisp.org>
39189
39190         New module 'alphasort'.
39191         * lib/dirent.in.h (alphasort): New declaration.
39192         * lib/alphasort.c: New file, from glibc with modifications.
39193         * m4/alphasort.m4: New file.
39194         * modules/alphasort: New file.
39195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39196         HAVE_ALPHASORT.
39197         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39198         HAVE_ALPHASORT.
39199         * doc/posix-functions/alphasort.texi: Mention the new module and the
39200         portability problems.
39201
39202 2009-01-18  Bruno Haible  <bruno@clisp.org>
39203
39204         New module 'scandir'.
39205         * lib/dirent.in.h (scandir): New declaration.
39206         * lib/scandir.c: New file, from glibc with modifications.
39207         * m4/scandir.m4: New file.
39208         * modules/scandir: New file.
39209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39210         HAVE_SCANDIR.
39211         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39212         HAVE_SCANDIR.
39213         * doc/posix-functions/scandir.texi: Mention the new module and the
39214         portability problems.
39215
39216 2009-01-17  Bruno Haible  <bruno@clisp.org>
39217
39218         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39219         Update documentation.
39220         (func_remove_suffix): Escape all dots in the suffix. Update
39221         documentation.
39222         (func_filter_filelist): Update documentation.
39223         Reported by Ralf Wildenhues.
39224
39225 2009-01-17  Bruno Haible  <bruno@clisp.org>
39226
39227         * modules/dprintf-posix-tests: New file.
39228         * tests/test-dprintf-posix.sh: New file.
39229         * tests/test-dprintf-posix.c: New file.
39230
39231         New modules 'dprintf', 'dprintf-posix'.
39232         * lib/stdio.in.h (dprintf): New declaration.
39233         * lib/dprintf.c: New file.
39234         * m4/dprintf.m4: New file.
39235         * m4/dprintf-posix.m4: New file.
39236         * modules/dprintf: New file.
39237         * modules/dprintf-posix: New file.
39238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39239         HAVE_DPRINTF, REPLACE_DPRINTF.
39240         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39241         HAVE_DPRINTF, REPLACE_DPRINTF.
39242         * doc/posix-functions/dprintf.texi: Mention the new modules.
39243
39244 2009-01-17  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/vdprintf-posix-tests: New file.
39247         * tests/test-vdprintf-posix.sh: New file.
39248         * tests/test-vdprintf-posix.c: New file.
39249
39250         New modules 'vdprintf', 'vdprintf-posix'.
39251         * lib/stdio.in.h (vdprintf): New declaration.
39252         * lib/vdprintf.c: New file.
39253         * m4/vdprintf.m4: New file.
39254         * m4/vdprintf-posix.m4: New file.
39255         * modules/vdprintf: New file.
39256         * modules/vdprintf-posix: New file.
39257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39258         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39259         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39260         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39261         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39262
39263 2009-01-17  Bruno Haible  <bruno@clisp.org>
39264
39265         Fix replacement of fopen on mingw.
39266         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39267         mingw.
39268
39269 2009-01-17  Bruno Haible  <bruno@clisp.org>
39270
39271         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39272         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39273
39274 2009-01-17  Bruno Haible  <bruno@clisp.org>
39275
39276         Avoid test-fflush2.sh failure on mingw.
39277         * tests/test-fflush2.c: Include binary-io.h.
39278         (main): Put standard input into binary mode.
39279         * modules/fflush-tests (Depends-on): Add binary-io.
39280
39281 2009-01-17  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/wchar.in.h: In another particular situation, include only the
39284         system's <wchar.h> file.
39285         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39286         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39287         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39288
39289 2009-01-17  Bruno Haible  <bruno@clisp.org>
39290
39291         Support for stripping executables in --enable-relocatable.
39292         * build-aux/install-reloc: Expect one more argument, or an environment
39293         variable RELOC_STRIP_PROG. If set, strip the destination program and
39294         its wrapper.
39295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39296         RELOC_STRIP_PROG.
39297         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39298         to set RELOCATABLE_STRIP.
39299         * NEWS: Mention the new Makefile requirement.
39300
39301 2009-01-17  Bruno Haible  <bruno@clisp.org>
39302
39303         * build-aux/install-reloc: Remove debugging information left over by
39304         C compiler on MacOS X.
39305
39306 2009-01-17  Bruno Haible  <bruno@clisp.org>
39307
39308         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39309         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39310         _NSGetExecutablePath.
39311
39312 2009-01-16  Jim Meyering  <meyering@redhat.com>
39313
39314         strerror: avoid warnings about discarding "const"
39315         * lib/strerror.c (rpl_strerror): Instead of returning a const
39316         string from each and every "case", use a variable, and add a single
39317         cast after the switch.
39318
39319 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39320
39321         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39322
39323 2009-01-16  Bruno Haible  <bruno@clisp.org>
39324
39325         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39326         array initializer syntax that also works in C++ mode.
39327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39328
39329 2009-01-16  Jim Meyering  <meyering@redhat.com>
39330
39331         poll: suppress a warning
39332         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39333         to ignore "...unsigned expression < 0 is always false" warnings.
39334
39335 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39336
39337         poll: remove declarations of unused variables
39338         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39339         sockbuf and optlen.
39340
39341 2009-01-15  Bruno Haible  <bruno@clisp.org>
39342
39343         Make fflush-after-ungetc POSIX compliant on BSD systems.
39344         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39345         (clear_ungetc_buffer): Implement also for other systems.
39346         (rpl_fflush): On glibc systems, invoke
39347         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39348         clear_ungetc_buffer after fetching the stream's position, not before.
39349
39350 2009-01-15  Bruno Haible  <bruno@clisp.org>
39351
39352         Make fflush-after-ungetc POSIX compliant on glibc systems.
39353         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39354         after ungetc.
39355         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39356         (rpl_fflush): On glibc systems, simply call the system's fflush
39357         function after clearing the ungetc buffer.
39358         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39359         Instead, lseek only to the end of file, then use the system's fseeko
39360         for the rest. On glibc systems, reset the EOF indicator bit.
39361
39362 2009-01-15  Jim Meyering  <meyering@redhat.com>
39363
39364         openmp.m4: revert quote-adding change, for portability to older autoconf
39365         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39366         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39367         Simon Josefsson noticed the problem when using autoconf-2.61.
39368
39369 2009-01-15  Bruno Haible  <bruno@clisp.org>
39370
39371         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39372         * tests/test-fflush2.c (ASSERT): Always fail.
39373         (main): Add two tests for fflush() after ungetc(), taking into account
39374         the Austin Group's clarification.
39375         Suggested by Eric Blake.
39376
39377 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39378
39379         mktime.m4: remove K&R-style function prototypes
39380         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39381         for the Sun C++ compiler.
39382
39383 2009-01-14  Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39386         while including <wchar.h>.
39387         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39388         the system's <wchar.h> file.
39389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39390
39391 2009-01-14  Bruno Haible  <bruno@clisp.org>
39392
39393         * m4/csharp.m4: Don't mention gettext on the serial number line.
39394         * m4/csharpexec.m4: Likewise.
39395         * m4/eaccess.m4: Likewise.
39396         * m4/javaexec.m4: Likewise.
39397         * m4/sig_atomic_t.m4: Likewise.
39398         * m4/tmpdir.m4: Likewise.
39399         * m4/intldir.m4: Bump gettext version.
39400         * m4/lib-ld.m4: Likewise.
39401
39402 2009-01-14  Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/progname.c (set_program_name): Add more comments.
39405         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39406
39407 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39408
39409         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39410         were sys/stat.h does not define it.
39411
39412 2009-01-14  Jim Meyering  <meyering@redhat.com>
39413
39414         many *.m4 files: improve m4 quoting
39415         99% of this change was performed by running the following commands:
39416         git ls-files | grep '\.m4$' | xargs perl -pi \
39417           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39418           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39419           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39420           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39421         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39422         The remainder were to add Copyright dates, increment serial numbers,
39423         undo some changes in comments, exclude m4/intl.m4, and add quotes
39424         around the "1" in ",1" where the unusual spacing prohibited the
39425         above regexps from doing the job.  For more details, see
39426         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39427         * m4/acl.m4: Modified.
39428         * m4/afs.m4: Likewise.
39429         * m4/alloca.m4: Likewise.
39430         * m4/argp.m4: Likewise.
39431         * m4/argz.m4: Likewise.
39432         * m4/atexit.m4: Likewise.
39433         * m4/bison-i18n.m4: Likewise.
39434         * m4/bison.m4: Likewise.
39435         * m4/byteswap.m4: Likewise.
39436         * m4/c-stack.m4: Likewise.
39437         * m4/c-strtod.m4: Likewise.
39438         * m4/calloc.m4: Likewise.
39439         * m4/canonicalize-lgpl.m4: Likewise.
39440         * m4/chown.m4: Likewise.
39441         * m4/clock_time.m4: Likewise.
39442         * m4/codeset.m4: Likewise.
39443         * m4/copy-file.m4: Likewise.
39444         * m4/csharp.m4: Likewise.
39445         * m4/csharpcomp.m4: Likewise.
39446         * m4/csharpexec.m4: Likewise.
39447         * m4/d-ino.m4: Likewise.
39448         * m4/d-type.m4: Likewise.
39449         * m4/dirfd.m4: Likewise.
39450         * m4/double-slash-root.m4: Likewise.
39451         * m4/eaccess.m4: Likewise.
39452         * m4/eealloc.m4: Likewise.
39453         * m4/environ.m4: Likewise.
39454         * m4/errno_h.m4: Likewise.
39455         * m4/euidaccess.m4: Likewise.
39456         * m4/execute.m4: Likewise.
39457         * m4/fatal-signal.m4: Likewise.
39458         * m4/fchdir.m4: Likewise.
39459         * m4/fcntl_h.m4: Likewise.
39460         * m4/fileblocks.m4: Likewise.
39461         * m4/filenamecat.m4: Likewise.
39462         * m4/findprog.m4: Likewise.
39463         * m4/flexmember.m4: Likewise.
39464         * m4/fnmatch.m4: Likewise.
39465         * m4/fopen.m4: Likewise.
39466         * m4/fpending.m4: Likewise.
39467         * m4/fprintf-posix.m4: Likewise.
39468         * m4/free.m4: Likewise.
39469         * m4/frexp.m4: Likewise.
39470         * m4/frexpl.m4: Likewise.
39471         * m4/fsusage.m4: Likewise.
39472         * m4/ftruncate.m4: Likewise.
39473         * m4/gc-camellia.m4: Likewise.
39474         * m4/gc-random.m4: Likewise.
39475         * m4/gc.m4: Likewise.
39476         * m4/getaddrinfo.m4: Likewise.
39477         * m4/getcwd-abort-bug.m4: Likewise.
39478         * m4/getcwd-path-max.m4: Likewise.
39479         * m4/getdate.m4: Likewise.
39480         * m4/getdomainname.m4: Likewise.
39481         * m4/getgroups.m4: Likewise.
39482         * m4/gethostname.m4: Likewise.
39483         * m4/gethrxtime.m4: Likewise.
39484         * m4/getline.m4: Likewise.
39485         * m4/getloadavg.m4: Likewise.
39486         * m4/getndelim2.m4: Likewise.
39487         * m4/getpass.m4: Likewise.
39488         * m4/gettext.m4: Likewise.
39489         * m4/gettime.m4: Likewise.
39490         * m4/gettimeofday.m4: Likewise.
39491         * m4/gnulib-common.m4: Likewise.
39492         * m4/group-member.m4: Likewise.
39493         * m4/host-os.m4: Likewise.
39494         * m4/iconv.m4: Likewise.
39495         * m4/iconv_open.m4: Likewise.
39496         * m4/inet_ntop.m4: Likewise.
39497         * m4/inet_pton.m4: Likewise.
39498         * m4/inline.m4: Likewise.
39499         * m4/intldir.m4: Likewise.
39500         * m4/intlmacosx.m4: Likewise.
39501         * m4/intmax.m4: Likewise.
39502         * m4/intmax_t.m4: Likewise.
39503         * m4/inttypes.m4: Likewise.
39504         * m4/inttypes_h.m4: Likewise.
39505         * m4/inttypes-pri.m4: Likewise.
39506         * m4/isapipe.m4: Likewise.
39507         * m4/isnand.m4: Likewise.
39508         * m4/isnanf.m4: Likewise.
39509         * m4/isnanl.m4: Likewise.
39510         * m4/javacomp.m4: Likewise.
39511         * m4/javaexec.m4: Likewise.
39512         * m4/jm-winsz1.m4: Likewise.
39513         * m4/jm-winsz2.m4: Likewise.
39514         * m4/lchown.m4: Likewise.
39515         * m4/lcmessage.m4: Likewise.
39516         * m4/ldexpl.m4: Likewise.
39517         * m4/lib-ld.m4: Likewise.
39518         * m4/lib-link.m4: Likewise.
39519         * m4/libsigsegv.m4: Likewise.
39520         * m4/link-follow.m4: Likewise.
39521         * m4/localcharset.m4: Likewise.
39522         * m4/locale-fr.m4: Likewise.
39523         * m4/locale-ja.m4: Likewise.
39524         * m4/locale-tr.m4: Likewise.
39525         * m4/locale-zh.m4: Likewise.
39526         * m4/lock.m4: Likewise.
39527         * m4/longlong.m4: Likewise.
39528         * m4/ls-mntd-fs.m4: Likewise.
39529         * m4/lstat.m4: Likewise.
39530         * m4/malloc.m4: Likewise.
39531         * m4/mathl.m4: Likewise.
39532         * m4/mbrtowc.m4: Likewise.
39533         * m4/mbstate_t.m4: Likewise.
39534         * m4/mbswidth.m4: Likewise.
39535         * m4/memchr.m4: Likewise.
39536         * m4/memcmp.m4: Likewise.
39537         * m4/memcpy.m4: Likewise.
39538         * m4/memmem.m4: Likewise.
39539         * m4/memmove.m4: Likewise.
39540         * m4/mempcpy.m4: Likewise.
39541         * m4/memrchr.m4: Likewise.
39542         * m4/memset.m4: Likewise.
39543         * m4/minmax.m4: Likewise.
39544         * m4/mkdir-slash.m4: Likewise.
39545         * m4/mkdtemp.m4: Likewise.
39546         * m4/mktime.m4: Likewise.
39547         * m4/mmap-anon.m4: Likewise.
39548         * m4/mountlist.m4: Likewise.
39549         * m4/nanosleep.m4: Likewise.
39550         * m4/nls.m4: Likewise.
39551         * m4/nocrash.m4: Likewise.
39552         * m4/open.m4: Likewise.
39553         * m4/openat.m4: Likewise.
39554         * m4/openmp.m4: Likewise.
39555         * m4/pathmax.m4: Likewise.
39556         * m4/perl.m4: Likewise.
39557         * m4/physmem.m4: Likewise.
39558         * m4/pipe.m4: Likewise.
39559         * m4/po.m4: Likewise.
39560         * m4/poll.m4: Likewise.
39561         * m4/posixtm.m4: Likewise.
39562         * m4/posixver.m4: Likewise.
39563         * m4/printf-frexp.m4: Likewise.
39564         * m4/printf-frexpl.m4: Likewise.
39565         * m4/printf-posix.m4: Likewise.
39566         * m4/printf-posix-rpl.m4: Likewise.
39567         * m4/printf.m4: Likewise.
39568         * m4/progtest.m4: Likewise.
39569         * m4/putenv.m4: Likewise.
39570         * m4/readline.m4: Likewise.
39571         * m4/readlink.m4: Likewise.
39572         * m4/readutmp.m4: Likewise.
39573         * m4/realloc.m4: Likewise.
39574         * m4/regex.m4: Likewise.
39575         * m4/relocatable.m4: Likewise.
39576         * m4/relocatable-lib.m4: Likewise.
39577         * m4/rename-dest-slash.m4: Likewise.
39578         * m4/rename.m4: Likewise.
39579         * m4/rmdir-errno.m4: Likewise.
39580         * m4/rmdir.m4: Likewise.
39581         * m4/roundf.m4: Likewise.
39582         * m4/roundl.m4: Likewise.
39583         * m4/rpmatch.m4: Likewise.
39584         * m4/save-cwd.m4: Likewise.
39585         * m4/selinux-selinux-h.m4: Likewise.
39586         * m4/setenv.m4: Likewise.
39587         * m4/settime.m4: Likewise.
39588         * m4/sig2str.m4: Likewise.
39589         * m4/sig_atomic_t.m4: Likewise.
39590         * m4/signalblocking.m4: Likewise.
39591         * m4/signbit.m4: Likewise.
39592         * m4/sigpipe.m4: Likewise.
39593         * m4/sockets.m4: Likewise.
39594         * m4/sockpfaf.m4: Likewise.
39595         * m4/st_dm_mode.m4: Likewise.
39596         * m4/stat-time.m4: Likewise.
39597         * m4/stdbool.m4: Likewise.
39598         * m4/stdint.m4: Likewise.
39599         * m4/stdint_h.m4: Likewise.
39600         * m4/stpcpy.m4: Likewise.
39601         * m4/stpncpy.m4: Likewise.
39602         * m4/strcase.m4: Likewise.
39603         * m4/strchrnul.m4: Likewise.
39604         * m4/strcspn.m4: Likewise.
39605         * m4/strdup.m4: Likewise.
39606         * m4/strftime.m4: Likewise.
39607         * m4/strndup.m4: Likewise.
39608         * m4/strnlen.m4: Likewise.
39609         * m4/strpbrk.m4: Likewise.
39610         * m4/strptime.m4: Likewise.
39611         * m4/strsep.m4: Likewise.
39612         * m4/strtod.m4: Likewise.
39613         * m4/strtoimax.m4: Likewise.
39614         * m4/strtok_r.m4: Likewise.
39615         * m4/strtol.m4: Likewise.
39616         * m4/strtoll.m4: Likewise.
39617         * m4/strtoul.m4: Likewise.
39618         * m4/strtoull.m4: Likewise.
39619         * m4/strtoumax.m4: Likewise.
39620         * m4/strverscmp.m4: Likewise.
39621         * m4/threadlib.m4: Likewise.
39622         * m4/timegm.m4: Likewise.
39623         * m4/tm_gmtoff.m4: Likewise.
39624         * m4/tmpdir.m4: Likewise.
39625         * m4/tmpfile.m4: Likewise.
39626         * m4/tzset.m4: Likewise.
39627         * m4/uintmax_t.m4: Likewise.
39628         * m4/unlinkdir.m4: Likewise.
39629         * m4/unlocked-io.m4: Likewise.
39630         * m4/uptime.m4: Likewise.
39631         * m4/userspec.m4: Likewise.
39632         * m4/utimbuf.m4: Likewise.
39633         * m4/utime.m4: Likewise.
39634         * m4/utimes-null.m4: Likewise.
39635         * m4/utimes.m4: Likewise.
39636         * m4/vararrays.m4: Likewise.
39637         * m4/vasnprintf.m4: Likewise.
39638         * m4/vfprintf-posix.m4: Likewise.
39639         * m4/vprintf-posix.m4: Likewise.
39640         * m4/wait-process.m4: Likewise.
39641         * m4/wchar_t.m4: Likewise.
39642         * m4/wint_t.m4: Likewise.
39643         * m4/write-any-file.m4: Likewise.
39644         * m4/yield.m4: Likewise.
39645
39646 2009-01-13  Bruno Haible  <bruno@clisp.org>
39647
39648         Avoid test-copy-file.sh failures when ACL support insufficient.
39649         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39650         TESTS_ENVIRONMENT.
39651         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39652         Reported by Jim Meyering.
39653
39654 2009-01-13  Bruno Haible  <bruno@clisp.org>
39655
39656         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39657         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39658         * modules/unistdio/u8-printf-parse (Files): Likewise.
39659         * modules/unistdio/u32-printf-parse (Files): Likewise.
39660         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39661
39662 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39663
39664         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39665         and m4/inttypes_h.m4 too.
39666
39667 2009-01-12  Eric Blake  <ebb9@byu.net>
39668
39669         tests: IRIX 6.2 cc can't compile -0.0 into .data
39670         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39671         rather than at compile-time.
39672         * tests/test-floorl.c (minus_zero): Likewise.
39673         * tests/test-frexpl.c (minus_zero): Likewise.
39674         * tests/test-isnan.c (minus_zerol): Likewise.
39675         * tests/test-isnanl.h (minus_zero): Likewise.
39676         * tests/test-ldexpl.c (minus_zero): Likewise.
39677         * tests/test-roundl.c (minus_zero): Likewise.
39678         * tests/test-signbit.c (minus_zerol): Likewise.
39679         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39680         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39681         * tests/test-truncl.c (minus_zero): Likewise.
39682         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39683         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39684         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39685
39686 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39687
39688         regex: fix glibc bug 9697
39689         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39690         handling.
39691
39692 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39693
39694         regex: fix glibc bug 697
39695         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39696         being NULL also if there are no backreferences.
39697
39698 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39699
39700         regex: merge glibc changes
39701         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39702         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39703         re_string_skip_chars, re_string_reconstruct): Likewise.
39704         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39705
39706 2009-01-07  Jim Meyering  <meyering@redhat.com>
39707
39708         poll: filter through cppi
39709         * lib/poll.c: Indent cpp directives to reflect nesting.
39710
39711 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39712
39713         poll: don't return uninitialized
39714         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39715
39716 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39717
39718         avoid compile failure on AIX 6.1
39719         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39720         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39721
39722 2009-01-04  Jim Meyering  <meyering@redhat.com>
39723
39724         remove duplicate inclusion of <stdio.h>
39725         * tests/test-fprintf-posix.c: Likewise.
39726         * tests/test-printf-posix.c: Likewise.
39727         * tests/test-snprintf-posix.c: Likewise.
39728         * tests/test-sprintf-posix.c: Likewise.
39729         * tests/test-vasprintf-posix.c: Likewise.
39730         * tests/test-vfprintf-posix.c: Likewise.
39731         * tests/test-vprintf-posix.c: Likewise.
39732         * tests/test-vsnprintf-posix.c: Likewise.
39733         * tests/test-vsprintf-posix.c: Likewise.
39734
39735 2009-01-03  Jim Meyering  <meyering@redhat.com>
39736
39737         gnulib-tool: fix sed-based filtering
39738         * gnulib-tool (func_filter_filelist): Remove extra backslash
39739         in sed_fff_filter definition.
39740
39741 2009-01-02  Jim Meyering  <meyering@redhat.com>
39742
39743         strftime: avoid compilation failure on Solaris 2.6
39744         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39745         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39746         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39747         be available.  Reported by Tom G. Christensen.  Details in
39748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39749
39750 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39751             Bruno Haible  <bruno@clisp.org>
39752
39753         Speed up gnulib-tool by doing more string processing through shell
39754         built-ins.
39755         * gnulib-tool (fast_func_append): New variable.
39756         (func_remove_prefix, func_remove_suffix): New functions.
39757         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39758         (func_filter_filelist): New function.
39759         (func_get_dependencies): Use func_remove_suffix instead of sed.
39760         (func_get_automake_snippet): Use func_filter_filelist instead of a
39761         subshell and sed invocation.
39762
39763 2009-01-01  Bruno Haible  <bruno@clisp.org>
39764
39765         Fix a security bug.
39766         * gnulib-tool (func_import, import, update): Don't allow the characters
39767         '"', '$', '`', '\' in macro arguments that become part of commands that
39768         are evaluated.
39769
39770 2009-01-01  Bruno Haible  <bruno@clisp.org>
39771
39772         * gnulib-tool (func_reset_sigpipe): Add more comments.
39773
39774 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39775
39776         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39777         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39778         already know the answer.
39779
39780 2009-01-01  Jim Meyering  <meyering@redhat.com>
39781
39782         * lib/version-etc.c (version_etc_va): Update copyright year.
39783
39784 2008-12-30  Bruno Haible  <bruno@clisp.org>
39785
39786         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39787         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39788         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39789
39790 2008-12-29  Eric Blake  <ebb9@byu.net>
39791
39792         multiarch: avoid autoconf AC_REQUIRE bug
39793         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39794         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39795         2.63 and older.
39796         Reported by Bruno Haible, and analyzed in
39797         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39798
39799 2008-12-29  Bruno Haible  <bruno@clisp.org>
39800
39801         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39802         files in subdirectories correctly.
39803         Reported by Ralf Wildenhues.
39804
39805 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39806
39807         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39808         rather than 'join FILE -', for Solaris join.
39809
39810 2008-12-29  Bruno Haible  <bruno@clisp.org>
39811
39812         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39813         quoting.
39814         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39815         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39816         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39817         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39818         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39819         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39820         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39821         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39822         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39823         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39824         * m4/nls.m4 (AM_NLS): Likewise.
39825         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39826         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39827         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39828         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39829         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39830         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39831         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39832         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39833         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39834         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39835         * m4/xsize.m4 (gl_XSIZE): Likewise.
39836         Suggested by Jim Meyering.
39837
39838 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39839
39840         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39841         * lib/parse-duration.c: use a switch instead of cascading if's.
39842
39843 2008-12-29  Eric Blake  <ebb9@byu.net>
39844
39845         wchar.h: supply WEOF on Irix 5.3
39846         * lib/wchar.in.h (wint_t): Also supply WEOF.
39847         * lib/wctype.in.h (wint_t): Likewise.
39848         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39849         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39850         Reported by Tom G. Christensen.
39851
39852 2008-12-26  Bruno Haible  <bruno@clisp.org>
39853
39854         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39855         i486, i586, i686.
39856
39857 2008-12-26  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39860
39861 2008-12-26  Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39864         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39865         not __STDC_CONSTANT_MACROS.
39866         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39867
39868 2008-12-25  Bruno Haible  <bruno@clisp.org>
39869
39870         Add support for universal builds to vasnprintf.
39871         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39872         universal builds, guess no.
39873         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39874         * modules/vasprintf-posix (Depends-on): Likewise.
39875         * modules/fprintf-posix (Depends-on): Likewise.
39876         * modules/vfprintf-posix (Depends-on): Likewise.
39877         * modules/snprintf-posix (Depends-on): Likewise.
39878         * modules/vsnprintf-posix (Depends-on): Likewise.
39879         * modules/sprintf-posix (Depends-on): Likewise.
39880         * modules/vsprintf-posix (Depends-on): Likewise.
39881         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39882         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39883         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39884         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39885         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39886         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39887         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39888
39889         Add support for universal builds to <inttypes.h>.
39890         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39891         _SCNu64_PREFIX): In Apple
39892         universal builds, define directly, using _LP64.
39893         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39894         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39895         * modules/inttypes (Depends-on): Add multiarch.
39896         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39897
39898         Add support for universal builds to <stdint.h>.
39899         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39900         universal builds, define directly, using _LP64.
39901         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39902         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39903         and size_t.
39904         * modules/stdint (Depends-on): Add multiarch.
39905         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39906
39907         New module 'multiarch'.
39908         * modules/multiarch: New file.
39909         * m4/multiarch.m4: New file.
39910
39911 2008-12-25  Bruno Haible  <bruno@clisp.org>
39912
39913         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39914
39915 2008-12-25  Bruno Haible  <bruno@clisp.org>
39916
39917         * modules/btowc (License): Relicense under LGPLv2+.
39918         * modules/mbsinit (License): Likewise.
39919         * modules/mbrtowc (License): Likewise.
39920         * modules/wcrtomb (License): Likewise.
39921         * modules/streq (License): Likewise.
39922         Reported by David Lutterkort <lutter@redhat.com>.
39923
39924 2008-12-23  Bruno Haible  <bruno@clisp.org>
39925
39926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39927
39928 2008-12-23  Bruno Haible  <bruno@clisp.org>
39929
39930         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39932         GETADDRINFO_LIB, not in LIBS.
39933         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39934         * modules/canon-host (Link): Likewise.
39935         * NEWS: Mention the change.
39936         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39937         GETADDRINFO_LIB.
39938
39939 2008-12-22  Bruno Haible  <bruno@clisp.org>
39940
39941         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39942         * doc/posix-functions/iswalpha_l.texi: Likewise.
39943         * doc/posix-functions/iswblank_l.texi: Likewise.
39944         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39945         * doc/posix-functions/iswctype_l.texi: Likewise.
39946         * doc/posix-functions/iswdigit_l.texi: Likewise.
39947         * doc/posix-functions/iswgraph_l.texi: Likewise.
39948         * doc/posix-functions/iswlower_l.texi: Likewise.
39949         * doc/posix-functions/iswprint_l.texi: Likewise.
39950         * doc/posix-functions/iswpunct_l.texi: Likewise.
39951         * doc/posix-functions/iswspace_l.texi: Likewise.
39952         * doc/posix-functions/iswupper_l.texi: Likewise.
39953         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39954         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39955         * doc/posix-functions/open_wmemstream.texi: Likewise.
39956         * doc/posix-functions/swscanf.texi: Likewise.
39957         * doc/posix-functions/towctrans_l.texi: Likewise.
39958         * doc/posix-functions/towlower.texi: Likewise.
39959         * doc/posix-functions/towlower_l.texi: Likewise.
39960         * doc/posix-functions/towupper.texi: Likewise.
39961         * doc/posix-functions/towupper_l.texi: Likewise.
39962         * doc/posix-functions/vfwprintf.texi: Likewise.
39963         * doc/posix-functions/vfwscanf.texi: Likewise.
39964         * doc/posix-functions/vswscanf.texi: Likewise.
39965         * doc/posix-functions/vwprintf.texi: Likewise.
39966         * doc/posix-functions/vwscanf.texi: Likewise.
39967         * doc/posix-functions/wcpcpy.texi: Likewise.
39968         * doc/posix-functions/wcpncpy.texi: Likewise.
39969         * doc/posix-functions/wcscasecmp.texi: Likewise.
39970         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39971         * doc/posix-functions/wcscoll_l.texi: Likewise.
39972         * doc/posix-functions/wcsdup.texi: Likewise.
39973         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39974         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39975         * doc/posix-functions/wcsnlen.texi: Likewise.
39976         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39977         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39978         * doc/posix-functions/wctrans_l.texi: Likewise.
39979         * doc/posix-functions/wctype_l.texi: Likewise.
39980         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39981         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39982         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39983         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39984         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39985         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39986         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39987         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39988         * doc/glibc-functions/wcschrnul.texi: Likewise.
39989         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39990         * doc/glibc-functions/wcstod_l.texi: Likewise.
39991         * doc/glibc-functions/wcstof_l.texi: Likewise.
39992         * doc/glibc-functions/wcstol_l.texi: Likewise.
39993         * doc/glibc-functions/wcstold_l.texi: Likewise.
39994         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39995         * doc/glibc-functions/wcstoq.texi: Likewise.
39996         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39997         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39998         * doc/glibc-functions/wcstouq.texi: Likewise.
39999         * doc/glibc-functions/wmempcpy.texi: Likewise.
40000
40001 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40002             Eric Blake  <ebb9@byu.net>
40003             Paolo Bonzini  <bonzini@gnu.org>
40004             Bruno Haible  <bruno@clisp.org>
40005
40006         Make c-stack work on Haiku.
40007         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40008         (c_stack_action): Use SA_ONSTACK flag.
40009
40010 2008-12-22  Bruno Haible  <bruno@clisp.org>
40011
40012         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40013
40014 2008-12-22  Bruno Haible  <bruno@clisp.org>
40015
40016         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40017         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40018         being overridden.
40019         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40020         New macros.
40021         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40023         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40024         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40025
40026 2008-12-22  Bruno Haible  <bruno@clisp.org>
40027
40028         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40029         from test code.
40030
40031 2008-12-22  Eric Blake  <ebb9@byu.net>
40032
40033         Avoid gcc warnings on cygwin.
40034         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40035         Avoid unused variable.
40036         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40037         Likewise.
40038
40039 2008-12-22  Bruno Haible  <bruno@clisp.org>
40040
40041         Remove HAVE_MBRTOWC conditionals.
40042         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40043         (mbscasecmp): Assume mbrtowc function.
40044         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40045         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40046         * lib/mbschr.c: Include mbuiter.h unconditionally.
40047         (mbschr): Assume mbrtowc function.
40048         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40049         (mbscspn): Assume mbrtowc function.
40050         * lib/mbslen.c: Include mbuiter.h unconditionally.
40051         (mbslen): Assume mbrtowc function.
40052         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40053         (mbsncasecmp): Assume mbrtowc function.
40054         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40055         (mbsnlen): Assume mbrtowc function.
40056         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40057         (mbspbrk): Assume mbrtowc function.
40058         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40059         (mbspcasecmp): Assume mbrtowc function.
40060         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40061         (mbsrchr): Assume mbrtowc function.
40062         * lib/mbssep.c: Include mbuiter.h unconditionally.
40063         (mbssep): Assume mbrtowc function.
40064         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40065         (mbsspn): Assume mbrtowc function.
40066         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40067         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40068         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40069         (mbstok_r): Assume mbrtowc function.
40070         * lib/propername.c: Include mbuiter.h unconditionally.
40071         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40072         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40073         (trim2): Assume mbrtowc function.
40074         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40075         (mbsnwidth): Assume mbrtowc function.
40076         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40077         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40078         fallback definitions.
40079         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40080
40081 2008-12-22  Bruno Haible  <bruno@clisp.org>
40082
40083         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40084
40085 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40086
40087         * modules/regex: Request emulations for the mb*/wc* functions we need.
40088         * m4/regex.m4: Don't look for those functions here.
40089         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40090
40091 2008-12-22  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40094
40095 2008-12-21  Bruno Haible  <bruno@clisp.org>
40096
40097         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40098         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40099         (Include): Remove conditionalization.
40100         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40101         (Include): Remove conditionalization.
40102         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40103         (Include): Remove conditionalization.
40104         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40105         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40106         * NEWS: Mention the change.
40107         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40108         via Sergey Poznyakoff <gray@gnu.org.ua>.
40109
40110 2008-12-21  Bruno Haible  <bruno@clisp.org>
40111
40112         * MODULES.html.sh (Extended multibyte and wide character utilities
40113         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40114         wcrtomb, wcsrtombs.
40115         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40116         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40117         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40118         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40119
40120 2008-12-21  Bruno Haible  <bruno@clisp.org>
40121
40122         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40123
40124 2008-12-21  Bruno Haible  <bruno@clisp.org>
40125
40126         * modules/wcsnrtombs-tests: New file.
40127         * tests/test-wcsnrtombs1.sh: New file.
40128         * tests/test-wcsnrtombs2.sh: New file.
40129         * tests/test-wcsnrtombs3.sh: New file.
40130         * tests/test-wcsnrtombs4.sh: New file.
40131         * tests/test-wcsnrtombs.c: New file.
40132
40133         New module 'wcsnrtombs'.
40134         * lib/wchar.in.h (wcsnrtombs): New declaration.
40135         * lib/wcsnrtombs.c: New file.
40136         * lib/wcsrtombs-state.c: New file.
40137         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40138         (internal_state): Remove variable.
40139         * m4/wcsnrtombs.m4: New file.
40140         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40141         compilation units.
40142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40143         HAVE_WCSNRTOMBS.
40144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40145         HAVE_WCSNRTOMBS.
40146         * modules/wcsnrtombs: New file.
40147         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40148         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40149
40150 2008-12-21  Bruno Haible  <bruno@clisp.org>
40151
40152         * modules/wcsrtombs-tests: New file.
40153         * tests/test-wcsrtombs1.sh: New file.
40154         * tests/test-wcsrtombs2.sh: New file.
40155         * tests/test-wcsrtombs3.sh: New file.
40156         * tests/test-wcsrtombs4.sh: New file.
40157         * tests/test-wcsrtombs.c: New file.
40158
40159         New module 'wcsrtombs'.
40160         * lib/wchar.in.h (wcsrtombs): New declaration.
40161         * lib/wcsrtombs.c: New file.
40162         * m4/wcsrtombs.m4: New file.
40163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40164         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40166         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40167         * modules/wcsrtombs: New file.
40168         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40169         bugs.
40170
40171 2008-12-21  Bruno Haible  <bruno@clisp.org>
40172
40173         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40174         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40176         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40177         if not correct.
40178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40179         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40180         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40181         m4/locale-zh.m4, m4/codeset.m4.
40182         * doc/posix-functions/wcrtomb.texi: Document the bug.
40183
40184 2008-12-21  Bruno Haible  <bruno@clisp.org>
40185
40186         Work around a btowc() bug on IRIX 6.5.
40187         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40188         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40189         REPLACE_WTOBC if not.
40190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40191         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40192         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40193
40194 2008-12-21  Bruno Haible  <bruno@clisp.org>
40195
40196         * modules/wcrtomb-tests: New file.
40197         * tests/test-wcrtomb.sh: New file.
40198         * tests/test-wcrtomb.c: New file.
40199
40200         New module 'wcrtomb'.
40201         * lib/wchar.in.h (wcrtomb): New declaration.
40202         * lib/wcrtomb.c: New file.
40203         * m4/wcrtomb.m4: New file.
40204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40205         HAVE_WCRTOMB.
40206         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40207         HAVE_WCRTOMB.
40208         * modules/wcrtomb: New file.
40209         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40210
40211 2008-12-21  Bruno Haible  <bruno@clisp.org>
40212
40213         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40214         * modules/mbsrtowcs (Files): Likewise.
40215         * modules/wctob (Files): Likewise.
40216         * modules/c-strcase-tests (Files): Likewise.
40217         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40218         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40219         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40220         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40221         * modules/vasnprintf-posix-tests (Files): Likewise.
40222
40223 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40224
40225         gitlog-to-changelog: pass all command-line arguments to git-log
40226         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40227         it is sometimes convenient to filter the commits in various ways.
40228         gitlog-to-changelog only allows --since to specify a start date,
40229         but git-log itself supports many other filtering mechanisms.
40230         At the moment, I want to filter by branch name.  Rather than
40231         adding a --branch option to gitlog-to-changelog, it seems more
40232         flexible to simply pass all options directly to git-log and let
40233         git do the work.  Notice that this effectively makes --since a
40234         redundant option for gitlog-to-changelog, but removing it would
40235         require current usage to change since calls would then require
40236         an additional '--'.
40237
40238 2008-12-21  Bruno Haible  <bruno@clisp.org>
40239
40240         * modules/mbsnrtowcs-tests: New file.
40241         * tests/test-mbsnrtowcs1.sh: New file.
40242         * tests/test-mbsnrtowcs2.sh: New file.
40243         * tests/test-mbsnrtowcs3.sh: New file.
40244         * tests/test-mbsnrtowcs4.sh: New file.
40245         * tests/test-mbsnrtowcs.c: New file.
40246
40247         New module 'mbsnrtowcs'.
40248         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40249         * lib/mbsnrtowcs.c: New file.
40250         * lib/mbsrtowcs-state.c: New file.
40251         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40252         (internal_state): Remove variable.
40253         * m4/mbsnrtowcs.m4: New file.
40254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40255         compilation units.
40256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40257         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40258         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40259         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40260         * modules/mbsnrtowcs: New file.
40261         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40262         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40263         portability problem.
40264
40265 2008-12-21  Bruno Haible  <bruno@clisp.org>
40266
40267         Work around mbsrtowcs bug.
40268         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40269         (gl_FUNC_MBSRTOWCS): Invoke it.
40270         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40271         m4/locale-zh.m4.
40272         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40273
40274 2008-12-21  Bruno Haible  <bruno@clisp.org>
40275
40276         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40277
40278 2008-12-21  Bruno Haible  <bruno@clisp.org>
40279
40280         Update doc for AIX.
40281         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40282         16-bit wchar_t type.
40283         * doc/posix-functions/btowc.texi: Likewise.
40284         * doc/posix-functions/fgetwc.texi: Likewise.
40285         * doc/posix-functions/fgetws.texi: Likewise.
40286         * doc/posix-functions/fputwc.texi: Likewise.
40287         * doc/posix-functions/fputws.texi: Likewise.
40288         * doc/posix-functions/fwide.texi: Likewise.
40289         * doc/posix-functions/fwprintf.texi: Likewise.
40290         * doc/posix-functions/fwscanf.texi: Likewise.
40291         * doc/posix-functions/getwchar.texi: Likewise.
40292         * doc/posix-functions/getwc.texi: Likewise.
40293         * doc/posix-functions/iswalnum.texi: Likewise.
40294         * doc/posix-functions/iswalpha.texi: Likewise.
40295         * doc/posix-functions/iswblank.texi: Likewise.
40296         * doc/posix-functions/iswcntrl.texi: Likewise.
40297         * doc/posix-functions/iswctype.texi: Likewise.
40298         * doc/posix-functions/iswdigit.texi: Likewise.
40299         * doc/posix-functions/iswgraph.texi: Likewise.
40300         * doc/posix-functions/iswlower.texi: Likewise.
40301         * doc/posix-functions/iswprint.texi: Likewise.
40302         * doc/posix-functions/iswpunct.texi: Likewise.
40303         * doc/posix-functions/iswspace.texi: Likewise.
40304         * doc/posix-functions/iswupper.texi: Likewise.
40305         * doc/posix-functions/iswxdigit.texi: Likewise.
40306         * doc/posix-functions/mbrtowc.texi: Likewise.
40307         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40308         * doc/posix-functions/mbstowcs.texi: Likewise.
40309         * doc/posix-functions/mbtowc.texi: Likewise.
40310         * doc/posix-functions/putwchar.texi: Likewise.
40311         * doc/posix-functions/putwc.texi: Likewise.
40312         * doc/posix-functions/swprintf.texi: Likewise.
40313         * doc/posix-functions/tolower.texi: Likewise.
40314         * doc/posix-functions/toupper.texi: Likewise.
40315         * doc/posix-functions/towctrans.texi: Likewise.
40316         * doc/posix-functions/ungetwc.texi: Likewise.
40317         * doc/posix-functions/vswprintf.texi: Likewise.
40318         * doc/posix-functions/wcrtomb.texi: Likewise.
40319         * doc/posix-functions/wcscat.texi: Likewise.
40320         * doc/posix-functions/wcschr.texi: Likewise.
40321         * doc/posix-functions/wcscmp.texi: Likewise.
40322         * doc/posix-functions/wcscoll.texi: Likewise.
40323         * doc/posix-functions/wcscpy.texi: Likewise.
40324         * doc/posix-functions/wcscspn.texi: Likewise.
40325         * doc/posix-functions/wcsftime.texi: Likewise.
40326         * doc/posix-functions/wcslen.texi: Likewise.
40327         * doc/posix-functions/wcsncat.texi: Likewise.
40328         * doc/posix-functions/wcsncmp.texi: Likewise.
40329         * doc/posix-functions/wcsncpy.texi: Likewise.
40330         * doc/posix-functions/wcspbrk.texi: Likewise.
40331         * doc/posix-functions/wcsrchr.texi: Likewise.
40332         * doc/posix-functions/wcsrtombs.texi: Likewise.
40333         * doc/posix-functions/wcsspn.texi: Likewise.
40334         * doc/posix-functions/wcsstr.texi: Likewise.
40335         * doc/posix-functions/wcstod.texi: Likewise.
40336         * doc/posix-functions/wcstof.texi: Likewise.
40337         * doc/posix-functions/wcstoimax.texi: Likewise.
40338         * doc/posix-functions/wcstok.texi: Likewise.
40339         * doc/posix-functions/wcstold.texi: Likewise.
40340         * doc/posix-functions/wcstoll.texi: Likewise.
40341         * doc/posix-functions/wcstol.texi: Likewise.
40342         * doc/posix-functions/wcstombs.texi: Likewise.
40343         * doc/posix-functions/wcstoull.texi: Likewise.
40344         * doc/posix-functions/wcstoul.texi: Likewise.
40345         * doc/posix-functions/wcstoumax.texi: Likewise.
40346         * doc/posix-functions/wcswidth.texi: Likewise.
40347         * doc/posix-functions/wcsxfrm.texi: Likewise.
40348         * doc/posix-functions/wctob.texi: Likewise.
40349         * doc/posix-functions/wctomb.texi: Likewise.
40350         * doc/posix-functions/wctrans.texi: Likewise.
40351         * doc/posix-functions/wctype.texi: Likewise.
40352         * doc/posix-functions/wcwidth.texi: Likewise.
40353         * doc/posix-functions/wmemchr.texi: Likewise.
40354         * doc/posix-functions/wmemcmp.texi: Likewise.
40355         * doc/posix-functions/wmemcpy.texi: Likewise.
40356         * doc/posix-functions/wmemmove.texi: Likewise.
40357         * doc/posix-functions/wmemset.texi: Likewise.
40358         * doc/posix-functions/wprintf.texi: Likewise.
40359         * doc/posix-functions/wscanf.texi: Likewise.
40360
40361 2008-12-21  Bruno Haible  <bruno@clisp.org>
40362
40363         Update doc for HP-UX 11.11.
40364         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40365         in HP-UX version 11.00, not in all versions of HP-UX 11.
40366         * doc/posix-functions/fwide.texi: Likewise.
40367         * doc/posix-functions/fwprintf.texi: Likewise.
40368         * doc/posix-functions/fwscanf.texi: Likewise.
40369         * doc/posix-functions/inet_ntop.texi: Likewise.
40370         * doc/posix-functions/inet_pton.texi: Likewise.
40371         * doc/posix-functions/mbrlen.texi: Likewise.
40372         * doc/posix-functions/mbrtowc.texi: Likewise.
40373         * doc/posix-functions/mbsinit.texi: Likewise.
40374         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40375         * doc/posix-functions/swprintf.texi: Likewise.
40376         * doc/posix-functions/swscanf.texi: Likewise.
40377         * doc/posix-functions/towctrans.texi: Likewise.
40378         * doc/posix-functions/vfwprintf.texi: Likewise.
40379         * doc/posix-functions/vswprintf.texi: Likewise.
40380         * doc/posix-functions/vwprintf.texi: Likewise.
40381         * doc/posix-functions/wcrtomb.texi: Likewise.
40382         * doc/posix-functions/wcsrtombs.texi: Likewise.
40383         * doc/posix-functions/wcsstr.texi: Likewise.
40384         * doc/posix-functions/wctob.texi: Likewise.
40385         * doc/posix-functions/wctrans.texi: Likewise.
40386         * doc/posix-functions/wmemchr.texi: Likewise.
40387         * doc/posix-functions/wmemcmp.texi: Likewise.
40388         * doc/posix-functions/wmemcpy.texi: Likewise.
40389         * doc/posix-functions/wmemmove.texi: Likewise.
40390         * doc/posix-functions/wmemset.texi: Likewise.
40391         * doc/posix-functions/wprintf.texi: Likewise.
40392         * doc/posix-functions/wscanf.texi: Likewise.
40393
40394 2008-12-21  Bruno Haible  <bruno@clisp.org>
40395
40396         Work around a portability problem.
40397         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40398         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40399
40400 2008-12-20  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40403         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40404         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40406         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40407
40408         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40409         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40410         set.
40411         (GNULIB_defined_mbstate_t): New macro.
40412         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40413         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40414         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40415         reuses the system's mbrtowc function but works around the bugs.
40416         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40417         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40418         macros.
40419         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40420         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40421         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40422         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40423         REPLACE_MBSINIT if mbsinit needs to be overridden.
40424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40425         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40426         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40427         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40428         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40429         m4/locale-zh.m4.
40430         (Depends): Add mbsinit.
40431         * modules/mbsinit (Depends): Add mbrtowc.
40432         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40433
40434 2008-12-20  Bruno Haible  <bruno@clisp.org>
40435
40436         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40437         so that there are no conversion errors on AIX.
40438         * tests/test-mbsrtowcs.c (main): LIkewise.
40439
40440 2008-12-20  Bruno Haible  <bruno@clisp.org>
40441
40442         Work around wctob bug on Solaris <= 9.
40443         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40444         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40446         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40447         * modules/wctob (Files): Add m4/locale-fr.m4.
40448         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40449
40450 2008-12-20  Bruno Haible  <bruno@clisp.org>
40451
40452         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40453         /dev/null.
40454         * tests/test-select-in.sh: Likewise.
40455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40456
40457 2008-12-20  Bruno Haible  <bruno@clisp.org>
40458
40459         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40460         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40461         Cygwin 1.5.x.
40462
40463 2008-12-20  Bruno Haible  <bruno@clisp.org>
40464
40465         Ensure mbstate_t is defined on HP-UX 11.11.
40466         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40467         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40469         AC_USE_SYSTEM_EXTENSIONS.
40470         * modules/fnmatch (Depends-on): Add extensions.
40471         * modules/mbrlen (Depends-on): Likewise.
40472         * modules/mbrtowc (Depends-on): Likewise.
40473         * modules/mbsinit (Depends-on): Likewise.
40474         * modules/mbsrtowcs (Depends-on): Likewise.
40475         * modules/mbswidth (Depends-on): Likewise.
40476         * modules/quotearg (Depends-on): Likewise.
40477         * modules/strftime (Depends-on): Likewise.
40478
40479 2008-12-20  Bruno Haible  <bruno@clisp.org>
40480
40481         Ensure wctob is declared on IRIX 6.5.
40482         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40483         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40484         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40486         of HAVE_WCTOB.
40487         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40488         HAVE_WCTOB.
40489         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40490
40491 2008-12-19  Bruno Haible  <bruno@clisp.org>
40492
40493         * modules/mbsrtowcs-tests: New file.
40494         * tests/test-mbsrtowcs1.sh: New file.
40495         * tests/test-mbsrtowcs2.sh: New file.
40496         * tests/test-mbsrtowcs3.sh: New file.
40497         * tests/test-mbsrtowcs4.sh: New file.
40498         * tests/test-mbsrtowcs.c: New file.
40499
40500         New module 'mbsrtowcs'.
40501         * lib/wchar.in.h (mbsrtowcs): New declaration.
40502         * lib/mbsrtowcs.c: New file.
40503         * m4/mbsrtowcs.m4: New file.
40504         * modules/mbsrtowcs: New file.
40505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40506         HAVE_MBSRTOWCS.
40507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40508         HAVE_MBSRTOWCS.
40509         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40510
40511 2008-12-19  Bruno Haible  <bruno@clisp.org>
40512
40513         New module 'mbrlen'.
40514         * lib/wchar.in.h (mbrlen): New declaration.
40515         * lib/mbrlen.c: New file.
40516         * m4/mbrlen.m4: New file.
40517         * modules/mbrlen: New file.
40518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40519         HAVE_MBRLEN.
40520         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40521         HAVE_MBRLEN.
40522         * doc/posix-functions/mbrlen.texi: Document the new module.
40523
40524 2008-12-19  Bruno Haible  <bruno@clisp.org>
40525
40526         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40527         * modules/mbrtowc (Depends-on): Add verify.
40528         Suggested by Paul Eggert.
40529
40530 2008-12-18  Bruno Haible  <bruno@clisp.org>
40531
40532         * modules/mbsinit-tests: New file.
40533         * tests/test-mbsinit.sh: New file.
40534         * tests/test-mbsinit.c: New file.
40535
40536 2008-12-18  Bruno Haible  <bruno@clisp.org>
40537
40538         * modules/mbrtowc-tests: New file.
40539         * tests/test-mbrtowc1.sh: New file.
40540         * tests/test-mbrtowc2.sh: New file.
40541         * tests/test-mbrtowc3.sh: New file.
40542         * tests/test-mbrtowc4.sh: New file.
40543         * tests/test-mbrtowc.c: New file.
40544
40545         New module 'mbrtowc'.
40546         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40547         mbsinit and mbrtowc.
40548         (mbrtowc): New declaration.
40549         * lib/mbrtowc.c: New file.
40550         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40551         * modules/mbrtowc: New file.
40552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40553         HAVE_MBRTOWC.
40554         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40555         HAVE_MBRTOWC.
40556         * doc/posix-functions/mbrtowc.texi: Document the new module.
40557
40558 2008-12-18  Bruno Haible  <bruno@clisp.org>
40559
40560         New module 'wctob'.
40561         * lib/wchar.in.h (wctob): New declaration.
40562         * lib/wctob.c: New file.
40563         * m4/wctob.m4: New file.
40564         * modules/wctob: New file.
40565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40566         HAVE_WCTOB.
40567         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40568         * doc/posix-functions/wctob.texi: Document the new module.
40569
40570 2008-12-18  Bruno Haible  <bruno@clisp.org>
40571
40572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40573         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40574
40575 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40576
40577         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40578         G. Christensen" <tgc@jupiterrise.com>.
40579
40580         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40581         G. Christensen" <tgc@jupiterrise.com>.
40582
40583         * lib/flock.c: Need to include string.h.  Reported by "Tom
40584         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40585         <ebb9@byu.net>.
40586
40587 2008-12-18  Bruno Haible  <bruno@clisp.org>
40588
40589         * m4/locale-ja.m4: New file, from GNU gettext.
40590
40591 2008-12-17  Bruno Haible  <bruno@clisp.org>
40592
40593         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40594         Suggested by Eric Blake.
40595
40596 2008-12-17  Bruno Haible  <bruno@clisp.org>
40597
40598         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40599
40600 2008-12-17  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40603         * modules/mbsinit (Depends-on): Add verify.
40604         Suggested by Paul Eggert.
40605
40606 2008-12-17  Bruno Haible  <bruno@clisp.org>
40607
40608         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40609         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40610         gl_FUNC_MBRTOWC.
40611         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40612         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40613         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40614         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40615         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40616         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40617         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40618         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40619         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40620         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40621         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40622         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40623         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40624         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40625         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40626         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40627         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40628         * modules/trim (configure.ac): Likewise.
40629
40630 2008-12-17  Bruno Haible  <bruno@clisp.org>
40631
40632         * modules/btowc-tests: New file.
40633         * tests/test-btowc1.sh: New file.
40634         * tests/test-btowc2.sh: New file.
40635         * tests/test-btowc.c: New file.
40636
40637         New module 'btowc'.
40638         * lib/wchar.in.h (btowc): New declaration.
40639         * lib/btowc.c: New file.
40640         * m4/btowc.m4: New file.
40641         * modules/btowc: New file.
40642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40643         HAVE_BTOWC.
40644         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40645         * doc/posix-functions/btowc.texi: Document the new module.
40646
40647 2008-12-17  Bruno Haible  <bruno@clisp.org>
40648
40649         New module 'mbsinit'.
40650         * lib/wchar.in.h (mbsinit): New declaration.
40651         * lib/mbsinit.c: New file.
40652         * m4/mbsinit.m4: New file.
40653         * modules/mbsinit: New file.
40654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40655         HAVE_MBSINIT.
40656         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40657         HAVE_MBSINIT.
40658         * doc/posix-functions/mbsinit.texi: Document the new module.
40659
40660 2008-12-16  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/unistd.in.h: Add comment.
40663         * tests/test-environ.c: Don't include <stdlib.h>.
40664
40665 2008-12-16  Bruno Haible  <bruno@clisp.org>
40666
40667         * lib/parse-duration.h (parse_duration): Document return value
40668         convention.
40669         * lib/parse-duration.c: Include specification header first. Add
40670         comments.
40671         (_): Remove macro.
40672         (parse_year_month_day, parse_hour_minute_second): Move side effects
40673         outside of strchr call.
40674         (parse_non_iso8601): Move side effects outside of isspace call.
40675         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40676         call.
40677
40678 2008-12-16  Bruno Haible  <bruno@clisp.org>
40679
40680         * tests/test-parse-duration.sh: Produce no output when the test
40681         succeeds.
40682
40683 2008-12-16  Bruno Haible  <bruno@clisp.org>
40684
40685         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40686         expressions.
40687
40688 2008-12-15  Bruno Haible  <bruno@clisp.org>
40689
40690         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40691         * doc/glibc-functions/flistxattr.texi: Likewise.
40692         * doc/glibc-functions/fopencookie.texi: Likewise.
40693         * doc/glibc-functions/fremovexattr.texi: Likewise.
40694         * doc/glibc-functions/fsetxattr.texi: Likewise.
40695         * doc/glibc-functions/getxattr.texi: Likewise.
40696         * doc/glibc-functions/lgetxattr.texi: Likewise.
40697         * doc/glibc-functions/listxattr.texi: Likewise.
40698         * doc/glibc-functions/llistxattr.texi: Likewise.
40699         * doc/glibc-functions/lremovexattr.texi: Likewise.
40700         * doc/glibc-functions/lsetxattr.texi: Likewise.
40701         * doc/glibc-functions/removexattr.texi: Likewise.
40702         * doc/glibc-functions/setxattr.texi: Likewise.
40703         * doc/posix-functions/open_memstream.texi: Likewise.
40704
40705 2008-12-15  Eric Blake  <ebb9@byu.net>
40706
40707         Update doc for cygwin 1.7.
40708         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40709         functions.
40710         * doc/posix-functions/fchmodat.texi: Likewise.
40711         * doc/posix-functions/fchownat.texi: Likewise.
40712         * doc/posix-functions/fdopendir.texi: Likewise.
40713         * doc/posix-functions/fmemopen.texi: Likewise.
40714         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40715         * doc/posix-functions/fstatat.texi: Likewise.
40716         * doc/posix-functions/futimens.texi: Likewise.
40717         * doc/posix-functions/gai_strerror.texi: Likewise.
40718         * doc/posix-functions/getaddrinfo.texi: Likewise.
40719         * doc/posix-functions/getnameinfo.texi: Likewise.
40720         * doc/posix-functions/if_freenameindex.texi: Likewise.
40721         * doc/posix-functions/if_indextoname.texi: Likewise.
40722         * doc/posix-functions/if_nameindex.texi: Likewise.
40723         * doc/posix-functions/if_nametoindex.texi: Likewise.
40724         * doc/posix-functions/insque.texi: Likewise.
40725         * doc/posix-functions/linkat.texi: Likewise.
40726         * doc/posix-functions/llrint.texi: Likewise.
40727         * doc/posix-functions/llrintf.texi: Likewise.
40728         * doc/posix-functions/llrintl.texi: Likewise.
40729         * doc/posix-functions/lockf.texi: Likewise.
40730         * doc/posix-functions/lrintl.texi: Likewise.
40731         * doc/posix-functions/mkdirat.texi: Likewise.
40732         * doc/posix-functions/mkfifoat.texi: Likewise.
40733         * doc/posix-functions/mknodat.texi: Likewise.
40734         * doc/posix-functions/mq_close.texi: Likewise.
40735         * doc/posix-functions/mq_getattr.texi: Likewise.
40736         * doc/posix-functions/mq_notify.texi: Likewise.
40737         * doc/posix-functions/mq_open.texi: Likewise.
40738         * doc/posix-functions/mq_receive.texi: Likewise.
40739         * doc/posix-functions/mq_send.texi: Likewise.
40740         * doc/posix-functions/mq_setattr.texi: Likewise.
40741         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40742         * doc/posix-functions/mq_timedsend.texi: Likewise.
40743         * doc/posix-functions/mq_unlink.texi: Likewise.
40744         * doc/posix-functions/open_memstream.texi: Likewise.
40745         * doc/posix-functions/openat.texi: Likewise.
40746         * doc/posix-functions/posix_fadvise.texi: Likewise.
40747         * doc/posix-functions/posix_fallocate.texi: Likewise.
40748         * doc/posix-functions/posix_madvise.texi: Likewise.
40749         * doc/posix-functions/posix_memalign.texi: Likewise.
40750         * doc/posix-functions/posix_openpt.texi: Likewise.
40751         * doc/posix-functions/readlinkat.texi: Likewise.
40752         * doc/posix-functions/remque.texi: Likewise.
40753         * doc/posix-functions/renameat.texi: Likewise.
40754         * doc/posix-functions/rintl.texi: Likewise.
40755         * doc/posix-functions/sem_unlink.texi: Likewise.
40756         * doc/posix-functions/shm_open.texi: Likewise.
40757         * doc/posix-functions/shm_unlink.texi: Likewise.
40758         * doc/posix-functions/signgam.texi: Likewise.
40759         * doc/posix-functions/sigset.texi: Likewise.
40760         * doc/posix-functions/stpcpy.texi: Likewise.
40761         * doc/posix-functions/stpncpy.texi: Likewise.
40762         * doc/posix-functions/strerror.texi: Likewise.
40763         * doc/posix-functions/strtod.texi: Likewise.
40764         * doc/posix-functions/symlinkat.texi: Likewise.
40765         * doc/posix-functions/unlinkat.texi: Likewise.
40766         * doc/posix-functions/utimensat.texi: Likewise.
40767         * doc/glibc-functions/bindresvport.texi: Likewise.
40768         * doc/glibc-functions/dn_expand.texi: Likewise.
40769         * doc/glibc-functions/exp10.texi: Likewise.
40770         * doc/glibc-functions/exp10f.texi: Likewise.
40771         * doc/glibc-functions/fgetxattr.texi: Likewise.
40772         * doc/glibc-functions/flistxattr.texi: Likewise.
40773         * doc/glibc-functions/fopencookie.texi: Likewise.
40774         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40775         * doc/glibc-functions/fremovexattr.texi: Likewise.
40776         * doc/glibc-functions/fsetxattr.texi: Likewise.
40777         * doc/glibc-functions/getifaddrs.texi: Likewise.
40778         * doc/glibc-functions/getxattr.texi: Likewise.
40779         * doc/glibc-functions/lgetxattr.texi: Likewise.
40780         * doc/glibc-functions/listxattr.texi: Likewise.
40781         * doc/glibc-functions/llistxattr.texi: Likewise.
40782         * doc/glibc-functions/lremovexattr.texi: Likewise.
40783         * doc/glibc-functions/lsetxattr.texi: Likewise.
40784         * doc/glibc-functions/pow10.texi: Likewise.
40785         * doc/glibc-functions/pow10f.texi: Likewise.
40786         * doc/glibc-functions/rcmd_af.texi: Likewise.
40787         * doc/glibc-functions/removexattr.texi: Likewise.
40788         * doc/glibc-functions/res_init.texi: Likewise.
40789         * doc/glibc-functions/res_mkquery.texi: Likewise.
40790         * doc/glibc-functions/res_query.texi: Likewise.
40791         * doc/glibc-functions/res_querydomain.texi: Likewise.
40792         * doc/glibc-functions/res_send.texi: Likewise.
40793         * doc/glibc-functions/rresvport_af.texi: Likewise.
40794         * doc/glibc-functions/setxattr.texi: Likewise.
40795         * doc/glibc-functions/strcasestr.texi: Likewise.
40796
40797 2008-12-15  Bruno Haible  <bruno@clisp.org>
40798
40799         Fix compilation error on OSF/1 4.0.
40800         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40801         <sys/time.h>, simply delegate to the system header.
40802         Reported by Daniel Richard G. <oss@teragram.com>.
40803
40804 2008-12-15  Bruno Haible  <bruno@clisp.org>
40805
40806         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40807         * doc/posix-functions/fchmodat.texi: Likewise.
40808         * doc/posix-functions/fchownat.texi: Likewise.
40809         * doc/posix-functions/fdopendir.texi: Likewise.
40810         * doc/posix-functions/fstatat.texi: Likewise.
40811         * doc/posix-functions/mkdirat.texi: Likewise.
40812         * doc/posix-functions/unlinkat.texi: Likewise.
40813
40814 2008-12-14  Bruno Haible  <bruno@clisp.org>
40815
40816         Update doc for POSIX:2008.
40817         * doc/posix-functions/faccessat.texi: New file.
40818         * doc/posix-functions/fchmodat.texi: New file.
40819         * doc/posix-functions/fchownat.texi: New file.
40820         * doc/posix-functions/fdopendir.texi: New file.
40821         * doc/posix-functions/fstatat.texi: New file.
40822         * doc/posix-functions/futimens.texi: New file.
40823         * doc/posix-functions/linkat.texi: New file.
40824         * doc/posix-functions/mkdirat.texi: New file.
40825         * doc/posix-functions/mkfifoat.texi: New file.
40826         * doc/posix-functions/mknodat.texi: New file.
40827         * doc/posix-functions/open_wmemstream.texi: New file.
40828         * doc/posix-functions/openat.texi: New file.
40829         * doc/posix-functions/psiginfo.texi: New file.
40830         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40831         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40832         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40833         * doc/posix-functions/readlinkat.texi: New file.
40834         * doc/posix-functions/renameat.texi: New file.
40835         * doc/posix-functions/strerror_l.texi: New file.
40836         * doc/posix-functions/symlinkat.texi: New file.
40837         * doc/posix-functions/unlinkat.texi: New file.
40838         * doc/posix-functions/utimensat.texi: New file.
40839         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40840
40841 2008-12-14  Bruno Haible  <bruno@clisp.org>
40842
40843         Update doc for POSIX:2008.
40844         * doc/posix-functions/alphasort.texi: Renamed from
40845         doc/glibc-functions/alphasort.texi.
40846         * doc/posix-functions/dirfd.texi: Renamed from
40847         doc/glibc-functions/dirfd.texi.
40848         * doc/posix-functions/dprintf.texi: Renamed from
40849         doc/glibc-functions/dprintf.texi.
40850         * doc/posix-functions/duplocale.texi: Renamed from
40851         doc/glibc-functions/duplocale.texi.
40852         * doc/posix-functions/fexecve.texi: Renamed from
40853         doc/glibc-functions/fexecve.texi.
40854         * doc/posix-functions/fmemopen.texi: Renamed from
40855         doc/glibc-functions/fmemopen.texi.
40856         * doc/posix-functions/freelocale.texi: Renamed from
40857         doc/glibc-functions/freelocale.texi.
40858         * doc/posix-functions/getdate_err.texi: Renamed from
40859         doc/glibc-functions/getdate_err.texi.
40860         * doc/posix-functions/isalnum_l.texi: Renamed from
40861         doc/glibc-functions/isalnum_l.texi.
40862         * doc/posix-functions/isalpha_l.texi: Renamed from
40863         doc/glibc-functions/isalpha_l.texi.
40864         * doc/posix-functions/isblank_l.texi: Renamed from
40865         doc/glibc-functions/isblank_l.texi.
40866         * doc/posix-functions/iscntrl_l.texi: Renamed from
40867         doc/glibc-functions/iscntrl_l.texi.
40868         * doc/posix-functions/isdigit_l.texi: Renamed from
40869         doc/glibc-functions/isdigit_l.texi.
40870         * doc/posix-functions/isgraph_l.texi: Renamed from
40871         doc/glibc-functions/isgraph_l.texi.
40872         * doc/posix-functions/islower_l.texi: Renamed from
40873         doc/glibc-functions/islower_l.texi.
40874         * doc/posix-functions/isprint_l.texi: Renamed from
40875         doc/glibc-functions/isprint_l.texi.
40876         * doc/posix-functions/ispunct_l.texi: Renamed from
40877         doc/glibc-functions/ispunct_l.texi.
40878         * doc/posix-functions/isspace_l.texi: Renamed from
40879         doc/glibc-functions/isspace_l.texi.
40880         * doc/posix-functions/isupper_l.texi: Renamed from
40881         doc/glibc-functions/isupper_l.texi.
40882         * doc/posix-functions/iswalnum_l.texi: Renamed from
40883         doc/glibc-functions/iswalnum_l.texi.
40884         * doc/posix-functions/iswalpha_l.texi: Renamed from
40885         doc/glibc-functions/iswalpha_l.texi.
40886         * doc/posix-functions/iswblank_l.texi: Renamed from
40887         doc/glibc-functions/iswblank_l.texi.
40888         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40889         doc/glibc-functions/iswcntrl_l.texi.
40890         * doc/posix-functions/iswctype_l.texi: Renamed from
40891         doc/glibc-functions/iswctype_l.texi.
40892         * doc/posix-functions/iswdigit_l.texi: Renamed from
40893         doc/glibc-functions/iswdigit_l.texi.
40894         * doc/posix-functions/iswgraph_l.texi: Renamed from
40895         doc/glibc-functions/iswgraph_l.texi.
40896         * doc/posix-functions/iswlower_l.texi: Renamed from
40897         doc/glibc-functions/iswlower_l.texi.
40898         * doc/posix-functions/iswprint_l.texi: Renamed from
40899         doc/glibc-functions/iswprint_l.texi.
40900         * doc/posix-functions/iswpunct_l.texi: Renamed from
40901         doc/glibc-functions/iswpunct_l.texi.
40902         * doc/posix-functions/iswspace_l.texi: Renamed from
40903         doc/glibc-functions/iswspace_l.texi.
40904         * doc/posix-functions/iswupper_l.texi: Renamed from
40905         doc/glibc-functions/iswupper_l.texi.
40906         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40907         doc/glibc-functions/iswxdigit_l.texi.
40908         * doc/posix-functions/isxdigit_l.texi: Renamed from
40909         doc/glibc-functions/isxdigit_l.texi.
40910         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40911         doc/glibc-functions/mbsnrtowcs.texi.
40912         * doc/posix-functions/mkdtemp.texi: Renamed from
40913         doc/glibc-functions/mkdtemp.texi.
40914         * doc/posix-functions/newlocale.texi: Renamed from
40915         doc/glibc-functions/newlocale.texi.
40916         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40917         doc/glibc-functions/nl_langinfo_l.texi.
40918         * doc/posix-functions/open_memstream.texi: Renamed from
40919         doc/glibc-functions/open_memstream.texi.
40920         * doc/posix-functions/opterr.texi: Renamed from
40921         doc/glibc-functions/opterr.texi.
40922         * doc/posix-functions/optind.texi: Renamed from
40923         doc/glibc-functions/optind.texi.
40924         * doc/posix-functions/optopt.texi: Renamed from
40925         doc/glibc-functions/optopt.texi.
40926         * doc/posix-functions/psignal.texi: Renamed from
40927         doc/glibc-functions/psignal.texi.
40928         * doc/posix-functions/scandir.texi: Renamed from
40929         doc/glibc-functions/scandir.texi.
40930         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40931         doc/glibc-functions/sched_get_priority_min.texi.
40932         * doc/posix-functions/signgam.texi: Renamed from
40933         doc/glibc-functions/signgam.texi.
40934         * doc/posix-functions/stpcpy.texi: Renamed from
40935         doc/glibc-functions/stpcpy.texi.
40936         * doc/posix-functions/stpncpy.texi: Renamed from
40937         doc/glibc-functions/stpncpy.texi.
40938         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40939         doc/glibc-functions/strcasecmp_l.texi.
40940         * doc/posix-functions/strcoll_l.texi: Renamed from
40941         doc/glibc-functions/strcoll_l.texi.
40942         * doc/posix-functions/strfmon_l.texi: Renamed from
40943         doc/glibc-functions/strfmon_l.texi.
40944         * doc/posix-functions/strftime_l.texi: Renamed from
40945         doc/glibc-functions/strftime_l.texi.
40946         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40947         doc/glibc-functions/strncasecmp_l.texi.
40948         * doc/posix-functions/strndup.texi: Renamed from
40949         doc/glibc-functions/strndup.texi.
40950         * doc/posix-functions/strnlen.texi: Renamed from
40951         doc/glibc-functions/strnlen.texi.
40952         * doc/posix-functions/strsignal.texi: Renamed from
40953         doc/glibc-functions/strsignal.texi.
40954         * doc/posix-functions/strxfrm_l.texi: Renamed from
40955         doc/glibc-functions/strxfrm_l.texi.
40956         * doc/posix-functions/timer_gettime.texi: Renamed from
40957         doc/glibc-functions/timer_gettime.texi.
40958         * doc/posix-functions/tolower_l.texi: Renamed from
40959         doc/glibc-functions/tolower_l.texi.
40960         * doc/posix-functions/toupper_l.texi: Renamed from
40961         doc/glibc-functions/toupper_l.texi.
40962         * doc/posix-functions/towctrans_l.texi: Renamed from
40963         doc/glibc-functions/towctrans_l.texi.
40964         * doc/posix-functions/towlower_l.texi: Renamed from
40965         doc/glibc-functions/towlower_l.texi.
40966         * doc/posix-functions/towupper_l.texi: Renamed from
40967         doc/glibc-functions/towupper_l.texi.
40968         * doc/posix-functions/uselocale.texi: Renamed from
40969         doc/glibc-functions/uselocale.texi.
40970         * doc/posix-functions/vdprintf.texi: Renamed from
40971         doc/glibc-functions/vdprintf.texi.
40972         * doc/posix-functions/wcpcpy.texi:
40973         Renamed from doc/glibc-functions/wcpcpy.texi.
40974         * doc/posix-functions/wcpncpy.texi: Renamed from
40975         doc/glibc-functions/wcpncpy.texi.
40976         * doc/posix-functions/wcscasecmp.texi: Renamed from
40977         doc/glibc-functions/wcscasecmp.texi.
40978         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40979         doc/glibc-functions/wcscasecmp_l.texi.
40980         * doc/posix-functions/wcscoll_l.texi: Renamed from
40981         doc/glibc-functions/wcscoll_l.texi.
40982         * doc/posix-functions/wcsdup.texi: Renamed from
40983         doc/glibc-functions/wcsdup.texi.
40984         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40985         doc/glibc-functions/wcsncasecmp.texi.
40986         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40987         doc/glibc-functions/wcsncasecmp_l.texi.
40988         * doc/posix-functions/wcsnlen.texi: Renamed from
40989         doc/glibc-functions/wcsnlen.texi.
40990         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40991         doc/glibc-functions/wcsnrtombs.texi.
40992         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40993         doc/glibc-functions/wcsxfrm_l.texi.
40994         * doc/posix-functions/wctrans_l.texi: Renamed from
40995         doc/glibc-functions/wctrans_l.texi.
40996         * doc/posix-functions/wctype_l.texi: Renamed from
40997         doc/glibc-functions/wctype_l.texi.
40998         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40999         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41000         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41001         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41002         these subsections.
41003         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41004         Remove sections.
41005
41006 2008-12-14  Bruno Haible  <bruno@clisp.org>
41007
41008         Update doc for POSIX:2008.
41009         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41010
41011 2008-12-14  Bruno Haible  <bruno@clisp.org>
41012
41013         Update doc for POSIX:2008.
41014         * doc/pastposix-functions/bcmp.texi: Renamed from
41015         doc/posix-functions/bcmp.texi.
41016         * doc/pastposix-functions/bcopy.texi: Renamed from
41017         doc/posix-functions/bcopy.texi.
41018         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41019         doc/posix-functions/bsd_signal.texi.
41020         * doc/pastposix-functions/bzero.texi: Renamed from
41021         doc/posix-functions/bzero.texi.
41022         * doc/pastposix-functions/ecvt.texi: Renamed from
41023         doc/posix-functions/ecvt.texi.
41024         * doc/pastposix-functions/fcvt.texi: Renamed from
41025         doc/posix-functions/fcvt.texi.
41026         * doc/pastposix-functions/ftime.texi: Renamed from
41027         doc/posix-functions/ftime.texi.
41028         * doc/pastposix-functions/gcvt.texi: Renamed from
41029         doc/posix-functions/gcvt.texi.
41030         * doc/pastposix-functions/getcontext.texi: Renamed from
41031         doc/posix-functions/getcontext.texi.
41032         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41033         doc/posix-functions/gethostbyaddr.texi.
41034         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41035         doc/posix-functions/gethostbyname.texi.
41036         * doc/pastposix-functions/getwd.texi: Renamed from
41037         doc/posix-functions/getwd.texi.
41038         * doc/pastposix-functions/h_errno.texi: Renamed from
41039         doc/posix-functions/h_errno.texi.
41040         * doc/pastposix-functions/index.texi: Renamed from
41041         doc/posix-functions/index.texi.
41042         * doc/pastposix-functions/makecontext.texi: Renamed from
41043         doc/posix-functions/makecontext.texi.
41044         * doc/pastposix-functions/mktemp.texi: Renamed from
41045         doc/posix-functions/mktemp.texi.
41046         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41047         doc/posix-functions/pthread_attr_getstackaddr.texi.
41048         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41049         doc/posix-functions/pthread_attr_setstackaddr.texi.
41050         * doc/pastposix-functions/rindex.texi: Renamed from
41051         doc/posix-functions/rindex.texi.
41052         * doc/pastposix-functions/scalb.texi: Renamed from
41053         doc/posix-functions/scalb.texi.
41054         * doc/pastposix-functions/setcontext.texi: Renamed from
41055         doc/posix-functions/setcontext.texi.
41056         * doc/pastposix-functions/swapcontext.texi: Renamed from
41057         doc/posix-functions/swapcontext.texi.
41058         * doc/pastposix-functions/ualarm.texi: Renamed from
41059         doc/posix-functions/ualarm.texi.
41060         * doc/pastposix-functions/usleep.texi: Renamed from
41061         doc/posix-functions/usleep.texi.
41062         * doc/pastposix-functions/vfork.texi: Renamed from
41063         doc/posix-functions/vfork.texi.
41064         * doc/pastposix-functions/wcswcs.texi: Renamed from
41065         doc/posix-functions/wcswcs.texi.
41066         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41067         (Function Substitutes): Update.
41068
41069 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41070
41071         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41072         m4/strerror.m4.
41073
41074 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41075             Bruno Haible  <bruno@clisp.org>
41076
41077         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41078
41079 2008-12-13  Bruno Haible  <bruno@clisp.org>
41080
41081         * modules/strtoull (Depends-on): Remove unistd.
41082
41083 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41084
41085         * modules/strtoull (Depends-on): Add stdlib.
41086
41087 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41088
41089         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41090
41091 2008-12-10  Jim Meyering  <meyering@redhat.com>
41092
41093         gl_ASSERT: don't say assertions are disabled when they're not
41094         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41095         "checking whether to enable assertions... no", when they are in
41096         fact enabled.  This is solely a bug in the output of configure.
41097         In spite of saying "no", NDEBUG was not defined in that case.
41098         Also, as noted by Eric Blake, leave assertions enabled upon
41099         --enable-assert=INVALID.
41100
41101 2008-12-10  Bruno Haible  <bruno@clisp.org>
41102
41103         Change MODULES.html to refer to POSIX:2008 where possible.
41104         * MODULES.html.sh (POSIX2008_URL): New variable.
41105         (posix_headers): Remove sys/timeb, ucontext.
41106         (posix2001_headers): New variable.
41107         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41108         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41109         index, makecontext, mktemp, pthread_attr_getstackaddr,
41110         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41111         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41112         (posix2001_functions): New variable.
41113         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41114         otherwise.
41115
41116 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41117
41118         add missing include to parse-duration.c
41119         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41120         * modules/parse-duration (Depends-on): Add xalloc.
41121
41122         fix sed script reading maint.mk
41123         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41124         (syntax-check-rules): Use it.
41125
41126 2008-12-09  Bruno Haible  <bruno@clisp.org>
41127
41128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41129         MacOS X 10.4/PowerPC.
41130         Reported by Simon Josefsson.
41131
41132 2008-12-08  Jim Meyering  <meyering@redhat.com>
41133
41134         work around mingw's lack of some S_IF definitions
41135         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41136         Reported by Simon Josefsson.
41137
41138 2008-12-08  Bruno Haible  <bruno@clisp.org>
41139
41140         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41141         applied to variables. Needed on MacOS X 10.4/PowerPC.
41142         Reported by Simon Josefsson.
41143
41144 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41145         and Eric Blake  <ebb9@byu.net>
41146
41147         assert: honor --enable-assert
41148         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41149         order to honor --enable-assert, rather than treating it as a
41150         synonym for --disable-assert.
41151
41152 2008-12-08  Jim Meyering  <meyering@redhat.com>
41153
41154         * lib/posixtm.c: Remove now-useless declaration of mktime.
41155
41156         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41157
41158 2008-12-07  Bruno Haible  <bruno@clisp.org>
41159
41160         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41161         test_once): Mark functions as static.
41162         * tests/test-tls.c (test_tls): Likewise.
41163
41164 2008-12-07  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41167         iconv_register_autodetect.
41168
41169 2008-12-07  Jim Meyering  <meyering@redhat.com>
41170
41171         posixtm.c: avoid a warning
41172         * lib/posixtm.c (posixtime): Don't initialize tm0.
41173         It's no longer needed to placate gcc4's -Wuninitialized,
41174         and the attempt to placate would elicit a new warning.
41175
41176         unicodeio.c: mark unused parameters
41177         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41178         (fallback_failure_callback): Likewise.
41179
41180 2008-12-07  Bruno Haible  <bruno@clisp.org>
41181
41182         * gnulib-tool (func_create_testdir): When building the tests
41183         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41184         Reported by Simon Josefsson.
41185
41186 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41187
41188         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41189
41190 2008-12-06  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41193         Suggested by Eric Blake.
41194
41195 2008-12-06  Bruno Haible  <bruno@clisp.org>
41196
41197         Fix a c-stack test failure on MacOS X.
41198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41199         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41200         handler for SIGBUS as well.
41201         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41202         install a signal handler for SIGBUS as well.
41203         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41204
41205 2008-12-06  Bruno Haible  <bruno@clisp.org>
41206
41207         Advocacy documentation.
41208         * doc/gnulib-intro.texi (Benefits): New section.
41209         * doc/gnulib.texi: Update.
41210
41211 2008-12-06  Bruno Haible  <bruno@clisp.org>
41212
41213         Document the 'manywarnings' module.
41214         * doc/manywarnings.texi: New file.
41215         * doc/gnulib.texi: Include it.
41216
41217 2008-12-05  Eric Blake  <ebb9@byu.net>
41218
41219         tests: silence some gcc warnings
41220         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41221         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41222         type mismatches.
41223
41224 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41225             Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41228
41229 2008-11-29  Jim Meyering  <meyering@redhat.com>
41230
41231         unicodeio.c: mark unused parameters
41232         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41233         (fallback_failure_callback): Likewise.
41234
41235         fts: fix a thinko
41236         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41237         (set_stat_type): Return S_IF*-valued "type" directly.
41238         Prompted by James Youngman's spotting a related bug.
41239         Confirmed by further testing through find.
41240
41241         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41242         * lib/fts.c (D_TYPE): Define.
41243         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41244         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41245         (s_ifmt_shift_bits): New function.
41246         (set_stat_type): New function.
41247         (fts_build): When not calling fts_stat, call set_stat_type
41248         to propagate dirent.d_type info to fts_read caller.
41249         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41250         fts_statp->st_mode type information may be valid.
41251
41252 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41253
41254         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41255         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41256         <sds@gnu.org>.
41257
41258 2008-11-20  Bruno Haible  <bruno@clisp.org>
41259
41260         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41261         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41262         INCLUDE_NEXT.
41263         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41264         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41265         * modules/math (Makefile.am): Substitute
41266         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41268
41269 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41270             Bruno Haible  <bruno@clisp.org>
41271
41272         * lib/stdint.in.h: Define all type macros so that their expansion is
41273         a single typedef'ed token. Fixes a compilation failure in Boost which
41274         does "using ::int8_t;".
41275
41276 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41277
41278         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41279         gl_MANYWARN_ALL_GCC.
41280         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41281         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41282         * modules/manywarnings: New file.
41283         * MODULES.html.sh: Mention manywarnings module.
41284
41285 2008-11-18  Bruno Haible  <bruno@clisp.org>
41286
41287         * doc/gnulib-tool.texi (Unit tests): New section.
41288
41289 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41290
41291         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41292         paths like 'lib/po/foo.po'.
41293
41294 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41295
41296         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41297         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41298
41299 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41300
41301         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41302         parameter works.
41303
41304 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41305
41306         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41307
41308 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41309
41310         * modules/parse-duration-tests: New file.
41311         * tests/test-parse-duration.sh: New file.
41312         * tests/test-parse-duration.c: New file.
41313
41314         New module 'parse-duration'.
41315         * lib/parse-duration.h: New file.
41316         * lib/parse-duration.c: New file.
41317         * modules/parse-duration: New file.
41318
41319 2008-11-17  Bruno Haible  <bruno@clisp.org>
41320
41321         * tests/test-select-out.sh: Comment out the first pipe test.
41322         Reported by Simon Josefsson.
41323
41324 2008-11-17  Bruno Haible  <bruno@clisp.org>
41325
41326         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41328         gl_HOSTENT.
41329
41330 2008-11-17  Bruno Haible  <bruno@clisp.org>
41331
41332         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41333         -lnetwork and -lnet. Needed for Haiku and BeOS.
41334
41335 2008-11-16  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41338
41339 2008-11-16  Bruno Haible  <bruno@clisp.org>
41340
41341         Avoid test failure on Haiku.
41342         * tests/test-fsync.c: Include <errno.h>.
41343         (main): Don't require that fsync (0) fails.
41344
41345 2008-11-15  Bruno Haible  <bruno@clisp.org>
41346
41347         New module 'hostent'.
41348         * modules/hostent: New file.
41349         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41350
41351 2008-11-15  Bruno Haible  <bruno@clisp.org>
41352
41353         New module 'servent'.
41354         * modules/servent: New file.
41355         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41356
41357 2008-11-15  Bruno Haible  <bruno@clisp.org>
41358
41359         Avoid generating same test program with two different rules.
41360         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41361         test-frexp to test-frexp-nolibm.
41362         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41363         test-frexpl to test-frexpl-nolibm.
41364
41365 2008-11-15  Bruno Haible  <bruno@clisp.org>
41366
41367         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41368         $(FREXPL_LIBM).
41369
41370 2008-11-15  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/netdb.in.h: Activate the definitions also when the system's
41373         <netdb.h> has 'struct addrinfo'.
41374         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41375         EAI_OVERFLOW or AI_NUMERICSERV.
41376         * doc/posix-headers/netdb.texi: Document the problem.
41377
41378 2008-11-15  Bruno Haible  <bruno@clisp.org>
41379
41380         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41381
41382         Make the 'sched' module work on platforms where <sched.h> exists but
41383         is incomplete (such as Haiku).
41384         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41385         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41386         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41387         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41388         HAVE_STRUCT_SCHED_PARAM.
41389         * modules/sched (Depends-on): Add include_next.
41390         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41391         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41392         * doc/posix-headers/sched.texi: Document the issue.
41393
41394 2008-11-13  Jim Meyering  <meyering@redhat.com>
41395
41396         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41397         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41398         test would fail due to the difference in the Report bugs to ...
41399         line.  The expected address is empty, "<>", while the actual
41400         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41401
41402 2008-11-12  Bruno Haible  <bruno@clisp.org>
41403
41404         lstat: don't compile lstat.c on systems lacking lstat
41405         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41406         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41407         Reported by Daniel P. Berrange via Jim Meyering.
41408
41409 2008-11-12  Jim Meyering  <meyering@redhat.com>
41410
41411         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41412
41413 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41414
41415         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41416         instead.
41417
41418 2008-11-12  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/unicodeio.c: Include unistr.h.
41421         (utf8_wctomb): Remove function.
41422         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41423
41424 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41425
41426         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41427         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41428         <bruno@clisp.org>.
41429         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41430
41431 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41432
41433         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41434         * doc/gnulib.texi: Add section for warnings.
41435
41436 2008-11-11  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/sockets.h: Add a comment.
41439
41440 2008-11-11  Karl Berry  <karl@gnu.org>
41441
41442         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41443
41444 2008-11-11  Eric Blake  <ebb9@byu.net>
41445
41446         fdl.texi: avoid git symlinks
41447         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41448
41449 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41450
41451         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41452
41453 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41454
41455         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41456         (gl_WARN_ADD): Substitute $2 if literal.
41457
41458 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41459
41460         * m4/warning.m4: Remove.
41461
41462 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41463
41464         * m4/warnings.m4: Almost complete rewrite. :-)
41465
41466 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41467
41468         * modules/warnings: New module.
41469         * m4/warnings.m4: New file.
41470         * MODULES.html.sh: Mention warnings module.
41471         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41472         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41473
41474 2008-11-10  Eric Blake  <ebb9@byu.net>
41475
41476         fdl.texi: make a symlink to the latest version
41477         * doc/standards.texi: Revert today's earlier change.
41478         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41479         * doc/fdl.texi: ...and replace this with a symlink to the newer
41480         fdl-1.3.texi.
41481
41482 2008-11-10  Bruno Haible  <bruno@clisp.org>
41483
41484         * tests/test-select-fd.c (main): Accept the result file name as fourth
41485         argument.
41486         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41487         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41488
41489 2008-11-10  Bruno Haible  <bruno@clisp.org>
41490
41491         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41492         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41493         as autoconf-substituted macros.
41494         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41496         gl_NETDB_H_DEFAULTS. Set these variables.
41497         * modules/netdb (Makefile.am): Substitute these variables.
41498
41499 2008-11-10  Eric Blake  <ebb9@byu.net>
41500
41501         standards.texi: include correct file for FDL 1.3
41502         * doc/standards.texi (GNU Free Documentation License): Change
41503         include file to pull in FDL 1.3, not 1.2.
41504
41505         fdl.texi: revert accidental change to license
41506         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41507
41508 2008-11-10  Bruno Haible  <bruno@clisp.org>
41509
41510         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41511         cross-compiling guesses also when the native compile gives no result.
41512
41513 2008-11-10  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/spawni.c (__spawni): Force variable into the stack.
41516
41517 2008-11-10  Bruno Haible  <bruno@clisp.org>
41518
41519         Add support for Haiku.
41520         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41521         glibc and BeOS, but also on Haiku.
41522         * lib/fpurge.c (fpurge): Likewise.
41523         * lib/freadable.c (freadable): Likewise.
41524         * lib/freadahead.c (freadahead): Likewise.
41525         * lib/freading.c (freading): Likewise.
41526         * lib/freadptr.c (freadptr): Likewise.
41527         * lib/freadseek.c (freadptrinc): Likewise.
41528         * lib/fseeko.c (rpl_fseeko): Likewise.
41529         * lib/fseterr.c (fseterr): Likewise.
41530         * lib/fwritable.c (fwritable): Likewise.
41531         * lib/fwriting.c (fwriting): Likewise.
41532         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41533
41534 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41535
41536         * lib/config.charset: Treat Haiku like BeOS.
41537
41538 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41539
41540         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41541         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41542
41543 2008-11-08  Bruno Haible  <bruno@clisp.org>
41544
41545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41546         AC_CACHE_CHECK.
41547
41548 2008-11-08  Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41551
41552 2008-11-08  Bruno Haible  <bruno@clisp.org>
41553
41554         * tests/test-select-fd.c: New file.
41555         * tests/test-select-in.sh: New file.
41556         * tests/test-select-out.sh: New file.
41557         * tests/test-select-stdin.c: New file.
41558         * modules/select-tests (Files): Add the new files.
41559         (Depends-on): Add gettimeofday.
41560         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41561         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41562         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41563
41564 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41565             Bruno Haible  <bruno@clisp.org>
41566
41567         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41568
41569 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41570
41571         * build-aux/pmccabe2html: Added support for C++ source files.
41572
41573 2008-11-05  Ben Pfaff  <blp@gnu.org>
41574
41575         Fix lib/close.c build on Windows.
41576         * modules/close (Files): Add lib/w32sock.h.
41577
41578 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41579
41580         Accept Bison's NEWS format.
41581         * build-aux/announce-gen (print_news_deltas): Tweak
41582         $re_prefix.
41583
41584 2008-11-04  Bruno Haible  <bruno@clisp.org>
41585
41586         * modules/random_r (Maintainer): Add glibc.
41587
41588 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41589
41590         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41591         by karl@freefriends.org (Karl Berry).
41592         * doc/alloca.texi: Likewise.
41593         * doc/c-ctype.texi: Likewise.
41594         * doc/c-strcase.texi: Likewise.
41595         * doc/c-strcaseeq.texi: Likewise.
41596         * doc/c-strcasestr.texi: Likewise.
41597         * doc/c-strstr.texi: Likewise.
41598         * doc/c-strtod.texi: Likewise.
41599         * doc/c-strtold.texi: Likewise.
41600         * doc/ctime.texi: Likewise.
41601         * doc/error.texi: Likewise.
41602         * doc/fdl.texi: Likewise.
41603         * doc/gcd.texi: Likewise.
41604         * doc/getdate.texi: Likewise.
41605         * doc/gnulib-intro.texi: Likewise.
41606         * doc/gnulib-tool.texi: Likewise.
41607         * doc/gnulib.texi: Likewise.
41608         * doc/inet_ntoa.texi: Likewise.
41609         * doc/maintain.texi: Likewise.
41610         * doc/make-stds.texi: Likewise.
41611         * doc/quote.texi: Likewise.
41612         * doc/regexprops-generic.texi: Likewise.
41613         * doc/standards.texi: Likewise.
41614         * doc/verify.texi: Likewise.
41615         * doc/visibility.texi: Likewise.
41616         * doc/gnulib.texi (GNU Free Documentation License): Include
41617         fdl-1.3.texi instead of fdl.texi.
41618
41619 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41620
41621         * doc/fdl-1.3.texi: New file, from
41622         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41623         * modules/fdl-1.3: Add.
41624         * MODULES.html.sh: Add fdl-1.3.
41625
41626 2008-11-03  Bruno Haible  <bruno@clisp.org>
41627
41628         Make determination of absolute name of header file work with AIX xlc.
41629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41630         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41631         preprocessing.
41632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41633         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41634
41635 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41636
41637         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41638         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41639         <ludo@gnu.org>.
41640
41641 2008-11-02  Bruno Haible  <bruno@clisp.org>
41642
41643         Mark 'strpbrk' obsolete.
41644         * modules/strpbrk (Status, Notice): New sections.
41645         * modules/strtok_r (Depends-on): Add strpbrk.
41646
41647 2008-11-02  Bruno Haible  <bruno@clisp.org>
41648
41649         Mark 'strdup' obsolete.
41650         * modules/strdup (Status, Notice): New sections.
41651         * modules/findprog (Depends-on): Add strdup.
41652         * modules/getaddrinfo (Depends-on): Likewise.
41653         * modules/localename (Depends-on): Likewise.
41654         * modules/relocatable-lib (Depends-on): Likewise.
41655         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41656         * modules/relocatable-prog (Depends-on): Likewise.
41657         * modules/trim (Depends-on): Likewise.
41658         * modules/unictype/gen-ctype (Depends-on): Likewise.
41659         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41660
41661 2008-11-02  Bruno Haible  <bruno@clisp.org>
41662
41663         Mark 'strcspn' obsolete.
41664         * modules/strcspn (Status, Notice): New sections.
41665
41666 2008-11-02  Bruno Haible  <bruno@clisp.org>
41667
41668         Mark 'rmdir' obsolete.
41669         * modules/rmdir (Status, Notice): New sections.
41670         * modules/clean-temp (Depends-on): Add rmdir.
41671         * modules/openat (Depends-on): Likewise.
41672
41673 2008-11-02  Bruno Haible  <bruno@clisp.org>
41674
41675         Mark 'raise' obsolete.
41676         * modules/raise (Status, Notice): New sections.
41677         (Include): Specify <signal.h>.
41678         * modules/stdio (Depends-on): Add raise.
41679         * modules/write (Depends-on): Likewise.
41680
41681 2008-11-02  Bruno Haible  <bruno@clisp.org>
41682
41683         Mark 'memset' obsolete.
41684         * modules/memset (Status, Notice): New sections.
41685
41686 2008-11-02  Bruno Haible  <bruno@clisp.org>
41687
41688         Mark 'memmove' obsolete.
41689         * modules/memmove (Status, Notice): New sections.
41690         * modules/argp (Depends-on): Add memmove.
41691         * modules/argz (Depends-on): Likewise.
41692         * modules/canonicalize (Depends-on): Likewise.
41693         * modules/canonicalize-lgpl (Depends-on): Likewise.
41694         * modules/fts (Depends-on): Likewise.
41695         * modules/getcwd (Depends-on): Likewise.
41696         * modules/human (Depends-on): Likewise.
41697         * modules/regex (Depends-on): Likewise.
41698         * modules/striconveh (Depends-on): Likewise.
41699         * modules/trim (Depends-on): Likewise.
41700         * modules/unistr/u8-move (Depends-on): Likewise.
41701         * modules/unistr/u16-move (Depends-on): Likewise.
41702         * modules/unistr/u32-move (Depends-on): Likewise.
41703
41704 2008-11-02  Bruno Haible  <bruno@clisp.org>
41705
41706         Mark 'memcpy' obsolete.
41707         * modules/memcpy (Status, Notice): New sections.
41708
41709 2008-11-02  Bruno Haible  <bruno@clisp.org>
41710
41711         Mark 'memcmp' obsolete.
41712         * modules/memcmp (Status, Notice): New sections.
41713         * modules/argmatch (Depends-on): Add memchr.
41714         * modules/backupfile (Depends-on): Likewise.
41715         * modules/c-strcasestr (Depends-on): Likewise.
41716         * modules/crypto/des (Depends-on): Likewise.
41717         * modules/csharpcomp (Depends-on): Likewise.
41718         * modules/fnmatch (Depends-on): Likewise.
41719         * modules/git-merge-changelog (Depends-on): Likewise.
41720         * modules/isnand (Depends-on): Likewise.
41721         * modules/isnand-nolibm (Depends-on): Likewise.
41722         * modules/isnanf (Depends-on): Likewise.
41723         * modules/isnanf-nolibm (Depends-on): Likewise.
41724         * modules/isnanl (Depends-on): Likewise.
41725         * modules/isnanl-nolibm (Depends-on): Likewise.
41726         * modules/mbchar (Depends-on): Likewise.
41727         * modules/memcoll (Depends-on): Likewise.
41728         * modules/quotearg (Depends-on): Likewise.
41729         * modules/regex (Depends-on): Likewise.
41730         * modules/relocatable-prog (Depends-on): Likewise.
41731         * modules/same (Depends-on): Likewise.
41732         * modules/signbit (Depends-on): Likewise.
41733         * modules/strcasestr-simple (Depends-on): Likewise.
41734         * modules/unictype/gen-ctype (Depends-on): Likewise.
41735         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41736         * modules/uniname/uniname (Depends-on): Likewise.
41737         * modules/unistr/u8-cmp (Depends-on): Likewise.
41738
41739 2008-11-02  Bruno Haible  <bruno@clisp.org>
41740
41741         Mark 'memchr' obsolete.
41742         * modules/memchr (Status, Notice): New sections.
41743         * modules/argp (Depends-on): Add memchr.
41744         * modules/base64 (Depends-on): Likewise.
41745         * modules/c-strcasestr (Depends-on): Likewise.
41746         * modules/chdir-long (Depends-on): Likewise.
41747         * modules/fnmatch (Depends-on): Likewise.
41748         * modules/getsubopt (Depends-on): Likewise.
41749         * modules/git-merge-changelog (Depends-on): Likewise.
41750         * modules/glob (Depends-on): Likewise.
41751         * modules/strcasestr-simple (Depends-on): Likewise.
41752         * modules/strnlen (Depends-on): Likewise.
41753
41754 2008-11-02  Bruno Haible  <bruno@clisp.org>
41755
41756         Mark 'atexit' obsolete.
41757         * modules/atexit (Status, Notice): New sections.
41758         * modules/chdir-long (Depends-on): Add atexit.
41759         * modules/wait-process (Depends-on): Likewise.
41760
41761 2008-11-02  Bruno Haible  <bruno@clisp.org>
41762
41763         * gnulib-tool: New option --with-obsolete.
41764         (func_usage): Document it.
41765         (func_modules_transitive_closure): Drop obsolete dependencies if
41766         incobsolete is not true.
41767         (func_import): Read and save the incobsolete variable to the cache.
41768
41769 2008-11-02  Bruno Haible  <bruno@clisp.org>
41770
41771         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41772         * gnulib-tool: New option --extract-status.
41773         (func_usage): Document it.
41774         (sed_extract_prog): Recognize it.
41775         (func_get_status): New function.
41776
41777 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41778
41779         * modules/sockets (License): Change from LGPL to LGPLv2+.
41780
41781 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41782
41783         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41784
41785 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41786
41787         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41788         Mention times and sys_times.
41789         * modules/sys_times, modules/sys_times-tests: New modules.
41790         * modules/times, modules/times-tests: Likewise
41791         * m4/sys_times_h.m4: New file.
41792         * lib/sys_times.in.h: Likewise
41793         * lib/times.c: Likewise.
41794         * tests/test-sys_times.c: Likewise.
41795         * tests/test-times.c: Likewise.
41796         * doc/posix-headers/sys_times.texi: Update.
41797         * doc/posix-functions/times.texi: Update.
41798
41799 2008-10-28  Jim Meyering  <meyering@redhat.com>
41800
41801         * modules/tempname (Depends-on): Add lstat.
41802
41803         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41804
41805 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41806
41807         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41808         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41809         using idiom used elsewhere in gnulib.
41810
41811 2008-10-27  Jim Meyering  <meyering@redhat.com>
41812
41813         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41814
41815 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41816
41817         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41818         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41819         programs.
41820         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41821
41822 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41823
41824         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41825
41826 2008-10-27  Bruno Haible  <bruno@clisp.org>
41827
41828         * tests/test-lstat.c: Include <stdio.h>.
41829
41830 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41831
41832         * modules/lstat-tests: New module.
41833         * tests/test-lstat.c: New file.
41834
41835 2008-10-26  Jim Meyering  <meyering@redhat.com>
41836
41837         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41838
41839 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41840             Bruno Haible  <bruno@clisp.org>
41841
41842         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41843         * modules/configmake (Include): Add a note that the include must come
41844         after all system headers.
41845         * lib/javaversion.c: Include configmake.h after all other includes.
41846
41847 2008-10-26  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41850         HAVE_STRUCT_RANDOM_DATA to 1.
41851         (gl_STDLIB_H): Simplify.
41852
41853 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41854
41855         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41856         substitute HAVE_STRUCT_RANDOM_DATA.
41857         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41858         random_data.
41859         * modules/stdlib (Makefile.am): Substitute
41860         HAVE_STRUCT_RANDOM_DATA.
41861
41862 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41863
41864         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41865         * doc/gnulib-intro.texi (Copyright): Likewise.
41866
41867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41868
41869         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41870         findings.
41871
41872 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41873             Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/unistd.in.h: Include <winsock2.h>.
41876         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41877         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41878         Provide dummy declarations.
41879         (gethostname): Override.
41880         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41881         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41882         gl_PREREQ_SYS_H_WINSOCK2.
41883         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41884         * doc/posix-functions/gethostname.texi: More details.
41885
41886 2008-10-25  Bruno Haible  <bruno@clisp.org>
41887
41888         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41889         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41890         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41891
41892         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41893         here ...
41894         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41895         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41896         gl_UNISTD_H_DEFAULTS.
41897
41898 2008-10-25  Eric Blake  <ebb9@byu.net>
41899
41900         signbit: avoid spurious compiler failure
41901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41902         declarations inside function.
41903
41904 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41905             Bruno Haible  <bruno@clisp.org>
41906
41907         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41908         * modules/random_r (Depends-on): Add stdint.
41909
41910 2008-10-24  Bruno Haible  <bruno@clisp.org>
41911
41912         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41913         Eggert.
41914         * modules/strerror (License): Likewise.
41915
41916 2008-10-24  Jim Meyering  <meyering@redhat.com>
41917
41918         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41919         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41920
41921 2008-10-24  Eric Blake  <ebb9@byu.net>
41922
41923         getgroups: fix compilation when getgroups is available
41924         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41925         but with <config.h> override of getgroups disabled.
41926
41927 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41928
41929         * doc/gnulib.texi (Header files): Add note about C++ problems.
41930         Explained by Bruno Haible <bruno@clisp.org>.
41931
41932 2008-10-23  Bruno Haible  <bruno@clisp.org>
41933
41934         Define a dummy SA_NODEFER macro on Interix.
41935         * lib/signal.in.h (SA_NODEFER): Define fallback.
41936         Reported by Aleksey Cheusov <cheusov@tut.by> via
41937         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41938
41939 2008-10-23  Bruno Haible  <bruno@clisp.org>
41940
41941         * modules/freadahead (License): Change to LGPLv2+.
41942         Suggested by Simon Josefsson.
41943
41944 2008-10-23  Jim Meyering  <meyering@redhat.com>
41945
41946         random_r: new module
41947         * modules/random_r: New file.
41948         * m4/random_r.m4: New file.
41949         * lib/random_r.c: New file, from glibc.
41950         * modules/random_r-tests: New file.
41951         * tests/test-random_r.c: New file.
41952         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41953          Declare.
41954         (RAND_MAX): Define.
41955         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41956         * modules/stdlib: Substitute them, too.
41957         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41958         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41959         * doc/glibc-functions/random_r.texi: Likewise.
41960         * doc/glibc-functions/setstate_r.texi: Likewise.
41961         * doc/glibc-functions/srandom_r.texi: Likewise.
41962         * config/srclist.txt: Mention it.
41963
41964 2008-10-23  David Lutterkort  <lutter@redhat.com>
41965
41966         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41967         link requirement
41968
41969 2008-10-23  Jim Meyering  <meyering@redhat.com>
41970
41971         selinux-h: mark parameters of stub functions as intentionally unused
41972         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41973         * lib/se-context.in.h: Likewise.
41974
41975 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41976
41977         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41978
41979 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41980
41981         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41982
41983 2008-10-22  Eric Blake  <ebb9@byu.net>
41984
41985         glthread/thread: avoid compiler warning
41986         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41987         Add unreachable abort to silence compiler.
41988
41989 2008-10-22  Eric Blake  <ebb9@byu.net>
41990
41991         netdb: also supply struct addrinfo for cygwin 1.5.x
41992         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41993         older cygwin.
41994         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41995         cygwin.
41996         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41997
41998 2008-10-22  Bruno Haible  <bruno@clisp.org>
41999
42000         * users.txt: Update entry about pspp.
42001
42002 2008-10-21  Bruno Haible  <bruno@clisp.org>
42003
42004         Simplification.
42005         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42006         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42007
42008         Simplification.
42009         * lib/ioctl.c (ioctl): Don't undefine.
42010         * lib/socket.c (socket): Don't undefine.
42011
42012         Remove unused module indicator macros.
42013         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42014         GNULIB_$1 as a C macro.
42015
42016         * doc/posix-functions/close.texi: Undo last change.
42017         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42018         Windows platforms.
42019
42020 2008-10-21  Bruno Haible  <bruno@clisp.org>
42021
42022         Add gethostname() declaration to <unistd.h>.
42023         * lib/unistd.in.h (gethostname): New declaration.
42024         * lib/gethostname.c: Include <unistd.h>.
42025         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42026         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42028         and HAVE_GETHOSTNAME.
42029         * modules/gethostname (Depends-on): Add unistd.
42030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42031         (Include): Specify <unistd.h>.
42032         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42033         HAVE_GETHOSTNAME.
42034         * tests/test-gethostname.c: Include <unistd.h> first.
42035
42036 2008-10-21  Bruno Haible  <bruno@clisp.org>
42037
42038         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42039         * modules/select-tests (Depends-on): Likewise.
42040         Reported by Simon Josefsson.
42041
42042 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42043
42044         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42045         * lib/accept.c: New file, based on winsock.c.
42046         * lib/bind.c: New file, based on winsock.c.
42047         * lib/connect.c: New file, based on winsock.c.
42048         * lib/getpeername.c: New file, based on winsock.c.
42049         * lib/getsockname.c: New file, based on winsock.c.
42050         * lib/getsockopt.c: New file, based on winsock.c.
42051         * lib/ioctl.c: New file, based on winsock.c.
42052         * lib/listen.c: New file, based on winsock.c.
42053         * lib/recv.c: New file, based on winsock.c.
42054         * lib/recvfrom.c: New file, based on winsock.c.
42055         * lib/send.c: New file, based on winsock.c.
42056         * lib/sendto.c: New file, based on winsock.c.
42057         * lib/setsockopt.c: New file, based on winsock.c.
42058         * lib/shutdown.c: New file, based on winsock.c.
42059         * lib/socket.c: New file, based on winsock.c.
42060         * lib/w32sock.h: New file, based on winsock.c.
42061         * lib/winsock.c: Remove file.
42062         * modules/accept: Likewise.
42063         * modules/bind: Likewise.
42064         * modules/connect: Likewise.
42065         * modules/getpeername: Likewise.
42066         * modules/getsockname: Likewise.
42067         * modules/getsockopt: Likewise.
42068         * modules/ioctl: Likewise.
42069         * modules/listen: Likewise.
42070         * modules/recv: Likewise.
42071         * modules/recvfrom: Likewise.
42072         * modules/send: Likewise.
42073         * modules/sendto: Likewise.
42074         * modules/setsockopt: Likewise.
42075         * modules/shutdown: Likewise.
42076         * modules/socket: Use socket.c instead of winsock.c.
42077         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42078         * doc/posix-functions/accept.texi: Doc fix.
42079         * doc/posix-functions/bind.texi: Doc fix.
42080         * doc/posix-functions/close.texi: Doc fix.
42081         * doc/posix-functions/connect.texi: Doc fix.
42082         * doc/posix-functions/getpeername.texi: Doc fix.
42083         * doc/posix-functions/getsockname.texi: Doc fix.
42084         * doc/posix-functions/getsockopt.texi: Doc fix.
42085         * doc/posix-functions/ioctl.texi: Doc fix.
42086         * doc/posix-functions/listen.texi: Doc fix.
42087         * doc/posix-functions/recv.texi: Doc fix.
42088         * doc/posix-functions/recvfrom.texi: Doc fix.
42089         * doc/posix-functions/send.texi: Doc fix.
42090         * doc/posix-functions/sendto.texi: Doc fix.
42091         * doc/posix-functions/setsockopt.texi: Doc fix.
42092         * doc/posix-functions/shutdown.texi: Doc fix.
42093         * doc/posix-functions/socket.texi: Doc fix.
42094
42095 2008-10-20  Bruno Haible  <bruno@clisp.org>
42096
42097         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42098         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42099         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42100         as an alias for SIGABRT.
42101         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42102         (sigaction): Map it to SIGABRT.
42103         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42104
42105 2008-10-20  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/fts.c: Don't include lstat.h.
42108         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42109
42110         Move the lstat() declaration to <sys/stat.h>.
42111         * lib/lstat.h: Remove file.
42112         * lib/sys_stat.in.h: Add special invocation convention.
42113         (lstat): New declaration.
42114         * lib/lstat.c (orig_lstat): New function.
42115         (rpl_lstat): Use orig_lstat instead of lstat.
42116         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42117         AC_C_INLINE. Set REPLACE_LSTAT.
42118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42119         and REPLACE_LSTAT.
42120         * modules/lstat (Files): Remove lib/lstat.h.
42121         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42122         (Include): Specify <sys/stat.h> instead of lstat.h.
42123         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42124         REPLACE_LSTAT.
42125         * NEWS: Mention the change.
42126
42127 2008-10-20  Bruno Haible  <bruno@clisp.org>
42128
42129         * modules/posix_spawn-tests: New file.
42130         * tests/test-posix_spawn3.c: New file.
42131
42132 2008-10-20  Bruno Haible  <bruno@clisp.org>
42133
42134         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42135         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42136         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42137         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42138         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42139
42140 2008-10-20  Bruno Haible  <bruno@clisp.org>
42141
42142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42143         of posix_spawn on AIX 5.3.
42144
42145 2008-10-20  Bruno Haible  <bruno@clisp.org>
42146
42147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42148
42149 2008-10-20  Bruno Haible  <bruno@clisp.org>
42150
42151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42152         of AC_LANG_PROGRAM.
42153
42154 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42155
42156         * lib/netdb.in.h: Don't define GNU specific constants until they
42157         are supported or needed.  Reported by Bruno Haible
42158         <bruno@clisp.org>.
42159
42160 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42161
42162         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42163
42164 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42165
42166         * lib/getaddrinfo.h: Remove file.
42167         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42168         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42169         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42170         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42171         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42172         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42173         * tests/test-getaddrinfo.c: Likewise.
42174         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42175         * NEWS: Mention change.
42176
42177 2008-10-19  Bruno Haible  <bruno@clisp.org>
42178
42179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42180
42181 2008-10-19  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/wait-process.c: Include simply <sys/wait.h>.
42184         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42185         WIFSTOPPED): Remove fallback definitions.
42186         * modules/wait-process (Depends-on): Add sys_wait.
42187
42188         New module 'sys_wait'.
42189         * modules/sys_wait: New file.
42190         * lib/sys_wait.in.h: New file, partially copied from
42191         lib/wait-process.c.
42192         * m4/sys_wait_h.m4: New file.
42193         * doc/posix-headers/sys_wait.texi: Mention the new module.
42194
42195 2008-10-19  Bruno Haible  <bruno@clisp.org>
42196
42197         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42198
42199 2008-10-19  Bruno Haible  <bruno@clisp.org>
42200
42201         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42202         * lib/wait-process.c (WAIT_T): Remove type.
42203         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42204         (wait_subprocess): Update.
42205
42206 2008-10-19  Bruno Haible  <bruno@clisp.org>
42207
42208         New module 'atoll'.
42209         * modules/atoll: New file.
42210         * lib/stdlib.in.h (atoll): New declaration.
42211         * lib/atoll.c: New file, from glibc with modifications.
42212         * m4/atoll.m4: New file.
42213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42214         HAVE_ATOLL.
42215         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42216         * doc/posix-functions/atoll.texi: Mention the new module.
42217
42218 2008-10-19  Bruno Haible  <bruno@clisp.org>
42219
42220         Add strtoull() declaration to <stdlib.h>.
42221         * lib/stdlib.in.h (strtoull): New declaration.
42222         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42223         Set HAVE_STRTOULL.
42224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42225         HAVE_STRTOULL.
42226         * modules/strtoull (Depends-on): Add stdlib.
42227         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42228         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42229         HAVE_STRTOULL.
42230
42231 2008-10-19  Bruno Haible  <bruno@clisp.org>
42232
42233         Add strtoll() declaration to <stdlib.h>.
42234         * lib/stdlib.in.h (strtoll): New declaration.
42235         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42236         Set HAVE_STRTOLL.
42237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42238         HAVE_STRTOLL.
42239         * modules/strtoll (Depends-on): Add stdlib.
42240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42241         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42242
42243 2008-10-19  Bruno Haible  <bruno@clisp.org>
42244
42245         * modules/bcopy (Depends-on): Add strings.
42246         (Include): Specify <strings.h>.
42247
42248 2008-10-19  Bruno Haible  <bruno@clisp.org>
42249
42250         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42251
42252 2008-10-19  Bruno Haible  <bruno@clisp.org>
42253
42254         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42255         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42256         mingw.
42257
42258 2008-10-19  Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/atanl.c: Don't include isnanl.h.
42261         * lib/cosl.c: Likewise.
42262         * lib/ldexpl.c: Likewise.
42263         * lib/logl.c: Likewise.
42264         * lib/sinl.c: Likewise.
42265         * lib/sqrtl.c: Likewise.
42266         * lib/tanl.c: Likewise.
42267
42268         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42269         * lib/isnanf.h: Remove file.
42270         * lib/isnand.h: Remove file.
42271         * lib/isnanl.h: Remove file.
42272         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42273         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42274         macros.
42275         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42276         HAVE_ISNANF, don't define it as a C macro.
42277         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42278         HAVE_ISNAND, don't define it as a C macro.
42279         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42280         HAVE_ISNANL, don't define it as a C macro.
42281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42282         HAVE_ISNAN[FDL].
42283         * modules/isnanf (Files): Remove lib/isnanf.h.
42284         (Depends-on): Add math.
42285         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42286         (Include): Specify <math.h> instead of isnanf.h.
42287         * modules/isnand (Files): Remove lib/isnand.h.
42288         (Depends-on): Add math.
42289         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42290         (Include): Specify <math.h> instead of isnand.h.
42291         * modules/isnanl (Files): Remove lib/isnanl.h.
42292         (Depends-on): Add math.
42293         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42294         (Include): Specify <math.h> instead of isnanl.h.
42295         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42296         HAVE_ISNAN[FDL].
42297         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42298         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42299         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42300         * NEWS: Mention the change.
42301
42302 2008-10-18  Bruno Haible  <bruno@clisp.org>
42303
42304         Add getusershell(), setusershell(), endusershell() declarations to
42305         <unistd.h>.
42306         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42307         declarations.
42308         * lib/getusershell.c: Include unistd.h.
42309         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42310         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42311         HAVE_GETUSERSHELL.
42312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42313         and HAVE_GETUSERSHELL.
42314         * modules/getusershell (Depends-on): Add unistd, extensions.
42315         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42316         (Include): Specify <unistd.h>.
42317         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42318         HAVE_GETUSERSHELL.
42319
42320 2008-10-18  Bruno Haible  <bruno@clisp.org>
42321
42322         Add a getloadavg() declaration to <stdlib.h>.
42323         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42324         getloadavg declaration.
42325         (getloadavg): New declaration.
42326         * lib/getloadavg.c: Include <stdlib.h> first.
42327         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42328         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42329         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42331         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42332         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42334         (Include): Specify <stdlib.h>.
42335         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42336         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42337
42338 2008-10-18  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/dirchownmod.c: Don't include lchmod.h.
42341
42342         Move the lchmod() declaration to <sys/stat.h>.
42343         * lib/lchmod.h: Remove file.
42344         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42345         (lchmod): New declaration, moved here from lib/lchown.h.
42346         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42347         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42349         and HAVE_LCHMOD.
42350         * modules/lchmod (Files): Remove lib/lchmod.h.
42351         (Depends-on): Add sys_stat, extensions.
42352         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42353         (Include): Specify <sys/stat.h> instead of lchmod.h.
42354         * modules/sys_stat (Depends-on): Add link-warning.
42355         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42356         definition of GL_LINK_WARNING.
42357         * NEWS: Mention the change.
42358
42359 2008-10-18  Bruno Haible  <bruno@clisp.org>
42360
42361         * lib/fchdir.c: Don't include dirfd.h.
42362         * lib/fts.c: Likewise.
42363         * lib/getcwd.c: Likewise.
42364         * lib/glob.c: Likewise.
42365
42366         Move the dirfd() declaration to <dirent.h>.
42367         * lib/dirfd.h: Remove file.
42368         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42369         (dirfd): New declaration.
42370         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42371         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42372         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42373         HAVE_DECL_DIRFD.
42374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42375         HAVE_DECL_DIRFD.
42376         * modules/dirfd (Files): Remove lib/dirfd.h.
42377         (Depends-on): Add dirent, extensions.
42378         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42379         (Include): Specify <dirent.h> instead of dirfd.h.
42380         * modules/dirent (Depends-on): Add link-warning.
42381         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42382         definition of GL_LINK_WARNING.
42383         * NEWS: Mention the change.
42384
42385 2008-10-18  Bruno Haible  <bruno@clisp.org>
42386
42387         Move the euidaccess() declaration to <unistd.h>.
42388         * lib/euidaccess.h: Remove file.
42389         * lib/unistd.in.h (euidaccess): New declaration.
42390         * lib/euidaccess.c: Don't include euidaccess.h.
42391         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42392         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42394         and HAVE_EUIDACCESS.
42395         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42396         (Depends-on): Add unistd.
42397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42398         (Include): Specify <unistd.h> instead of euidaccess.h.
42399         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42400         HAVE_EUIDACCESS.
42401         * NEWS: Mention the change.
42402
42403 2008-10-18  Bruno Haible  <bruno@clisp.org>
42404
42405         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42406
42407         Move the getdomainname() declaration to <unistd.h>.
42408         * lib/getdomainname.h: Remove file.
42409         * lib/unistd.in.h (getdomainname): New declaration.
42410         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42411         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42412         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42413         HAVE_GETDOMAINNAME.
42414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42415         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42416         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42417         (Depends-on): Add unistd, extensions.
42418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42419         (Includes): Specify <unistd.h> instead of getdomainname.h.
42420         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42421         HAVE_GETDOMAINNAME.
42422         * NEWS: Mention the change.
42423
42424 2008-10-18  Bruno Haible  <bruno@clisp.org>
42425
42426         * modules/dirent: New file.
42427         * m4/dirent_h.m4: New file.
42428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42429         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42430         * modules/fchdir (Files): Remove lib/dirent.in.h.
42431         (Depends-on): Add dirent.
42432         (Makefile.am): Move rules to modules/dirent.
42433         * doc/posix-headers/dirent.texi: Mention the new module.
42434
42435 2008-10-18  Bruno Haible  <bruno@clisp.org>
42436
42437         Avoid -Wunused-parameter warnings in public gnulib header files.
42438         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42439         macro.
42440         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42441
42442 2008-10-18  Bruno Haible  <bruno@clisp.org>
42443
42444         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42445         * doc/glibc-functions/error.texi: Mention the module 'error'.
42446         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42447         * doc/glibc-functions/getdomainname.texi: Mention the module
42448         'getdomainname'.
42449         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42450         * doc/glibc-functions/getpagesize.texi: Mention the module
42451         'getpagesize'.
42452         * doc/glibc-functions/getusershell.texi: Mention the module
42453         'getusershell'.
42454         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42455         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42456         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42457         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42458         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42459         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42460         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42461         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42462         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42463         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42464         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42465         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42466         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42467         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42468
42469 2008-10-17  Bruno Haible  <bruno@clisp.org>
42470
42471         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42472         HP-UX and IRIX, use -0.0L.
42473         * tests/test-ceill.c (minus_zero): Likewise.
42474         * tests/test-floorl.c (minus_zero): Likewise.
42475         * tests/test-frexpl.c (minus_zero): Likewise.
42476         * tests/test-isnan.c (minus_zerol): Likewise.
42477         * tests/test-isnanl.h (minus_zero): Likewise.
42478         * tests/test-ldexpl.c (minus_zero): Likewise.
42479         * tests/test-roundl.c (minus_zero): Likewise.
42480         * tests/test-signbit.c (minus_zerol): Likewise.
42481         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42482         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42483         * tests/test-truncl.c (minus_zero): Likewise.
42484         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42485         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42486         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42487         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42488
42489 2008-10-17  Bruno Haible  <bruno@clisp.org>
42490
42491         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42492         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42493         that it gets activated only for gcc >= 3.0.
42494         * lib/dirent.in.h: Likewise.
42495         * lib/errno.in.h: Likewise.
42496         * lib/fcntl.in.h: Likewise.
42497         * lib/float.in.h: Likewise.
42498         * lib/iconv.in.h: Likewise.
42499         * lib/inttypes.in.h: Likewise.
42500         * lib/locale.in.h: Likewise.
42501         * lib/math.in.h: Likewise.
42502         * lib/netdb.in.h: Likewise.
42503         * lib/netinet_in.in.h: Likewise.
42504         * lib/search.in.h: Likewise.
42505         * lib/signal.in.h: Likewise.
42506         * lib/spawn.in.h: Likewise.
42507         * lib/stdarg.in.h: Likewise.
42508         * lib/stdint.in.h: Likewise.
42509         * lib/stdio.in.h: Likewise.
42510         * lib/stdlib.in.h: Likewise.
42511         * lib/string.in.h: Likewise.
42512         * lib/strings.in.h: Likewise.
42513         * lib/sys_file.in.h: Likewise.
42514         * lib/sys_ioctl.in.h: Likewise.
42515         * lib/sys_select.in.h: Likewise.
42516         * lib/sys_socket.in.h: Likewise.
42517         * lib/sys_stat.in.h: Likewise.
42518         * lib/sys_time.in.h: Likewise.
42519         * lib/sysexits.in.h: Likewise.
42520         * lib/time.in.h: Likewise.
42521         * lib/unistd.in.h: Likewise.
42522         * lib/wchar.in.h: Likewise.
42523         * lib/wctype.in.h: Likewise.
42524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42525
42526 2008-10-17  Jim Meyering  <meyering@redhat.com>
42527
42528         ignore-value: don't depend on inline module
42529         * modules/ignore-value (Depends-on): Remove 'inline'.
42530         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42531         Suggestion from Bruno Haible.
42532
42533 2008-10-17  Bruno Haible  <bruno@clisp.org>
42534
42535         New implementation of condition variables for Win32.
42536         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42537         (gl_linked_waitqueue_t): New type.
42538         (gl_cond_t): Use it.
42539         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42540         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42541         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42542         (glthread_cond_init_func, glthread_cond_wait_func,
42543         glthread_cond_timedwait_func, glthread_cond_signal_func,
42544         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42545         Reimplemented on the basis of gl_linked_waitqueue_t.
42546         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42547         gl_waitqueue_t.
42548         (gl_rwlock_t): Update.
42549         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42550
42551 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42552
42553         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42554         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42555
42556 2008-10-17  Jim Meyering  <meyering@redhat.com>
42557
42558         ignore-value: new module
42559         * modules/ignore-value: New file.
42560         * lib/ignore-value.h: New file.
42561         * MODULES.html.sh (Compiler warning management): New section,
42562         just for this module.  More to come.
42563
42564 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42565
42566         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42567         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42568         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42569
42570 2008-10-16  Jim Meyering  <meyering@redhat.com>
42571
42572         openat-die.c: avoid 'no previous prototype' warning
42573         * lib/openat-die.c: Include "openat.h".
42574         Reported by Reuben Thomas <rrt@sc3d.org>.
42575
42576 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42577
42578         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42579         * lib/netdb.in.h: Fix typo.
42580         Reported by Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/netdb.in.h: Include sys/socket.h for platforms without
42583         netdb.h, to get structures like hostent on MinGW.
42584         * modules/netdb (Depends-on): Add sys_socket.
42585
42586 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42587
42588         * modules/netdb, modules/netdb-tests: New file.
42589         * m4/netdb_h.m4: New file.
42590         * lib/netdb.in.h: Add, currently just an empty file pending
42591         definitions.
42592         * tests/test-netdb.c: New file.
42593         * doc/posix-headers/netdb.texi: Mention that we replace it if
42594         needed.
42595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42596         netdb.
42597
42598 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42599
42600         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42601         with code.
42602
42603 2008-10-13  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/glthread/cond.c (glthread_cond_wait_func,
42606         glthread_cond_timedwait_func): Add a comment.
42607
42608 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42609
42610         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42611         * tests/test-select.c: Likewise,
42612
42613 2008-10-13  Bruno Haible  <bruno@clisp.org>
42614
42615         * lib/glthread/cond.c (glthread_cond_wait_func,
42616         glthread_cond_timedwait_func): Fix variable name.
42617         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42618
42619 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42620
42621         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42623         struct sockaddr.sa_len.
42624         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42625
42626 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42627
42628         * build-aux/pmccabe2html: Add css and css_url parameters.
42629
42630 2008-10-12  Bruno Haible  <bruno@clisp.org>
42631
42632         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42633         calling aclx_get.
42634         Reported by Rainer Tammer <tammer@tammer.net>.
42635
42636 2008-10-12  Bruno Haible  <bruno@clisp.org>
42637
42638         Use msvcrt aware primitives for creation/termination of Win32 threads.
42639         * lib/glthread/thread.c: Include <process.h>.
42640         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42641         (wrapper_func): Update signature.
42642         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42643
42644 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42645             Bruno Haible  <bruno@clisp.org>
42646
42647         Provide a Win32 implementation of the 'cond' module.
42648         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42649         * lib/glthread/cond.c (glthread_cond_init_func,
42650         glthread_cond_wait_func, glthread_cond_timedwait_func,
42651         glthread_cond_signal_func, glthread_cond_broadcast_func,
42652         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42653         * modules/cond (Dependencies): Add gettimeofday.
42654
42655 2008-10-11  Bruno Haible  <bruno@clisp.org>
42656
42657         Make sleep work on older versions of mingw.
42658         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42659         only whether it exists.
42660         * doc/posix-functions/sleep.texi: Mention the problem with older
42661         versions of mingw.
42662
42663 2008-10-11  Bruno Haible  <bruno@clisp.org>
42664
42665         New module 'shutdown'.
42666         * modules/shutdown: New file.
42667         * lib/sys_socket.in.h (shutdown): New declaration.
42668         * lib/winsock.c (shutdown): New function.
42669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42670         GNULIB_SHUTDOWN.
42671         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42672         * doc/posix-functions/shutdown.texi: Document the new module.
42673
42674 2008-10-11  Jim Meyering  <meyering@redhat.com>
42675
42676         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42677
42678 2008-10-11  Bruno Haible  <bruno@clisp.org>
42679
42680         New module 'fclose'.
42681         * modules/fclose: New file.
42682         * lib/stdio.in.h (fclose): New declaration.
42683         * lib/fclose.c: New file.
42684         * m4/fclose.m4: New file.
42685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42686         REPLACE_FCLOSE.
42687         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42688         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42689         REPLACE_FCLOSE.
42690         * modules/close (Depends-on): fclose.
42691         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42692
42693 2008-10-11  Bruno Haible  <bruno@clisp.org>
42694
42695         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42696         set errno and don't call _close.
42697
42698 2008-10-10  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42701         ACL, not afterwards. Fixes test failure on Cygwin.
42702
42703 2008-10-09  Ben Pfaff  <blp@gnu.org>
42704
42705         * build-aux/announce-gen: Fix gnulib version related part of usage
42706         message.  Die with a useful error message if no tarballs are
42707         found.
42708
42709 2008-10-10  Jim Meyering  <meyering@redhat.com>
42710
42711         bootstrap: use git's --depth=N option only if it's supported
42712         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42713         recognize the --depth option.  Reported by Pádraig Brady.
42714
42715 2008-10-09  Bruno Haible  <bruno@clisp.org>
42716
42717         New module 'ioctl'.
42718         * modules/ioctl: New file.
42719         * lib/sys_socket.in.h (ioctl): Remove declaration.
42720         * lib/winsock.c: Include <sys/ioctl.h>.
42721         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42722         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42723         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42724         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42725         * doc/posix-functions/ioctl.texi: Mention the new module.
42726
42727 2008-10-09  Bruno Haible  <bruno@clisp.org>
42728
42729         New module 'sys_ioctl'.
42730         * lib/sys_ioctl.in.h: New file.
42731         * m4/sys_ioctl_h.m4: New file.
42732         * modules/sys_ioctl: New file.
42733         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42734
42735 2008-10-09  Bruno Haible  <bruno@clisp.org>
42736
42737         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42738         * lib/winsock.c: Include <stdarg.h>.
42739         (rpl_ioctl): Change to second argument 'int' and then varargs.
42740
42741 2008-10-09  Bruno Haible  <bruno@clisp.org>
42742
42743         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42744         when the sys_socket module is present and the system has <winsock2.h>.
42745
42746 2008-10-09  Bruno Haible  <bruno@clisp.org>
42747
42748         * doc/posix-functions/close.texi: Mention module 'close' instead of
42749         module 'sys_socket'.
42750
42751 2008-10-09  Bruno Haible  <bruno@clisp.org>
42752
42753         * doc/glibc-headers/sys_ioctl.texi: New file.
42754         * doc/gnulib.texi: Include it.
42755
42756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42757             Bruno Haible  <bruno@clisp.org>
42758
42759         Combine the two replacements of 'close'.
42760         * lib/sys_socket.in.h (close): Define to a reminder to include
42761         <unistd.h>.
42762         (_gl_close_fd_maybe_socket): New declaration.
42763         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42764         * lib/winsock.c (close): Remove undefinition.
42765         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42766         needed for the gnulib module 'close'.
42767         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42768         define to an error symbol or to a warning, if suitable.
42769         * lib/close.c: Include <sys/socket.h>.
42770         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42771         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42772         UNISTD_H_HAVE_WINSOCK2_H.
42773         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42775         UNISTD_H_HAVE_WINSOCK2_H.
42776         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42777         (configure.ac): Set a module indicator.
42778         (Makefile.am): Substitute GNULIB_CLOSE.
42779         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42780         * modules/poll-tests (Depends-on): Add close.
42781         * modules/select-tests (Depends-on): Likewise.
42782
42783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42784             Bruno Haible  <bruno@clisp.org>
42785
42786         New module 'close'.
42787         * modules/close: New file.
42788         * lib/unistd.in.h (close): Move declaration out of the
42789         FCHDIR_REPLACEMENT scope.
42790         (_gl_unregister_fd): New declaration.
42791         * lib/close.c: New file.
42792         * lib/fchdir.c (rpl_close): Remove function.
42793         * m4/close.m4: New file.
42794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42795         close.
42796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42797         REPLACE_CLOSE.
42798         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42799         REPLACE_CLOSE.
42800         * modules/fchdir (Depends-on): Add close.
42801
42802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42803             Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/fcntl.in.h (open): Simplify conditionals.
42806         (_gl_register_fd): New declaration.
42807         * lib/fchdir.c (rpl_open): Remove function.
42808         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42809         also.
42810         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42812         open.
42813
42814 2008-10-09  Jim Meyering  <meyering@redhat.com>
42815
42816         GNUmakefile: use the more name-space-friendly "_version"
42817         * top/GNUmakefile (_dummy): Update.
42818         (_version): Rename from "version".
42819
42820 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42821             Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42824         rpl_close.
42825         (_gl_register_fd): New function, extracted from rpl_open.
42826         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42827         (rpl_open, rpl_opendir): Use _gl_register_fd.
42828
42829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42830
42831         Fix organization of 'open' replacement.
42832         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42833         (gl_FUNC_OPEN): Use it.
42834         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42835
42836 2008-10-08  Bruno Haible  <bruno@clisp.org>
42837
42838         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42839
42840 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42841
42842         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42843         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42844         listen).
42845
42846 2008-10-08  Eric Blake  <ebb9@byu.net>
42847
42848         GNUmakefile: add 'make version' target
42849         * top/GNUmakefile (_curr-ver): Split version update rules...
42850         (version): ...into a target.
42851
42852 2008-10-07  Bruno Haible  <bruno@clisp.org>
42853
42854         Use a more portable replacement expression for -0.0L.
42855         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42856         instead of -0.0L. Fix m4 quotation.
42857
42858         * tests/test-signbit.c: Include <float.h>.
42859         (minus_zero): New variable.
42860         (test_signbitl): Use minus_zero instead of -zero.
42861         * modules/signbit-tests (Depends-on): Add float.
42862
42863         * tests/test-ceill.c: Include <float.h>.
42864         (zero): Remove variable.
42865         (minus_zero): New variable.
42866         (main): Use minus_zero instead of -zero.
42867         * modules/ceill-tests (Depends-on): Add float.
42868
42869         * tests/test-floorl.c: Include <float.h>.
42870         (zero): Remove variable.
42871         (minus_zero): New variable.
42872         (main): Use minus_zero instead of -zero.
42873         * modules/floorl-tests (Depends-on): Add float.
42874
42875         * tests/test-roundl.c: Include <float.h>.
42876         (zero): Remove variable.
42877         (minus_zero): New variable.
42878         (main): Use minus_zero instead of -zero.
42879         * modules/roundl-tests (Depends-on): Add float.
42880
42881         * tests/test-truncl.c: Include <float.h>.
42882         (zero): Remove variable.
42883         (minus_zero): New variable.
42884         (main): Use minus_zero instead of -zero.
42885         * modules/truncl-tests (Depends-on): Add float.
42886
42887         * tests/test-frexpl.c (zero): Remove variable.
42888         (minus_zero): New variable.
42889         (main): Use minus_zero instead of -zero.
42890         * modules/frexpl-tests (Depends-on): Add float.
42891
42892         * tests/test-isnan.c (zerol): Remove variable.
42893         (minus_zerol): New variable.
42894         (test_long_double): Use minus_zerol instead of -zerol.
42895         * modules/isnan-tests (Depends-on): Add float.
42896
42897         * tests/test-isnanl.h (zero): Remove variable.
42898         (minus_zero): New variable.
42899         (main): Use minus_zero instead of -zero.
42900         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42901         * modules/isnanl-tests (Depends-on): Add float.
42902
42903         * tests/test-ldexpl.c (zero): Remove variable.
42904         (minus_zero): New variable.
42905         (main): Use minus_zero instead of -zero.
42906         * modules/ldexpl-tests (Depends-on): Add float.
42907
42908         * tests/test-snprintf-posix.h (zerol): Remove variable.
42909         (minus_zerol): New variable.
42910         (test_function): Use minus_zerol instead of -zerol.
42911         * modules/snprintf-posix-tests (Depends-on): Add float.
42912         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42913
42914         * tests/test-sprintf-posix.h (zerol): Remove variable.
42915         (minus_zerol): New variable.
42916         (test_function): Use minus_zerol instead of -zerol.
42917         * modules/sprintf-posix-tests (Depends-on): Add float.
42918         * modules/vsprintf-posix-tests (Depends-on): Add float.
42919
42920         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42921         (minus_zerol): New variable.
42922         (test_function): Use minus_zerol instead of -zerol.
42923         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42924
42925         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42926         (minus_zerol): New variable.
42927         (test_function): Use minus_zerol instead of -zerol.
42928         * modules/vasprintf-posix-tests (Depends-on): Add float.
42929
42930 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42931
42932         * MODULES.html.sh (Support for building documentation): Mention
42933         pmccabe2html.  Sort entries.
42934
42935         Add pmccabe2html module, from gnupdf.
42936         * build-aux/pmccabe.css: New file.
42937         * build-aux/pmccabe2html: New file.
42938         * m4/pmccabe2html.m4: New file.
42939         * modules/pmccabe2html: New file.
42940
42941 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42942
42943         flock: new module
42944         * MODULES.html.sh: Add to list of modules.
42945         * lib/flock.c: flock implementation for Windows and Unix systems
42946         which have fcntl.
42947         * doc/glibc-functions/flock.texi: Update documentation.
42948         * lib/sys_file.in.h: <sys/file.h> header file.
42949         * m4/flock.m4: M4 macros.
42950         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42951         * modules/flock: flock module.
42952         * modules/flock-tests: flock tests module.
42953         * modules/sys_file: sys/file.h module.
42954         * tests/test-flock.c: test suite for flock.
42955
42956 2008-10-06  Jim Meyering  <meyering@redhat.com>
42957
42958         bootstrap: check for LT_INIT more portably still ;-)
42959         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42960         Spotted by Bruno Haible.
42961
42962 2008-10-06  Eric Blake  <ebb9@byu.net>
42963
42964         test-signbit: avoid tripping Irix cc bug on -0.0L
42965         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42966         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42967         entire testsuite consistent and avoids an Irix 6.2 bug.
42968
42969 2008-10-05  Bruno Haible  <bruno@clisp.org>
42970             Jim Meyering  <jim@meyering.net>
42971
42972         Add an option for ignoring EPIPE during close_stdout.
42973         * lib/closeout.h: Include <stdbool.h>.
42974         (close_stdout_set_ignore_EPIPE): New declaration.
42975         * lib/closeout.c: Include <stdbool.h>.
42976         (ignore_EPIPE): New variable.
42977         (close_stdout_set_ignore_EPIPE): New function.
42978         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42979         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42980         failure.
42981         * modules/closeout (Depends-on): Add stdbool.
42982
42983 2008-10-05  Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/accept: New file.
42986         * modules/bind: New file.
42987         * modules/connect: New file.
42988         * modules/getpeername: New file.
42989         * modules/getsockname: New file.
42990         * modules/getsockopt: New file.
42991         * modules/listen: New file.
42992         * modules/recv: New file.
42993         * modules/recvfrom: New file.
42994         * modules/send: New file.
42995         * modules/sendto: New file.
42996         * modules/setsockopt: New file.
42997         * modules/socket: New file.
42998         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42999         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43000         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43001         the particular module is requested. Add a link warning when the
43002         particular module is not requested.
43003         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43004         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43005         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43006         the particular module is requested.
43007         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43008         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43009         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43010         * modules/sys_socket (Depends-on): Add link-warning.
43011         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43012         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43013         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43014         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43015         GL_LINK_WARNING.
43016         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43017         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43018         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43019         * doc/posix-functions/getpeername.texi: Mention the new module
43020         'getpeername'.
43021         * doc/posix-functions/getsockname.texi: Mention the new module
43022         'getsockname'.
43023         * doc/posix-functions/getsockopt.texi: Mention the new module
43024         'getsockopt'.
43025         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43026         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43027         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43028         * doc/posix-functions/send.texi: Mention the new module 'send'.
43029         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43030         * doc/posix-functions/setsockopt.texi: Mention the new module
43031         'setsockopt'.
43032         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43033         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43034         listen, connect, accept.
43035         * modules/select-tests (Depends-on): Likewise.
43036
43037 2008-10-05  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/winsock.c (strerror): Remove unused #undef.
43040         (rpl_close): Remove unused local variable.
43041
43042         * modules/sys_socket (Depends-on); Add errno.
43043
43044 2008-10-05  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43047         (select): Add a link warning when the 'select' module is not used.
43048         * modules/sys_select (Depends-on): Add link-warning.
43049         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43050         Suggested by Paolo Bonzini.
43051
43052 2008-10-05  Jim Meyering  <meyering@redhat.com>
43053
43054         bootstrap: check for LT_INIT more portably
43055         * build-aux/bootstrap: Avoid using grep -E, since it's not
43056         portable enough.  Suggestion from Bruno Haible.
43057
43058 2008-10-05  Bruno Haible  <bruno@clisp.org>
43059
43060         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43061         as being fixed by gnulib.
43062
43063 2008-10-05  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/select-tests: New file, mostly copied from
43066         modules/sys_select-tests.
43067         * tests/test-select.c: New file, mostly copied from
43068         tests/test-sys_select.c.
43069         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43070         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43071         (Makefile.am): Remove test_sys_select_LDADD.
43072
43073         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43074         to an undefined symbol, for an error message.
43075         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43076         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43077         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43078         winsock-select.c here.
43079         * modules/sys_select (Files): Remove lib/winsock-select.c.
43080         (Depends-on): Remove alloca.
43081         (Makefile.am): Substitute GNULIB_SELECT.
43082         * modules/select: New file.
43083         * doc/posix-functions/select.texi: Update.
43084
43085 2008-10-05  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43088         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43089         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43090         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43091         getdtablesize.
43092         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43093         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43094
43095 2008-10-05  Bruno Haible  <bruno@clisp.org>
43096
43097         * modules/getdtablesize-tests: New file.
43098         * tests/test-getdtablesize.c: New file.
43099
43100         New module 'getdtablesize'.
43101         * lib/unistd.in.h (getdtablesize): New declaration.
43102         * lib/getdtablesize.c: New file.
43103         * m4/getdtablesize.m4: New file.
43104         * modules/getdtablesize: New file.
43105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43106         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43107         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43108         HAVE_GETDTABLESIZE.
43109         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43110
43111 2008-10-05  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/sched (Makefile.am): Fix typo.
43114         Reported by Simon Josefsson.
43115
43116 2008-10-05  Jim Meyering  <meyering@redhat.com>
43117
43118         bootstrap: check for LT_INIT, too
43119         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43120         are deprecated.  Suggestion from Ralf Wildenhues.
43121
43122 2008-10-05  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43125         overriding them by ours.
43126         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43127
43128 2008-10-05  Jim Meyering  <meyering@redhat.com>
43129
43130         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43131         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43132         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43133
43134 2008-10-04  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/dup2 (License): Change to LGPLv2+.
43137         * modules/sleep (License): Likewise.
43138         * modules/perror (License): Likewise.
43139         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43140         Blake.
43141         * modules/signal (License): Likewise.
43142         * modules/sigprocmask (License): Likewise.
43143         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43144         Meyering.
43145
43146 2008-10-04  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43149         Reported by Rainer Tammer <tammer@tammer.net>.
43150
43151 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43152             Bruno Haible  <bruno@clisp.org>
43153
43154         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43155         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43156         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43157
43158 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43159
43160         filevercmp: new module
43161         * lib/filevercmp.h: New function filevercmp comparing version strings.
43162         * lib/filevercmp.c: Implementation of filevercmp function.
43163         * modules/filevercmp: Module metadata.
43164         * tests/test-filevercmp.c: Unit test for new module.
43165         * modules/filevercmp-tests: Unit test metadata.
43166         * MODULES.html.sh: Add filevercmp module.
43167
43168 2008-10-03  Bruno Haible  <bruno@clisp.org>
43169
43170         * lib/c-ctype.h: Add comment.
43171         Reported by Jim Meyering.
43172
43173 2008-10-02  Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43176
43177 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43178
43179         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43180         name of bootstrap.conf accordingly.
43181
43182 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43183
43184         * build-aux/bootstrap: Install git-merge-changelog configuration
43185         items into .gitconfig if needed.
43186
43187 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43188
43189         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43190         git repository, and initialize/update it accordingly.
43191
43192 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43193
43194         * modules/fsync-tests: New file.
43195         * tests/test-fsync.c: New file.
43196
43197         New module 'fsync'.
43198         * lib/fsync.c: New file.
43199         * m4/fsync.m4: New file.
43200         * modules/fsync: New file.
43201         * lib/unistd.in.h (fsync): New declaration.
43202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43203         GNULIB_FSYNC and HAVE_FSYNC.
43204         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43205         * MODULES.html.sh (posix_functions): Add fsync.
43206         * doc/posix-functions/fsync.texi: Mention the new module.
43207
43208 2008-10-02  Jim Meyering  <meyering@redhat.com>
43209
43210         fts.c: sync with similar code from coreutils' remove.c
43211         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43212         Guard also with "#if defined __linux__", since for now at least,
43213         this code is Linux-kernel-specific.
43214
43215 2008-10-02  Jim Meyering  <meyering@redhat.com>
43216
43217         fts: bug fixes
43218         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43219         Include <sys/vfs.h>, not <sys/statfs.h>.
43220
43221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43222         Include <sys/vfs.h>, not <sys/statfs.h>.
43223
43224 2008-10-01  Bruno Haible  <bruno@clisp.org>
43225
43226         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43228         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43229         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43230         * doc/posix-functions/posix_spawnp.texi: Likewise.
43231         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43232         whether posix_spawn actually works.
43233         * m4/pipe.m4 (gl_PIPE): Likewise.
43234         * modules/execute (Files): Add m4/posix_spawn.m4.
43235         * modules/pipe (Files): Add m4/posix_spawn.m4.
43236         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43237
43238 2008-10-01  Jim Meyering  <meyering@redhat.com>
43239
43240         remove trailing spaces
43241         * NEWS: Likewise.
43242         * lib/poll.c (poll): Likewise.
43243         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43244         * lib/winsock.c (rpl_close): Likewise.
43245         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43246         * modules/yield: Likewise.
43247         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43248         * tests/test-sys_select.c (connect_to_socket): Likewise.
43249
43250         fts.c: adjust a new interface to be more generally useful
43251         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43252         (fts_build): Adjust caller.
43253
43254 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43255
43256         * modules/cond-tests: New file.
43257         * tests/test-cond.c: New file.
43258
43259 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43260             Bruno Haible  <bruno@clisp.org>
43261
43262         * modules/cond (Dependencies): Add errno, time.
43263         * lib/glthread/cond.h: Include <time.h>.
43264         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43265         across platforms.
43266
43267 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43268             Bruno Haible  <bruno@clisp.org>
43269
43270         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43271
43272 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43273             Bruno Haible  <bruno@clisp.org>
43274
43275         * modules/tls-tests (Depends-on): Add thread, yield.
43276         (configure.ac): Remove all checks.
43277         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43278         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43279         gl_thread_self): Remove definitions. Include glthread/thread.h and
43280         glthread/yield.h instead.
43281         (test_tls): Pass an additional NULL argument to gl_thread_join.
43282
43283 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43284             Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/lock-tests (Depends-on): Add thread, yield.
43287         (configure.ac): Remove all checks.
43288         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43289         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43290         gl_thread_self): Remove definitions. Include glthread/thread.h and
43291         glthread/yield.h instead.
43292         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43293         additional NULL argument to gl_thread_join.
43294
43295 2008-09-30  Bruno Haible  <bruno@clisp.org>
43296
43297         Fix the Win32 implementation of the 'thread' module.
43298         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43299         pointer type.
43300         (gl_thread_self): Invoke gl_thread_self_func.
43301         (gl_thread_self_func): New declaration.
43302         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43303         (do_init_self_key, init_self_key): New functions.
43304         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43305         Remove some fields.
43306         (running_threads, running_lock): Remove variables.
43307         (get_current_thread_handle): New function.
43308         (gl_thread_self_func, wrapper_func, glthread_create_func,
43309         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43310         simplified.
43311
43312 2008-09-30  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43315         files.
43316
43317 2008-09-30  Jim Meyering  <meyering@redhat.com>
43318
43319         fts.m4: correct the test for statfs.f_type
43320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43321         when checking for statfs.f_type.
43322
43323 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43324
43325         tests: avoid some compiler warnings
43326         * tests/test-memchr.c (main): Pass NULL indirectly.
43327         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43328
43329 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43330
43331         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43332         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43333         exactly specified dayshifts.
43334         (dayshift): New rule.
43335         (rel): Add dayshift.
43336         (relative_time_table) [tomorrow, yesterday, today, now]:
43337         Use tDAY_SHIFT in place of tDAY_UNIT.
43338         * tests/test-getdate.c: Add tests for now-disallowed countable
43339         dayshifts, e.g., "4 yesterday ago".
43340
43341 2008-09-29  Bruno Haible  <bruno@clisp.org>
43342
43343         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43344         * tests/test-posix_spawn1.in.sh: Renamed from
43345         tests/test-posix_spawn.in.sh.
43346         * tests/test-posix_spawn2.c: New file.
43347         * tests/test-posix_spawn2.in.sh: New file.
43348         * modules/posix_spawnp-tests (Files): Update.
43349         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43350
43351 2008-09-29  Bruno Haible  <bruno@clisp.org>
43352
43353         Propagate effects of putenv/setenv/unsetenv to child processes.
43354         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43355         * lib/pipe.c (create_pipe): Likewise.
43356
43357 2008-09-29  Bruno Haible  <bruno@clisp.org>
43358
43359         Enable use of shell scripts as executables in mingw.
43360         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43361         run the program as a shell script.
43362         * lib/pipe.c (create_pipe): Likewise.
43363         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43364         resulting array.
43365
43366 2008-09-29  Eric Blake  <ebb9@byu.net>
43367
43368         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43369
43370 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43371
43372         * doc/posix-functions/accept.texi: Update mingw problems.
43373         * doc/posix-functions/bind.texi: Update mingw problems.
43374         * doc/posix-functions/close.texi: Update mingw problems.
43375         * doc/posix-functions/connect.texi: Update mingw problems.
43376         * doc/posix-functions/getpeername.texi: Update mingw problems.
43377         * doc/posix-functions/getsockname.texi: Update mingw problems.
43378         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43379         * doc/posix-functions/ioctl.texi: Update mingw problems.
43380         * doc/posix-functions/listen.texi: Update mingw problems.
43381         * doc/posix-functions/recv.texi: Update mingw problems.
43382         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43383         * doc/posix-functions/select.texi: Update mingw problems.
43384         * doc/posix-functions/send.texi: Update mingw problems.
43385         * doc/posix-functions/sendto.texi: Update mingw problems.
43386         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43387         * doc/posix-functions/socket.texi: Update mingw problems.
43388
43389 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43390             Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/sys_select.in.h: Include sys/time.h.
43393         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43394         * modules/sys_select: Depend on sys_time.
43395         * tests/test-sys_select.c: Test that sys/select.h defines struct
43396         timeval fully.
43397
43398 2008-09-29  Bruno Haible  <bruno@clisp.org>
43399
43400         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43401         * lib/sys_select.in.h: Likewise.
43402
43403 2008-09-29  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43406
43407 2008-09-29  Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43410         Set LIBSOCKET instead of augmenting LIBS.
43411         * modules/sockets (Link): New section.
43412         * modules/sockets-tests (test_sockets_LDADD): New variable.
43413         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43414         * modules/poll-tests (test_poll_LDADD): New variable.
43415         * NEWS: Document the change.
43416
43417 2008-09-29  Bruno Haible  <bruno@clisp.org>
43418
43419         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43420         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43421         ARPA_INET_H directly.
43422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43423
43424 2008-09-28  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43427         from gl_HEADER_SYS_SOCKET.
43428         (gl_HEADER_SYS_SOCKET): Invoke it.
43429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43430
43431 2008-09-28  Bruno Haible  <bruno@clisp.org>
43432
43433         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43434         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43435         Needed on OSF/1 4.0.
43436
43437 2008-09-28  Bruno Haible  <bruno@clisp.org>
43438
43439         Override open more carefully.
43440         * lib/open.c (orig_open): New function.
43441         (rpl_open): Use orig_open instead of open.
43442         * lib/fcntl.in.h: Add special invocation convention.
43443         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43444         (gl_FUNC_OPEN): Invoke it.
43445
43446         Override freopen more carefully.
43447         * lib/freopen.c (orig_freopen): New function.
43448         (rpl_freopen): Use orig_freopen instead of freopen.
43449         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43450         (gl_FUNC_FREOPEN): Invoke it.
43451
43452         Override fopen more carefully.
43453         * lib/fopen.c (orig_fopen): New function.
43454         (rpl_fopen): Use orig_fopen instead of fopen.
43455         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43456         (gl_FUNC_FOPEN): Invoke it.
43457         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43458
43459 2008-09-28  Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43462         SIGPIPE.
43463
43464 2008-09-28  Bruno Haible  <bruno@clisp.org>
43465
43466         * tests/test-sigaction.c (handler, main): Disable the check whether
43467         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43468         glibc systems with LinuxThreads.
43469
43470 2008-09-28  Bruno Haible  <bruno@clisp.org>
43471
43472         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43473
43474         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43475         with AIX xlc.
43476         * lib/fcntl.in.h (open): Likewise.
43477         Reported by Rainer Tammer <tammer@tammer.net>.
43478
43479 2008-09-28  Bruno Haible  <bruno@clisp.org>
43480
43481         * modules/posix_spawnp-tests: New file.
43482         * tests/test-posix_spawn.c: New file.
43483         * tests/test-posix_spawn.in.sh: New file.
43484
43485         New module 'posix_spawnp'.
43486         * modules/posix_spawnp: New file.
43487         * lib/spawnp.c: New file, from GNU libc with modifications.
43488         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43489
43490         New module 'posix_spawn'.
43491         * modules/posix_spawn: New file.
43492         * lib/spawn.c: New file, from GNU libc with modifications.
43493         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43494
43495         New module 'posix_spawnattr_destroy'.
43496         * modules/posix_spawnattr_destroy: New file.
43497         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43498         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43499         module.
43500
43501         New module 'posix_spawnattr_setsigmask'.
43502         * modules/posix_spawnattr_setsigmask: New file.
43503         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43504         modifications.
43505         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43506         new module.
43507
43508         New module 'posix_spawnattr_getsigmask'.
43509         * modules/posix_spawnattr_getsigmask: New file.
43510         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43511         modifications.
43512         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43513         new module.
43514
43515         New module 'posix_spawnattr_setsigdefault'.
43516         * modules/posix_spawnattr_setsigdefault: New file.
43517         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43518         modifications.
43519         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43520         new module.
43521
43522         New module 'posix_spawnattr_getsigdefault'.
43523         * modules/posix_spawnattr_getsigdefault: New file.
43524         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43525         modifications.
43526         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43527         new module.
43528
43529         New module 'posix_spawnattr_setschedpolicy'.
43530         * modules/posix_spawnattr_setschedpolicy: New file.
43531         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43532         modifications.
43533         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43534         new module.
43535
43536         New module 'posix_spawnattr_getschedpolicy'.
43537         * modules/posix_spawnattr_getschedpolicy: New file.
43538         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43539         modifications.
43540         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43541         new module.
43542
43543         New module 'posix_spawnattr_setschedparam'.
43544         * modules/posix_spawnattr_setschedparam: New file.
43545         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43546         modifications.
43547         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43548         new module.
43549
43550         New module 'posix_spawnattr_getschedparam'.
43551         * modules/posix_spawnattr_getschedparam: New file.
43552         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43553         modifications.
43554         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43555         new module.
43556
43557         New module 'posix_spawnattr_setpgroup'.
43558         * modules/posix_spawnattr_setpgroup: New file.
43559         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43560         modifications.
43561         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43562         module.
43563
43564         New module 'posix_spawnattr_getpgroup'.
43565         * modules/posix_spawnattr_getpgroup: New file.
43566         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43567         modifications.
43568         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43569         module.
43570
43571         New module 'posix_spawnattr_setflags'.
43572         * modules/posix_spawnattr_setflags: New file.
43573         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43574         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43575         module.
43576
43577         New module 'posix_spawnattr_getflags'.
43578         * modules/posix_spawnattr_getflags: New file.
43579         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43580         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43581         module.
43582
43583         New module 'posix_spawnattr_init'.
43584         * modules/posix_spawnattr_init: New file.
43585         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43586         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43587         module.
43588
43589         New module 'posix_spawn_file_actions_destroy'.
43590         * modules/posix_spawn_file_actions_destroy: New file.
43591         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43592         modifications.
43593         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43594         the new module.
43595
43596         New module 'posix_spawn_file_actions_addopen'.
43597         * modules/posix_spawn_file_actions_addopen: New file.
43598         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43599         modifications.
43600         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43601         the new module.
43602
43603         New module 'posix_spawn_file_actions_adddup2'.
43604         * modules/posix_spawn_file_actions_adddup2: New file.
43605         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43606         modifications.
43607         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43608         the new module.
43609
43610         New module 'posix_spawn_file_actions_addclose'.
43611         * modules/posix_spawn_file_actions_addclose: New file.
43612         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43613         modifications.
43614         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43615         the new module.
43616
43617         New module 'posix_spawn_file_actions_init'.
43618         * modules/posix_spawn_file_actions_init: New file.
43619         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43620         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43621         new module.
43622
43623         New module 'posix_spawn-internal'.
43624         * modules/posix_spawn-internal: New file.
43625         * lib/spawn_int.h: New file, from GNU libc with modifications.
43626         * lib/spawni.c: New file, from GNU libc with modifications.
43627         * m4/posix_spawn.m4: New file.
43628
43629         New module 'spawn'.
43630         * modules/spawn: New file.
43631         * lib/spawn.in.h: New file, from GNU libc with modifications.
43632         * m4/spawn_h.m4: New file.
43633         * doc/posix-headers/spawn.texi: Mention the new module.
43634
43635 2008-09-28  Bruno Haible  <bruno@clisp.org>
43636
43637         * modules/sched-tests: New file.
43638         * tests/test-sched.c: New file.
43639
43640         New module 'sched'.
43641         * modules/sched: New file.
43642         * lib/sched.in.h: New file.
43643         * m4/sched_h.m4: New file.
43644         * doc/posix-headers/sched.texi: Mention the new module.
43645
43646 2008-09-27  Eric Blake  <ebb9@byu.net>
43647
43648         Fix previous patch, and tweak references to $0.
43649         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43650         (func_version, func_gnulib_dir): Don't call this program
43651         gnulib-tool.
43652         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43653         with using $0 in function.
43654         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43655         (func_fatal_error): Reuse the name the user invoked us with.
43656
43657 2008-09-27  Bruno Haible  <bruno@clisp.org>
43658
43659         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43660         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43661         (gl_ICONV_H): Not here.
43662         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43663         instead of assigning ICONV_H directly.
43664
43665         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43667         WCHAR_H directly.
43668
43669 2008-09-27  Bruno Haible  <bruno@clisp.org>
43670
43671         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43672         * modules/arpa_inet (Depends-on): Add link-warning.
43673         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43674         * modules/unistd (Makefile.am): Likewise.
43675
43676 2008-09-26  Bruno Haible  <bruno@clisp.org>
43677
43678         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43679         variables.
43680         (func_version): Essentially copied from gnulib-tool.
43681         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43682         func_readlink): Copied from gnulib-tool.
43683
43684 2008-09-26  Bruno Haible  <bruno@clisp.org>
43685
43686         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43687         invoking git-version-gen.
43688
43689 2008-09-26  Bruno Haible  <bruno@clisp.org>
43690
43691         * posix-modules: Update to directory names changed on 2008-01-19.
43692         Remove commas in output before splitting into words. No more need to
43693         avoid 'ftruncate' since 2007-02-19.
43694
43695 2008-09-26  Bruno Haible  <bruno@clisp.org>
43696
43697         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43698
43699 2008-09-26  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43702         * modules/fwriteerror (Depends-on): Add errno.
43703
43704 2008-09-26  Bruno Haible  <bruno@clisp.org>
43705
43706         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43707         * tests/test-vc-list-files-cvs.sh: Likewise.
43708
43709 2008-09-26  Bruno Haible  <bruno@clisp.org>
43710
43711         * doc/posix-headers/sys_resource.texi: Reorder items.
43712
43713 2008-09-26  Jim Meyering  <meyering@redhat.com>
43714
43715         fts: tweak inode comparison function
43716         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43717         inode numbers, as documented.
43718
43719         fts: sort dirent entries on inode number before traversing
43720         This avoids a quadratic, seek-related performance penalty when
43721         operating on a directory containing many entries (measurable at 10k;
43722         3.5 hours at 2 million entries with a cold cache) on certain types
43723         of file systems, including ext3 and ext4, but not tmpfs.
43724         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43725         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43726         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43727         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43728         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43729         (fts_build): Set the stat.st_ino member from D_INO.
43730         If it is likely to be useful, sort dirent entries on inode number.
43731
43732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43733         and the struct statfs.f_type member.
43734         * modules/fts (Depends-on): Add d-ino.
43735
43736 2008-09-26  Bruno Haible  <bruno@clisp.org>
43737
43738         * modules/sigpipe-die (Depends-on): Add sigpipe.
43739
43740         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43741         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43742         and GNULIB_STDIO_H_SIGPIPE are set.
43743         * lib/stdio-write.c: New file.
43744         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43745         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43746         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43747         REPLACE_STDIO_WRITE_FUNCS.
43748         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43749         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43750         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43751         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43752         * modules/stdio (Files): Add lib/stdio-write.c.
43753         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43754         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43755         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43756         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43757         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43758         REPLACE_FPRINTF_POSIX.
43759         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43760         REPLACE_PRINTF_POSIX.
43761         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43762         REPLACE_VFPRINTF_POSIX.
43763         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43764         REPLACE_VPRINTF_POSIX.
43765         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43766         SIGPIPE issue.
43767         * doc/posix-functions/fputc.texi: Likewise.
43768         * doc/posix-functions/fputs.texi: Likewise.
43769         * doc/posix-functions/fwrite.texi: Likewise.
43770         * doc/posix-functions/printf.texi: Likewise.
43771         * doc/posix-functions/putc.texi: Likewise.
43772         * doc/posix-functions/putchar.texi: Likewise.
43773         * doc/posix-functions/puts.texi: Likewise.
43774         * doc/posix-functions/vfprintf.texi: Likewise.
43775         * doc/posix-functions/vprintf.texi: Likewise.
43776
43777         * modules/safe-write (Depends-on): Add write.
43778
43779         * modules/sigpipe-tests: New file.
43780         * tests/test-sigpipe.c: New file.
43781         * tests/test-sigpipe.sh: New file.
43782
43783         * modules/write: New file.
43784         * lib/unistd.in.h: Include <sys/types.h>.
43785         (write): New declaration.
43786         * lib/write.c: New file.
43787         * m4/write.m4: New file.
43788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43789         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43790         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43791         GNULIB_WRITE, REPLACE_WRITE.
43792         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43793         and the SIGPIPE issue.
43794
43795         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43796         (raise): New declaration.
43797         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43798         (ext_signal): New function.
43799         (rpl_raise): New function.
43800         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43801         GNULIB_SIGNAL_H_SIGPIPE.
43802         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43803         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43804
43805         * modules/sigpipe: New file.
43806         * m4/sigpipe.m4: New file.
43807
43808 2008-09-25  Derek Price  <derek@ximbiot.com>
43809             Bruno Haible  <bruno@clisp.org>
43810
43811         * gnulib-tool (func_import): Report all license incompatibilities, not
43812         just the first one.
43813
43814 2008-09-25  Bruno Haible  <bruno@clisp.org>
43815
43816         * gnulib-tool (func_import): When computing the edits, consider not
43817         only the Makefile.ams that exist but also those that will be generated.
43818
43819 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43820
43821         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43822         fixes gnulib-tool --test warning about duplicate dependency.
43823
43824 2008-09-25  Bruno Haible  <bruno@clisp.org>
43825
43826         * gnulib-tool: Don't ask the user to perform edits in the generated
43827         Makefile.ams.
43828         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43829         apply to the Makefile.am being generated.
43830         (func_emit_tests_Makefile_am): Execute edits that apply to the
43831         Makefile.am being generated.
43832         (func_import): Setup list of Makefile.am edits before emitting the
43833         Makefile.ams, not at the end.
43834         (func_create_testdir): Update.
43835         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43836
43837 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43838
43839         * gnulib-tool (func_import): Store the --tests-base option in the
43840         comment in gnulib-cache.m4.
43841
43842 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43843
43844         * NEWS: Document increased portability that sys_select now provides.
43845
43846         * lib/sys_select.in.h: Install select wrapper.
43847         * lib/sys_socket.in.h: Use more descriptive name when there is no
43848         select wrapper.
43849         * lib/winsock-select.c: New.
43850         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43851         Require gl_HEADER_SYS_SOCKET.
43852         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43853         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43854         * tests/test-sys_select.c: Add functional tests.
43855
43856 2008-09-24  Eric Blake  <ebb9@byu.net>
43857
43858         open, fopen: close fd leak in last patch
43859         * lib/open.c (rpl_open): Close fd before returning error.
43860         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43861         * doc/posix-functions/open.texi (open): Document that Irix also
43862         has the bug.
43863         * doc/posix-functions/fopen.texi (fopen): Likewise.
43864         Reported by Paolo Bonzini.
43865
43866 2008-09-24  Bruno Haible  <bruno@clisp.org>
43867
43868         Ensure that a filename ending in a slash cannot be used to access a
43869         non-directory.
43870         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43871         to check whether it's really a directory.
43872         * lib/fopen.c: Include fcntl.h, unistd.h.
43873         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43874         and fdopen().
43875         * modules/fopen (Depends-on): Add unistd.
43876         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43877         * tests/test-fopen.c (main): Likewise.
43878         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43879         * doc/posix-functions/fopen.texi: Likewise.
43880         Reported by Eric Blake.
43881
43882 2008-09-23  Eric Blake  <ebb9@byu.net>
43883
43884         c-stack: avoid compiler optimizations when provoking overflow
43885         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43886         recursion harder to optimize, to ensure a stack overflow occurs.
43887         * tests/test-c-stack.c (recurse): Likewise.
43888         Borrowed from libsigsegv.
43889
43890         c-stack: work around Irix sigaltstack bug
43891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43892         whether sigaltstack uses wrong end of stack_t (copied in part from
43893         libsigsegv).
43894         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43895         Irix bug, without requiring an over-allocation.
43896         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43897         bug.
43898
43899         fopen: document mingw bug on directories
43900         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43901         not allowing a stream visiting a directory, even though reading
43902         from such a stream is not portable.
43903
43904 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43905
43906         * lib/poll.c: Rewrite.
43907         * modules/poll: Depend on alloca.
43908
43909 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43910
43911         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43912         instead define prototypes for a full set of wrappers.  Ensure
43913         that Cygwin does not use the compatibility code, which is only
43914         for MinGW.
43915         * lib/winsock.c: New.
43916         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43917         * modules/sys_socket: Add lib/winsock.c.
43918
43919         * modules/poll-tests: Add errno and perror.
43920         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43921
43922 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43923
43924         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43925
43926 2008-09-23  Bruno Haible  <bruno@clisp.org>
43927
43928         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43929         * doc/glibc-functions/*: Likewise.
43930
43931 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43932
43933         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43934         success.
43935
43936 2008-09-22  Eric Blake  <ebb9@byu.net>
43937             Bruno Haible  <bruno@clisp.org>
43938
43939         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43940         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43941         supply %A but mishandle pseudo-NaN.
43942         Reported by Simon Josefsson.
43943
43944 2008-09-21  Bruno Haible  <bruno@clisp.org>
43945
43946         * tests/test-lock.c (main): Tweak skip message.
43947         * tests/test-tls.c (main): Likewise.
43948
43949 2008-09-21  Bruno Haible  <bruno@clisp.org>
43950
43951         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43952         whether 'struct sigaction' has sa_sigaction here...
43953         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43954         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43955
43956 2008-09-21  Bruno Haible  <bruno@clisp.org>
43957
43958         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43959         section.
43960         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43961         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43962         the new section.
43963         (Support for obsolete systems lacking POSIX:2001): New section.
43964         (String handling <string.h>): Move strdup to the new section.
43965         Suggested by Simon Josefsson and Paolo Bonzini.
43966
43967 2008-09-21  Bruno Haible  <bruno@clisp.org>
43968
43969         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43970         exponents in %e and %g results on 'long double'. Needed for mingw's
43971         improved *printf functions.
43972         * tests/test-vasprintf-posix.c (test_function): Likewise.
43973         * tests/test-snprintf-posix.h (test_function): Likewise.
43974         * tests/test-sprintf-posix.h (test_function): Likewise.
43975         Reported by Eric Blake.
43976
43977 2008-09-21  Bruno Haible  <bruno@clisp.org>
43978
43979         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43980         * tests/test-sprintf-posix.h (test_function): Likewise.
43981
43982 2008-09-21  Bruno Haible  <bruno@clisp.org>
43983
43984         * modules/getpass (Depends-on): Add strdup-posix.
43985
43986         New module 'strdup-posix'.
43987         * modules/strdup-posix: New file.
43988         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43989         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43991         REPLACE_STRDUP.
43992         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43993         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43995         strdup-posix.
43996
43997         * modules/strdup (Depends-on): Remove malloc-posix.
43998
43999 2008-09-20  Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44002         Wildenhues.
44003
44004 2008-09-20  Bruno Haible  <bruno@clisp.org>
44005
44006         Ensure that wint_t gets defined on IRIX 5.3.
44007         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44008         * lib/wctype.in.h (wint_t): Likewise.
44009         (__wctype_wint_t): Remove type.
44010         (isw*): Use wint_t instead of __wctype_wint_t.
44011         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44012         * modules/wchar (Files): Add m4/wint_t.m4.
44013         (Makefile.am): Substitute HAVE_WINT_T.
44014         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44015         * tests/test-wctype.c: Check that wint_t is defined.
44016         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44017         * doc/posix-headers/wctype.texi: Likewise.
44018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44019
44020 2008-09-18  Bruno Haible  <bruno@clisp.org>
44021
44022         * gnulib-tool (func_exit): Update comment.
44023
44024 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44025
44026         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44027         assumes strdup exists and does not depend on strdup to return
44028         ENOMEM on out of memory conditions.
44029
44030 2008-09-18  Bruno Haible  <bruno@clisp.org>
44031
44032         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44033         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44034         digits for the exponent.
44035
44036 2008-09-18  Jim Meyering  <meyering@redhat.com>
44037             Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/vasnprintf.c (decimal_point_char): Define also if
44040         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44041
44042 2008-09-16  Bruno Haible  <bruno@clisp.org>
44043         and Eric Blake  <ebb9@byu.net>
44044
44045         vasnprintf: support Irix 5.3
44046         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44047         that mishandle long double infinity.
44048         Reported by Tom G. Christensen.
44049
44050 2008-09-16  Bruno Haible  <bruno@clisp.org>
44051
44052         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44053         Solaris 9.
44054         * doc/glibc-functions/alphasort.texi: Likewise.
44055         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44056
44057 2008-09-16  Jim Meyering  <meyering@redhat.com>
44058
44059         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44060         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44061         a umask modification leak out of a subshell.  Otherwise, the
44062         opensolaris /bin/sh would be accepted and thus cause unwarranted
44063         failures in the coreutils test suite.
44064
44065 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44066
44067         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44068         to succeed.
44069
44070 2008-09-16  Jim Meyering  <meyering@redhat.com>
44071
44072         avoid spurious test failure when library is built without ACL support
44073         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44074         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44075         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44076         * tests/test-copy-acl.sh: Likewise.
44077
44078 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44079
44080         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44081         based on character occurrence counts.
44082
44083 2008-09-15  Eric Blake  <ebb9@byu.net>
44084
44085         tests: avoid some compiler warnings
44086         * tests/test-memchr.c (main): Pass NULL indirectly.
44087         * tests/test-closein.c (main): Avoid unused variable.
44088
44089 2008-09-15  Bruno Haible  <bruno@clisp.org>
44090
44091         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44092         are missing on OpenBSD 4.0 individually.
44093         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44094
44095 2008-09-15  Bruno Haible  <bruno@clisp.org>
44096
44097         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44098         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44099         * doc/posix-functions/perror.texi: Likewise.
44100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44101         is missing.
44102         Reported by Eric Blake.
44103
44104         * lib/errno.in.h: Use replacement values >= 2000.
44105         Reported by Eric Blake.
44106
44107 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44108
44109         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44110         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44111         limit.
44112         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44113         compareseq was aborted.
44114
44115 2008-09-14  Bruno Haible  <bruno@clisp.org>
44116
44117         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44118         yvec_edit_count.
44119         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44120         (fstrcmp_bounded): Simplify result computation accordingly.
44121
44122 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44123
44124         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44125         (fstrcmp): Define in terms of fstrcmp_bounded.
44126         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44127         lower_bound argument.
44128         Return quickly if the result is certainly < lower_bound.
44129         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44130
44131 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44132
44133         * lib/diffseq.h (EARLY_ABORT): New macro.
44134         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44135         evaluates to true.
44136
44137 2008-09-14  Bruno Haible  <bruno@clisp.org>
44138
44139         * modules/perror-tests: New file.
44140         * tests/test-perror.sh: New file.
44141         * tests/test-perror.c: New file.
44142
44143         New module 'perror'.
44144         * lib/stdio.in.h (perror): New declaration.
44145         * lib/perror.c: New file.
44146         * m4/perror.m4: New file.
44147         * modules/perror: New file.
44148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44149         * doc/posix-functions/perror.texi: Mention the perror module.
44150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44151         REPLACE_PERROR.
44152         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44153         REPLACE_PERROR.
44154
44155 2008-09-14  Bruno Haible  <bruno@clisp.org>
44156
44157         * modules/stdio (Makefile.am): Reorder to match the order in
44158         lib/stdio.in.h.
44159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44160
44161 2008-09-13  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44164
44165 2008-09-13  Bruno Haible  <bruno@clisp.org>
44166
44167         Extend strerror to cover the added errno values.
44168         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44169         (rpl_strerror): Provide error messages for the added errno values and
44170         for the WSA* values.
44171         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44172         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44173         strerror.
44174         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44175         * modules/strerror (Depends-on): Add errno.
44176         * doc/posix-functions/strerror.texi: Document the change.
44177         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44178         and EOVERFLOW.
44179
44180 2008-09-13  Bruno Haible  <bruno@clisp.org>
44181
44182         * modules/EOVERFLOW: Remove file.
44183         * m4/eoverflow.m4: Remove file.
44184         * modules/EOVERFLOW-tests: Remove file.
44185         * tests/test-EOVERFLOW.c: Remove file.
44186         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44187         * modules/ftell (Depends-on): Likewise.
44188         * modules/getdelim (Depends-on): Likewise.
44189         * modules/getugroups (Depends-on): Likewise.
44190         * modules/poll (Depends-on): Likewise.
44191         * modules/snprintf (Depends-on): Likewise.
44192         * modules/sprintf-posix (Depends-on): Likewise.
44193         * modules/vasnprintf (Depends-on): Likewise.
44194         * modules/vasprintf (Depends-on): Likewise.
44195         * modules/vfprintf-posix (Depends-on): Likewise.
44196         * modules/vsnprintf (Depends-on): Likewise.
44197         * modules/vsprintf-posix (Depends-on): Likewise.
44198         * modules/xvasprintf (Depends-on): Likewise.
44199         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44200         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44201         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44202         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44204         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44205         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44206         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44207         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44208         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44209         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44210         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44211         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44212         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44213         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44214         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44215         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44216         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44217         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44218         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44219         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44220         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44221         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44222         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44223         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44225         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44226         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44227         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44228         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44229         * MODULES.html.sh: Remove EOVERFLOW.
44230         * NEWS: Mention the change.
44231
44232 2008-09-13  Bruno Haible  <bruno@clisp.org>
44233
44234         * modules/errno-tests: New file.
44235         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44236
44237         * lib/errno.in.h: New file.
44238         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44239         * modules/errno: New file.
44240         * doc/posix-headers/errno.texi: Update documentation.
44241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44242
44243 2008-09-13  Bruno Haible  <bruno@clisp.org>
44244
44245         * tests/test-poll.c: Use #if for native Windows, rather than testing
44246         __MSVCRT__.
44247
44248 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44249             Bruno Haible  <bruno@clisp.org>
44250
44251         * lib/glob.c: Don't include <pwd.h> on native Windows.
44252         (WINDOWS32): New macro.
44253         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44254
44255 2008-09-13  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44258         (ETIMEDOUT): Remove macro.
44259         (glthread_cond_timedwait_multithreaded): New declaration.
44260         (glthread_cond_timedwait): Use it.
44261         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44262         (glthread_cond_timedwait_multithreaded): New function.
44263
44264 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44265
44266         * modules/poll-tests: Do not check for io.h.
44267         * tests/test-poll.c: Check for __MSVCRT__ instead.
44268
44269 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44270
44271         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44272         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44273         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44274
44275 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44276
44277         * modules/poll-tests: New.
44278         * tests/test-poll.c: New.
44279
44280 2008-09-12  Eric Blake  <ebb9@byu.net>
44281
44282         frexp: test for NetBSD failure on -0.0
44283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44284         not all, bugs from NetBSD 3.0 have been fixed.
44285         * doc/posix-functions/frexp.texi (frexp): Document bug.
44286         Reported by Thomas Klausner.
44287
44288         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44290         literal -0.0.
44291         Reported by Jonathan C. Patschke <jp@centtech.com>.
44292
44293 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44294
44295         * lib/glthread/cond.h: Use dummy implementation also if
44296         USE_WIN32_THREADS.
44297
44298 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44299
44300         * modules/fnmatch-posix (License): Change to LGPLv2+.
44301         * modules/fnmatch-gnu (License): Likewise.
44302
44303 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44304
44305         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44306
44307 2008-09-11  Jim Meyering  <meyering@redhat.com>
44308
44309         * users.txt: Add gtk-vnc.
44310
44311 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44312
44313         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44314         rotate amounts.
44315
44316         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44317         required for 16-bit and 8-bit rotates.
44318         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44319         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44320         UINT8_MAX instead of hard-coded constants.
44321         Suggested by Paul Eggert.
44322
44323 2008-09-07  Bruno Haible  <bruno@clisp.org>
44324
44325         * tests/test-striconveh.c (main): Check behaviour when converting from
44326         UTF-7.
44327
44328         Make striconveh work better with stateful encodings.
44329         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44330         that iconv does not increment the inptr when returning -1/EINVAL.
44331
44332 2008-09-07  Bruno Haible  <bruno@clisp.org>
44333
44334         * build-aux/config.rpath: Update according to libtool-2.2.6.
44335         * build-aux/config.libpath: Likewise.
44336
44337 2008-09-06  Bruno Haible  <bruno@clisp.org>
44338
44339         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44340         * lib/freadptr.c (freadptr): Likewise.
44341         * lib/freadseek.c (freadptrinc): Likewise.
44342         Reported by Simon Josefsson.
44343
44344 2008-09-06  Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/freadptr (License): Change to LGPLv2+.
44347         * modules/freadseek (License): Likewise.
44348         Suggested by Eric Blake.
44349
44350         * modules/memchr2 (License): Change to LGPLv2+.
44351         Approved by Eric Blake.
44352
44353 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44354             Bruno Haible  <bruno@clisp.org>
44355
44356         Make gnulib-tool work with native 'sed' on AIX.
44357         * gnulib-tool (sed_noop): New variable.
44358         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44359         func_add_or_update, func_create_testdir): Use it to initialize sed
44360         script variables.
44361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44362
44363 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44364             Bruno Haible  <bruno@clisp.org>
44365
44366         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44367         also works after #include directives.
44368
44369 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44370
44371         getdate.y: reject an out-of-range timezone value
44372         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44373         the range [-24...+24].  When specified with only one or two digits,
44374         * tests/test-getdate.c: Tests for the fix.
44375         * doc/getdate.texi: Document this change.
44376
44377 2008-09-03  Bruno Haible  <bruno@clisp.org>
44378
44379         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44380
44381 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44382
44383         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44384         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44385         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44386         Blake <ebb9@byu.net>.
44387
44388         * tests/test-bitrotate.c: Add more test vectors.
44389
44390 2008-09-02  Eric Blake  <ebb9@byu.net>
44391
44392         vasnprintf-posix: handle large precision via %.*d
44393         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44394         when handling it ourselves.
44395         * tests/test-vasnprintf-posix.c (test_function): Add test.
44396         * tests/test-snprintf-posix.h (test_function): Likewise.
44397         * tests/test-sprintf-posix.h (test_function): Likewise.
44398         * tests/test-vasprintf-posix.c (test_function): Likewise.
44399         Reported by Alain Guibert.
44400
44401 2008-09-01  Eric Blake  <ebb9@byu.net>
44402
44403         c-stack: make configure-time check more robust
44404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44405         successful sigaction call.
44406         Reported by Tom G. Christensen.
44407
44408 2008-09-01  Bruno Haible  <bruno@clisp.org>
44409
44410         New module 'findprog-lgpl'.
44411         * modules/findprog-lgpl: New file.
44412         * lib/findprog-lgpl.c: New file.
44413         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44414         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44415         to decide whether to use strdup or xstrdup, concatenated_filename or
44416         xconcatenated_filename.
44417
44418 2008-09-01  Bruno Haible  <bruno@clisp.org>
44419
44420         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44421         'xconcat-filename' (GPL).
44422         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44423         (License): Change to LGPLv2+.
44424         * modules/xconcat-filename: New file.
44425         * lib/concat-filename.h (concatenated_filename): Change specification.
44426         (xconcatenated_filename): New declaration.
44427         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44428         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44429         memory situations.
44430         * lib/xconcat-filename.c: New file.
44431         * NEWS: Mention the change.
44432         * lib/findprog.c: Include concat-filename.h, not filename.h.
44433         (find_in_path): Use xconcatenated_filename instead of
44434         concatenated_filename.
44435         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44436         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44437         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44438         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44439         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44440         instead of concatenated_filename.
44441         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44442         (execute_java_class): Use xconcatenated_filename instead of
44443         concatenated_filename.
44444         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44445         * modules/javacomp (Depends-on): Likewise.
44446         * modules/javaexec (Depends-on): Likewise.
44447
44448 2008-09-01  Bruno Haible  <bruno@clisp.org>
44449
44450         Split module 'filename' into 'filename' and 'concat-filename'.
44451         * modules/filename: Keep only lib/filename.h.
44452         (License): Change to LGPLv2+.
44453         * modules/concat-filename: New file, extracted from modules/filename.
44454         * lib/filename.h (concatenated_filename): Remove declaration.
44455         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44456         * lib/concat-filename.c: Include concat-filename.h.
44457         * NEWS: Mention the change.
44458
44459 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44460
44461         * lib/bitrotate.h (rotl8, rotr8): Add.
44462
44463         * modules/bitrotate (configure.ac): Need
44464         AC_REQUIRE([AC_C_INLINE]).
44465         (Description): Mention stdint.h.  Reported by Bruno Haible
44466         <bruno@clisp.org>.
44467
44468         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44469         Paolo Bonzini <bonzini@gnu.org>.
44470
44471 2008-08-31  Bruno Haible  <bruno@clisp.org>
44472
44473         Assume Solaris specific bi-arch conventions on Solaris systems.
44474         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44475         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44477         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44478         like acl_libdirstem.
44479         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44480         acl_libdirstem.
44481         * NEWS: Mention the change.
44482         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44483
44484 2008-08-31  Jim Meyering  <meyering@redhat.com>
44485
44486         * lib/strftime.h: Add comments describing the two added arguments.
44487
44488         remove duplicate #include directives
44489         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44490         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44491
44492 2008-08-31  Bruno Haible  <bruno@clisp.org>
44493
44494         New module 'sigpipe-die'.
44495         * modules/sigpipe-die: New file.
44496         * lib/sigpipe-die.h: New file.
44497         * lib/sigpipe-die.c: New file.
44498         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44499
44500 2008-08-31  Bruno Haible  <bruno@clisp.org>
44501
44502         Don't override previously installed signal handlers.
44503         * lib/fatal-signal.c (saved_sigactions): New variable.
44504         (uninstall_handlers): Reset the signal to the saved handler, not
44505         to SIG_DFL (except when ignored).
44506         (install_handlers): Save the previous handlers.
44507
44508 2008-08-30  Bruno Haible  <bruno@clisp.org>
44509
44510         * gnulib-tool (func_reset_sigpipe): New function.
44511         (func_get_automake_snippet, func_modules_transitive_closure,
44512         func_import): Invoke it before a join command that reads from stdin,
44513         to avoid "echo: write error: Broken pipe" error messages on stderr.
44514         Reported by Sam Steingold <sds@gnu.org>.
44515
44516 2008-08-30  Bruno Haible  <bruno@clisp.org>
44517
44518         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44519         Code copied from m4/open.m4.
44520         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44521         access and the filename ends in a slash. Code copied from lib/open.c.
44522         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44523         * tests/test-fopen.c (main): Check against bug with trailing slash.
44524
44525 2008-08-29  Bruno Haible  <bruno@clisp.org>
44526
44527         Avoid some "gcc -pedantic" warnings.
44528         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44529         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44530         * lib/dirent.in.h: Likewise.
44531         * lib/fcntl.in.h: Likewise.
44532         * lib/float.in.h: Likewise.
44533         * lib/iconv.in.h: Likewise.
44534         * lib/inttypes.in.h: Likewise.
44535         * lib/locale.in.h: Likewise.
44536         * lib/math.in.h: Likewise.
44537         * lib/netinet_in.in.h: Likewise.
44538         * lib/search.in.h: Likewise.
44539         * lib/signal.in.h: Likewise.
44540         * lib/stdarg.in.h: Likewise.
44541         * lib/stdint.in.h: Likewise.
44542         * lib/stdio.in.h: Likewise.
44543         * lib/stdlib.in.h: Likewise.
44544         * lib/string.in.h: Likewise.
44545         * lib/strings.in.h: Likewise.
44546         * lib/sys_select.in.h: Likewise.
44547         * lib/sys_socket.in.h: Likewise.
44548         * lib/sys_stat.in.h: Likewise.
44549         * lib/sys_time.in.h: Likewise.
44550         * lib/sysexits.in.h: Likewise.
44551         * lib/time.in.h: Likewise.
44552         * lib/unistd.in.h: Likewise.
44553         * lib/wchar.in.h: Likewise.
44554         * lib/wctype.in.h: Likewise.
44555         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44556         * modules/fchdir (Makefile.am): Likewise.
44557         * modules/fcntl (Makefile.am): Likewise.
44558         * modules/float (Makefile.am): Likewise.
44559         * modules/iconv_open (Makefile.am): Likewise.
44560         * modules/inttypes (Makefile.am): Likewise.
44561         * modules/locale (Makefile.am): Likewise.
44562         * modules/math (Makefile.am): Likewise.
44563         * modules/netinet_in (Makefile.am): Likewise.
44564         * modules/search (Makefile.am): Likewise.
44565         * modules/signal (Makefile.am): Likewise.
44566         * modules/stdarg (Makefile.am): Likewise.
44567         * modules/stdint (Makefile.am): Likewise.
44568         * modules/stdio (Makefile.am): Likewise.
44569         * modules/stdlib (Makefile.am): Likewise.
44570         * modules/string (Makefile.am): Likewise.
44571         * modules/strings (Makefile.am): Likewise.
44572         * modules/sys_select (Makefile.am): Likewise.
44573         * modules/sys_socket (Makefile.am): Likewise.
44574         * modules/sys_stat (Makefile.am): Likewise.
44575         * modules/sys_time (Makefile.am): Likewise.
44576         * modules/sysexits (Makefile.am): Likewise.
44577         * modules/time (Makefile.am): Likewise.
44578         * modules/unistd (Makefile.am): Likewise.
44579         * modules/wchar (Makefile.am): Likewise.
44580         * modules/wctype (Makefile.am): Likewise.
44581         Reported by Reuben Thomas <rrt@sc3d.org>.
44582
44583 2008-08-29  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44586         any more.
44587
44588 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44589
44590         * MODULES.html.sh (Misc): Add bitrotate.
44591
44592         * modules/bitrotate: New file.
44593
44594         * lib/bitrotate.h: New file.
44595
44596         * modules/bitrotate-tests: New file.
44597
44598         * tests/test-bitrotate.c: New file.
44599
44600         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44601         on the bitrotate module.
44602
44603         * lib/arctwo.c: Use new bitrotate module.
44604
44605 2008-08-29  Jim Meyering  <meyering@redhat.com>
44606
44607         bootstrap: merge changes from coreutils
44608         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44609         of copied files.  Remove a kludge, now that this is fixed.
44610         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44611         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44612         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44613
44614 2008-08-29  Bruno Haible  <bruno@clisp.org>
44615
44616         * MODULES.html.sh: Remove --cvs-urls option.
44617
44618 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44619
44620         maint.mk: adjust to file name change
44621         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44622
44623 2008-08-28  Jim Meyering  <meyering@redhat.com>
44624
44625         * modules/getndelim2 (License): Relicense to LGPLv2+.
44626         Approved by Richard Stallman for the version of 1995, and by
44627         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44628
44629 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44630
44631         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44632         dummy if one is not available.  Do not touch them if
44633         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44634         (getc_maybe_unlocked): New.
44635         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44636
44637 2008-08-26  Eric Blake  <ebb9@byu.net>
44638
44639         doc/INSTALL: resync from autoconf
44640         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44641         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44642         moving...
44643         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44644         * INSTALL: Regenerate.
44645         * INSTALL.ISO: New file.
44646         * INSTALL.UTF-8: Likewise.
44647
44648 2008-08-26  Jim Meyering  <meyering@redhat.com>
44649
44650         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44651         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44652         these definitions conditional, so that they may be overridden, too.
44653
44654 2008-08-26  Bruno Haible  <bruno@clisp.org>
44655
44656         Generate INSTALL file variants with prettier quotes.
44657         * doc/Makefile (INSTALL_PRELUDE): New macro.
44658         (INSTALL): Use it.
44659         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44660
44661 2008-08-26  Bruno Haible  <bruno@clisp.org>
44662
44663         Run makeinfo in an English locale.
44664         * doc/Makefile (MAKEINFO): New variable.
44665
44666 2008-08-26  Bruno Haible  <bruno@clisp.org>
44667
44668         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44669         Suggested by Eric Blake.
44670
44671 2008-08-25  Bruno Haible  <bruno@clisp.org>
44672
44673         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44674
44675 2008-08-25  Eric Blake  <ebb9@byu.net>
44676
44677         c-stack: test that stack overflow can be caught
44678         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44679         that platform allows handling stack overflow; at least OS/2 EMX
44680         has sigaltstack, but crashes before transferring control to
44681         handler on stack overflow.
44682         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44683         check for HAVE_STACK_OVERFLOW_HANDLING.
44684         Reported by Elbert Pol.
44685
44686 2008-08-25  Bruno Haible  <bruno@clisp.org>
44687
44688         * doc/posix-functions/strftime.texi: Fix description of strftime
44689         module.
44690
44691 2008-08-24  Bruno Haible  <bruno@clisp.org>
44692
44693         * tests/uniwidth/test-uc_width2.c: New file.
44694         * tests/uniwidth/test-uc_width2.sh: New file.
44695         * modules/uniwidth/width-tests (Files): Add the new files.
44696         (TESTS): Add uniwidth/test-uc_width2.sh.
44697         (TESTS_ENVIRONMENT): New variable.
44698         (check_PROGRAMS): Add test-uc_width2.
44699         (test_uc_width2_SOURCES): New variable.
44700
44701         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44702         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44703         not 0x00AB.
44704         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44705
44706 2008-08-22  Eric Blake  <ebb9@byu.net>
44707
44708         test-lock, test-tls: mention why a test is skipped
44709         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44710         skipped.
44711         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44712
44713         count-one-bits: relax license
44714         * modules/count-one-bits (License): Relicense to LGPLv2+.
44715         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44716
44717 2008-08-22  Andreas Schwab  <schwab@suse.de>
44718
44719         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44720         Remove spurious space in assignment.
44721
44722 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44723
44724         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44725         Paul Eggert <eggert@CS.UCLA.EDU>.
44726
44727 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44728
44729         * modules/gettext: Add m4/threadlib.m4.
44730
44731 2008-08-19  Eric Blake  <ebb9@byu.net>
44732
44733         test-c-stack: fix compilation failure on FreeBSD 5.0
44734         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44735         headers before <sys/resource.h>.
44736         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44737         the bug.
44738         Reported by Nelson H. F. Beebe.
44739
44740         strverscmp: migrate from "strverscmp.h" to <string.h>
44741         * modules/string (Makefile.am): Add new hooks.
44742         * modules/strverscmp (Files): Remove strverscmp.h.
44743         (Depends-on): Add string.
44744         (configure.ac): Add indicator.
44745         (Include): Mention new header.
44746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44747         defaults.
44748         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44749         results.
44750         * lib/strverscmp.h: Delete.
44751         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44752         * tests/test-strverscmp.c (includes): Adjust client.
44753         * lib/check-version.c (includes): Likewise.
44754         * NEWS: Document the change.
44755
44756         strverscmp: add unit test
44757         * modules/strverscmp-tests: New file.
44758         * tests/test-strverscmp.c: Likewise.
44759
44760 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44761
44762         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44763         regarding Windows crypto stuff, from Mono.
44764
44765 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44766
44767         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44768         if present, for intel RND.  Return error on failures.
44769
44770 2008-08-18  Ben Pfaff  <blp@gnu.org>
44771
44772         gitlog-to-changelog: give better diagnostic for failed pipe-open
44773         * build-aux/gitlog-to-changelog: Improve error message: suggest
44774         that the version of Git may be too old.
44775
44776 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44777
44778         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44779         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44780
44781 2008-08-18  Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44784         pthread_in_use().
44785
44786 2008-08-18  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/glthread/threadlib.c: Include <pthread.h>.
44789
44790 2008-08-18  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44793         glthread_recursive_lock_* macros.
44794         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44795         Fix syntax error.
44796
44797 2008-08-18  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/glthread/thread.c: Avoid forcing a context switch right after
44800         thread creation.
44801
44802 2008-08-17  Bruno Haible  <bruno@clisp.org>
44803
44804         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44805         * lib/glthread/thread.h: Provide Win32 specific implementation.
44806         * modules/thread (Files): Add lib/glthread/thread.c.
44807         (Depends-on): Add lock.
44808         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44809
44810 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44811
44812         New module 'yield'.
44813         * modules/yield: New file.
44814         * lib/glthread/yield.h: New file.
44815         * m4/yield.m4: New file.
44816         * MODULES.html.sh (Multithreading): Add yield.
44817
44818 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44819
44820         New module 'thread'.
44821         * modules/thread: New file.
44822         * lib/glthread/thread.h: New file.
44823         * m4/thread.m4: New file.
44824         * MODULES.html.sh (Multithreading): Add thread.
44825
44826 2008-08-17  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/glthread/lock.h: Include <stdlib.h> always.
44829         * lib/glthread/tls.h: Likewise.
44830         * lib/glthread/cond.h: Likewise.
44831
44832 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44833
44834         New module 'cond'.
44835         * modules/cond: New file.
44836         * lib/glthread/cond.h: New file.
44837         * lib/glthread/cond.c: New file.
44838         * m4/cond.m4: New file.
44839         * MODULES.html.sh (Multithreading): Add cond.
44840
44841 2008-08-16  Eric Blake  <ebb9@byu.net>
44842
44843         c-stack: fix regression on Irix 5.3 from 2008-06-21
44844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44845         sa_sigaction...
44846         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44847         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44849         * modules/signal (Makefile.am): Use the value.
44850         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44851         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44852         * doc/posix-headers/signal.texi (signal.h): Document this
44853         portability issue.
44854         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44855         Reported by Tom G. Christensen.
44856
44857 2008-08-17  Bruno Haible  <bruno@clisp.org>
44858
44859         New module 'threadlib'.
44860         * modules/threadlib: New file.
44861         * lib/glthread/threadlib.c: New file, extracted from
44862         lib/glthread/lock.c.
44863         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44864         functions.
44865         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44866         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44867         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44868         macros.
44869         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44870         (gl_DISABLE_THREADS): Remove macro.
44871         * modules/lock (Files): Remove build-aux/config.rpath.
44872         (Depends-on): Remove havelib. Add threadlib.
44873         (configure.ac-early): Remove section.
44874         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44875         * modules/tls (Depends-on): Remove lock. Add threadlib.
44876         (Link): New section, copied from threadlib.
44877         * MODULES.html.sh (Multithreading): Add threadlib.
44878
44879 2008-08-14  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44882         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44883         glthread_rwlock_unlock, glthread_rwlock_destroy,
44884         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44885         glthread_recursive_lock_destroy): Define as macros always.
44886         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44887         glthread_lock_lock.
44888         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44889         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44890         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44891         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44892         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44893         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44894         (glthread_recursive_lock_lock_func): Renamed from
44895         glthread_recursive_lock_lock.
44896         (glthread_recursive_lock_unlock_func): Renamed from
44897         glthread_recursive_lock_unlock.
44898         (glthread_recursive_lock_destroy_func): Renamed from
44899         glthread_recursive_lock_destroy.
44900
44901 2008-08-14  Bruno Haible  <bruno@clisp.org>
44902
44903         * lib/glthread/lock.h: Renamed from lib/lock.h.
44904         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44905         * lib/glthread/tls.h: Renamed from lib/tls.h.
44906         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44907         * lib/fstrcmp.c: Update includes.
44908         * lib/strsignal.c: Update includes.
44909         * modules/lock (Files, Makefile.am): Update.
44910         (Include): Change to "glthread/lock.h".
44911         * modules/tls (Files, Makefile.am): Update.
44912         (Include): Change to "glthread/tls.h".
44913         * tests/test-lock.c: Update includes.
44914         * tests/test-tls.c: Update includes.
44915         * NEWS: Mention the renamed header files.
44916
44917 2008-08-11  Jim Meyering  <meyering@redhat.com>
44918
44919         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44920
44921 2008-08-11  Eric Blake  <ebb9@byu.net>
44922
44923         test-c-stack: avoid C99-ism
44924         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44925         before statement.
44926         Reported by Alain Guibert.
44927
44928 2008-08-10  Jim Meyering  <meyering@redhat.com>
44929
44930         ensure that return value of uinttostr et al are not ignored
44931         * lib/inttostr.h (__GNUC_PREREQ): Define.
44932         (__attribute_warn_unused_result__): Define.
44933         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44934
44935 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44936
44937         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44938         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44939
44940 2008-08-07  Jim Meyering  <meyering@redhat.com>
44941
44942         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44943
44944         * modules/mkstemp (License): Relicense under LGPLv2+.
44945         * modules/tempname (License): Likewise.
44946
44947 2008-08-06  Bruno Haible  <bruno@clisp.org>
44948
44949         * lib/poll.c (poll): Further micro-optimization.
44950
44951 2008-08-06  Jim Meyering  <meyering@redhat.com>
44952
44953         inet_pton.c: use locale-independent tolower
44954         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44955         (inet_pton6): Use c_tolower rather than tolower.
44956         * modules/inet_pton (Depends-on): Add c-ctype.
44957
44958 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44959
44960         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44961         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44962
44963 2008-08-06  Jim Meyering  <meyering@redhat.com>
44964
44965         * modules/inet_pton (License): Relicense under LGPLv2+.
44966
44967 2008-08-03  Bruno Haible  <bruno@clisp.org>
44968
44969         Additional non-aborting API for lock and tls.
44970         * lib/lock.h: Include <errno.h>.
44971         (glthread_lock_init): New macro/function.
44972         (gl_lock_init): Define as wrapper around glthread_lock_init.
44973         (glthread_lock_lock): New macro/function.
44974         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44975         (glthread_lock_unlock): New macro/function.
44976         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44977         (glthread_lock_destroy): New macro/function.
44978         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44979         (glthread_rwlock_init): New macro/function.
44980         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44981         (glthread_rwlock_rdlock): New macro/function.
44982         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44983         (glthread_rwlock_wrlock): New macro/function.
44984         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44985         (glthread_rwlock_unlock): New macro/function.
44986         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44987         (glthread_rwlock_destroy): New macro/function.
44988         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44989         (glthread_recursive_lock_init): New macro/function.
44990         (gl_recursive_lock_init): Define as wrapper around
44991         glthread_recursive_lock_init.
44992         (glthread_recursive_lock_lock): New macro/function.
44993         (gl_recursive_lock_lock): Define as wrapper around
44994         glthread_recursive_lock_lock.
44995         (glthread_recursive_lock_unlock): New macro/function.
44996         (gl_recursive_lock_unlock): Define as wrapper around
44997         glthread_recursive_lock_unlock.
44998         (glthread_recursive_lock_destroy): New macro/function.
44999         (gl_recursive_lock_destroy): Define as wrapper around
45000         glthread_recursive_lock_destroy.
45001         (glthread_once): New macro/function.
45002         (gl_once): Define as wrapper around glthread_once.
45003         Update function declarations.
45004         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45005         glthread_rwlock_init. Return error code.
45006         (glthread_rwlock_rdlock_multithreaded): Renamed from
45007         glthread_rwlock_rdlock. Return error code.
45008         (glthread_rwlock_wrlock_multithreaded): Renamed from
45009         glthread_rwlock_wrlock. Return error code.
45010         (glthread_rwlock_unlock_multithreaded): Renamed from
45011         glthread_rwlock_unlock. Return error code.
45012         (glthread_rwlock_destroy_multithreaded): Renamed from
45013         glthread_rwlock_destroy. Return error code.
45014         (glthread_recursive_lock_init_multithreaded): Renamed from
45015         glthread_recursive_lock_init. Return error code.
45016         (glthread_recursive_lock_lock_multithreaded): Renamed from
45017         glthread_recursive_lock_lock. Return error code.
45018         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45019         glthread_recursive_lock_unlock. Return error code.
45020         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45021         glthread_recursive_lock_destroy. Return error code.
45022         (glthread_once_call): Make static.
45023         (glthread_once_multithreaded): Renamed from glthread_once.
45024         * lib/tls.h: Include <errno.h>.
45025         (glthread_tls_key_init): New macro/function.
45026         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45027         (glthread_tls_set): New macro/function.
45028         (gl_tls_set): Define as wrapper around glthread_tls_set.
45029         (glthread_tls_key_destroy): New macro/function.
45030         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45031         Update function declarations.
45032         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45033         glthread_tls_get.
45034         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45035
45036 2008-08-04  Eric Blake  <ebb9@byu.net>
45037
45038         gnumakefile: use space, not TAB, outside of targets
45039         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45040
45041 2008-08-02  Jim Meyering  <meyering@redhat.com>
45042
45043         getdate.y: avoid locale-dependent date parsing failure
45044         In Turkish locales, getdate would fail to recognize keywords
45045         containing a lowercase "i".  The solution is not to rely on
45046         locale-sensitive case-conversion.
45047         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45048         (lookup_word): Use c_toupper in place of toupper.
45049         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45050         Reported by Vefa Bicakci <bicave@superonline.com> in
45051         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45052         * modules/getdate (Depends-on): Add c-ctype.
45053
45054 2008-08-02  Bruno Haible  <bruno@clisp.org>
45055
45056         * gnulib-tool (func_import): When updating or creating a .gitignore
45057         file, prepend each added line with a slash, and ignore leading slashes
45058         from the existing lines.
45059         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45060
45061 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45062
45063         Portability fix for GNU make 3.79.1.
45064         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45065         versions do not understand.
45066
45067 2008-08-01  Bruno Haible  <bruno@clisp.org>
45068
45069         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45070         * tests/test-isnanf.h (zero): New variable.
45071         (main): Avoid literal -0.0f.
45072         * tests/test-isnand.h (zero): New variable.
45073         (main): Avoid literal -0.0.
45074         * tests/test-isnanl.h (zero): New variable.
45075         (main): Avoid literal -0.0L.
45076         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45077         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45078         -0.0, -0.0L.
45079         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45080         (test_signbitd): Avoid literal -0.0.
45081         (test_signbitl): Avoid literal -0.0L.
45082         * tests/test-ceilf1.c (zero): New variable.
45083         (main): Avoid literal -0.0f.
45084         * tests/test-ceill.c (zero): New variable.
45085         (main): Avoid literal -0.0L.
45086         * tests/test-floorf1.c (zero): New variable.
45087         (main): Avoid literal -0.0f.
45088         * tests/test-floorl.c (zero): New variable.
45089         (main): Avoid literal -0.0L.
45090         * tests/test-roundf1.c (zero): New variable.
45091         (main): Avoid literal -0.0f.
45092         * tests/test-round1.c (zero): New variable.
45093         (main): Avoid literal -0.0.
45094         * tests/test-roundl.c (zero): New variable.
45095         (main): Avoid literal -0.0L.
45096         * tests/test-truncf1.c (zero): New variable.
45097         (main): Avoid literal -0.0f.
45098         * tests/test-trunc1.c (zero): New variable.
45099         (main): Avoid literal -0.0.
45100         * tests/test-truncl.c (zero): New variable.
45101         (main): Avoid literal -0.0L.
45102         * tests/test-frexp.c (zero): New variable.
45103         (main): Avoid literal -0.0.
45104         * tests/test-frexpl.c (zero): New variable.
45105         (main): Avoid literal -0.0L.
45106         * tests/test-ldexpl.c (zero): New variable.
45107         (main): Avoid literal -0.0L.
45108         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45109         (zerod, zerol): New variables.
45110         (test_function): Avoid literals -0.0, -0.0L.
45111         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45112         (zerod, zerol): New variables.
45113         (test_function): Avoid literals -0.0, -0.0L.
45114         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45115         (zerod, zerol): New variables.
45116         (test_function): Avoid literals -0.0, -0.0L.
45117         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45118         (zerod, zerol): New variables.
45119         (test_function): Avoid literals -0.0, -0.0L.
45120         * tests/test-strtod.c (zero): New variable.
45121         (main): Avoid literal -0.0.
45122         Reported by Jonathan C. Patschke <jp@centtech.com>.
45123
45124 2008-07-31  Jim Meyering  <meyering@redhat.com>
45125
45126         sha256.h: correct definition of SHA224_DIGEST_SIZE
45127         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45128         Reported by Paulie Pena IV <paulie4@gmail.com>.
45129         Define as 224 / 8, rather than as a literal.
45130         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45131         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45132         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45133
45134 2008-07-31  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45137         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45138         Reported by Jonathan Patschke <jp@centtech.com>.
45139
45140 2008-07-31  Bruno Haible  <bruno@clisp.org>
45141
45142         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45143         Reported by Paolo Bonzini <bonzini@gnu.org>.
45144
45145 2008-07-30  Eric Blake  <ebb9@byu.net>
45146
45147         test-strtod: allow compilation without -lm
45148         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45149         Reported by Dennis Clarke <blastwave@gmail.com>.
45150
45151 2008-07-28  Jim Meyering  <meyering@redhat.com>
45152
45153         bootstrap: work also when there are no .po files in po/
45154         * build-aux/bootstrap (update_po_files): Complete the change
45155         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45156
45157 2008-07-27  Jim Meyering  <meyering@redhat.com>
45158
45159         * users.txt: Add zile.
45160
45161 2008-07-26  Ben Pfaff  <blp@gnu.org>
45162
45163         Add missing dependencies on new m4/exponent[fdl].m4 files.
45164         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45165         * modules/isnand-nolibm: Add m4/exponentd.m4.
45166         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45167         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45168         m4/isnan[fdl].m4, because the macros actually used moved.
45169         Reported by Jim Meyering.
45170
45171 2008-07-14  Ben Pfaff  <blp@gnu.org>
45172
45173         Add isinf module.
45174         * lib/isinf.c: New file.
45175         * lib/math.in.h: Define isinf macro if we have decided to replace
45176         it.
45177         * m4/isinf.m4: New file.
45178         * m4/math_h.m4: Initialize and substitute variables for isinf
45179         module.
45180         * modules/isinf: New file.
45181         * modules/isinf-tests: New file.
45182         * modules/math: Add substitutions for new module.
45183         * tests/test-isinf.c: New file.
45184         * doc/posix-functions/isinf.texi: Mention new module.
45185         * MODULES.html.sh: Mention new module.
45186
45187 2008-07-14  Ben Pfaff  <blp@gnu.org>
45188
45189         Factor out some macros for use by additional modules.
45190         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45191         exponentf.m4.
45192         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45193         exponentd.m4.
45194         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45195         file exponentl.m4.
45196         * m4/exponentf.m4: New file.
45197         * m4/exponentd.m4: New file.
45198         * m4/exponentl.m4: New file.
45199         * modules/isnanf: Use new file m4/exponentf.m4.
45200         * modules/isnand: Use new file m4/exponentd.m4.
45201         * modules/isnanl: Use new file m4/exponentl.m4.
45202
45203 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45204
45205         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45206         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45207         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45208         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45209
45210         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45211         readlink on platforms without PATH_MAX.
45212
45213 2008-07-21  Eric Blake  <ebb9@byu.net>
45214
45215         Warn, not fail, on stale version.
45216         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45217
45218         Don't allow installation with stale devel version number.
45219         * top/GNUmakefile (_is-install-target): New macro.
45220         (_curr-ver): Forbid installation with stale version number.
45221
45222 2008-07-20  Bruno Haible  <bruno@clisp.org>
45223
45224         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45225         TESTS_ENVIRONMENT.
45226         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45227
45228 2008-07-20  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/c-stack.h (c_stack_action): Add documentation.
45231         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45232
45233 2008-07-20  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45236         * modules/readlink (License): Likewise.
45237
45238 2008-07-17  Eric Blake  <ebb9@byu.net>
45239
45240         * modules/c-stack (Link): Fix typo.
45241
45242         Make c-stack use libsigsegv, when available.
45243         * modules/c-stack (Depends-on): Add libsigsegv.
45244         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45245         needed.
45246         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45247         (segv_handler, overflow_handler, c_stack_action)
45248         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45249         implementation when libsigsegv is available, but only when using
45250         the library is necessary.
45251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45252         comment, explaining why XSI check fails on Linux.
45253         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45254         * tests/test-c-stack2.sh: Tweak skip message.
45255         * NEWS: Document new link-time requirements.
45256
45257 2008-07-16  Eric Blake  <ebb9@byu.net>
45258
45259         c-stack: Expose false positives when not using libsigsegv.
45260         * modules/c-stack-tests (Files): Expand test.
45261         * tests/test-c-stack.c (main): Add means to conditionally trigger
45262         non-overflow SIGSEGV.
45263         * tests/test-c-stack2.sh: New file.
45264
45265 2008-07-14  Bruno Haible  <bruno@clisp.org>
45266
45267         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45268         Reported by Eric Blake.
45269
45270 2008-07-14  Sam Steingold  <sds@gnu.org>
45271             Bruno Haible  <bruno@clisp.org>
45272
45273         New module libsigsegv.
45274         * modules/libsigsegv: New file.
45275         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45276         modifications.
45277         * MODULES.html.sh (Signal handling): New section.
45278
45279 2008-07-14  Bruno Haible  <bruno@clisp.org>
45280
45281         * modules/unictype/ctype-* (Description): Add the word "function".
45282         Improves the resulting doc in MODULES.html.
45283
45284 2008-07-12  Ben Pfaff  <blp@gnu.org>
45285
45286         Add longlong module.
45287         * modules/longlong: New file.
45288
45289 2008-07-12  Bruno Haible  <bruno@clisp.org>
45290
45291         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45292         to empty.
45293
45294 2008-07-10  Ben Pfaff  <blp@gnu.org>
45295
45296         Add isnan module.
45297         * doc/posix-functions/isnan.texi: Mention new module.
45298         * lib/math.in.h: Define isnan macro if we have decided to replace
45299         it.
45300         * m4/isnan.m4: New file.
45301         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45302         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45303         also.
45304         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45305         redundancy.
45306         * m4/math_h.m4: Initialize and substitute variables for isnan
45307         module.
45308         * modules/isnan: New file.
45309         * modules/isnan-tests: New file.
45310         * modules/math: Add substitutions for new module.
45311         * tests/test-isnan.c: New file.
45312         * MODULES.html.sh: Mention new module.
45313
45314 2008-07-10  Ben Pfaff  <blp@gnu.org>
45315
45316         Add isnanf module.
45317         * lib/isnanf.m4: New file.
45318         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45319         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45320         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45321         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45322         * modules/isnanf: New file.
45323         * modules/isnanf-tests: New file.
45324         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45325         files.
45326         * tests/test-isnanf-nolibm.c: factored most of its contents into
45327         new file tests/test-isnanf.h.
45328         * tests/test-isnanf.h: New file.
45329         * tests/test-isnanf.c: New file.
45330         * MODULES.html.sh: Mention new module.
45331         * doc/glibc-functions/isnanf.texi: Mention new module.
45332
45333 2008-07-10  Ben Pfaff  <blp@gnu.org>
45334
45335         Add isnand module.
45336         * lib/isnand.h: New file.
45337         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45338         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45339         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45340         functionality also.
45341         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45342         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45343         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45344         * modules/isnand: New file.
45345         * modules/isnand-tests: New file.
45346         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45347         files.
45348         * tests/test-isnand-nolibm.c: factored most of its contents into
45349         new file tests/test-isnand.h.
45350         * tests/test-isnand.h: New file.
45351         * tests/test-isnand.c: New file.
45352         * MODULES.html.sh: Mention new module.
45353
45354 2008-07-10  Ben Pfaff  <blp@gnu.org>
45355
45356         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45357         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45358         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45359         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45360         * modules/isnanf-nolibm: Update references to renamed files.
45361         * modules/isnand-nolibm: Likewise.
45362         * modules/isnanf-nolibm-tests: Likewise.
45363         * modules/isnand-nolibm-tests: Likewise.
45364         * lib/frexp.c: Likewise.
45365         * lib/isfinite.c: Likewise.
45366         * lib/signbitd.c: Likewise.
45367         * lib/signbitf.c: Likewise.
45368         * lib/vasnprintf.c: Likewise.
45369         * tests/test-ceilf1.c: Likewise.
45370         * tests/test-ceilf2.c: Likewise.
45371         * tests/test-floorf1.c: Likewise.
45372         * tests/test-floorf2.c: Likewise.
45373         * tests/test-frexp.c: Likewise.
45374         * tests/test-round1.c: Likewise.
45375         * tests/test-round2.c: Likewise.
45376         * tests/test-roundf1.c: Likewise.
45377         * tests/test-strtod.c: Likewise.
45378         * tests/test-trunc1.c: Likewise.
45379         * tests/test-trunc2.c: Likewise.
45380         * tests/test-truncf1.c: Likewise.
45381         * tests/test-truncf2.c: Likewise.
45382         * NEWS: Mention the renamed header files.
45383
45384 2008-07-11  Jim Meyering  <meyering@redhat.com>
45385
45386         vc-list-files: make the last-resort awk code more portable
45387         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45388         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45389         does not support it.
45390
45391 2008-07-10  Eric Blake  <ebb9@byu.net>
45392
45393         Work with tar's bootstrap.
45394         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45395         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45396         an m4 comment.
45397
45398 2008-07-09  Jim Meyering  <meyering@redhat.com>
45399
45400         posix-shell.m4: fix typo that made this test malfunction
45401         * m4/posix-shell.m4: Remove capitalization in variable name.
45402
45403 2008-07-08  Bruno Haible  <bruno@clisp.org>
45404
45405         * m4/onceonly.m4: Update comments.
45406         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45407
45408 2008-07-04  Jim Meyering  <meyering@redhat.com>
45409
45410         * users.txt: Add vc-dwim.
45411         (bison, coreutils): Use the gitweb URL.
45412
45413 2008-07-03  Jim Meyering  <meyering@redhat.com>
45414
45415         * users.txt: Add libffcall.  From Sam Steingold.
45416
45417 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45418
45419         getdate.y: do not ignore TZ with relative day, month or year offset
45420         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45421         relative-date-handling, since otherwise, the latter would clobber the
45422         sole output (an updated Start value) of the tz-handling block.
45423         * tests/test-getdate.c: Tests for the fix
45424
45425 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45426
45427         Recognize 'foo_LIBRARIES += libgnu.a'.
45428         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45429         makefile snippet has already specified an installation location,
45430         also using '+='.
45431
45432 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45433
45434         getdate.y: factor out common actions
45435         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45436         Use them in place of open-coded actions.
45437
45438 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45439
45440         Add self-test for getdate module.
45441         * modules/getdate-tests: New file.
45442         * tests/test-getdate.c: New file.
45443
45444 2008-06-29  Bruno Haible  <bruno@clisp.org>
45445
45446         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45447         .gitignore.
45448         Reported by Sylvain Beucler <beuc@beuc.net>.
45449
45450 2008-06-29  Bruno Haible  <bruno@clisp.org>
45451
45452         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45453         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45454
45455 2008-06-29  Bruno Haible  <bruno@clisp.org>
45456
45457         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45458         EXTRA_DIST.
45459         Reported by Sylvain Beucler <beuc@beuc.net>.
45460
45461 2008-06-26  Jim Meyering  <meyering@redhat.com>
45462
45463         make several modules depend on the "open" module
45464         This provides slightly increased consistency when opening-for-write
45465         the name of a non-directory spelled with a trailing slash.
45466         * modules/chdir-safer: Likewise.
45467         * modules/chown: Likewise.
45468         * modules/clean-temp: Likewise.
45469         * modules/copy-file: Likewise.
45470         * modules/fchdir: Likewise.
45471         * modules/fcntl-safer: Likewise.
45472         * modules/pipe: Likewise.
45473         * modules/utime: Likewise.
45474         Prompted by Eric Blake and Bruno Haible.
45475
45476 2008-06-24  Andreas Schwab  <schwab@suse.de>
45477
45478         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45479         literals can be used as initializers for global variables.
45480
45481 2008-06-23  Eric Blake  <ebb9@byu.net>
45482
45483         Make gnulib-cache.m4 easier to diff.
45484         * gnulib-tool (func_import): Allow newlines when reading cached
45485         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45486
45487 2008-06-23  Bruno Haible  <bruno@clisp.org>
45488
45489         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45490         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45491         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45492         m4/signalblocking.m4.
45493         (gl_PREREQ_SIGACTION): Don't invoke it.
45494         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45495         gl_PREREQ_SIG_HANDLER_H.
45496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45497         Don't check for sigaction here.
45498
45499 2008-06-23  Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45502         (install_handlers): Don't set the SA_RESETHAND flag.
45503
45504 2008-06-23  Bruno Haible  <bruno@clisp.org>
45505
45506         * m4/sigaction.m4: Comment fixes.
45507         * lib/signal.in.h: Likewise.
45508
45509 2008-06-23  Eric Blake  <ebb9@byu.net>
45510
45511         Fix typo.
45512         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45513
45514         Avoid SA_ namespace.
45515         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45516         Reported by Ralf Wildenhues.
45517
45518         Avoid test failure due to SA_RESTORER.
45519         * tests/test-sigaction.c (SA_MASK): New macro.
45520         (main): Avoid failing due to extension flags being set.
45521         Reported by Jim Meyering.
45522
45523         Revert use of sig-handler.h in sigprocmask.c.
45524         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45525         it requires the existence of struct sigaction.
45526         * lib/sigprocmask.c (handler_t): Restore typedef.
45527         (rpl_signal, old_handlers): Use local type.
45528
45529 2008-06-22  Bruno Haible  <bruno@clisp.org>
45530
45531         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45532         conditionally.
45533         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45534
45535 2008-06-22  Bruno Haible  <bruno@clisp.org>
45536
45537         * doc/posix-functions/siginterrupt.texi: Move note.
45538
45539         * lib/signal.in.h (SA_RESTART): New macro.
45540         * lib/sigaction.c: Update comment.
45541
45542         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45543
45544         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45545         (gl_PREREQ_SIGPROCMASK): Invoke it.
45546         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45547
45548         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45549
45550         * lib/sigprocmask.c: Update a comment.
45551
45552 2008-06-21  Eric Blake  <ebb9@byu.net>
45553
45554         Use sigaction module rather than signal().
45555         * modules/c-stack (Depends-on): Add sigaction.
45556         * modules/fatal-signal (Depends-on): Likewise.
45557         * modules/nanosleep (Depends-on): Likewise.
45558         * modules/sigprocmask (Files): Add sig-handler.h.
45559         * modules/sigaction (Files): Likewise.
45560         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45561         Eggert.
45562         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45563         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45564         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45565         (init_fatal_signals): Likewise.
45566         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45567         (siginterrupt): Delete fallback.
45568         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45569         instead.
45570         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45571         siginterrupt.
45572
45573         New module sigaction, for mingw.
45574         * modules/sigaction: New module...
45575         * modules/sigaction-tests: ...and its test.
45576         * m4/sigaction.m4: New file.
45577         * lib/sigaction.c: Likewise.
45578         * tests/test-sigaction.c: Likewise.
45579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45580         * modules/signal (Makefile.am): Likewise.
45581         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45582         needed.
45583         * doc/posix-headers/signal.texi (signal.h): Mention provided
45584         types.
45585         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45586         that sigaction is preferable.
45587         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45588         module.
45589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45590         sigaction.
45591
45592         Improve robustness of sigprocmask by overriding signal.
45593         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45594         is in use.
45595         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45596         (SIGKILL, SIGSTOP): Provide fallbacks.
45597         (rpl_signal): Implement.
45598         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45599         signal can be called inside handlers.
45600
45601         Fix nanosleep module on mingw.
45602         * modules/nanosleep (Depends-on): Add sys_select.
45603         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45604
45605         Fix licensing of sigprocmask.
45606         * modules/raise (License): Relicense as LGPL.
45607
45608 2008-06-21  Bruno Haible  <bruno@clisp.org>
45609
45610         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45611         result if it contains question marks.
45612         Reported by Michael Geng <linux@michaelgeng.de>.
45613
45614 2008-06-19  Bruno Haible  <bruno@clisp.org>
45615
45616         Fix CVS-ism.
45617         * doc/gnulib.texi: Include updated-stamp.texi.
45618         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45619         (updated-stamp.texi): New rule.
45620         (gnulib.info): Depend on it.
45621         * doc/.gitignore: Add updated-stamp.texi.
45622         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45623
45624 2008-06-19  Bruno Haible  <bruno@clisp.org>
45625
45626         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45627         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45628
45629 2008-06-19  Eric Blake  <ebb9@byu.net>
45630
45631         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45632         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45633         Reported by Stepan Kasal.
45634
45635 2008-06-18  Bruno Haible  <bruno@clisp.org>
45636
45637         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45638         Reported by Eric Blake.
45639
45640 2008-06-18  Eric Blake  <ebb9@byu.net>
45641
45642         Work around cygwin 1.5.25 strsignal bug.
45643         * tests/test-strsignal.c: Allow for const char *.
45644         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45645
45646 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45647
45648         * users.txt: Update URL to article and add author/date
45649         information.
45650
45651 2008-06-17  Bruno Haible  <bruno@clisp.org>
45652
45653         New macro gl_DISABLE_THREADS.
45654         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45655         if the user did not pass --enable-threads or --disable-threads option.
45656         (gl_DISABLE_THREADS): New macro.
45657         Reported by Eric Blake <ebb9@byu.net>.
45658
45659 2008-06-17  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45662         when the macro ignores it.
45663         Based on a patch by Eric Blake <ebb9@byu.net>.
45664
45665 2008-06-17  Bruno Haible  <bruno@clisp.org>
45666
45667         * modules/tls (License): Change to LGPLv2+.
45668         Reported by Eric Blake.
45669
45670 2008-06-17  Eric Blake  <ebb9@byu.net>
45671
45672         Simplify c-stack prerequisites.
45673         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45675         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45676         check.
45677         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45678         <sys/resource.h>.
45679
45680         Move c-stack test into testsuite.
45681         * modules/c-stack-tests: New file.
45682         * lib/c-stack.c [DEBUG]: Move test program...
45683         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45684         fail test if sigaltstack is lacking.
45685         * tests/test-c-stack.sh: New driver file.
45686
45687 2008-06-16  Eric Blake  <ebb9@byu.net>
45688
45689         Use raise module consistently.
45690         * modules/fatal-signal (Depends-on): Add raise.
45691         * modules/sigprocmask (Depends-on): Likewise.
45692         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45693         * lib/sigprocmask.c (sigprocmask): Likewise.
45694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45695         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45696
45697         Fix compliance bug in sigpending.
45698         * lib/sigprocmask.c (sigpending): Return pending array via
45699         parameter, not return value.
45700
45701 2008-06-14  Eric Blake  <ebb9@byu.net>
45702
45703         Improve obstack-printf test code.
45704         * tests/test-obstack-printf.c (test_function): Fix comment, and
45705         simplify usage of obstack_* in macros.  Add a test for coverage.
45706         Reported by Bruno Haible.
45707
45708 2008-06-14  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45711         array size as a constant, not as a const variable.
45712         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45713         AC_USE_SYSTEM_EXTENSIONS.
45714         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45715         Test whether the obstack_printf function actually exists.
45716         * modules/obstack-printf (Depends-on): Add extensions.
45717         (Include): Remove obstack.h.
45718         * modules/obstack-printf-posix (Depends-on): Add extensions.
45719         (Include): Remove obstack.h.
45720
45721 2008-06-13  Eric Blake  <ebb9@byu.net>
45722
45723         Add obstack-printf and obstack-printf-posix modules.
45724         * modules/obstack-printf: New file.
45725         * modules/obstack-printf-posix: Likewise.
45726         * MODULES.html.sh (Misc): Mention them.
45727         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45728         Likewise.
45729         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45730         Likewise.
45731         * modules/stdio (Makefile.am): Accomodate new modules.
45732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45733         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45734         Declare.
45735         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45736         functions.
45737         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45738         (gl_REPLACE_OBSTACK_PRINTF): New macros
45739         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45740         * tests/test-obstack-printf.c: New file.
45741         * modules/obstack-printf-tests: Likewise.
45742         * modules/obstack-printf-posix-tests: Likewise.
45743
45744 2008-06-11  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45747         * lib/open.c: Include errno.h.
45748         (open): Fail when attempting to write to a file that has a trailing
45749         slash.
45750         * tests/test-open.c (main): Test against trailing slash bug.
45751         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45752
45753 2008-06-10  Bruno Haible  <bruno@clisp.org>
45754
45755         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45756         for $? to work inside the trap command, with various /bin/sh-s.
45757         * tests/test-vc-list-files-cvs.sh: Likewise.
45758
45759 2008-06-10  Bruno Haible  <bruno@clisp.org>
45760
45761         * lib/acl-internal.h: Don't include gettext.h here.
45762         * lib/set-mode-acl.c: Include gettext.h here.
45763         * lib/copy-acl.c: Likewise.
45764
45765 2008-06-10  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45768         * lib/wait-process.c (wait_subprocess): Likewise.
45769         * lib/execute.h (execute): Add termsigp argument.
45770         * lib/execute.c (execute): Likewise.
45771         * lib/csharpcomp.c (compile_csharp_using_pnet,
45772         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45773         * lib/csharpexec.c (execute_csharp_using_pnet,
45774         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45775         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45776         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45777         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45778         is_jikes_present): Update.
45779         * lib/javaexec.c (execute_java_class): Update.
45780         * lib/javaversion.c (execute_and_read_line): Update.
45781         * NEWS: Document the changes.
45782         Reported by Eric Blake.
45783
45784 2008-06-10  Eric Blake  <ebb9@byu.net>
45785
45786         Add missing include.
45787         * tests/test-strstr.c (includes): Add <signal.h>.
45788         * tests/test-strcasestr.c (includes): Likewise.
45789         * tests/test-memmem.c (includes): Likewise.
45790
45791 2008-06-10  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/wait-process.c (wait_subprocess): Add an assertion.
45794
45795 2008-06-10  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45798
45799 2008-06-10  Bruno Haible  <bruno@clisp.org>
45800
45801         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45802         using alarm().
45803         * tests/test-strcasestr.c (main): Likewise.
45804         * tests/test-strstr.c (main): Likewise.
45805
45806 2008-06-09  Bruno Haible  <bruno@clisp.org>
45807
45808         Work around the Solaris 10 ACE ACLs ABI change.
45809         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45810         declare if ACL_NO_TRIVIAL is present.
45811         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45812         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45813         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45814         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45815         define if ACL_NO_TRIVIAL is present.
45816         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45817         and use the current ABI.
45818         (file_has_acl): Use same #if condition as elsewhere.
45819         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45820         in use, and use the current ABI.
45821         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45822         Reported by Jim Meyering.
45823
45824 2008-06-09  Eric Blake  <ebb9@byu.net>
45825
45826         Work around environments that (stupidly) ignore SIGALRM.
45827         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45828         before using alarm().
45829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45831         Reported by Ian Beckwith <ianb@erislabs.net>.
45832
45833         Produce autobuild blurb earlier in log.
45834         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45835
45836 2008-06-09  Jim Meyering  <meyering@redhat.com>
45837         and OndÅ™ej Vašík  <ovasik@redhat.com>
45838
45839         utimens.c: correct kernel bug work-around
45840         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45841         failure, not success, and the kernel bug we're trying to work
45842         around affects not just the utimensat call, but also the fallback
45843         futimens call.
45844         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45845         not success.
45846         [HAVE_FUTIMENS]: Use the same work-around, here.
45847
45848 2008-06-09  Jim Meyering  <meyering@redhat.com>
45849
45850         add more guards around definition of ACE_-related code
45851         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45852         ALLOW and ACE_OWNER are also defined.
45853
45854 2008-06-08  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/acl-internal.h: Add me as co-author.
45857         * lib/file-has-acl.c: Likewise.
45858         * lib/set-mode-acl.c: Likewise.
45859         * lib/copy-acl.c: Likewise.
45860
45861 2008-06-08  Bruno Haible  <bruno@clisp.org>
45862
45863         Add support for AIX ACLs.
45864         * lib/acl-internal.h (acl_nontrivial): New declaration.
45865         * lib/file-has-acl.c (acl_nontrivial): New function.
45866         (file_has_acl): Add implementation using AIX 4 ACL API.
45867         * lib/set-mode-acl.c (qset_acl): Likewise.
45868         * lib/copy-acl.c (qcopy_acl): Likewise.
45869
45870 2008-06-08  Bruno Haible  <bruno@clisp.org>
45871
45872         Add support for HP-UX ACLs.
45873         * lib/acl-internal.h (acl_nontrivial): New declaration.
45874         * lib/file-has-acl.c (acl_nontrivial): New function.
45875         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45876         * lib/set-mode-acl.c (qset_acl): Likewise.
45877         * lib/copy-acl.c (qcopy_acl): Likewise.
45878
45879 2008-06-08  Bruno Haible  <bruno@clisp.org>
45880
45881         Add support for Cygwin ACLs.
45882         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45883         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45884         the chmod_or_fchmod call.
45885         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45886
45887 2008-06-08  Bruno Haible  <bruno@clisp.org>
45888
45889         Fix bug with setuid modes in Solaris 10+ code.
45890         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45891         succeeded, when the mode contains some special bits.
45892
45893 2008-06-08  Bruno Haible  <bruno@clisp.org>
45894
45895         Add support for Solaris 7..10 ACLs.
45896         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45897         declarations.
45898         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45899         functions.
45900         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45901         * lib/set-mode-acl.c (qset_acl): Likewise.
45902         * lib/copy-acl.c (qcopy_acl): Likewise.
45903
45904 2008-06-08  Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45907         declaration.
45908         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45909         (acl_access_nontrivial): Remove MacOS X case.
45910         (file_has_acl): Use acl_extended_nontrivial.
45911         * lib/copy-acl.c (qcopy_acl): Likewise.
45912
45913 2008-06-08  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45916
45917 2008-06-08  Jim Meyering  <meyering@redhat.com>
45918
45919         * modules/acl (Maintainer): Add Bruno Haible.
45920
45921 2008-06-07  Bruno Haible  <bruno@clisp.org>
45922
45923         Improve support for Tru64 ACLs.
45924         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45925         ACL on OSF/1.
45926
45927 2008-06-07  Bruno Haible  <bruno@clisp.org>
45928
45929         Add support for MacOS X ACLs.
45930         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45931         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45932         * lib/set-mode-acl.c (qset_acl): Likewise.
45933         * lib/copy-acl.c (qcopy_acl): Likewise.
45934
45935 2008-06-07  Bruno Haible  <bruno@clisp.org>
45936
45937         Fix memory leak introduced on 2008-05-22.
45938         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45939         use.
45940
45941 2008-06-07  Bruno Haible  <bruno@clisp.org>
45942
45943         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45944         to construct an empty ACL.
45945
45946 2008-06-07  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45949         precisely.
45950         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45951
45952 2008-06-07  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45955         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45956
45957 2008-06-07  Bruno Haible  <bruno@clisp.org>
45958
45959         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45960         regardless of POSIX.
45961         * doc/posix-functions/_longjmp.texi: Likewise.
45962         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45963         SystemV platform in this case.
45964
45965 2008-06-06  Eric Blake  <ebb9@byu.net>
45966
45967         Document abort() bugs.
45968         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45969
45970         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45971         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45972         sigsetjmp.
45973         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45974         siglongjmp, but only as a macro.
45975         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45976         is obsolete.
45977         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45978
45979         Tweak documentation to cover cygwin argz bugs.
45980         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45981         argz bug fix; no code change needed since no cygwin releases
45982         occurred between the last fix and the bug being tested.
45983         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45984         module and recently fixed cygwin bugs.
45985         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45986         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45987         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45988         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45989         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45990         Likewise.
45991         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45992         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45993         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45994         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45995         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45996         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45997         Likewise.
45998
45999         Avoid gcc warning on cygwin.
46000         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46001         !ACL_NO_TRIVIAL]: Avoid unused variable.
46002
46003 2008-06-05  Eric Blake  <ebb9@byu.net>
46004
46005         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46006         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46007         git-version-gen fails to come up with a version.
46008         Reported by Simon Josefsson.
46009
46010 2008-06-05  Jim Meyering  <meyering@redhat.com>
46011             Paul Eggert  <eggert@cs.ucla.edu>
46012
46013         utimens.c: work around a probable Linux kernel bug
46014         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46015         appears to be a kernel bug that causes utimensat to return 280
46016         instead of 0, indicating success.
46017
46018 2008-06-04  Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46021         2008-06-01 commit.
46022
46023 2008-06-04  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46026         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46027         (file_has_acl): Use it. Save errno afterwards.
46028         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46029
46030 2008-06-03  Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46033         draft code. Simplify #ifs.
46034         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46035         Put Solaris code after POSIX-draft code. Fix comments regarding
46036         Solaris 10, HP-UX. Mention Cygwin.
46037         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46038
46039 2008-06-03  Eric Blake  <ebb9@byu.net>
46040
46041         Provide fallback for older kernels.
46042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46043         Provide runtime fallback if kernel lacks support.
46044         Reported by Mike Frysinger.
46045
46046 2008-06-02  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46049         it exists.
46050
46051 2008-06-02  Bruno Haible  <bruno@clisp.org>
46052
46053         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46054         * lib/copy-acl.c (qcopy_acl): Update comment.
46055
46056 2008-06-02  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46059         like ACL APIs.
46060
46061 2008-06-02  Bruno Haible  <bruno@clisp.org>
46062
46063         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46064         * tests/test-set-mode-acl.sh: Likewise.
46065         * tests/test-copy-acl.sh: Likewise.
46066         * tests/test-copy-file.sh: Likewise.
46067
46068 2008-06-02  Bruno Haible  <bruno@clisp.org>
46069
46070         * tests/test-file-has-acl.sh: Remove unused code.
46071
46072 2008-06-01  Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46075         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46076         messages.
46077         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46078
46079 2008-06-01  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46082         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46083         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46084         APIs.
46085         * modules/acl-tests (configure.ac): Remove tests now contained in
46086         m4/acl.m4.
46087
46088 2008-06-02  Jim Meyering  <meyering@redhat.com>
46089
46090         announce-gen: use a better key-server host name
46091         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46092         it may be more consistently reliable.  Suggested by Werner Koch
46093         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46094
46095 2008-06-01  Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46098         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46099
46100 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46101
46102         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46103
46104 2008-06-01  Bruno Haible  <bruno@clisp.org>
46105
46106         New ACL tests.
46107         * tests/test-file-has-acl.sh: New file.
46108         * tests/test-file-has-acl.c: New file.
46109         * tests/test-set-mode-acl.sh: New file.
46110         * tests/test-set-mode-acl.c: New file.
46111         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46112         * tests/test-copy-acl.c: New file.
46113         * modules/acl-tests: New file, based on modules/copy-file-tests.
46114         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46115         (Depends-on): Add acl-tests.
46116         (configure.ac): Remove checks.
46117         (Makefile.am): Don't create test-sameacls program here any more.
46118
46119 2008-06-01  Bruno Haible  <bruno@clisp.org>
46120
46121         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46122         * tests/test-sameacls.c: Include progname.h.
46123         (main): Invoke set_program_name. Portability fixes for MacOS X,
46124         Solaris, HP-UX.
46125
46126 2008-06-01  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46129         function.
46130         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46131
46132 2008-06-01  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/rpmatch (Depends-on): Add strdup.
46135
46136 2008-06-01  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/pipe.c: Include unistd-safer.h.
46139         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46140         * modules/pipe (Depends-on): Add unistd-safer.
46141
46142 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46143
46144         * modules/autobuild (configure.ac): Call AB_INIT.
46145
46146 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46147
46148         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46149         Suggested by Bruno Haible <bruno@clisp.org>.
46150
46151 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46152
46153         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46154         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46155         <bruno@clisp.org>.
46156
46157 2008-05-29  Eric Blake  <ebb9@byu.net>
46158
46159         Prefer new POSIX 200x interfaces over futimesat.
46160         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46161         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46162         when available.
46163         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46164
46165 2008-05-28  Bruno Haible  <bruno@clisp.org>
46166
46167         * modules/stpcpy (License): Change to LGPLv2+.
46168         Requested by David Lutterkort <dlutter@redhat.com>.
46169
46170 2008-05-27  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46173         current mingw.
46174         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46175
46176 2008-05-27  Bruno Haible  <bruno@clisp.org>
46177
46178         * modules/iconv_open (Link): New section, from module 'iconv'.
46179         * modules/striconv (Link): Likewise.
46180         * modules/striconveh (Link): Likewise.
46181         * modules/xstriconv (Link): Likewise.
46182         * modules/unicodeio (Link): Likewise.
46183         * modules/propername (Link): Likewise.
46184         Reported by Jim Meyering.
46185
46186 2008-05-26  Jim Meyering  <meyering@redhat.com>
46187
46188         sha256: do not artificially restrict buffer length to be < 2^32
46189         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46190         uint32_t to size_t.
46191         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46192         to match.
46193
46194         avoid unaligned access errors, e.g., on sparc
46195         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46196         direct access through a possibly-unaligned uint64* pointer.
46197         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46198         direct access through a possibly-unaligned uint32* pointer.
46199         Prompted by this patch from Tom "spot" Callaway:
46200         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46201
46202         sha512.c: fix typo in comment
46203         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46204
46205 2008-05-25  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46208         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46209         (Makefile.am): Update lib_SOURCES.
46210
46211 2008-05-25  Bruno Haible  <bruno@clisp.org>
46212
46213         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46214
46215 2008-05-25  Jim Meyering  <meyering@redhat.com>
46216
46217         useless-if-before-free: freed expr may have white-space differences
46218         * build-aux/useless-if-before-free: Recognize cases in which the
46219         freed expression differs from the tested one in embedded white
46220         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46221         $1 was used, so we can't make any regexp shy.  Improved tests now
46222         detect this.
46223
46224         useless-if-before-free: accept white space in the expression.
46225         * build-aux/useless-if-before-free: For now, any white space
46226         in the expression must be identical in the free argument.
46227
46228         useless-if-before-free: efficiency tweak
46229         * build-aux/useless-if-before-free: Make the expression-matching
46230         regexp "shy".
46231         Make the *outer* regexp shy, not the expr-matching one.
46232
46233         update code-in-comment to accept cast of free arg
46234         * build-aux/useless-if-before-free: Update regexp.
46235
46236 2008-05-25  Bruno Haible  <bruno@clisp.org>
46237
46238         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46239         * modules/copy-file-tests (Files, Makefile.am): Update.
46240         * tests/test-copy-file.c (func_test_copy): Update.
46241
46242 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46243
46244         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46245
46246 2008-05-23  Bruno Haible  <bruno@clisp.org>
46247
46248         Improve support for ACLs on OSF/1.
46249         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46250         Remove fallback for unknown flavors of ACLs.
46251
46252 2008-05-22  Bruno Haible  <bruno@clisp.org>
46253
46254         Add support for ACLs on OSF/1.
46255         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46256         replacements.
46257         (acl_free_text): New macro fallback.
46258         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46259         acl_free.
46260         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46261         acl_free_text function. Require AC_C_INLINE.
46262
46263 2008-05-22  Bruno Haible  <bruno@clisp.org>
46264
46265         Make copy_acl work on MacOS X 10.5.
46266         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46267         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46268         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46269         If MODE_INSIDE_ACL, don't assume that every system has the same text
46270         representation for ACLs as FreeBSD.
46271         * lib/copy-acl.c (copy_acl): Add support for platforms with
46272         !MODE_INSIDE_ACL.
46273         * lib/file-has-acl.c (file_has_acl): Likewise.
46274         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46275         FreeBSD, MacOS X, or IRIX, respectively.
46276
46277 2008-05-22  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/acl.h: Don't include <sys/acl.h>.
46280         (GETACLCNT): Move fallback to lib/acl-internal.h.
46281         * lib/acl-internal.h: Include <sys/acl.h> here.
46282         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46283
46284 2008-05-22  Bruno Haible  <bruno@clisp.org>
46285
46286         Split off copy_acl function to separate file.
46287         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46288         * lib/acl.c (copy_acl): Moved function to separate file.
46289         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46290         * modules/acl (Files): Add lib/copy-acl.c.
46291         (Makefiles.am): Augment lib_SOURCES.
46292
46293 2008-05-22  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/copy-file-tests: New file.
46296         * tests/test-copy-file.sh: New file.
46297         * tests/test-copy-file.c: New file.
46298         * tests/test-copy-file-sameacls.c: New file.
46299
46300 2008-05-22  Eric Blake  <ebb9@byu.net>
46301
46302         Avoid gcc warning.
46303         * tests/test-memcmp.c (main): Pass NULL indirectly.
46304
46305 2008-05-21  Bruno Haible  <bruno@clisp.org>
46306
46307         Add reference doc about ACLs.
46308         * doc/acl-resources.txt: New file.
46309         * doc/acl-cygwin.txt: New file.
46310
46311 2008-05-21  Bruno Haible  <bruno@clisp.org>
46312
46313         Avoid one more warning from gcc.
46314         * lib/vasnprintf.c (IF_LINT): Update comments.
46315         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46316
46317 2008-05-21  Jim Meyering  <meyering@redhat.com>
46318
46319         avoid a warning from gcc
46320         * lib/vasnprintf.c (IF_LINT): Define.
46321         (scale10_round_decimal_long_double):
46322         Use it to avoid a "may be used uninitialized" warning.
46323         (scale10_round_decimal_double): Likewise.
46324
46325 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46326
46327         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46328         declared.
46329
46330 2008-05-20  Bruno Haible  <bruno@clisp.org>
46331
46332         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46333         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46334
46335 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46336
46337         * modules/memcmp-tests: New file.
46338         * tests/test-memcmp.c: New file.
46339
46340 2008-05-19  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/propername (Notice, configure.ac): Put quoted "..." into
46343         --keyword option.
46344         * lib/propername.h: Update comments accordingly.
46345         Reported by Eric Blake.
46346
46347 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46348
46349         * modules/getpass-gnu (Depends-on): Add fseeko.
46350
46351 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46352
46353         * modules/base64-tests: New file.
46354
46355 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46356
46357         * lib/base64.c (base64_decode_ctx): If a decode context structure
46358         was passed in use it to ignore newlines.  If a context structure
46359         was _not_ passed in, continue to treat newlines as garbage (this
46360         is the historical behavior).  Formerly base64_decode.
46361         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46362         takes a decode context structure.
46363         * lib/base64.h (base64_decode): Macro for four-argument calls.
46364         (base64_decode_alloc): Likewise.
46365         * lib/base64.c (base64_decode_ctx): If a decode context structure
46366         was passed in use it to ignore newlines.  If a context structure
46367         was _not_ passed in, continue to treat newlines as garbage (this
46368         is the historical behavior).  Formerly base64_decode.
46369         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46370         takes a decode context structure.
46371         * lib/base64.h (base64_decode): Macro for four-argument calls.
46372         (base64_decode_alloc): Likewise.
46373
46374 2008-05-19  Jim Meyering  <meyering@redhat.com>
46375
46376         avoid a warning from gcc
46377         * lib/trim.c (IF_LINT): Define.
46378         (trim2): Use it to avoid a "may be used uninitialized" warning.
46379
46380         Fix doc typo.
46381         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46382
46383 2008-05-19  Bruno Haible  <bruno@clisp.org>
46384
46385         * doc/glibc-functions/getpass.texi: Document limits of other
46386         implementations.
46387
46388 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46389             Bruno Haible <bruno@clisp.org>
46390
46391         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46392
46393 2008-05-18  Bruno Haible  <bruno@clisp.org>
46394
46395         * modules/propername: New file, from GNU gettext.
46396         * lib/propername.h: New file, from GNU gettext.
46397         * lib/propername.c: New file, from GNU gettext.
46398         * MODULES.html.sh (Internationalization functions): Add propername.
46399
46400 2008-05-16  Jim Meyering  <meyering@redhat.com>
46401             Bruno Haible  <bruno@clisp.org>
46402
46403         Avoid some warnings from "gcc -Wshadow".
46404         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46405
46406 2008-05-15  Eric Blake  <ebb9@byu.net>
46407
46408         Extend previous patch to cygwin 1.7.0.
46409         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46410         fast implementation in cygwin >= 1.7.0.
46411         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46413
46414 2008-05-15  Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46417         implementation in glibc >= 2.9.
46418         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46420
46421 2008-05-15  Bruno Haible  <bruno@clisp.org>
46422
46423         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46424         (Unicode string functions): Add unilbrk/*.
46425         Reported by Karl Berry.
46426
46427 2008-05-15  Eric Blake  <ebb9@byu.net>
46428
46429         Fix violation of <stdbool.h> replacement in regex.
46430         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46431         * lib/regexec.c (re_search_internal): Likewise.
46432         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46433
46434 2008-05-15  Jim Meyering  <meyering@redhat.com>
46435
46436         avoid distracting test output when git or cvs is not found
46437         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46438         * tests/test-vc-list-files-git.sh: Likewise.
46439
46440 2008-05-15  Eric Blake  <ebb9@byu.net>
46441
46442         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46443         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46444         glibc version.
46445         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46446         * doc/posix-functions/strstr.texi (strstr): Likewise.
46447         * lib/str-two-way.h (MAX): Sychronize with glibc.
46448
46449 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46450
46451         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46452         opr.ctx_type.
46453         (calc_first): Initialize constraint field.
46454         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46455         Fix grammar.
46456         (duplicate_node): Merge constraint field for all node types.
46457         (calc_eclosure_iter): Look at constraint field for all node types.
46458         * lib/regex_internal.c (create_cd_newstate): Don't look at
46459         opr.ctx_type.
46460
46461 2008-05-14  Bruno Haible  <bruno@clisp.org>
46462
46463         Help GCC to do better code generation.
46464         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46465         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46466         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46467         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46468         Declare with attribute 'malloc' if supported.
46469
46470 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46471
46472         use "echo STR|wc -c" rather than unportable "expr length STR"
46473         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46474         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46475
46476 2008-05-14  Jim Meyering  <meyering@redhat.com>
46477
46478         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46479         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46480         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46481         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46482         via Collin Lasse.
46483
46484 2008-05-14  Eric Blake  <ebb9@byu.net>
46485
46486         Avoid quadratic growth in gl_LIBSOURCES.
46487         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46488         Suggested by Bruno Haible.
46489
46490         Test xmemdup0.
46491         * modules/xmemdup0-tests: New file.
46492         * tests/test-xmemdup0.c: Likewise.
46493
46494 2008-05-13  Eric Blake  <ebb9@byu.net>
46495
46496         Split xmemdup0 into its own module.
46497         * modules/xmemdup0: New file.
46498         * lib/xmemdup0.h: Likewise.
46499         * lib/xmemdup0.c: Likewise.
46500         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46501         * lib/xalloc.h (xmemdup0): Remove.
46502         * lib/xmalloc.c (xmemdup0): Likewise.
46503
46504 2008-05-13  Eric Blake  <ebb9@byu.net>
46505             Bruno Haible  <bruno@clisp.org>
46506
46507         Reduce number of forks required during autoconf.
46508         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46509         and gl_LIBSOURCES_DIR.
46510         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46511         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46512         m4_syscmd per file.
46513         <m4_foreach_w>: Move...
46514         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46515
46516 2008-05-13  Eric Blake  <ebb9@byu.net>
46517
46518         * gnulib-tool: Fix various comment typos.
46519
46520 2008-05-12  Bruno Haible  <bruno@clisp.org>
46521
46522         Tailor the linebreaking algorithm.
46523         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46524
46525 2008-05-12  Bruno Haible  <bruno@clisp.org>
46526
46527         Update to Unicode 5.0.0.
46528         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46529         LBP_JV, LBP_JT. Redistribute values.
46530         (unilbrk_table): Change size.
46531         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46532         Unicode TR#14 rev. 22.
46533         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46534         LBP_JV, LBP_JT. Redistribute values.
46535         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46536         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46537         Update.
46538         * lib/unilbrk/lbrkprop1.h: Regenerated.
46539         * lib/unilbrk/lbrkprop2.h: Regenerated.
46540         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46541         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46542         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46543         Likewise.
46544         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46545         Likewise.
46546         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46547         result.
46548         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46549         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46550         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46551         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46552         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46553         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46554
46555 2008-05-11  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46558
46559 2008-05-11  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46562         * modules/unilbrk/gen-lbrk: New file.
46563
46564 2008-05-11  Bruno Haible  <bruno@clisp.org>
46565
46566         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46567         * m4/sha512.m4 (gl_SHA512): Likewise.
46568
46569 2008-05-11  Jim Meyering  <meyering@redhat.com>
46570
46571         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46572         * modules/crypto/sha256: New file.
46573         * modules/crypto/sha512: Likewise.
46574         * lib/sha256.c: Likewise.
46575         * lib/sha256.h: Likewise.
46576         * lib/sha512.c: Likewise.
46577         * lib/sha512.h: Likewise.
46578         * lib/u64.h: Likewise.
46579         * m4/sha256.m4: Likewise.
46580         * m4/sha512.m4: Likewise.
46581         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46582
46583 2008-05-10  Bruno Haible  <bruno@clisp.org>
46584
46585         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46586         (Input/Output <stdio.h>): Add xprintf.
46587         (Signal handling <signal.h>): Add strsignal.
46588         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46589         (Core language properties): Add func.
46590         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46591         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46592         strings.
46593         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46594         (Input/output): New section.
46595         (File system functions): Add openat-die, stat-macros.
46596         (Networking functions): Add sockets.
46597         (Unicode string functions): Add unictype/*.
46598         (Support for building libraries and executables): Add gperf.
46599         (Support for building documentation): Add agpl-3.0.
46600         (Misc): Add nocrash.
46601
46602 2008-05-10  Bruno Haible  <bruno@clisp.org>
46603
46604         * modules/unictype/gen-ctype: New file.
46605
46606 2008-05-10  Jim Meyering  <meyering@redhat.com>
46607
46608         Make chdir-safer.c more efficient on a system with no symlinks.
46609         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46610         also if ELOOP is zero.  Suggested by Bruno Haible.
46611
46612         Make chdir-safer.c slightly safer.
46613         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46614         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46615
46616         Avoid compile failure on systems without ELOOP (like mingw).
46617         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46618         Reported by Bruno Haible.
46619
46620 2008-05-10  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46623         (is_utf8_encoding): Use a case-insensitive comparison.
46624         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46625         streq.
46626
46627 2008-05-10  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46630         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46631         * lib/unilbrk/ulc-common.h (iconv_string_length,
46632         iconv_string_keeping_offsets): Remove declarations.
46633         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46634         Don't include <iconv.h>, streq.h, xsize.h.
46635         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46636         conversion.
46637         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46638         <iconv.h>, streq.h, xsize.h.
46639         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46640         conversion.
46641         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46642         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46643         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46644         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46645
46646 2008-05-10  Bruno Haible  <bruno@clisp.org>
46647
46648         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46649         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46650
46651         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46652         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46653
46654         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46655         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46656
46657         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46658         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46659
46660         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46661         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46662
46663         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46664         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46665
46666         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46667         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46668
46669         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46670         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46671
46672 2008-05-10  Bruno Haible  <bruno@clisp.org>
46673
46674         Split up 'linebreak' module.
46675         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46676         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46677         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46678         modifications.
46679         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46680         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46681         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46682         lib/linebreak.c.
46683         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46684         lib/linebreak.c.
46685         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46686         lib/linebreak.c.
46687         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46688         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46689         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46690         lib/linebreak.c.
46691         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46692         lib/linebreak.c.
46693         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46694         lib/linebreak.c.
46695         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46696         lib/linebreak.c.
46697         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46698         lib/linebreak.c.
46699         * modules/unilbrk/base: New file.
46700         * modules/unilbrk/tables: New file.
46701         * modules/unilbrk/u8-possible-linebreaks: New file.
46702         * modules/unilbrk/u16-possible-linebreaks: New file.
46703         * modules/unilbrk/u32-possible-linebreaks: New file.
46704         * modules/unilbrk/ulc-common: New file.
46705         * modules/unilbrk/ulc-possible-linebreaks: New file.
46706         * modules/unilbrk/u8-width-linebreaks: New file.
46707         * modules/unilbrk/u16-width-linebreaks: New file.
46708         * modules/unilbrk/u32-width-linebreaks: New file.
46709         * modules/unilbrk/ulc-width-linebreaks: New file.
46710         * lib/linebreak.h: Remove file.
46711         * lib/linebreak.c: Remove file.
46712         * m4/linebreak.m4: Remove file.
46713         * modules/linebreak: Remove file.
46714         * NEWS: Mention the changes.
46715
46716 2008-05-09  Eric Blake  <ebb9@byu.net>
46717
46718         Add xmemdup0.
46719         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46720         implementation.
46721         * lib/xmalloc.c (xmemdup0): New C implementation.
46722
46723 2008-05-08  Bruno Haible  <bruno@clisp.org>
46724
46725         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46726
46727 2008-05-07  Eric Blake  <ebb9@byu.net>
46728
46729         Support cross-compilation of <wctype.h>.
46730         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46731         AC_CACHE_CHECK.
46732
46733 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46734
46735         * build-aux/vc-list-files: Add support for bzr.
46736
46737 2008-05-03  Jim Meyering  <meyering@redhat.com>
46738
46739         avoid failed assertion with tight malloc
46740         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46741
46742 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46743
46744         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46745         are needed from arpa/inet.h.
46746         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46747         Reported by Bruno Haible.
46748
46749 2008-05-02  Jim Meyering  <meyering@redhat.com>
46750
46751         avoid compilation error on FreeBSD 6
46752         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46753
46754 2008-05-01  Jim Meyering  <meyering@redhat.com>
46755
46756         useless-if-before-free: correct --help's exit status description
46757         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46758         for one or more matches, etc.  Reported by Bruno Haible.
46759
46760         vc-list-files: make the stand-alone gnulib test work
46761         * modules/vc-list-files-tests (configure.ac):
46762         Define and AC_SUBST abs_aux_dir.
46763         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46764         $(abs_top_srcdir) to each script and having each of them
46765         duplicate the work of setting PATH, set PATH here, using
46766         the new variable, abs_aux_dir instead.
46767         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46768         * tests/test-vc-list-files-git.sh: Likewise.
46769         Reported by Bruno Haible.
46770
46771 2008-05-01  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46774         reallocation. Rename 'done' to 'found_delimiter'.
46775
46776 2008-05-01  Jim Meyering  <meyering@redhat.com>
46777
46778         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46779         * build-aux/vc-list-files: Use `...`, not $(...).
46780
46781 2008-04-30  Jim Meyering  <meyering@redhat.com>
46782
46783         add tests for vc-list-files
46784         * modules/vc-list-files-tests: New module.
46785         * tests/test-vc-list-files-cvs.sh: New file.
46786         * tests/test-vc-list-files-git.sh: New file.
46787
46788         avoid a warning from gcc
46789         * lib/getndelim2.c (IF_LINT): Define.
46790         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46791
46792         vc-list-files: work properly with build-aux/cvsu, too
46793         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46794         to all cvs-based clauses.
46795
46796         vc-list-files: work properly in the CVS+awk case, too
46797         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46798
46799         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46800         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46801         take more than one file argument, so .  Add quotes, just in case $dir
46802         ever contains a shell meta-character.  Prompted by Soren Hansen in
46803         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46804
46805 2008-04-29  Eric Blake  <ebb9@byu.net>
46806
46807         Optimize getndelim2 to use block operations when possible.
46808         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46809         freadseek, and memchr2.
46810         * lib/getndelim2.c (getndelim2): Use them for block reads.
46811
46812 2008-04-29  Bruno Haible  <bruno@clisp.org>
46813
46814         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46815         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46816         * modules/inet_ntop (Depends-on): Add extensions.
46817         * modules/inet_pton (Depends-on): Likewise.
46818         Reported by Simon Josefsson.
46819
46820 2008-04-29  Jim Meyering  <meyering@redhat.com>
46821
46822         When the is more than one match in a block, match all of them.
46823         * build-aux/useless-if-before-free: Iterate through each block
46824         until there are no more matches.
46825
46826         Fix broken useless-if-before-free script.
46827         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46828         the expression to match cast of argument to free-like function.
46829
46830 2008-04-29  Eric Blake  <ebb9@byu.net>
46831
46832         Use new header.
46833         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46834
46835 2008-04-29  Jim Meyering  <meyering@redhat.com>
46836
46837         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46838         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46839         by gnulib to exist and to declare e.g., inet_ntop.
46840         Don't include "inet_ntop.h", now removed.
46841
46842         * m4/arpa_inet_h.m4: Remove trailing blanks.
46843
46844 2008-04-29  Eric Blake  <ebb9@byu.net>
46845
46846         Silence valgrind on safe reads beyond potential array bounds.
46847         * lib/rawmemchr.valgrind: New file.
46848         * lib/strchrnul.valgrind: Likewise.
46849         * modules/rawmemchr (Files): Distribute new file.
46850         * modules/strchrnul (Files): Likewise.
46851         Suggested by Bruno Haible.
46852
46853 2008-04-29  Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46856         (inet_ntop, inet_pton): Change portability warning's wording.
46857         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46858         Invoke gl_CHECK_NEXT_HEADERS.
46859         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46860         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46861         set ARPA_INET_H.
46862         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46863         * modules/arpa_inet (Description): No longer only for systems that
46864         lack it.
46865         (Depends-on): Add include_next.
46866         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46867         HAVE_ARPA_INET_H.
46868
46869 2008-04-29  Jim Meyering  <meyering@redhat.com>
46870
46871         * modules/mkdir (License): Re-license as LGPLv2+.
46872
46873 2008-04-29  Bruno Haible  <bruno@clisp.org>
46874
46875         * modules/rawmemchr (Maintainer): Set to Eric.
46876         * modules/strchrnul (Maintainer): Likewise.
46877
46878 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46879
46880         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46881         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46882
46883         * modules/arpa_inet (arpa/inet.h): Use them.
46884
46885 2008-04-28  Eric Blake  <ebb9@byu.net>
46886
46887         Test getndelim2.
46888         * modules/getndelim2-tests: New file.
46889         * tests/test-getndelim2.c: Likewise.
46890         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46891         stream.
46892         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46893
46894         * MODULES.html.sh: Document new module.
46895
46896 2008-04-20  Bruno Haible  <bruno@clisp.org>
46897
46898         * lib/c-stack.c (die): Use raise.
46899         * modules/c-stack (Depends-on): Add raise.
46900
46901 2008-04-28  Bruno Haible  <bruno@clisp.org>
46902
46903         Expect rpmatch to be declared.
46904         * lib/yesno.c (rpmatch): Remove declaration.
46905
46906         Declare rpmatch.
46907         * lib/stdlib.in.h (rpmatch): New declaration.
46908         * lib/rpmatch.c: Include <stdlib.h> first.
46909         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46910         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46912         HAVE_RPMATCH.
46913         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46914         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46915         (Include): Set to <stdlib.h>.
46916         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46917         HAVE_RPMATCH.
46918         * NEWS: Document the change.
46919
46920 2008-04-28  Bruno Haible  <bruno@clisp.org>
46921
46922         Change rpmatch to use nl_langinfo when appropriate.
46923         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46924         (N_): New macro.
46925         (localized_pattern): New function/macro.
46926         (try): Remove match, nomatch arguments. Copy the pattern into safe
46927         memory before caching it.
46928         (rpmatch): Use localized_pattern. Add translator comments.
46929         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46930         Suggested by Eric Blake.
46931         * modules/rpmatch (Depends-on): Add stdbool.
46932
46933 2008-04-28  Eric Blake  <ebb9@byu.net>
46934
46935         Add rawmemchr module, matching glibc.
46936         * modules/string (Makefile.am): New indicator.
46937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46938         * lib/string.in.h (rawmemchr): Declare when appropriate.
46939         * modules/rawmemchr: New file.
46940         * m4/rawmemchr.m4: Likewise.
46941         * lib/rawmemchr.c: Likewise.
46942         * modules/rawmemchr-tests: Likewise.
46943         * tests/test-rawmemchr.c: Likewise.
46944         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46945         module.
46946         * modules/strchrnul (Depends-on): Add rawmemchr.
46947         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46948
46949         Whitespace cleanup.
46950         * tests/test-strchrnul.c: Reindent.
46951         * lib/strchrnul.c: Likewise.
46952
46953         Optimize and test strchrnul.
46954         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46955         * modules/strchrnul-tests: New file.
46956         * tests/test-strchrnul.c: Likewise.
46957
46958         Remove intprops dependency.
46959         * modules/memchr (Depends-on): Remove intprops.
46960         * modules/memrchr (Depends-on): Likewise.
46961         * modules/memchr2 (Depends-on): Likewise.
46962         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46963         * lib/memrchr.c (__memrchr): Likewise.
46964         * lib/memrchr2.c (memchr2): Likewise.
46965         Reported by Simon Josefsson.
46966
46967 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46968
46969         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46970         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46971
46972 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46973
46974         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46975
46976         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46977
46978         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46979
46980         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46981         declarations.
46982         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46983
46984         * m4/inet_pton.m4: Don't check for header files.
46985
46986         * m4/inet_ntop.m4: Don't check for header files.
46987
46988 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46989
46990         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46991         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46992         trigger for cygwin).
46993         Reported by Bruno Haible  <bruno@clisp.org>.
46994
46995 2008-04-28  Bruno Haible  <bruno@clisp.org>
46996
46997         * doc/posix-functions/strdup.texi: Mention mingw problem.
46998
46999 2008-04-27  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/stat-time-tests (Depends-on): Add sleep.
47002         * tests/test-stat-time.c (force_unlink): New function.
47003         (cleanup): Use it.
47004         (test_mtime): Remove the ctime related tests.
47005         (test_ctime): New function, containing the ctime related tests.
47006         (main): Call test_ctime, except on native Windows platforms.
47007
47008 2008-04-27  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/rpmatch.c (rpmatch): Add some comments.
47011         Reported by James Youngman <jay@gnu.org>.
47012
47013 2008-04-27  Bruno Haible  <bruno@clisp.org>
47014
47015         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47016         quiet NaNs.
47017
47018 2008-04-27  Bruno Haible  <bruno@clisp.org>
47019
47020         Make test-yesno.sh work on mingw.
47021         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47022         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47023         (main): Set stdin to binary mode.
47024         * modules/yesno-tests (Depends-on): Add binary-io.
47025
47026 2008-04-27  Bruno Haible  <bruno@clisp.org>
47027
47028         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47029         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47030         argument that lie outside the IEEE 854 domain.
47031         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47032         (gl_ISFINITE): Use it.
47033         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47034
47035 2008-04-27  Bruno Haible  <bruno@clisp.org>
47036
47037         Allow local renaming in config.h.
47038         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47039
47040 2008-04-27  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/memchr.c (__memchr): Change type of 'i'.
47043         * lib/memchr2.c (memchr2): Likewise.
47044
47045 2008-04-26  Eric Blake  <ebb9@byu.net>
47046         and Bruno Haible  <bruno@clisp.org>
47047
47048         Optimize and test memrchr.
47049         * modules/memrchr (Depends-on): Add intprops.
47050         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47051         * modules/memrchr-tests: New file.
47052         * tests/test-memrchr.c: New file.
47053
47054 2008-04-26  Bruno Haible  <bruno@clisp.org>
47055
47056         Add tentative support for DragonFly BSD.
47057         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47058         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47059         fp.
47060         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47061         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47062         * lib/fpurge.c (fpurge): Likewise.
47063         * lib/freadable.c (freaadable): Likewise.
47064         * lib/freadahead.c (freadahead): Likewise.
47065         * lib/freading.c (freading): Likewise.
47066         * lib/freadptr.c (freadptr): Likewise.
47067         * lib/freadseek.c (freadptrinc): Likewise.
47068         * lib/fseeko.c (fseeko): Likewise.
47069         * lib/fseterr.c (fseterr): Likewise.
47070         * lib/fwritable.c (fwritable): Likewise.
47071         * lib/fwriting.c (fwriting): Likewise.
47072
47073 2008-04-26  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/stdio-impl.h: New file.
47076         * lib/fbufmode.c: Include stdio-impl.h.
47077         (fbufmode): Use fp_, remove redundant #defines.
47078         * lib/fflush.c: Include stdio-impl.h.
47079         (clear_ungetc_buffer): Remove redundant #defines.
47080         * lib/fpurge.c: Include stdio-impl.h.
47081         (fpurge): Remove redundant #defines.
47082         * lib/freadable.c: Include stdio-impl.h.
47083         (freadable): Remove redundant #defines.
47084         * lib/freadahead.c: Include stdio-impl.h.
47085         (freadahead): Remove redundant #defines.
47086         * lib/freading.c: Include stdio-impl.h.
47087         (freading): Remove redundant #defines.
47088         * lib/freadptr.c: Include stdio-impl.h.
47089         (freadptr): Remove redundant #defines.
47090         * lib/freadseek.c: Include stdio-impl.h.
47091         (freadptrinc): Remove redundant #defines.
47092         * lib/fseeko.c: Include stdio-impl.h.
47093         (rpl_fseeko): Remove redundant #defines.
47094         * lib/fseterr.c: Include stdio-impl.h.
47095         (fseterr): Remove redundant #defines.
47096         * lib/fwritable.c: Include stdio-impl.h.
47097         (fwritable: Remove redundant #defines.
47098         * lib/fwriting.c: Include stdio-impl.h.
47099         (fwriting): Remove redundant #defines.
47100         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47101         * modules/fflush (Files): Likewise.
47102         * modules/fpurge (Files): Likewise.
47103         * modules/freadable (Files): Likewise.
47104         * modules/freadahead (Files): Likewise.
47105         * modules/freading (Files): Likewise.
47106         * modules/freadptr (Files): Likewise.
47107         * modules/freadseek (Files): Likewise.
47108         * modules/fseeko (Files): Likewise.
47109         * modules/fseterr (Files): Likewise.
47110         * modules/fwritable (Files): Likewise.
47111         * modules/fwriting (Files): Likewise.
47112
47113 2008-04-26  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47116         restore_seek_optimization, update_fpos_cache): New functions, extracted
47117         from rpl_fflush.
47118         (rpl_fflush): Use them.
47119         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47120         (gl_REPLACE_FFLUSH): Use it.
47121
47122 2008-04-26  Bruno Haible  <bruno@clisp.org>
47123
47124         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47125         on Solaris.
47126         * tests/test-xstrtoimax.sh: Likewise.
47127         * tests/test-xstrtoumax.sh: Likewise.
47128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47129
47130 2008-04-26  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/memchr-tests: New file.
47133         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47134
47135 2008-04-26  Eric Blake  <ebb9@byu.net>
47136             Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/memchr.c: Include intprops.h.
47139         (__memchr): Optimize parallel detection of matching bytes. Rename local
47140         variables. Add explanatory comments.
47141
47142 2008-04-26  Bruno Haible  <bruno@clisp.org>
47143
47144         Fix module 'memchr', broken since 2000-10-28.
47145         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47146
47147 2008-04-26  Bruno Haible  <bruno@clisp.org>
47148
47149         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47150         comments.
47151
47152 2008-04-25  Eric Blake  <ebb9@byu.net>
47153
47154         Use native fstatat on cygwin 1.7.0.
47155         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47156         first.
47157
47158 2008-04-23  Eric Blake  <ebb9@byu.net>
47159
47160         Improve memchr2 performance.
47161         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47162         NUL bytes.
47163         * modules/memchr2 (Depends-on): Use intprops.h.
47164
47165 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47166
47167         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47168         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47169         <blp@cs.stanford.edu>.
47170
47171 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47172
47173         * lib/arpa_inet.in.h: New file.
47174
47175         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47176         (Makefile.am): Sed in substitute header file.
47177
47178         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47179         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47180
47181         * modules/inet_ntop (configure.ac): Use
47182         gl_ARPA_INET_MODULE_INDICATOR.
47183
47184         * modules/inet_pton (configure.ac): Use
47185         gl_ARPA_INET_MODULE_INDICATOR.
47186
47187 2008-04-22  Jim Meyering  <meyering@redhat.com>
47188
47189         * modules/verify (License): Re-license as LGPLv2+.
47190
47191 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47192
47193         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47194         parameter to void* as per POSIX standard (MinGW uses char*).
47195
47196 2008-04-21  Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47199         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47200         Define to replacements if REPLACE_ISWCNTRL is 1.
47201         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47202         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47203         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47204         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47205         what it fixes.
47206         * doc/posix-functions/iswalpha.texi: Likewise.
47207         * doc/posix-functions/iswblank.texi: Likewise.
47208         * doc/posix-functions/iswcntrl.texi: Likewise.
47209         * doc/posix-functions/iswdigit.texi: Likewise.
47210         * doc/posix-functions/iswgraph.texi: Likewise.
47211         * doc/posix-functions/iswlower.texi: Likewise.
47212         * doc/posix-functions/iswprint.texi: Likewise.
47213         * doc/posix-functions/iswpunct.texi: Likewise.
47214         * doc/posix-functions/iswspace.texi: Likewise.
47215         * doc/posix-functions/iswupper.texi: Likewise.
47216         * doc/posix-functions/iswxdigit.texi: Likewise.
47217         Reported by Alain Guibert.
47218
47219 2008-04-21  Bruno Haible  <bruno@clisp.org>
47220
47221         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47222         Patch by Alain Guibert.
47223
47224 2008-04-21  Bruno Haible  <bruno@clisp.org>
47225
47226         Fix test failures on mingw.
47227         * tests/test-xstrtol.c (print_no_progname): New function.
47228         (main): Install it in error_print_progname hook.
47229         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47230         * tests/test-xstrtoimax.sh: Likewise.
47231         * tests/test-xstrtoumax.sh: Likewise.
47232
47233 2008-04-21  Bruno Haible  <bruno@clisp.org>
47234
47235         Fix test failure on mingw.
47236         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47237
47238 2008-04-21  Bruno Haible  <bruno@clisp.org>
47239
47240         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47241         Actually assign a value.
47242
47243 2008-04-20  Bruno Haible  <bruno@clisp.org>
47244
47245         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47246         take 2.
47247         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47248         'canonicalize-lgpl' module is also used.
47249         * lib/canonicalize-lgpl.c: Undo last change.
47250         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47251
47252 2008-04-20  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47255         config.h. Provide _mkdir based fallback for mingw.
47256         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47257         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47258         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47259         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47260         rather than defining mkdir in config.h.
47261         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47262         (gl_SYS_STAT_H_DEFAULTS): New macro.
47263         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47264         HAVE_IO_H any more.
47265         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47266         HAVE_DECL_MKDIR and HAVE_IO_H.
47267
47268 2008-04-20  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/isapipe.c: Port to native Windows platforms.
47271
47272 2008-04-20  Bruno Haible  <bruno@clisp.org>
47273
47274         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47275
47276 2008-04-21  Eric Blake  <ebb9@byu.net>
47277
47278         Work around preprocessors that don't handle UINTMAX_MAX.
47279         * lib/memchr2.c (memchr2): Avoid embedded #if.
47280         Reported by Alain Guibert, fix suggested by Bruno Haible.
47281
47282 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47283
47284         * doc/posix-functions/strftime.texi (strftime): Explain better
47285         Windows incompatibility.  Suggested by Micah Cowan
47286         <micah@cowan.name>.
47287
47288 2008-04-20  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47291         unistr/u8-mblen.
47292
47293 2008-04-20  Bruno Haible  <bruno@clisp.org>
47294
47295         Fix test failure on platforms with non-GNU iconv.
47296         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47297         (U_TO_U8): Use it, rather than u16_to_u8.
47298         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47299         units at the end of the input string.
47300         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47301
47302 2008-04-20  Bruno Haible  <bruno@clisp.org>
47303
47304         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47305         when the resulting length is 0.
47306         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47307
47308 2008-04-20  Bruno Haible  <bruno@clisp.org>
47309
47310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47311         works.
47312         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47313
47314 2008-04-20  Bruno Haible  <bruno@clisp.org>
47315
47316         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47317         * modules/tsearch-tests (configure.ac): Test for initstate function.
47318
47319 2008-04-20  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47322         for nlink_t if missing.
47323         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47324
47325 2008-04-19  Bruno Haible  <bruno@clisp.org>
47326
47327         Work around snprintf bug on Linux libc5.
47328         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47330         gl_SNPRINTF_SIZE1.
47331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47332         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47333         that test failed.
47334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47335         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47336         * modules/snprintf (Files): Add m4/printf.m4.
47337         * modules/vsnprintf (Files): Likewise.
47338         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47339         * doc/posix-functions/vsnprintf.texi: Likewise.
47340
47341 2008-04-19  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47344         from 0.0058 to less than 10^-7.
47345
47346 2008-04-19  Bruno Haible  <bruno@clisp.org>
47347
47348         Fix rounding when a precision is given.
47349         * lib/vasnprintf.c (is_borderline): New function.
47350         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47351         9...9x.
47352         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47353         %e, %g.
47354         * tests/test-vasprintf-posix.c (test_function): Likewise.
47355         * tests/test-snprintf-posix.h (test_function): Likewise.
47356         * tests/test-sprintf-posix.h (test_function): Likewise.
47357         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47358         * tests/test-printf-posix.h (test_function): Likewise.
47359         * tests/test-printf-posix.output: Update.
47360         Reported by John Darrington <john@darrington.wattle.id.au> via
47361         Ben Pfaff <blp@cs.stanford.edu>.
47362
47363 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47364
47365         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47366         Suggested by Bruno Haible <bruno@clisp.org>.
47367
47368 2008-04-17  Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47371         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47372         implementation.
47373         Patch by Bruce Merry <bmerry@gmail.com>.
47374
47375 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47376
47377         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47378         doesn't work under Windows.
47379
47380 2008-04-16  Bruno Haible  <bruno@clisp.org>
47381
47382         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47383         New macros.
47384         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47385         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47386         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47387         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47388         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47389         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47390         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47391         macros.
47392         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47393         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47394         Northern Sotho, Uighur.
47395
47396 2008-04-16  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47399         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47400         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47401         Reported by Daniel Bergström <daniel@octocode.com>.
47402
47403 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47404             Bruno Haible  <bruno@clisp.org>
47405
47406         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47407         function.
47408         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47409         New functions, mostly extracted from gl_locale_name_default.
47410         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47411
47412 2008-04-16  Eric Blake  <ebb9@byu.net>
47413
47414         Adjust strtod detection to catch glibc 2.7 bug.
47415         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47416         Reported by John Gatewood Ham.
47417
47418 2008-04-16  Bruno Haible  <bruno@clisp.org>
47419
47420         Add tentative support for Linux libc5.
47421         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47422         * lib/fpurge.c (fpurge): Likewise.
47423         * lib/freadable.c (freadable): Likewise.
47424         * lib/freadahead.c (freadahead): Likewise.
47425         * lib/freading.c (freading): Likewise.
47426         * lib/freadptr.c (freadptr): Likewise.
47427         * lib/freadseek.c (freadptrinc): Likewise.
47428         * lib/fseeko.c (rpl_fseeko): Likewise.
47429         * lib/fseterr.c (fseterr): Likewise.
47430         * lib/fwritable.c (fwritable): Likewise.
47431         * lib/fwriting.c (fwriting): Likewise.
47432         Reported by Alain Guibert <alguibert+bts@free.fr>.
47433
47434 2008-04-15  Bruno Haible  <bruno@clisp.org>
47435
47436         * modules/mathl (configure.ac): Define module indicator.
47437
47438 2008-04-15  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/logl.c (logl): Remove unused variables.
47441
47442 2008-04-15  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47445         fails.
47446
47447 2008-04-15  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/trim.c (trim2): Fix argument of isspace() macro.
47450
47451 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47452
47453         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47454         to 0.
47455         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47456
47457 2008-04-14  Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47460         AC_LANG_PROGRAM argument.
47461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47462         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47464         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47465         * m4/math_h.m4 (gl_MATH_H): Likewise.
47466         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47468         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47469         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47470         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47471         * m4/regex.m4 (gl_REGEX): Likewise.
47472         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47473         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47477         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47479         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47480
47481 2008-04-14  Jim Meyering  <meyering@redhat.com>
47482
47483         test-strtod: fix typos: s/abs/fabs/
47484         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47485
47486 2008-04-13  Bruno Haible  <bruno@clisp.org>
47487
47488         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47489         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47490         module is also used and while not building the reloc-wrapper.
47491
47492 2008-04-13  Bruno Haible  <bruno@clisp.org>
47493
47494         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47495
47496 2008-04-13  Bruno Haible  <bruno@clisp.org>
47497
47498         Fix AIX compilation failure introduced on 2008-04-02.
47499         * tests/test-frexp.c (exp): Undefine before redefining.
47500         * tests/test-frexpl.c (exp): Likewise.
47501
47502 2008-04-13  Bruno Haible  <bruno@clisp.org>
47503
47504         Work around a HP-UX stdio bug.
47505         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47506         * tests/test-ftello.c (main): Likewise.
47507         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47508         * doc/posix-functions/ftello.texi: Likewise.
47509
47510 2008-04-13  Bruno Haible  <bruno@clisp.org>
47511
47512         Make test-signbit pass on HP-UX/hppa.
47513         * tests/test-signbit.c (minus_zerol): New variable.
47514         (test_signbitl): Use it.
47515
47516 2008-04-13  Bruno Haible  <bruno@clisp.org>
47517
47518         Make truncl work on OSF/1 4.0.
47519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47520         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47521         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47523         HAVE_DECL_TRUNCL.
47524         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47525         HAVE_DECL_TRUNCL.
47526         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47527
47528 2008-04-13  Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47531
47532 2008-04-13  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47535         expression, so as to avoid HP-UX 11 cc compiler bug.
47536
47537 2008-04-13  Bruno Haible  <bruno@clisp.org>
47538
47539         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47540
47541 2008-04-13  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/git-merge-changelog.c: Remove empty declaration outside of
47544         functions.
47545
47546 2008-04-13  Bruno Haible  <bruno@clisp.org>
47547
47548         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47549
47550 2008-04-13  Bruno Haible  <bruno@clisp.org>
47551
47552         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47553         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47555         also if it exists but lacks definitions of the SHUT_* macros.
47556         * modules/sys_socket (Description): Update.
47557         Reported by Elbert Pol <e.pol@chello.nl>.
47558
47559 2008-04-13  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/localcharset.c (OS2): Don't redefine if already defined.
47562         Reported by Elbert Pol <e.pol@chello.nl>.
47563
47564 2008-04-13  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/binary-io.h [__EMX__]: Include <io.h>.
47567         Reported by Elbert Pol <e.pol@chello.nl>.
47568
47569 2008-04-12  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/fpucw.h: Enable the definitions also for x86_64.
47572         Needed for NetBSD/x86_64.
47573         Reported by Thomas Klausner <tk@giga.or.at>.
47574
47575 2008-04-12  Bruno Haible  <bruno@clisp.org>
47576
47577         * tests/test-strtod.c: Include isnand.h.
47578         (main): Use isnand instead of isnan.
47579         Reported by Jim Meyering.
47580
47581 2008-04-12  Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47585
47586 2008-04-12  Jim Meyering  <meyering@redhat.com>
47587
47588         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47589
47590 2008-04-12  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47593         Reported by Elbert Pol <e.pol@chello.nl>.
47594
47595 2008-04-12  Eric Blake  <ebb9@byu.net>
47596
47597         Work around Solaris 10 math.h bug.
47598         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47599         (gl_MATH_H_DEFAULTS): Set up default.
47600         * modules/math (Makefile.am): Replace new indicators.
47601         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47602         * tests/test-math.c (main): Test this.
47603         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47604         * doc/posix-headers/math.texi (math.h): Mention bug.
47605         Reported by Nelson H. F. Beebe and Jim Meyering.
47606
47607 2008-04-11  Bruno Haible  <bruno@clisp.org>
47608
47609         Adapt to future versions of Apple GCC.
47610         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47611         Reported by Peter O'Gorman <peter@pogma.com>.
47612
47613 2008-04-11  Bruno Haible  <bruno@clisp.org>
47614
47615         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47616
47617 2008-04-11  Bruno Haible  <bruno@clisp.org>
47618
47619         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47620
47621         * modules/getaddrinfo-tests (Makefile.am): Define
47622         test_getaddrinfo_LDADD.
47623
47624 2008-04-11  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47627         (init): Fix syntax error.
47628         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47629         is declared.
47630
47631 2008-04-11  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47634         * modules/glob (Depends-on): Add stdbool.
47635
47636 2008-04-11  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/trim.c: Include <string.h>.
47639
47640 2008-04-11  Eric Blake  <ebb9@byu.net>
47641
47642         Avoid compile failure on OS/2.
47643         * lib/regex_internal.h (internal_function): Disable optimization
47644         on OS/2 (__EMX__), where it caused compiler error.
47645         Reported by Elbert Pol.
47646
47647 2008-04-11  Bruno Haible  <bruno@clisp.org>
47648
47649         Flush the standard error stream before aborting. Needed on mingw.
47650         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47651         * tests/test-array_list.c (ASSERT): Likewise.
47652         * tests/test-array_oset.c (ASSERT): Likewise.
47653         * tests/test-avltree_list.c (ASSERT): Likewise.
47654         * tests/test-avltree_oset.c (ASSERT): Likewise.
47655         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47656         * tests/test-binary-io.c (ASSERT): Likewise.
47657         * tests/test-byteswap.c (ASSERT): Likewise.
47658         * tests/test-c-ctype.c (ASSERT): Likewise.
47659         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47660         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47661         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47662         * tests/test-c-strstr.c (ASSERT): Likewise.
47663         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47664         * tests/test-canonicalize.c (ASSERT): Likewise.
47665         * tests/test-carray_list.c (ASSERT): Likewise.
47666         * tests/test-ceilf1.c (ASSERT): Likewise.
47667         * tests/test-ceilf2.c (ASSERT): Likewise.
47668         * tests/test-ceill.c (ASSERT): Likewise.
47669         * tests/test-count-one-bits.c (ASSERT): Likewise.
47670         * tests/test-fbufmode.c (ASSERT): Likewise.
47671         * tests/test-fflush2.c (ASSERT): Likewise.
47672         * tests/test-floorf1.c (ASSERT): Likewise.
47673         * tests/test-floorf2.c (ASSERT): Likewise.
47674         * tests/test-floorl.c (ASSERT): Likewise.
47675         * tests/test-fopen.c (ASSERT): Likewise.
47676         * tests/test-fpending.c (ASSERT): Likewise.
47677         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47678         * tests/test-fpurge.c (ASSERT): Likewise.
47679         * tests/test-freadable.c (ASSERT): Likewise.
47680         * tests/test-freadahead.c (ASSERT): Likewise.
47681         * tests/test-freading.c (ASSERT): Likewise.
47682         * tests/test-freadptr.c (ASSERT): Likewise.
47683         * tests/test-freadptr2.c (ASSERT): Likewise.
47684         * tests/test-freadseek.c (ASSERT): Likewise.
47685         * tests/test-freopen.c (ASSERT): Likewise.
47686         * tests/test-frexp.c (ASSERT): Likewise.
47687         * tests/test-frexpl.c (ASSERT): Likewise.
47688         * tests/test-fseek.c (ASSERT): Likewise.
47689         * tests/test-fseeko.c (ASSERT): Likewise.
47690         * tests/test-fstrcmp.c (ASSERT): Likewise.
47691         * tests/test-ftell.c (ASSERT): Likewise.
47692         * tests/test-ftello.c (ASSERT): Likewise.
47693         * tests/test-func.c (ASSERT): Likewise.
47694         * tests/test-fwritable.c (ASSERT): Likewise.
47695         * tests/test-fwriting.c (ASSERT): Likewise.
47696         * tests/test-getdelim.c (ASSERT): Likewise.
47697         * tests/test-getline.c (ASSERT): Likewise.
47698         * tests/test-i-ring.c (ASSERT): Likewise.
47699         * tests/test-iconv-utf.c (ASSERT): Likewise.
47700         * tests/test-iconv.c (ASSERT): Likewise.
47701         * tests/test-isfinite.c (ASSERT): Likewise.
47702         * tests/test-isnand.c (ASSERT): Likewise.
47703         * tests/test-isnanf.c (ASSERT): Likewise.
47704         * tests/test-isnanl.h (ASSERT): Likewise.
47705         * tests/test-ldexpl.c (ASSERT): Likewise.
47706         * tests/test-linked_list.c (ASSERT): Likewise.
47707         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47708         * tests/test-localename.c (ASSERT): Likewise.
47709         * tests/test-lseek.c (ASSERT): Likewise.
47710         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47711         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47712         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47713         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47714         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47715         * tests/test-mbschr.c (ASSERT): Likewise.
47716         * tests/test-mbscspn.c (ASSERT): Likewise.
47717         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47718         * tests/test-mbspbrk.c (ASSERT): Likewise.
47719         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47720         * tests/test-mbsrchr.c (ASSERT): Likewise.
47721         * tests/test-mbsspn.c (ASSERT): Likewise.
47722         * tests/test-mbsstr1.c (ASSERT): Likewise.
47723         * tests/test-mbsstr2.c (ASSERT): Likewise.
47724         * tests/test-mbsstr3.c (ASSERT): Likewise.
47725         * tests/test-memchr2.c (ASSERT): Likewise.
47726         * tests/test-memmem.c (ASSERT): Likewise.
47727         * tests/test-open.c (ASSERT): Likewise.
47728         * tests/test-printf-frexp.c (ASSERT): Likewise.
47729         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47730         * tests/test-printf-posix.c (ASSERT): Likewise.
47731         * tests/test-quotearg.c (ASSERT): Likewise.
47732         * tests/test-rbtree_list.c (ASSERT): Likewise.
47733         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47734         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47735         * tests/test-round1.c (ASSERT): Likewise.
47736         * tests/test-roundf1.c (ASSERT): Likewise.
47737         * tests/test-roundl.c (ASSERT): Likewise.
47738         * tests/test-signbit.c (ASSERT): Likewise.
47739         * tests/test-sleep.c (ASSERT): Likewise.
47740         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47741         * tests/test-snprintf.c (ASSERT): Likewise.
47742         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47743         * tests/test-stat-time.c (ASSERT): Likewise.
47744         * tests/test-strcasestr.c (ASSERT): Likewise.
47745         * tests/test-strerror.c (ASSERT): Likewise.
47746         * tests/test-striconv.c (ASSERT): Likewise.
47747         * tests/test-striconveh.c (ASSERT): Likewise.
47748         * tests/test-striconveha.c (ASSERT): Likewise.
47749         * tests/test-strsignal.c (ASSERT): Likewise.
47750         * tests/test-strstr.c (ASSERT): Likewise.
47751         * tests/test-strtod.c (ASSERT): Likewise.
47752         * tests/test-trunc1.c (ASSERT): Likewise.
47753         * tests/test-trunc2.c (ASSERT): Likewise.
47754         * tests/test-truncf1.c (ASSERT): Likewise.
47755         * tests/test-truncf2.c (ASSERT): Likewise.
47756         * tests/test-truncl.c (ASSERT): Likewise.
47757         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47758         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47759         * tests/test-vasnprintf.c (ASSERT): Likewise.
47760         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47761         * tests/test-vasprintf.c (ASSERT): Likewise.
47762         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47763         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47764         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47765         * tests/test-vsnprintf.c (ASSERT): Likewise.
47766         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47767         * tests/test-wcwidth.c (ASSERT): Likewise.
47768         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47769         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47770         * tests/test-xvasprintf.c (ASSERT): Likewise.
47771         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47772         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47773         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47774         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47775         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47776         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47777         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47778         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47779         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47780         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47781         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47782         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47783         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47784         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47785         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47786         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47787         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47788         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47789         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47790         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47791         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47792         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47793         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47794         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47795         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47796         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47797         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47798         * tests/unictype/test-combining.c (ASSERT): Likewise.
47799         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47800         * tests/unictype/test-digit.c (ASSERT): Likewise.
47801         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47802         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47803         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47804         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47805         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47806         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47807         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47808         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47809         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47810         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47811         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47812         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47813         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47814         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47815         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47816         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47817         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47818         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47819         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47820         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47821         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47822         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47823         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47824         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47825         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47826         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47827         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47828         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47829         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47830         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47831         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47832         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47833         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47834         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47835         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47836         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47837         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47838         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47839         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47840         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47841         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47842         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47843         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47844         Reported by Eric Blake.
47845
47846 2008-04-11  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/wchar.in.h: Tweak comment.
47849
47850 2008-04-11  Bruno Haible  <bruno@clisp.org>
47851
47852         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47853         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47854         gl_COMMON.
47855         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47856
47857 2008-04-11  Bruno Haible  <bruno@clisp.org>
47858
47859         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47860
47861 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47862
47863         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47864         of attempting to use non-existing /dev/*random.  Based on patch
47865         from Adam Strzelecki <ono@java.pl> in
47866         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47867
47868 2008-04-08  Bruno Haible  <bruno@clisp.org>
47869
47870         Add tentative support for emx+gcc.
47871         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47872         * lib/fpurge.c (fpurge): Likewise.
47873         * lib/freadable.c (freadable): Likewise.
47874         * lib/freadahead.c (freadahead): Likewise.
47875         * lib/freading.c (freading): Likewise.
47876         * lib/freadptr.c (freadptr): Likewise.
47877         * lib/freadseek.c (freadptrinc): Likewise.
47878         * lib/fseeko.c (rpl_fseeko): Likewise.
47879         * lib/fseterr.c (fseterr): Likewise.
47880         * lib/fwritable.c (fwritable): Likewise.
47881         * lib/fwriting.c (fwriting): Likewise.
47882         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47883
47884 2008-04-09  Eric Blake  <ebb9@byu.net>
47885
47886         Avoid some autoconf warnings.
47887         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47888         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47889         * m4/afs.m4 (gl_AFS): Likewise.
47890         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47891         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47892         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47893         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47894         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47895         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47896         (AC_CHECK_DECLS_ONCE): Likewise.
47897         Rename file...
47898         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47899         gnulib-tool requires autoconf 2.59 or better.
47900         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47901
47902 2008-04-08  Eric Blake  <ebb9@byu.net>
47903
47904         Use 'git describe --match' if present (added in git 1.5.5).
47905         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47906         if possible.
47907
47908 2008-04-08  Bruno Haible  <bruno@clisp.org>
47909
47910         Add tentative support for OpenServer.
47911         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47912         _ptr, _cnt.
47913         * lib/fpurge.c (fpurge): Likewise.
47914         * lib/freadable.c (freadable): Likewise.
47915         * lib/freadahead.c (freadahead): Likewise.
47916         * lib/freading.c (freading): Likewise.
47917         * lib/freadptr.c (freadptr): Likewise.
47918         * lib/freadseek.c (freadptrinc): Likewise.
47919         * lib/fseeko.c (rpl_fseeko): Likewise.
47920         * lib/fseterr.c (fseterr): Likewise.
47921         * lib/fwritable.c (fwritable): Likewise.
47922         * lib/fwriting.c (fwriting): Likewise.
47923         Reported by Roger Cornelius <rac@tenzing.org> and
47924         Brian K. White <brian@aljex.com>.
47925
47926 2008-04-06  Jim Meyering  <meyering@redhat.com>
47927
47928         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47929
47930 2008-04-06  Bruno Haible  <bruno@clisp.org>
47931
47932         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47933         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47934         * tests/test-printf-posix.sh: Likewise.
47935         * tests/test-vfprintf-posix.sh: Likewise.
47936         * tests/test-vprintf-posix.sh: Likewise.
47937         * tests/test-xprintf-posix.sh: Likewise.
47938
47939 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47940
47941         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47942         hide error from 'ls', needed on OS/2.
47943         Report by Elbert Pol <elbert.pol@gmail.com>.
47944
47945 2008-04-04  Eric Blake  <ebb9@byu.net>
47946
47947         Make test-fseeko.c failures meaningful.
47948         * tests/test-fseeko.c: Print line number on failure.
47949         * tests/test-fseek.c: Likewise.
47950         Reported by Nelson H. F. Beebe.
47951
47952         Improve strtod bug detection check.
47953         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47954         required for Solaris 10.
47955         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47956
47957 2008-04-04  Bruno Haible  <bruno@clisp.org>
47958
47959         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47960         by m4/setenv.m4.
47961
47962 2008-04-03  Eric Blake  <ebb9@byu.net>
47963
47964         Ensure sane .version contents.
47965         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47966         version string.
47967         * build-aux/git-version-gen: Improve documentation.
47968
47969         Make GNU make output nicer.
47970         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47971         MAKECMDGOALS to enforce message for all command line targets.  Set
47972         srcdir for use in maint.mk.
47973
47974         Another maintainer tweak.
47975         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47976         a target that regenerates version.
47977
47978 2008-04-03  Jim Meyering  <meyering@redhat.com>
47979
47980         vc-list-files: don't cause coreutils "make po-check" failure
47981         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47982
47983 2008-04-03  Eric Blake  <ebb9@byu.net>
47984
47985         Allow VPATH usage of vc-list-files.
47986         * build-aux/vc-list-files (scriptversion): Add timestamp.
47987         (options): Add --help, --version, -C.
47988         (CVS): Support installed cvsu.
47989
47990 2008-04-02  Bruno Haible  <bruno@clisp.org>
47991
47992         Avoid some "statement with no effect" warnings from gcc.
47993         * tests/test-wctype.c (main): Explicitly ignore unused values.
47994         Reported by Jim Meyering.
47995
47996 2008-04-02  Jim Meyering  <meyering@redhat.com>
47997
47998         Avoid some warnings from "gcc -Wshadow".
47999         * tests/test-frexp.c (exp): Define to a different identifier.
48000         * tests/test-frexpl.c (exp): Likewise.
48001
48002 2008-04-03  Jim Meyering  <meyering@redhat.com>
48003
48004         bootstrap: remove dangling *.[ch] symlinks from lib
48005         * build-aux/bootstrap [dangling symlink removal]: Move find's
48006         -depth option to precede all others, to avoid a warning.
48007         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48008
48009 2008-04-02  Bruno Haible  <bruno@clisp.org>
48010
48011         Avoid some warnings from "gcc -Wshadow".
48012         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48013         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48014         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48015         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48016         Reported by Jim Meyering.
48017
48018 2008-04-01  Bruno Haible  <bruno@clisp.org>
48019
48020         Fix test to work on IRIX 6.5 with cc.
48021         * tests/test-math.c (numeric_equal): New function.
48022         (main): Use it.
48023
48024 2008-04-01  Bruno Haible  <bruno@clisp.org>
48025
48026         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48027
48028 2008-04-01  Bruno Haible  <bruno@clisp.org>
48029
48030         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48031         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48032         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48033         (Depends-on): Remove math.
48034
48035         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48036         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48037         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48038         (Depends-on): Remove math.
48039
48040         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48041         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48042         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48043         (Depends-on): Remove math.
48044         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48045         (Depends-on): Remove math.
48046
48047         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48048         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48049         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48050         (Depends-on): Remove math.
48051         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48052         (Depends-on): Remove math.
48053
48054         * tests/test-round1.c: Include nan.h.
48055         (main): Use NaNd instead of NAN.
48056         * modules/round-tests (Files): Add tests/nan.h.
48057
48058         * tests/test-trunc1.c: Include nan.h.
48059         (main): Use NaNd instead of NAN.
48060         * modules/trunc-tests (Files): Add tests/nan.h.
48061
48062         * tests/test-roundf1.c: Include nan.h.
48063         (main): Use NaNf instead of NAN.
48064         * modules/roundf-tests (Files): Add tests/nan.h.
48065
48066         * tests/test-truncf1.c: Include nan.h.
48067         (main): Use NaNf instead of NAN.
48068         * modules/truncf-tests (Files): Add tests/nan.h.
48069
48070         * tests/test-ceilf1.c: Include nan.h.
48071         (main): Use NaNf instead of NAN.
48072         * modules/ceilf-tests (Files): Add tests/nan.h.
48073
48074         * tests/test-floorf1.c: Include nan.h.
48075         (main): Use NaNf instead of NAN.
48076         * modules/floorf-tests (Files): Add tests/nan.h.
48077
48078         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48079         (main): Use NaNf instead of NAN.
48080         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48081
48082         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48083         (main): Use NaNd instead of NAN.
48084         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48085
48086         * tests/test-frexp.c: Include nan.h.
48087         (main): Use NaNd instead of NAN.
48088         * modules/frexp-tests (Files): Add tests/nan.h.
48089
48090         * lib/isnan.c: Don't include <math.h>.
48091         (FUNC): Don't use NAN macro.
48092         * modules/isnand-nolibm (Depends-on): Remove math.
48093         * modules/isnanf-nolibm (Depends-on): Remove math.
48094         * modules/isnanl (Depends-on): Remove math.
48095         * modules/isnanl-nolibm (Depends-on): Remove math.
48096
48097         * tests/nan.h: New file.
48098
48099 2008-04-01  Eric Blake  <ebb9@byu.net>
48100
48101         Fix typos.
48102         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48103         values to be the right type.
48104
48105         For now, cater to gnulib strtod inaccuracies.
48106         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48107         fractional results.  While not as nice from a QoI perspective, it
48108         is a quicker patch than correctly implementing decimal to binary
48109         rounding.
48110
48111 2008-03-31  Eric Blake  <ebb9@byu.net>
48112
48113         Guarantee a definition of NAN.
48114         * lib/math.in.h (NAN): Define if missing.
48115         * tests/test-math.c (main): Test it.
48116         * doc/posix-headers/math.texi (math.h): Document this.
48117         * lib/isnan.c (rpl_isnand): Use it.
48118         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48119         * tests/test-floorf1.c (NaN): Likewise.
48120         * tests/test-frexp.c (NaN): Likewise.
48121         * tests/test-isnand.c (NaN): Likewise.
48122         * tests/test-isnanf.c (NaN): Likewise.
48123         * tests/test-round1.c (NaN): Likewise.
48124         * tests/test-roundf1.c (NaN): Likewise.
48125         * tests/test-snprintf-posix.h (NaN): Likewise.
48126         * tests/test-sprintf-posix.h (NaN): Likewise.
48127         * tests/test-trunc1.c (NaN): Likewise.
48128         * tests/test-truncf1.c (NaN): Likewise.
48129         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48130         * tests/test-vasprintf-posix.c (NaN): Likewise.
48131         * modules/isnand-nolibm (Depends-on): Add math.
48132         * modules/isnanf-nolibm (Depends-on): Likewise.
48133         * modules/isnanl (Depends-on): Likewise.
48134         * modules/isnanl-nolibm (Depends-on): Likewise.
48135         * modules/snprintf-posix-tests (Depends-on): Likewise.
48136         * modules/sprintf-posix-tests (Depends-on): Likewise.
48137         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48138         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48139         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48140         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48141
48142 2008-03-31  Bruno Haible  <bruno@clisp.org>
48143
48144         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48145         * doc/posix-functions/strtod.texi: Likewise.
48146
48147 2008-03-31  Bruno Haible  <bruno@clisp.org>
48148
48149         * tests/test-strtod.c (main): Don't use C99 syntax.
48150
48151 2008-03-31  Bruno Haible  <bruno@clisp.org>
48152
48153         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48154         Reported by Eric Blake.
48155
48156 2008-03-31  Jim Meyering  <meyering@redhat.com>
48157
48158         Don't compare actual signbit return values.
48159         * tests/test-strtod.c (main): Rather, compare only their
48160         zero/non-zero nature.
48161
48162 2008-03-31  Eric Blake  <ebb9@byu.net>
48163
48164         More strtod documentation.
48165         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48166         failures as distinct bugs.
48167
48168 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48169
48170         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48171         Problem reported by Erik Benada in
48172         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48173
48174 2008-03-30  Bruno Haible  <bruno@clisp.org>
48175
48176         * tests/test-strtod.c: Add comments about which assertion fails on which
48177         platform.
48178         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48179
48180 2008-03-30  Eric Blake  <ebb9@byu.net>
48181
48182         Test signbit behavior on zeros.
48183         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48184         (test_signbitd, test_signbitl): Likewise.
48185
48186         More strtod touchups.
48187         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48188         sign of negative underflow, for now.  Use .5, not .1.
48189         * doc/posix-functions/strtod.texi (strtod): Mention these
48190         limitations.
48191         Reported by Jim Meyering.
48192
48193 2008-03-30  Bruno Haible  <bruno@clisp.org>
48194
48195         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48196         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48197
48198 2008-03-30  Bruno Haible  <bruno@clisp.org>
48199
48200         Avoid failure when attempting to return empty iconv results on some
48201         platforms.
48202         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48203         allocation, don't report ENOMEM when the resulting string is empty.
48204
48205 2008-03-30  Bruno Haible  <bruno@clisp.org>
48206
48207         Fix buffer overrun.
48208         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48209         Don't consider the width for tmp_length. Check count against tmp_length
48210         before doing the padding. Ensure enough allocation during padding.
48211
48212 2008-03-30  Eric Blake  <ebb9@byu.net>
48213
48214         strtod touchups.
48215         * lib/strtod.c (strtod): Avoid compiler warnings.
48216         Reported by Jim Meyering.
48217
48218 2008-03-30  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48221         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48222         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48223         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48224         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48225         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48226         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48227         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48228
48229         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48230         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48231         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48232         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48233         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48234         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48235         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48236         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48237
48238         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48239         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48240         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48241         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48242         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48243         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48244         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48245         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48246
48247         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48248         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48249
48250         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48251         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48252
48253         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48254         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48255
48256         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48258         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48259
48260         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48262         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48263
48264         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48266         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48267
48268         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48270         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48271
48272         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48273         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48274         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48275         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48276         (Depends-on): Add EOVERFLOW.
48277         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48278         (Depends-on): Add EOVERFLOW.
48279         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48280         (Depends-on): Add EOVERFLOW.
48281         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48282         (Depends-on): Add EOVERFLOW.
48283         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48284         (Depends-on): Add EOVERFLOW.
48285         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48286         (Depends-on): Add EOVERFLOW.
48287         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48288         (Depends-on): Add EOVERFLOW.
48289         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48290         (Depends-on): Add EOVERFLOW.
48291
48292         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48294         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48295
48296         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48298         * modules/snprintf (Depends-on): Add EOVERFLOW.
48299
48300         * lib/poll.c (EOVERFLOW): Remove fallback.
48301         * modules/poll (Depends-on): Add EOVERFLOW.
48302
48303         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48304         * modules/getugroups (Depends-on): Add EOVERFLOW.
48305
48306         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48307         * modules/getdelim (Depends-on): Add EOVERFLOW.
48308
48309         * lib/ftell.c (EOVERFLOW): Remove fallback.
48310         * modules/ftell (Depends-on): Add EOVERFLOW.
48311
48312         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48314         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48315
48316         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48317
48318         * modules/EOVERFLOW-tests: New file.
48319         * tests/test-EOVERFLOW.c: New file.
48320
48321         * modules/EOVERFLOW: New file.
48322         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48323
48324 2008-03-30  Bruno Haible  <bruno@clisp.org>
48325
48326         Fix bug introduced on 2007-06-10.
48327         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48328         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48329
48330 2008-03-30  Bruno Haible  <bruno@clisp.org>
48331
48332         Improve freadseek's efficiency after ungetc.
48333         * lib/freadseek.c: Include freadahead.h.
48334         (freadptrinc): New function, extracted from freadseek.
48335         (freadseek): Use it in a loop. Use freadahead to determine the number
48336         of loop iterations.
48337         * modules/freadseek (Depends-on): Add freadahead.
48338         (configure.ac): Require AC_C_INLINE.
48339
48340 2008-03-30  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/freadseek.c (freadseek): Don't ignore the return value of
48343         freadptr.
48344
48345 2008-03-29  Eric Blake  <ebb9@byu.net>
48346
48347         Add hex float support.
48348         * modules/strtod (Depends-on): Add c-ctype.
48349         (Link): Mention POW_LIB.
48350         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48351         whitespace between 'e' and exponent.
48352         * tests/test-strtod.c (main): Enable hex float tests.
48353         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48354         now provides.
48355
48356         Document various strtod bugs, with some fixes.
48357         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48358         "-0x", "inf", "nan", and hex constants.
48359         * doc/posix-functions/atof.texi (atof): Likewise.
48360         * modules/stdlib (Makefile.am): Support strtod.
48361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48362         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48363         detect additional strtod bugs.
48364         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48365         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48366         bool where appropriate.  Parse 'inf' and 'nan'.
48367         * tests/test-strtod.c: New file.
48368         * modules/strtod (Depends-on): Add stdbool, stdlib.
48369         (configure.ac): Turn on module indicator.
48370         * modules/strtod-tests: New module.
48371
48372 2008-03-29  Eric Blake  <ebb9@byu.net>
48373
48374         Fix ftell on mingw.
48375         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48376         * modules/ftell-tests (Depends-on): Add binary-io.
48377         * modules/ftello-tests (Depends-on): Likewise.
48378         * tests/test-ftell.c (main): Enhance test to cover behavior after
48379         ungetc.  Enforce binary mode.
48380         * tests/test-ftello.c (main): Likewise.
48381
48382         Pass test-freadseek on cygwin.
48383         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48384         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48385         ungetc buffer.
48386
48387         * tests/test-fflush2.c (main): Fix typo.
48388
48389 2008-03-29  Bruno Haible  <bruno@clisp.org>
48390
48391         * tests/test-fflush2.c (main): Temporarily disable the contents of
48392         this test.
48393         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48394         Reported by Eric Blake.
48395
48396 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48397
48398         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48399         (GC_SHA224_DIGEST_SIZE): Add.
48400
48401         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48402         (gc_hash_digest_length): Likewise.
48403         (gc_hash_buffer): Likewise.
48404
48405 2008-03-25  Bruno Haible  <bruno@clisp.org>
48406
48407         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48408         detail which gettext release to use.
48409         Reported by Simon Josefsson.
48410
48411 2008-03-26  Jim Meyering  <meyering@redhat.com>
48412
48413         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48414         * modules/gnumakefile (clean-GNUmakefile): Also, use
48415         test ... && ... || : syntax rather than if-then ... fi.
48416
48417         gnumakefile: Don't double-quote-expand $(VPATH) value.
48418         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48419
48420 2008-03-24  Eric Blake  <ebb9@byu.net>
48421
48422         Alter GNUmakefile to install into top directory.
48423         * modules/maintainer-makefile: Split, and add dependency...
48424         * modules/gnumakefile: to this new module.
48425         * build-aux/GNUmakefile: Move...
48426         * top/GNUmakefile: ...here.
48427         * build-aux/maint.mk: Move...
48428         * top/maint.mk: ...here.
48429         * MODULES.html.sh (Support for maintaining...): Document new
48430         module.
48431
48432 2008-03-23  Bruno Haible  <bruno@clisp.org>
48433
48434         * gnulib-tool: New options --vc-files, --no-vc-files.
48435         (func_usage): Document them.
48436         (vc_files): New variable.
48437         (func_import): Consider vc_files.
48438         (func_create_testdir): Set vc_files to empty.
48439         Suggested by Jim Meyering and Karl Berry.
48440
48441 2008-03-23  Bruno Haible  <bruno@clisp.org>
48442
48443         Fix regex compilation error on HP-UX 11.
48444         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48445         * modules/regex (Files): Add m4/mbstate_t.m4.
48446         Reported by Ton Voon <ton.voon@altinity.com>.
48447
48448 2008-03-23  Bruno Haible  <bruno@clisp.org>
48449
48450         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48451
48452 2008-03-23  Eric Blake  <ebb9@byu.net>
48453             Bruno Haible  <bruno@clisp.org>
48454
48455         Install files from top/ in the destination directory.
48456         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48457         augmentation also for the files from top/.
48458         (func_import, func_create_testdir): Rewrite file names:
48459         top/filename -> filename.
48460
48461 2008-03-23  Bruno Haible  <bruno@clisp.org>
48462
48463         Tweak "gnulib --version" output.
48464         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48465
48466 2008-03-23  Bruno Haible  <bruno@clisp.org>
48467
48468         Tweak "gnulib --version" output.
48469         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48470         rather than contents of ChangeLog, when possible.
48471
48472 2008-03-21  Eric Blake  <ebb9@byu.net>
48473
48474         More --version tweaks.
48475         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48476         date of last ChangeLog entry.
48477
48478 2008-03-21  Jim Meyering  <meyering@redhat.com>
48479
48480         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48481
48482 2008-03-20  Eric Blake  <ebb9@byu.net>
48483
48484         VPATH fix.
48485         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48486
48487 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48488
48489         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48490         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48491
48492 2008-03-20  Eric Blake  <ebb9@byu.net>
48493
48494         Sync GNUmakefile with coreutils.
48495         * build-aux/GNUmakefile (have-Makefile): Rename...
48496         (_have-Makefile): ...to this, for namespace consideration.
48497         (GNUmakefile.cfg): Include, if present.
48498         (_autoreconf): Define a default.
48499         (_is-dist-target): New rule for rebuilds to pick up intra-release
48500         version.
48501         (maint-cfg.mk): Rename...
48502         (cfg.mk): ...to this.
48503
48504 2008-03-18  Jim Meyering  <meyering@redhat.com>
48505
48506         New script and module: mktempd
48507         * MODULES.html.sh (maint+release support): Add mktempd.
48508         * build-aux/mktempd: New file.
48509         * modules/mktempd: New file.
48510
48511 2008-03-15  Jim Meyering  <meyering@redhat.com>
48512
48513         Undo last change.
48514         * lib/sha1.c, lib/md5.c: 63 != ~63.
48515         Reported by Andreas Schwab.
48516
48517         sha1.c, md5.c: Hoist a redundant expression.
48518         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48519         "ctx->buflen" only once, before calling *_process_block.
48520         * lib/md5.c (md5_process_bytes): Likewise.
48521
48522 2008-03-14  Eric Blake  <ebb9@byu.net>
48523
48524         Bump copyright year in files generated by gnulib-tool.
48525         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48526         gnulib-tool, rather than hard-coding it.
48527
48528         Fix 'gnulib-tool --version' output to work with git.
48529         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48530         (startup): ...here.
48531         (func_version): Use it to invoke git-version-gen, rather than
48532         relying on CVS keyword expansion.  Modernize wording.
48533         (cvsdatestamp, last_checkin_date, version): Kill unused
48534         variables.
48535
48536 2008-03-12  Jim Meyering  <meyering@redhat.com>
48537
48538         Recognize optional cast of the argument to free.
48539         * build-aux/useless-if-before-free: Update regexps.
48540
48541         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48542
48543 2008-03-11  Bruno Haible  <bruno@clisp.org>
48544
48545         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48546         by a single package.
48547         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48548         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48549         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48550         Reported by Sam Steingold <sds@gnu.org>.
48551
48552 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48553
48554         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48555         repositories.
48556
48557 2008-03-11  Bruno Haible  <bruno@clisp.org>
48558
48559         Avoid conflicts between local macro definitions.
48560         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48561         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48562
48563 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48564             Bruno Haible  <bruno@clisp.org>
48565
48566         Make va_copy work with some version of xlc on AIX 5.1.
48567         * lib/stdarg.in.h: New file.
48568         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48569         On AIX, use a <stdarg.h> file substitute.
48570         * modules/stdarg (Files): Add lib/stdarg.in.h.
48571         (Depends-on): Add include_next.
48572         (Makefile.am): Build a stdarg.h substitute if requested.
48573         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48574
48575 2008-03-10  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48579         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48580
48581 2008-03-10  Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/stdlib (Depends-on): Add include_next, remove
48584         absolute-header.
48585
48586 2008-03-09  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/freadahead.h (freadahead): Document more precisely.
48589         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48590         the sum of both buffer sizes.
48591         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48592         * NEWS: Document the change.
48593
48594 2008-03-09  Bruno Haible  <bruno@clisp.org>
48595
48596         Extend freadptr to return also the buffer size.
48597         * lib/freadptr.h (freadptr): Add sizep argument.
48598         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48599         (freadptr): Add sizep argument. Determine buffer size like freadahead
48600         does.
48601         * tests/test-freadptr.c: Don't include freadahead.h.
48602         (main): Adapt for new calling convention of freadptr.
48603         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48604         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48605         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48606         tests/test-freadptr2.sh.
48607         (Depends): Remove freadahead.
48608         (TESTS): Add test-freadptr2.sh.
48609         (check_PROGRAMS): Add test-freadptr2.
48610
48611 2008-03-09  Bruno Haible  <bruno@clisp.org>
48612
48613         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48614         Report and solution by Simon Josefsson.
48615
48616 2008-03-06  Bruno Haible  <bruno@clisp.org>
48617
48618         Make fflush after ungetc work on BSD platforms.
48619         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48620         * tests/test-fflush2.c: New file.
48621         * tests/test-fflush2.sh: New file.
48622         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48623         tests/test-fflush2.c.
48624         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48625         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48626
48627 2008-03-06  Eric Blake  <ebb9@byu.net>
48628
48629         Likewise for ftello.
48630         * modules/ftello (Dependencies): Add extensions.
48631         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48632
48633 2008-03-06  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/fseeko (Dependencies): Add extensions.
48636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48637         Needed on glibc systems.
48638
48639 2008-03-06  Bruno Haible  <bruno@clisp.org>
48640
48641         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48642         email address.
48643         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48644
48645 2008-03-06  Bruno Haible  <bruno@clisp.org>
48646
48647         * users.txt: Add libgnupdf.
48648
48649 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48650
48651         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48652         (Header File Substitutes, Function Substitutes,
48653         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48654         (Build robot for gnulib): Fix typo.
48655
48656 2008-03-06  Bruno Haible  <bruno@clisp.org>
48657
48658         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48659         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48660
48661 2008-03-06  Bruno Haible  <bruno@clisp.org>
48662
48663         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48664         * doc/gnulib.texi: Include it.
48665
48666 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48667
48668         * modules/func (License): Change license to unlimited; there was
48669         no LGPL parts in the module anyway.
48670
48671 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48672
48673         * modules/__func__: Renamed to modules/func.
48674         * modules/__func__-tests: Renamed to modules/func-tests.
48675         * tests/test-__func__.c: Renamed to tests/test-func.c.
48676         * m4/__func__.m4: Renamed to m4/func.m4.
48677         * doc/gnulib.texi (__func__): Section renamed to func.
48678         Suggested by Eric Blake <ebb9@byu.net>.
48679
48680 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48681
48682         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48683         about __func__.  Make example self-contained.  Suggested by Eric
48684         Blake <ebb9@byu.net>.
48685
48686         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48687         Suggested by Eric Blake <ebb9@byu.net>.
48688
48689 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48690
48691         * modules/__func__: New file.
48692         * modules/__func__-tests: New file.
48693         * tests/test-__func__.c: New file.
48694         * m4/__func__.m4: New file.
48695         * doc/gnulib.texi (__func__): Document __func__ module.
48696
48697 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48698
48699         * modules/byteswap (License): Re-license as LGPLv2+.
48700
48701 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48702
48703         * doc/Makefile: Add pdf target.
48704
48705 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48706
48707         * modules/inline (License): Use 'unlimited', since there are only
48708         *.m4 files in this module.
48709
48710 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48711             Bruno Haible  <bruno@clisp.org>
48712
48713         Add support for HP C 7.1 on OpenVMS 8.3.
48714         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48715
48716 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48717
48718         Update VMS specifics.
48719         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48720
48721 2008-03-02  Jim Meyering  <meyering@redhat.com>
48722
48723         Remove the last dependency on the "free" module.
48724         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48725         Reported by Bob Proulx.
48726
48727         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48728
48729         Remove useless "if" tests before free.  Deprecate "free" module.
48730         * doc/posix-functions/free.texi: Mention that this
48731         module is no longer useful.
48732         * modules/free (Notice): Say this module is obsolete.
48733         * modules/readutmp (Depends-on): Remove free.
48734         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48735         * lib/putenv.c (putenv): Likewise.
48736         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48737         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48738         * tests/test-c-strcasestr.c (main): Likewise.
48739         * tests/test-c-strstr.c (main): Likewise.
48740         * tests/test-mbscasestr1.c (main): Likewise.
48741         * tests/test-mbscasestr2.c (main): Likewise.
48742         * tests/test-mbsstr1.c (main): Likewise.
48743         * tests/test-mbsstr2.c (main): Likewise.
48744         * tests/test-memmem.c (main): Likewise.
48745         * tests/test-strcasestr.c (main): Likewise.
48746         * tests/test-striconv.c (main): Likewise.
48747         * tests/test-striconveh.c (main): Likewise.
48748         * tests/test-striconveha.c (main): Likewise.
48749         * tests/test-strstr.c (main): Likewise.
48750
48751         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48752
48753         bootstrap: sync from coreutils again
48754         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48755
48756 2008-03-01  Jim Meyering  <meyering@redhat.com>
48757
48758         bootstrap: sync from coreutils
48759         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48760         also when the target doesn't exist.
48761
48762 2008-03-01  Eric Blake  <ebb9@byu.net>
48763
48764         Fix bugs in last patch.
48765         * lib/memchr2.c (memchr2): Fix typo.
48766         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48767         extension.
48768         Reported by Bruce Korb.
48769
48770         New module 'memchr2'.
48771         * modules/memchr2: New file.
48772         * modules/memchr2-tests: Likewise.
48773         * lib/memchr2.h: Likewise.
48774         * lib/memchr2.c: Likewise, based on memchr.c.
48775         * tests/test-memchr2.c: New test.
48776         * MODULES.html.sh (String handling): Add memchr2.
48777
48778 2008-02-29  Bruno Haible  <bruno@clisp.org>
48779
48780         * modules/freadseek-tests: New file.
48781         * tests/test-freadseek.sh: New file.
48782         * tests/test-freadseek.c: New file.
48783
48784         New module 'freadseek'.
48785         * modules/freadseek: New file.
48786         * lib/freadseek.h: New file.
48787         * lib/freadseek.c: New file.
48788         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48789
48790 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48791
48792         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48793         wydawca.
48794
48795         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48796         program_invocation_name and program_invocation_short_name are
48797         present.
48798
48799 2008-02-28  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48802         * tests/test-freadptr.sh: Also test non-seekable stdin.
48803
48804 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48805
48806         * build-aux/bootstrap (source_base, m4_base)
48807         (doc_base, tests_base): New variables.
48808         (gnulib_tool_options): Do not hardcode base directories, use
48809         the above variables instead.
48810
48811 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48812
48813         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48814
48815 2008-02-28  Bruno Haible  <bruno@clisp.org>
48816
48817         * modules/freadptr-tests: New file.
48818         * tests/test-freadptr.sh: New file.
48819         * tests/test-freadptr.c: New file.
48820
48821         New module 'freadptr'.
48822         * modules/freadptr: New file.
48823         * lib/freadptr.h: New file.
48824         * lib/freadptr.c: New file.
48825         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48826
48827 2008-02-26  Karl Berry  <karl@freefriends.org>
48828
48829         Sync from Libtool:
48830         * libltdl/argz.c (argz_add, argz_count): New functions.
48831         * libltdl/argz.in.h: Declare them.
48832         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48833
48834 2008-02-22  Bruno Haible  <bruno@clisp.org>
48835
48836         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48837         is a pointer type.  Needed for HP-UX 10.
48838         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48839         * doc/posix-functions/gmtime_r.texi: Likewise.
48840         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48841
48842 2008-02-24  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/environ-tests: New file.
48845         * tests/test-environ.c: New file.
48846
48847         New module 'environ'.
48848         * modules/environ: New file.
48849         * lib/unistd.in.h (environ): New declaration.
48850         * m4/environ.m4: New file.
48851         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48852         after use.
48853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48854         HAVE_DECL_ENVIRON.
48855         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48856         HAVE_DECL_ENVIRON.
48857         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48858         wrong claim that 'environ' is missing on some systems.
48859         * modules/execute (Depends-on): Add environ.
48860         * lib/execute.c (environ): Remove fallback declaration.
48861         * modules/pipe (Depends-on): Add environ.
48862         * lib/pipe.c (environ): Remove fallback declaration.
48863         * modules/setenv (Depends-on): Add environ.
48864         * lib/setenv.c (environ): Remove fallback declaration.
48865         * modules/unsetenv (Depends-on): Add environ.
48866         * lib/unsetenv.c (environ): Remove fallback declaration.
48867         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48868         m4/environ.m4.
48869         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48870         (gl_PREREQ_UNSETENV): Likewise.
48871
48872 2008-02-24  Bruno Haible  <bruno@clisp.org>
48873
48874         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48875
48876 2008-02-20  Bob Proulx  <bob@proulx.com>
48877
48878         Enable use of older two part flavor 'git describe'.
48879         * build-aux/git-version-gen: If using the older two part flavor of
48880         git version then recreate the third part now present in the
48881         newer three part flavor of git describe.
48882
48883 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48884
48885         * lib/fts.c (fts_build): Typo correction to comment.
48886
48887 2008-02-17  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48890         generating no-op conflicts.
48891
48892 2008-02-17  Bruno Haible  <bruno@clisp.org>
48893
48894         Speed up by 10%.
48895         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48896         result_entries, rather than an index-based loop.
48897
48898 2008-02-17  Bruno Haible  <bruno@clisp.org>
48899
48900         Speed up by 25%.
48901         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48902         'hashcode_cached'.
48903         (entry_create): New function.
48904         (entry_hashcode): Use the cached hashcode if possible.
48905         (read_changelog_file, try_split_merged_entry): Use entry_create.
48906
48907 2008-02-17  Bruno Haible  <bruno@clisp.org>
48908
48909         Speed up from O(n^2) to O(n) for long ChangeLog files.
48910         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48911         (read_changelog_file): Change implementation of entries_reversed list
48912         to rbtreehash.
48913         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48914
48915 2008-02-17  Bruno Haible  <bruno@clisp.org>
48916
48917         New option --split-merged-entry.
48918         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48919         (find_paragraph_end, try_split_merged_entry): New functions.
48920         (long_options): Add option --split-merged-entry.
48921         (usage): Document option --split-merged-entry.
48922         (main): Implement option --split-merged-entry.
48923         Reported by Eric Blake.
48924
48925 2008-02-17  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/git-merge-changelog.c: Include c-strstr.h.
48928         (main): Support the "git pull --rebase" situation.
48929         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48930         Reported by Eric Blake.
48931
48932 2008-02-16  Eric Blake  <ebb9@byu.net>
48933
48934         Avoid doubling \ in common case of "c-maybe" quoting style.
48935         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48936         eliding outer quotes.
48937         * lib/quotearg.h: Document this.
48938         * tests/test-quotearg.c (result_strings, inputs, results_g)
48939         (flag_results, locale_results): Test it by adding a new string to
48940         each test group.
48941         (compare_strings): Test new string.
48942
48943 2008-02-13  Eric Blake  <ebb9@byu.net>
48944
48945         Avoid trigraph quoting in default output.
48946         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48947         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48948         unless explicitly requested.
48949         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48950
48951 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48952
48953         Don't rely on signed integer overflowing to negative value.
48954         * lib/getugroups.c (getugroups): Include <limits.h>.
48955         Instead, compare against INT_MAX, and increment only if the test passes.
48956
48957 2008-02-13  Jim Meyering  <meyering@redhat.com>
48958         and Eric Blake  <ebb9@byu.net>
48959
48960         Avoid shadowing warning and compile errors on Linux.
48961         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48962         forwarding macros on Linux.
48963         (dcgettext): Define a stub, for Linux.
48964         (results_g, main): Avoid warnings.
48965
48966 2008-02-12  Eric Blake  <ebb9@byu.net>
48967
48968         Silence warning in last patch.
48969         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48970
48971         Quotearg part 4: add tests, fix c-maybe colon quoting.
48972         * lib/quotearg.h: Improve documentation.
48973         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48974         escapes when adding outer quotes.  When quoting trigraphs, use
48975         valid C notation.  When quoting NUL, omit extra characters if next
48976         character is not digit.  Alter prototype.
48977         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48978         callers.
48979         * modules/quotearg-tests: New module.
48980         * tests/test-quotearg.c: New test.
48981
48982 2008-02-07  Eric Blake  <ebb9@byu.net>
48983
48984         Quotearg part 3: add flag to control outer quote elision.
48985         * lib/quotearg.h (c_maybe_quoting_style): New style.
48986         (enum quoting_flags): Better documentation of flags.
48987         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48988         c-maybe style.
48989         (quotearg_buffer_restyled): Handle new flag to elide outer
48990         quotes.
48991
48992         Quotearg part 2: add flag that can control NUL elision.
48993         * lib/quotearg.h (set_quoting_flags): New prototype.
48994         * lib/quotearg.c (struct quoting_options): Add flag field.
48995         (set_quoting_flags): New function.
48996         (quotearg_buffer_restyled): Add flags parameter.
48997         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48998         (quotearg_n_options): Set the flag, since length cannot be
48999         returned.
49000         (quoting_options_from_style): Default flags correctly.
49001
49002         Quotearg part 1: more wrappers, restore quotearg_char state.
49003         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49004         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49005         (quotearg_colon_mem): New wrappers.
49006         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49007         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49008         functions.
49009         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49010         (quotearg_colon_mem): New functions.
49011
49012 2008-02-11  Bruno Haible  <bruno@clisp.org>
49013
49014         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49015         library in the current directory: it does not work with parallel make.
49016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49017
49018 2008-02-11  Bruno Haible  <bruno@clisp.org>
49019
49020         * .gitattributes: New file.
49021
49022 2008-02-11  Jim Meyering  <meyering@redhat.com>
49023
49024         useless-if-before-free: Fix reversed exit values.
49025         * build-aux/useless-if-before-free: Use correct values
49026         for EXIT_MATCH and EXIT_NO_MATCH.
49027
49028         * build-aux/useless-if-before-free: Close stdout carefully.
49029
49030 2008-02-10  Bruno Haible  <bruno@clisp.org>
49031
49032         New module 'git-merge-changelog'.
49033         * modules/git-merge-changelog: New file.
49034         * lib/git-merge-changelog.c: New file.
49035
49036 2008-02-10  Jim Meyering  <meyering@redhat.com>
49037
49038         useless-if-before-free: New option: --list (-l).
49039
49040         useless-if-before-free: Don't exit immediately upon open failure.
49041         * build-aux/useless-if-before-free: Exit 2 for errors.
49042         Upon failure to open a file, don't exit immediately.
49043         Rather, just warn and continue with any remaining files.
49044
49045 2008-02-10  Bruno Haible  <bruno@clisp.org>
49046
49047         New abstract list operation 'node_set_value'.
49048         * lib/gl_list.h (gl_list_node_set_value): New function.
49049         (struct gl_list_implementation): New field node_set_value.
49050         * lib/gl_list.c (gl_list_node_set_value): New function.
49051         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49052         (gl_array_list_implementation): Update.
49053         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49054         (gl_carray_list_implementation): Update.
49055         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49056         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49057         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49058         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49059         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49060         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49061         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49062         Update.
49063         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49064         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49065         (gl_sublist_list_implementation): Update.
49066
49067 2008-02-10  Bruno Haible  <bruno@clisp.org>
49068
49069         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49070         Needed when ELEMENT is #defined to 'some_type *'.
49071
49072 2008-02-10  Jim Meyering  <meyering@redhat.com>
49073
49074         New script and module: useless-if-before-free
49075         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49076         * build-aux/useless-if-before-free: New file.
49077         * modules/useless-if-before-free: New file.
49078
49079         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49080
49081         xstrtol_error: Fix typo.
49082         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49083         s/exit_failure/exit_status/.
49084
49085 2008-02-09  Jim Meyering  <meyering@redhat.com>
49086
49087         New script and module: gitlog-to-changelog
49088         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49089         * modules/gitlog-to-changelog: New file.
49090         * build-aux/gitlog-to-changelog: New file.
49091
49092 2008-02-08  Jim Meyering  <meyering@redhat.com>
49093
49094         Avoid two "parameter unused" warnings.
49095         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49096         Mark "st" as used.
49097
49098         Use "git COMMAND", not "git-COMMAND".
49099         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49100         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49101         * build-aux/git-version-gen: Use "git status", not "git-status".
49102
49103 2008-02-07  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49106         Avoids a crash on Windows Vista.
49107         Reported by Adam Strzelecki <ono@java.pl> via
49108         Simon Josefsson <simon@josefsson.org>.
49109
49110 2008-02-06  Bruno Haible  <bruno@clisp.org>
49111
49112         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49113         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49114         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49118         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49119         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49127         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49128         left-adjust flag.
49129         * tests/test-snprintf-posix.h (test_function): Likewise.
49130         * tests/test-sprintf-posix.h (test_function): Likewise.
49131         * tests/test-vasprintf-posix.c (test_function): Likewise.
49132         * doc/posix-functions/fprintf.texi: Update.
49133         * doc/posix-functions/printf.texi: Update.
49134         * doc/posix-functions/snprintf.texi: Update.
49135         * doc/posix-functions/sprintf.texi: Update.
49136         * doc/posix-functions/vfprintf.texi: Update.
49137         * doc/posix-functions/vprintf.texi: Update.
49138         * doc/posix-functions/vsnprintf.texi: Update.
49139         * doc/posix-functions/vsprintf.texi: Update.
49140         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49141
49142 2008-02-06  Bruno Haible  <bruno@clisp.org>
49143
49144         Fix bug introduced on 2008-01-26.
49145         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49146
49147 2008-02-06  Bruno Haible  <bruno@clisp.org>
49148
49149         Fix bug introduced on 2007-06-10.
49150         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49151         !NEED_PRINTF_FLAG_ZERO.
49152
49153 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49154
49155         getloadavg: use libperfstat on AIX5
49156         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49157
49158 2008-02-03  Bruno Haible  <bruno@clisp.org>
49159
49160         * lib/diffseq.h: Add comments about required #includes.
49161         Reported by Michael Biggs <gnulib@doubleplum.net>.
49162
49163 2008-02-01  Bruno Haible  <bruno@clisp.org>
49164
49165         * users.txt: Add gnuit.
49166
49167 2008-01-31  Bruno Haible  <bruno@clisp.org>
49168
49169         * lib/md4.c (set_uint32): Mark as inline.
49170         * lib/md5.c (set_uint32): Likewise.
49171         * lib/sha1.c (set_uint32): Likewise.
49172         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49173         * m4/md5.m4 (gl_MD5): Likewise.
49174         * m4/sha1.m4 (gl_SHA1): Likewise.
49175
49176 2008-01-31  Jim Meyering  <meyering@redhat.com>
49177
49178         Use "sizeof VAR", rather than a literal "4".
49179         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49180         * lib/md4.c (md4_read_ctx): Likewise.
49181         * lib/sha1.c (sha1_read_ctx): Likewise.
49182
49183 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49184
49185         * tests/test-sha1.c: New file, based on test-md5.c.
49186
49187         * modules/crypto/sha1-tests: New file.
49188
49189 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49190
49191         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49192
49193 2008-01-31  Jim Meyering  <meyering@redhat.com>
49194
49195         Prefer "sizeof v" over the equivalent "4".
49196         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49197         * lib/md5.c (set_uint32): Likewise.
49198         * lib/sha1.c (set_uint32): Likewise.
49199
49200 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49201
49202         * lib/sha1.c (set_uint32): Mark function as static.
49203
49204 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49205
49206         md2: clarify comments to say that alignment is not required.
49207         * lib/md2.h: Remove warning about alignment in comment.
49208         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49209         never been required.
49210
49211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49212
49213         md4: adapt alignment constraint fix from sha1.
49214         * lib/md4.c (set_uint32): New function, from sha1.c
49215         (md4_read_ctx): Use it.
49216         (md4_finish_ctx): Doc fix.
49217         * lib/md4.h: Doc fix.
49218
49219 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49220
49221         md5: adapt alignment constraint fix from sha1.
49222         * lib/md5.c (set_uint32): New function, from sha1.c
49223         (md5_read_ctx): Use it.
49224         (md5_finish_ctx): Doc fix.
49225         * lib/md5.h: Doc fix.
49226
49227 2008-01-30  Peter Palfrader  <weasel@debian.org>
49228
49229         sha1: remove the result buffer alignment constraint
49230         * lib/sha1.c (set_uint32): New function.
49231         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49232         constraint.
49233         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49234         * lib/sha1.h: Likewise.
49235
49236 2008-01-30  Andreas Schwab  <schwab@suse.de>
49237             Bruno Haible  <bruno@clisp.org>
49238
49239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49240         correct definition of LDBL_MIN_EXP.
49241
49242 2008-01-30  Karl Berry  <karl@gnu.org>
49243
49244         * config/srclist-update: try to preserve x bit on updates.
49245         * config/srclistvars.sh: update for karl.
49246
49247 2008-01-29  Jim Meyering  <meyering@redhat.com>
49248
49249         vasnprintf.c: Avoid warning about unused label
49250         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49251         "overflow" label definition and associated code with the
49252         same cpp condition that guards the sole use of that label.
49253
49254 2008-01-26  Bruno Haible  <bruno@clisp.org>
49255
49256         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49257         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49258         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49259         * lib/isnanl-nolibm.h (isnanl): Likewise.
49260         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49261
49262 2008-01-26  Bruno Haible  <bruno@clisp.org>
49263
49264         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49265         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49266
49267 2008-01-26  Bruno Haible  <bruno@clisp.org>
49268
49269         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49270         GCC >= 4.0 built-in.
49271         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49272
49273 2008-01-26  Bruno Haible  <bruno@clisp.org>
49274
49275         Rename isnan, applicable to 'double' only, to isnand.
49276         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49277         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49278         (configure.ac): Update.
49279         (Include): Replace "isnan.h" with "isnand.h".
49280         * m4/isnand.m4: Renamed from m4/isnan.m4.
49281         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49282         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49283         instead of isnan.c.
49284         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49285         instead of HAVE_ISNAN_IN_LIBC.
49286         (isnand): Renamed from isnan.
49287         * lib/isnand.c: New file.
49288         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49289         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49290         (Makefile.am): Update.
49291         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49292         Include isnand.h instead of isnan.h.
49293         (main): Test isnand instead of isnan.
49294         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49295         isnan-nolibm.
49296         * modules/frexp (Depends-on): Likewise.
49297         * modules/frexp-tests (Depends-on): Likewise.
49298         * modules/frexp-nolibm (Depends-on): Likewise.
49299         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49300         * modules/isfinite (Depends-on): Likewise.
49301         * modules/round-tests (Depends-on): Likewise.
49302         * modules/signbit (Depends-on): Likewise.
49303         * modules/signbit-tests (Depends-on): Likewise.
49304         * modules/snprintf-posix (Depends-on): Likewise.
49305         * modules/sprintf-posix (Depends-on): Likewise.
49306         * modules/trunc-tests (Depends-on): Likewise.
49307         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49308         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49310         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49311         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49313         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49314         * modules/vasnprintf-posix (Depends-on): Likewise.
49315         * modules/vasprintf-posix (Depends-on): Likewise.
49316         * modules/vfprintf-posix (Depends-on): Likewise.
49317         * modules/vsnprintf-posix (Depends-on): Likewise.
49318         * modules/vsprintf-posix (Depends-on): Likewise.
49319         * lib/frexp.c: Include isnand.h instead of isnan.h.
49320         (ISNAN): Set to isnand instead of isnan.
49321         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49322         (gl_isfinited): Use isnand instead of isnan.
49323         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49324         (gl_signbitd): Use isnand instead of isnan.
49325         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49326         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49327         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49328         (main): Use isnand instead of isnan.
49329         * tests/test-round1.c: Include isnand.h.
49330         (main): Use isnand instead of isnan.
49331         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49332         (ISNAN): Set to isnand instead of isnan.
49333         * tests/test-trunc1.c: Include isnand.h.
49334         (main): Use isnand instead of isnan.
49335         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49336         (equal): Use isnand instead of isnan.
49337         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49338         isnand-nolibm.
49339         * NEWS: Mention the change.
49340
49341 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49342             Bruno Haible  <bruno@clisp.org>
49343
49344         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49345         the GCC builtins for signbits are present and set
49346         REPLACE_SIGNBIT_USING_GCC if so.
49347         * lib/math.in.h (signbit): Define using GCC builtins if
49348         REPLACE_SIGNBIT_USING_GCC is set.
49349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49350         REPLACE_SIGNBIT_USING_GCC.
49351         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49352
49353 2008-01-25  Jim Meyering  <meyering@redhat.com>
49354
49355         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49356         * lib/poll.c: Include <config.h>, not "config.h".
49357         * tests/test-getaddrinfo.c: Likewise.
49358
49359 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49360
49361         * modules/sockets-tests: New file.
49362
49363 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49364
49365         * modules/sockets: New module, can be used to call WSA_Startup and
49366         WSA_Cleanup when needed.
49367
49368         * lib/sockets.h, lib/sockets.c: New files.
49369
49370         * m4/sockets.m4: New file.
49371
49372         * tests/test-sockets.c: New file.
49373
49374 2008-01-19  Bruno Haible  <bruno@clisp.org>
49375
49376         * doc/posix-headers: Renamed from doc/headers.
49377         * doc/posix-functions: Renamed from doc/functions.
49378         * doc/gnulib.texi: Update.
49379
49380 2008-01-19  Bruno Haible  <bruno@clisp.org>
49381
49382         * doc/glibc-functions/strcasestr.texi: Include contents of
49383         doc/functions/strcasestr.texi, fixing the list of platforms.
49384         * doc/functions/strcasestr.texi: Remove file.
49385
49386 2008-01-19  Bruno Haible  <bruno@clisp.org>
49387
49388         * doc/glibc-functions/memmem.texi: Include contents of
49389         doc/functions/memmem.texi.
49390         * doc/functions/memmem.texi: Remove file.
49391
49392 2008-01-18  Bruno Haible  <bruno@clisp.org>
49393
49394         * doc/glibc-functions/*.texi: New files.
49395         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49396         to use the new files.
49397
49398 2008-01-17  Bruno Haible  <bruno@clisp.org>
49399
49400         * tests/test-gethostname.c (main): Fix printf statement.
49401
49402 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49403
49404         * modules/gethostname-tests: New file.
49405
49406         * tests/test-gethostname.c: New file.
49407
49408 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49409
49410         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49411         used by the UNAME case.  Reported by Bruno Haible
49412         <bruno@clisp.org>.
49413
49414 2008-01-17  Eric Blake  <ebb9@byu.net>
49415
49416         Convert c-strcasestr to be more efficient.
49417         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49418         (Depends-on): Add c-strcase, remove malloca, strnlen.
49419         * tests/test-c-strcasestr.c (main): Enhance test.
49420         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49421
49422 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49423
49424         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49425         Use it in creating po/Makevars.
49426
49427 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49428
49429         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49430         Applications that requires it should initialize libgcrypt
49431         manually.
49432
49433 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49434
49435         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49436
49437 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         Fix problem with getdate on mingw32 reported by Simon Josefsson
49440         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49441         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49442         tzname", when deciding whether to declare tzname.
49443         * lib/strftime.c (tzname): Likewise.
49444
49445 2008-01-15  Bruno Haible  <bruno@clisp.org>
49446
49447         Work around a MacOS X 10.5 bug in frexpl().
49448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49449         * doc/functions/frexpl.texi: Document the bug.
49450         Reported by Elias Pipping <pipping@gentoo.org>.
49451
49452 2008-01-14  Eric Blake  <ebb9@byu.net>
49453
49454         Touch up previous patch.
49455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49456         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49457
49458         Convert strcasestr module to use Two-Way algorithm.
49459         * modules/strcasestr-simple: New module, based on the old
49460         strcasestr, but with Two-Way rather than KMP.
49461         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49462         * lib/string.in.h (rpl_strcasestr): Declare.
49463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49464         performance.
49465         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49466         * modules/string (Makefile.am): Support strcasestr.
49467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49468         * modules/strcasestr-tests (Depends-on): Check for alarm.
49469         * tests/test-strcasestr.c: Augment test.
49470         * lib/str-two-way.h: Clean up stray macro.
49471         * NEWS: Document new module.
49472         * MODULES.html.sh (string handling): Likewise.
49473         * doc/functions/strcasestr.texi: New file.
49474         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49475         here, since it is not a POSIX function.
49476
49477 2008-01-14  Colin Watson  <cjwatson@debian.org>
49478             Bruno Haible  <bruno@clisp.org>
49479
49480         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49481         works fine; if not, set REPLACE_STRSIGNAL.
49482         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49484         REPLACE_STRSIGNAL.
49485         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49486         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49487         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49488
49489 2008-01-14  Bruno Haible  <bruno@clisp.org>
49490
49491         * modules/strsignal (Include): Change to <string.h>.
49492
49493 2008-01-14  Colin Watson  <cjwatson@debian.org>
49494
49495         * modules/argp (Notice): Add a notice recommending to change
49496         XGETTEXT_OPTIONS.
49497         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49498
49499 2008-01-13  Colin Watson  <cjwatson@debian.org>
49500
49501         * modules/strsignal-tests: New file.
49502         * tests/test-strsignal.c: New file.
49503
49504         * lib/strsignal.c: New file, from glibc with modifications.
49505         * lib/siglist.h: New file, from glibc with modifications.
49506         * lib/string.in.h (strsignal): New declaration.
49507         * m4/strsignal.m4: New file.
49508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49509         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49510         * modules/strsignal: New file.
49511         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49512         HAVE_DECL_STRSIGNAL.
49513
49514 2008-01-13  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49517         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49518         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49519         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49520
49521 2008-01-13  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49524         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49525         * lib/argp.h (__attribute__): Likewise.
49526         * lib/c-stack.c (__attribute__): Likewise.
49527         * lib/error.h (__attribute__): Likewise.
49528         * lib/fts.c (__attribute__): Likewise.
49529         * lib/openat.h (__attribute__): Likewise.
49530         * lib/stdio.in.h (__attribute__): Likewise.
49531         * lib/string.in.h (__attribute__): Likewise.
49532         * lib/utimens.c (__attribute__): Likewise.
49533         * lib/vasnprintf.h (__attribute__): Likewise.
49534         * lib/xalloc.h (__attribute__): Likewise.
49535         * lib/xprintf.h (__attribute__): Likewise.
49536         * lib/xstrtol.h (__attribute__): Likewise.
49537         * lib/xvasprintf.h (__attribute__): Likewise.
49538
49539 2008-01-12  Bruno Haible  <bruno@clisp.org>
49540
49541         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49542         * doc/glibc-headers/a.out.texi: New file.
49543         * doc/glibc-headers/aliases.texi: New file.
49544         * doc/glibc-headers/alloca.texi: New file.
49545         * doc/glibc-headers/ar.texi: New file.
49546         * doc/glibc-headers/argp.texi: New file.
49547         * doc/glibc-headers/argz.texi: New file.
49548         * doc/glibc-headers/byteswap.texi: New file.
49549         * doc/glibc-headers/crypt.texi: New file.
49550         * doc/glibc-headers/endian.texi: New file.
49551         * doc/glibc-headers/envz.texi: New file.
49552         * doc/glibc-headers/err.texi: New file.
49553         * doc/glibc-headers/error.texi: New file.
49554         * doc/glibc-headers/execinfo.texi: New file.
49555         * doc/glibc-headers/fpu_control.texi: New file.
49556         * doc/glibc-headers/fstab.texi: New file.
49557         * doc/glibc-headers/fts.texi: New file.
49558         * doc/glibc-headers/getopt.texi: New file.
49559         * doc/glibc-headers/ieee754.texi: New file.
49560         * doc/glibc-headers/ifaddrs.texi: New file.
49561         * doc/glibc-headers/libintl.texi: New file.
49562         * doc/glibc-headers/mcheck.texi: New file.
49563         * doc/glibc-headers/mntent.texi: New file.
49564         * doc/glibc-headers/obstack.texi: New file.
49565         * doc/glibc-headers/paths.texi: New file.
49566         * doc/glibc-headers/printf.texi: New file.
49567         * doc/glibc-headers/pty.texi: New file.
49568         * doc/glibc-headers/resolv.texi: New file.
49569         * doc/glibc-headers/shadow.texi: New file.
49570         * doc/glibc-headers/sysexits.texi: New file.
49571         * doc/glibc-headers/ttyent.texi: New file.
49572
49573 2008-01-12  Jim Meyering  <meyering@redhat.com>
49574
49575         announce-gen: emit Gnulib's git-based version string.
49576         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49577         New option --gnulib-version=V, where V is expected to be
49578         the output of running git describe in the gnulib directory.
49579         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49580         not useful, and plan to stop publishing an xdelta file with each
49581         coreutils release.
49582
49583         * build-aux/announce-gen: Also check for lzma-compressed files.
49584
49585 2008-01-11  Bruno Haible  <bruno@clisp.org>
49586
49587         * tests/test-memmem.c (main): Increase maximum allowed time.
49588         * tests/test-strstr.c (main): Likewise.
49589
49590 2008-01-11  Bruno Haible  <bruno@clisp.org>
49591
49592         * doc/functions/memmem.texi: Add more precisions about platforms.
49593         * doc/functions/strstr.texi: Likewise.
49594
49595 2008-01-10  Eric Blake  <ebb9@byu.net>
49596
49597         * m4/strstr.m4: Delete cruft from copy-n-paste.
49598         Reported by Bruno Haible.
49599
49600 2008-01-10  Bruno Haible  <bruno@clisp.org>
49601
49602         Make c-strstr rely on strstr.
49603         * lib/c-strstr.c: Don't include str-kmp.h.
49604         (c_strstr): Define in terms of strstr.
49605         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49606         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49607
49608 2008-01-10  Bruno Haible  <bruno@clisp.org>
49609
49610         * doc/gnulib.texi (String Functions in C Locale): New section.
49611         * doc/c-ctype.texi: New file.
49612         * doc/c-strcase.texi: New file.
49613         * doc/c-strcaseeq.texi: New file.
49614         * doc/c-strcasestr.texi: New file.
49615         * doc/c-strstr.texi: New file.
49616         * doc/c-strtod.texi: New file.
49617         * doc/c-strtold.texi: New file.
49618
49619 2008-01-10  Eric Blake  <ebb9@byu.net>
49620
49621         * lib/relocatable.h: Fix a comment.
49622
49623 2008-01-10  Eric Blake  <ebb9@byu.net>
49624
49625         Share two-way algorithm.
49626         * lib/str-two-way.h: New file, merged from...
49627         * lib/memmem.c: ...here...
49628         * lib/strstr.c: ...and here.
49629         * modules/memmem (Files): Use it.
49630         * modules/strstr (Files): Likewise.
49631
49632         Avoid quadratic strstr implementations.
49633         * lib/strstr.c: New file.
49634         * m4/strstr.m4: Likewise.
49635         * modules/strstr: Likewise.
49636         * modules/strstr-tests: Likewise.
49637         * tests/test-strstr.c: Likewise.
49638         * lib/string.in.h (rpl_strstr): Declare.
49639         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49641         * modules/string (Makefile.am): Likewise.
49642         * MODULES.html.sh (string handling): Mention new module.
49643         * doc/functions/strstr.texi (strstr): Document the bug.
49644
49645 2008-01-10  Bruno Haible  <bruno@clisp.org>
49646
49647         * lib/relocatable.h (relocate): State whether result is freshly
49648         allocated or not.
49649         * lib/relocatable.c (relocate): Return a freshly allocated string
49650         instead of a pointer to a privately held string.
49651         Reported by Sylvain Beucler <beuc@gnu.org>.
49652
49653 2008-01-10  Colin Watson  <cjwatson@debian.org>
49654
49655         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49656         s/S_ISNLK/S_ISLNK/.
49657
49658 2008-01-09  Bruno Haible  <bruno@clisp.org>
49659
49660         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49661         and other files.
49662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49663         if it's only a guess.
49664         * modules/memmem: Simplify by depending on memmem-simple.
49665
49666 2008-01-09  Bruno Haible  <bruno@clisp.org>
49667
49668         Work around OpenBSD 4.0 tdelete() bug.
49669         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49670         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49671         macros and don't redefine the enum values.
49672         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49673         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49674         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49675
49676 2008-01-09  Bruno Haible  <bruno@clisp.org>
49677
49678         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49679         (main): Don't perform the tests if setlocale did not install a UTF-8
49680         locale. Needed on OpenBSD 4.0.
49681         * modules/wcwidth-tests (Depends-on): Add localcharset.
49682
49683 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49684
49685         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49686         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49687         * NEWS: announce this.
49688         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49689
49690 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49691         and Eric Blake  <ebb9@byu.net>
49692
49693         Add memmem-simple module.
49694         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49695         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49696         * modules/memmem-simple: New file.
49697         * modules/memmem (Description): Tweak.
49698         * MODULES.html.sh (string handling): Mention new module.
49699         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49700         addressed by memmem-simple.
49701         * NEWS: Document the difference.
49702
49703 2008-01-09  Eric Blake  <ebb9@byu.net>
49704
49705         Give gcc some memmem optimization hints.
49706         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49707         (strcasestr): Declare as pure.
49708         * modules/memmem (Maintainer): Claim my implementation.
49709
49710 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49711
49712         Support AIX 6.1 and higher.
49713         * build-aux/config.libpath: Likewise.
49714         * build-aux/config.rpath: Likewise.
49715
49716 2008-01-08  Jim Meyering  <meyering@redhat.com>
49717             Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49720         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49721         Reported by Peter Fales in
49722         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49723
49724 2008-01-08  Bruno Haible  <bruno@clisp.org>
49725
49726         * modules/unictype/category-of (Depends-on): Add
49727         unictype/category-none.
49728         * modules/unictype/category-and-tests (Depends-on): Add
49729         unictype/category-{L,N,Lu,Nd}.
49730         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49731         * modules/unictype/category-or-tests (Depends-on): Add
49732         unictype/category-{L,N}.
49733         * modules/unictype/category-name-tests (Depends-on): Add
49734         unictype/category-{Z,Nl}.
49735         Reported by Simon Josefsson.
49736
49737 2008-01-08  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49740         convention better.
49741         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49742         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49743         Reported by Peter Miller <millerp@canb.auug.org.au>.
49744
49745 2008-01-08  Eric Blake  <ebb9@byu.net>
49746
49747         Rewrite memmem to guarantee linear complexity without malloc.
49748         * lib/memmem.c (memmem): Use Two-Way rather than
49749         Knuth-Morris-Pratt, to allow O(1) space usage.
49750         (critical_factorization, two_way_short_needle)
49751         (two_way_long_needle): New functions.
49752         (knuth_morris_pratt): Delete.
49753         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49754         Add stdint.
49755         * tests/test-memmem.c (main): Add tests for periodic needle and
49756         sublinear performance.
49757         * doc/functions/memmem.texi (memmem): Document other deficiencies
49758         in cygwin and older glibc.
49759
49760 2008-01-08  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49763         augmentation.
49764
49765 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49766
49767         Add a configure time option: --disable-acl.
49768         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49769         AC_ARG_ENABLE(acl).
49770
49771 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49772
49773         * tests/test-localename.c: Don't include obsolete "setenv.h".
49774
49775         * modules/localename-tests (Depends-on): Need unsetenv.
49776
49777 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49778
49779         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49780
49781 2008-01-06  Colin Watson  <cjwatson@debian.org>
49782
49783         * users.txt: Add man-db.
49784
49785 2008-01-07  Bruno Haible  <bruno@clisp.org>
49786
49787         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49788         previous section name.
49789
49790 2008-01-07  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/progname.c (set_program_name): Don't strip off a leading
49793         "lt-" prefix outside a .libs directory.
49794         Suggested by Paul Eggert.
49795
49796 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49797             Bruno Haible  <bruno@clisp.org>
49798
49799         Improve memory cleanup in 'relocatable' module.
49800         * lib/relocatable.h (compute_curr_prefix): Change return type to
49801         'char *'.
49802         * lib/relocatable.c (compute_curr_prefix): Change return type to
49803         'char *'. Free curr_installdir after use.
49804         (relocate): Free curr_prefix_better after use.
49805         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49806
49807 2008-01-01  Bruno Haible  <bruno@clisp.org>
49808
49809         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49810         failure on older glibc systems.
49811         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49812
49813 2008-01-05  Eric Blake  <ebb9@byu.net>
49814
49815         Avoid quadratic system memmem.
49816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49817         Reported by Ralf Wildenhues.
49818
49819         Fix memmem test for mingw.
49820         * modules/memmem-tests (configure.ac): Check for alarm.
49821         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49822         it.
49823         * doc/functions/memmem.texi: New file.
49824         * doc/gnulib.texi (Function Substitutes): Add memmem.
49825         Reported by Bruno Haible.
49826
49827 2008-01-04  Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49830         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49831         gl_HEADER_STRING_H_DEFAULTS.
49832
49833 2008-01-04  Eric Blake  <ebb9@byu.net>
49834
49835         Shorten duration of memmem test.
49836         * tests/test-memmem.c (main): Use alarm to declare failure if test
49837         is taking too long.
49838         Reported by Ralf Wildenhues.
49839
49840 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49841
49842         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49843         string, needed by strerror.
49844
49845 2008-01-03  Colin Watson  <cjwatson@debian.org>
49846             Bruno Haible  <bruno@clisp.org>
49847
49848         * doc/gnulib-tool.texi (Localization): New section.
49849
49850 2008-01-02  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49853         variables to 'unsigned char *' type.
49854         Reported by Paul Eggert.
49855
49856 2008-01-02  Jim Meyering  <jim@meyering.net>
49857
49858         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49859
49860 2007-12-31  Jim Meyering  <jim@meyering.net>
49861
49862         Avoid use of private FTS type name.
49863         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49864
49865 2007-12-30  Karl Berry  <karl@gnu.org>
49866
49867         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49868         work around defect in Texinfo and/or the standalone Info browser.
49869
49870 2007-12-30  Bruno Haible  <bruno@clisp.org>
49871
49872         Unify 5 copies of the KMP code.
49873         * lib/str-kmp.h: New file.
49874         * lib/c-strcasestr.c: Include str-kmp.h.
49875         (knuth_morris_pratt): Remove function.
49876         (c_strcasestr): Update.
49877         * lib/c-strstr.c: Include str-kmp.h.
49878         (knuth_morris_pratt): Remove function.
49879         (c_strcasestr): Update.
49880         * lib/mbscasestr.c: Include str-kmp.h.
49881         (knuth_morris_pratt_unibyte): Remove function.
49882         * lib/mbsstr.c: Include str-kmp.h.
49883         (knuth_morris_pratt_unibyte): Remove function.
49884         * lib/strcasestr.c: Include str-kmp.h.
49885         (knuth_morris_pratt): Remove function.
49886         (strcasestr): Update.
49887         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49888         * modules/c-strstr (Files): Likewise.
49889         * modules/mbscasestr (Files): Likewise.
49890         * modules/mbsstr (Files): Likewise.
49891         * modules/strcasestr (Files): Likewise.
49892         Suggested by Paul Eggert.
49893
49894 2007-12-30  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49897         defined.
49898
49899 2007-12-30  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/xmalloca.h: Include xalloc.h.
49902         (xnmalloca): New macro.
49903
49904 2007-12-30  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/malloca.h (nmalloca): New macro.
49907         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49908         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49909         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49910         knuth_morris_pratt_multibyte): Likewise.
49911         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49912         knuth_morris_pratt_multibyte): Likewise.
49913         * lib/memmem.c (knuth_morris_pratt): Likewise.
49914         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49915
49916 2007-12-25  Bruno Haible  <bruno@clisp.org>
49917
49918         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49919         * lib/glob.c: Don't include openat.h.
49920         (link_exists2_p): Add back the code that deals with the
49921         !GLOB_ALTDIRFUNC case.
49922         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49923         let it do the filename concatenation.
49924         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49925         * modules/glob (Depends-on): Remove openat.
49926
49927 2007-12-31  Bruno Haible  <bruno@clisp.org>
49928
49929         * modules/dirfd (License): Change to LGPLv2+.
49930         Approved by Jim Meyering.
49931
49932 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49935         when multiplying M by sizeof (size_t).
49936
49937 2007-12-10  Martin Lambers  <marlam@marlam.de>
49938
49939         Override getpagesize on mingw.
49940         * lib/getpagesize.c: New file.
49941         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49942         * modules/getpagesize (Files): Add lib/getpagesize.c.
49943         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49945         REPLACE_GETPAGESIZE.
49946         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49947
49948 2007-12-25  Bruno Haible  <bruno@clisp.org>
49949
49950         * modules/localcharset (Notice): New field.
49951         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49952         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49953
49954 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49955             Bruno Haible  <bruno@clisp.org>
49956
49957         Avoid using the syntax symbol() in formatted documentation.
49958         * MODULES.html.sh (func_module): When replacing symbol() with a
49959         hyperlink, remove the parentheses. Show an error if some remain.
49960         Recognize and render the '...' syntax.
49961         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49962         Rework. Add paragraph about GCC's inlining.
49963         * doc/alloca.texi: Likewise.
49964         * doc/error.texi: Remove parentheses from symbol reference.
49965         * doc/gnulib-intro.texi: Likewise.
49966         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49967         * modules/fnmatch (Description): Reword to say "the ... function".
49968         * modules/full-read (Description): Likewise.
49969         * modules/full-write (Description): Likewise.
49970         * modules/safe-read (Description): Likewise.
49971         * modules/safe-write (Description): Likewise.
49972         * modules/strchrnul (Description): Likewise.
49973         * modules/trim (Description): Likewise.
49974         * modules/error (Description): Remove parentheses from symbol
49975         references.
49976         * modules/verror (Description): Likewise.
49977         Reported by Karl Berry.
49978
49979 2007-12-25  Bruno Haible  <bruno@clisp.org>
49980
49981         Fixup after 2007-10-16 commit.
49982         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49983
49984 2007-12-24  Bruno Haible  <bruno@clisp.org>
49985
49986         Make --enable-relocatable work with DESTDIR.
49987         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49988         to compute installdir from destprog.
49989         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49990         also set the RELOC_DESTDIR variable.
49991         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49992
49993 2007-12-24  Bruno Haible  <bruno@clisp.org>
49994
49995         Fix link error due to xalloc_die().
49996         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49997         of xreadlink.
49998         * lib/relocwrapper.c: Update comments.
49999         * build-aux/install-reloc: Remove xreadlink.c from file list.
50000         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50001         xreadlink.c.
50002         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50003
50004 2007-12-24  Bruno Haible  <bruno@clisp.org>
50005
50006         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50007         * lib/setenv.h: Remove file.
50008         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50009         lib/setenv.h.
50010         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50011         (Depends-on): Add stdlib.
50012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50013         gl_FUNC_UNSETENV.
50014         (Include): Replace setenv.h with <stdlib.h>.
50015         * modules/unsetenv: New file.
50016         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50017         * lib/unsetenv.c: Include <stdlib.h> first.
50018         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50019         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50020         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50021         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50022         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50023         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50025         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50026         * doc/functions/unsetenv.texi: Update.
50027         * modules/xsetenv (Depends-on): Add unsetenv.
50028         * modules/getdate (Depends-on): Likewise.
50029         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50030         * lib/xsetenv.c: Don't include setenv.h.
50031         * lib/getdate.y: Likewise.
50032         * lib/relocwrapper.c: Likewise.
50033         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50034         (Depends-on): Add stdlib.
50035         * NEWS: Mention the changes.
50036         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50037
50038 2007-12-23  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50041         indentation.
50042
50043 2007-12-23  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/c-strcasestr.c: Add more comments.
50046         * lib/c-strstr.c: Likewise.
50047         * lib/mbscasestr.c: Likewise.
50048         * lib/mbsstr.c: Likewise.
50049         * lib/strcasestr.c: Likewise.
50050         * lib/memmem.c: Likewise.
50051
50052 2007-12-23  Bruno Haible  <bruno@clisp.org>
50053
50054         * tests/test-memmem.c: Include <string.h> first.
50055
50056 2007-12-22  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50059         the contents of $testsbase.
50060         Reported by Ralf Wildenhues.
50061
50062 2007-12-22  Bruno Haible  <bruno@clisp.org>
50063
50064         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50065         two variables local_ldadd_before, local_ldadd_last.
50066
50067 2007-12-20  Eric Blake  <ebb9@byu.net>
50068
50069         Work around circular library issue when cross-compiling.
50070         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50071         that progname.o does not need to pull in rpl_memcmp.
50072
50073 2007-12-19  Eric Blake  <ebb9@byu.net>
50074
50075         Fix memmem to avoid O(n^2) worst-case complexity.
50076         * lib/memmem.c (knuth_morris_pratt): New function.
50077         (memmem): Use it if first few naive iterations fail.
50078         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50079         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50080         * modules/memchr (License): Likewise.
50081         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50082         malloca.
50083         * tests/test-memmem.c: Rewrite, borrowing ideas from
50084         test-mbsstr1.c; the old version wouldn't even compile!
50085         * modules/memmem-tests: New file.
50086         * lib/string.in.h (rpl_memmem): Add declaration.
50087         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50089         REPLACE_MEMMEM.
50090
50091 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50094         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50095         before any system include files, and undef after them all.  This
50096         should fix a problem on VMS reported by John E. Malmberg in
50097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50098
50099 2007-12-17  Eric Blake  <ebb9@byu.net>
50100
50101         Revert addition of verify, for BSD/OS.
50102         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50103         can't handle large files, for the sake of obsolete platforms.
50104         * modules/fseeko (Depends-on): Remove verify.
50105         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50106         * doc/functions/ftello.texi (ftello): Likewise.
50107         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50108         Reported by Larry Jones.
50109
50110 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50111
50112         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50113         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50114
50115 2007-12-17  Jim Meyering  <meyering@redhat.com>
50116
50117         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50118         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50119         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50120         * modules/getcwd (Depends-on): Add openat.
50121         Reported by Petr Salinger.
50122
50123 2007-12-17  Bruno Haible  <bruno@clisp.org>
50124
50125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50126         avoid a segmentation fault of the configure test on x86_64 systems.
50127
50128 2007-12-15  Jim Meyering  <meyering@redhat.com>
50129
50130         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50131
50132 2007-12-13  Eric Blake  <ebb9@byu.net>
50133
50134         Another fseek test.
50135         * tests/test-fseek.c (main): Also test ungetc handling.
50136         * tests/test-fseeko.c (main): Likewise.
50137         * modules/fseeko (Depends-on): Add verify.
50138         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50139         large.
50140         Reported by Larry Jones.
50141
50142         Fix fseeko on mingw.
50143         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50144         seek.
50145
50146         Beef up fseek tests.
50147         * tests/test-fseek.c (main): Also test eof handling.
50148         * tests/test-fseeko.c (main): Likewise.
50149         Reported by Larry Jones.
50150
50151 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50152
50153         Fix fseeko on BSD-based platforms.
50154         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50155         successful seek.
50156
50157 2007-12-12  Eric Blake  <ebb9@byu.net>
50158
50159         Allow circular dependency of separate libtests.a
50160         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50161         when use_libtests.
50162
50163 2007-12-11  Eric Blake  <ebb9@byu.net>
50164
50165         Fix bug with -0.0L in previous patch.
50166         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50167         * tests/test-isnan.c (main): Also test on zeroes.
50168         * tests/test-isnanf.c (main): Likewise.
50169         * tests/test-isnanl.h (main): Likewise.
50170
50171         Detect pseudo-denormals on x86 even when cross-compiling.
50172         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50173         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50174         invalid bit patterns that happen to satisfy ==.
50175
50176         Avoid link failures with separate libtests.a.
50177         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50178         last, to satisfy circular dependencies.
50179
50180 2007-12-11  Eric Blake  <ebb9@byu.net>
50181         and Bruno Haible  <bruno@clisp.org>
50182
50183         Fix OpenBSD 4.0 <float.h> handling of long double.
50184         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50185         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50186         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50187
50188 2007-12-11  Jim Meyering  <meyering@redhat.com>
50189
50190         * users.txt: Add libvirt.
50191
50192         Support versions of autoconf prior to 2.59c.
50193         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50194         if it is not already defined.
50195
50196 2007-12-09  Bruno Haible  <bruno@clisp.org>
50197
50198         Let 'gnulib-tool --import' collect sources needed for the tests in
50199         tests/ rather than in lib/.
50200         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50201         argument. If true, add rules to generate libtests.a, and put libtests.a
50202         into $(LDADD). Consider source files in subdirectories and set
50203         uses_subdirs.
50204         (func_emit_initmacro_start, func_emit_initmacro_end,
50205         func_emit_initmacro_done): Pass all arguments explicitly.
50206         (func_import): Determine two module lists main_modules,
50207         testsrelated_modules. Determine use_libtests. Determine two variables
50208         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50209         instead of just sed_transform_lib_file. Determine two variables
50210         main_files and testsrelated_files. Compute 'files' as the union of
50211         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50212         func_add_or_update. In the generated gnulib-comp.m4, collect the
50213         object files for tests/ in different variables than those for lib/.
50214         Substitute LIBTESTS_LIBDEPS.
50215         (func_create_testdir): Combine the uses_subdirs results from
50216         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50217
50218 2007-12-09  Bruno Haible  <bruno@clisp.org>
50219
50220         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50221         the build-aux directory.
50222
50223 2007-12-09  Bruno Haible  <bruno@clisp.org>
50224
50225         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50226         introduced on 2006-09-09.
50227
50228 2007-12-07  Jim Meyering  <meyering@redhat.com>
50229
50230         Let these macros work also with autoconf-2.59.
50231         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50232         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50234
50235 2007-12-06  Jim Meyering  <meyering@redhat.com>
50236
50237         Avoid a configure-time syntax error in gl_FUNC_ACL.
50238         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50239         function in each branch, before testing the cache variable.
50240
50241 2007-12-04  Eric Blake  <ebb9@byu.net>
50242
50243         Make scripts executable.
50244         * build-aux/config.guess: Add execute permissions.
50245         * build-aux/config.sub: Likewise.
50246         * build-aux/gendocs.sh: Likewise.
50247
50248         Fix frexp on mingw.
50249         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50250         cross-compiling.
50251         * doc/functions/frexp.texi (frexp): Document the bug.
50252
50253         Make cygwin fseeko check more reliable.
50254         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50255         version numbers, rather than unrelated feature check.
50256         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50257         * doc/functions/ftello.texi (ftello): Likewise.
50258         Reported by Bruno Haible.
50259
50260         * m4/strerror.m4: Bump version number.
50261
50262 2007-12-03  Bruno Haible  <bruno@clisp.org>
50263
50264         * doc/functions/mprotect.texi: Mention the mingw problem.
50265
50266 2007-12-03  Eric Blake  <ebb9@byu.net>
50267
50268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50269         REPLACE_STRERROR is initialized before this macro.
50270
50271 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50272
50273         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50274         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50275         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50276         put -lsec in even for programs other than 'ls'.  This fixes a problem
50277         for gettext reported by Bruno Haible in
50278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50279         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50280         Add support for Solaris 10.  This isn't efficient, but should get the
50281         job done for now.
50282
50283 2007-12-03  James Youngman  <jay@gnu.org>
50284
50285         * doc/regexprops-generic.texi: change "an close-group" to "a
50286         close-group" and "illegal" to "not allowed".
50287
50288 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50289
50290         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50291         pr_byname.h. Needed for the rare case when the maintainer has done
50292         "make maintainer-clean" in the source directory and then attempts a
50293         build outside the source directory.
50294         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50295         scripts_byname.h.
50296
50297 2007-12-02  Martin Lambers <marlam@marlam.de>
50298             Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/getpagesize.h: Remove file.
50301         * lib/unistd.in.h: Include declaration of getpagesize here.
50302         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50303         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50304         HAVE_SYS_PARAM_H.
50305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50306         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50307         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50308         (Depends-on): Add unistd.
50309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50310         (Include): Use <unistd.h> instead of getpagesize.h.
50311         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50312         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50313         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50314         gl_GETPAGESIZE invocation, already handled by module dependency.
50315         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50316
50317 2007-12-02  Bruno Haible  <bruno@clisp.org>
50318
50319         * modules/strings-tests: New file.
50320         * tests/test-strings.c: New file.
50321
50322         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50323         * lib/strings.in.h: New file.
50324         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50325         * m4/strings_h.m4: New file.
50326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50327         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50328         * modules/strings: New file.
50329         * modules/string (Makefile.am): Update.
50330         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50331         Reported by Karl Berry.
50332
50333 2007-12-01  Eric Blake  <ebb9@byu.net>
50334
50335         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50336         accomodate fix in cygwin 1.5.25.
50337
50338 2007-12-01  Jim Meyering  <meyering@redhat.com>
50339
50340         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50341         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50342         that would inhibit utf8-optimization of a regexp containing line-
50343         or buffer-anchors, e.g., `^', `$'.
50344
50345 2007-11-30  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50348         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50349         glthread_recursive_lock_init.
50350         * lib/lock.c (glthread_recursive_lock_init)
50351         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50352         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50353
50354 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         New function qset_acl, like set_acl but with syscall semantics.
50357         * lib/acl.h (qset_acl): New decl.
50358         * lib/acl.c (qset_acl): New function.
50359         (set_acl): Use new function.  Use more-consistent diagnostics.
50360
50361 2007-11-28  Jim Meyering  <meyering@redhat.com>
50362
50363         * modules/physmem (License): Change from GPL to LGPLv2+.
50364
50365 2007-11-26  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50368         'long double' type has excess precision.
50369         Reported by Jim Meyering in
50370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50371
50372 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50373
50374         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50375         Sync from <http://gnu.org/licenses>.
50376         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50377         with license text from same location.
50378         * doc/maintain.texi, doc/standards.texi:  Sync from
50379         <http://savannah.gnu.org/projects/gnustandards>.
50380
50381 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50382         and Jim Meyering  <meyering@redhat.com>
50383
50384         Adjust getdate' grammar to accept a slightly more regular language.
50385         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50386         Before, the former was rejected.
50387         * lib/getdate.y (digits_to_date_time): New function, factored
50388         out of ...
50389         (number): ...here.  Just call digits_to_date_time.
50390         (hybrid): New non-terminal to handle an <unsigned number,
50391         signed relative offset> sequence consistently.
50392
50393 2007-11-18  Jim Meyering  <meyering@redhat.com>
50394
50395         Pull my changes from coreutils:
50396         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50397         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50398         use of $gnulib_tool_option_extras, so that it's separated from the
50399         preceding argument.
50400
50401         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50402         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50403         parent destination directories before copying a file into place.
50404
50405 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50406
50407         bootstrap: work also with 4-argument variant of AC_INIT
50408         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50409
50410 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50411
50412         Port test-getaddrinfo to Solaris.
50413         Problem reported by Bruno Haible in
50414         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50415         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50416         explanation of setting 'hints'.
50417         Don't reject an implementation merely because it returns EAI_SERVICE.
50418         (EAI_SERVICE): Define to 0 if not defined.
50419
50420 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50421
50422         The license of gnu-make and posix-shell is now "GPLed build tool".
50423         * modules/gnu-make (License): Likewise.
50424         * modules/posix-shell (License): Likewise.
50425
50426         New module posix-shell, for determining a POSIX shell
50427         or perhaps something that is close enough to a POSIX shell.
50428         * m4/posix-shell.m4: New file.
50429         * modules/posix-shell: New file.
50430
50431         * MODULES.html.sh: Mention new module.
50432
50433         New module gnu-make, for determining whether we're using GNU Make.
50434         * m4/gnu-make.m4: New file.
50435         * modules/gnu-make: New file.
50436         * MODULES.html.sh: Mention new module.
50437
50438 2007-11-14  Jim Meyering  <meyering@redhat.com>
50439
50440         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50441         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50442         use this macro to create a function _definition_.
50443         Remove useless "#undef ARGMATCH_DIE".
50444
50445 2007-11-14  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/config.charset: Update for OpenBSD 4.1.
50448         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50449
50450 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         Document 64-bit #if problems in stdint.texi.
50453         * doc/headers/stdint.texi (stdint.h): Mention problems with
50454         64-bit-#if, and how to work around them.
50455
50456         Don't insist on 'long long int' support in the preprocessor.  It
50457         breaks too many things.  For example, PRIdMAX still uses a 'long
50458         long int' format with the latest Sun compiler, even though
50459         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50460         preprocessor problem.  This causes the latest coreutils to dump
50461         core on Solaris 10 sparc with the Sun C compiler.
50462         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50463         the troublesome expressions at configure-time, not at #if-time.
50464         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50465         preprocessor.
50466         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50467         compile-time C checks, done at 'configure'-time.
50468         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50469         * modules/inttypes (Makefile): Substitute the new symbols that
50470         gl_INTTYPES_H now generates.
50471         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50472
50473 2007-11-12  Bruno Haible  <bruno@clisp.org>
50474
50475         Tests for Unicode character classification functions.
50476
50477         * modules/unictype/bidicategory-byname-tests: New file.
50478         * modules/unictype/bidicategory-name-tests: New file.
50479         * modules/unictype/bidicategory-of-tests: New file.
50480         * modules/unictype/bidicategory-test-tests: New file.
50481         * modules/unictype/block-list-tests: New file.
50482         * modules/unictype/block-of-tests: New file.
50483         * modules/unictype/block-test-tests: New file.
50484         * modules/unictype/category-C-tests: New file.
50485         * modules/unictype/category-Cc-tests: New file.
50486         * modules/unictype/category-Cf-tests: New file.
50487         * modules/unictype/category-Cn-tests: New file.
50488         * modules/unictype/category-Co-tests: New file.
50489         * modules/unictype/category-Cs-tests: New file.
50490         * modules/unictype/category-L-tests: New file.
50491         * modules/unictype/category-Ll-tests: New file.
50492         * modules/unictype/category-Lm-tests: New file.
50493         * modules/unictype/category-Lo-tests: New file.
50494         * modules/unictype/category-Lt-tests: New file.
50495         * modules/unictype/category-Lu-tests: New file.
50496         * modules/unictype/category-M-tests: New file.
50497         * modules/unictype/category-Mc-tests: New file.
50498         * modules/unictype/category-Me-tests: New file.
50499         * modules/unictype/category-Mn-tests: New file.
50500         * modules/unictype/category-N-tests: New file.
50501         * modules/unictype/category-Nd-tests: New file.
50502         * modules/unictype/category-Nl-tests: New file.
50503         * modules/unictype/category-No-tests: New file.
50504         * modules/unictype/category-P-tests: New file.
50505         * modules/unictype/category-Pc-tests: New file.
50506         * modules/unictype/category-Pd-tests: New file.
50507         * modules/unictype/category-Pe-tests: New file.
50508         * modules/unictype/category-Pf-tests: New file.
50509         * modules/unictype/category-Pi-tests: New file.
50510         * modules/unictype/category-Po-tests: New file.
50511         * modules/unictype/category-Ps-tests: New file.
50512         * modules/unictype/category-S-tests: New file.
50513         * modules/unictype/category-Sc-tests: New file.
50514         * modules/unictype/category-Sk-tests: New file.
50515         * modules/unictype/category-Sm-tests: New file.
50516         * modules/unictype/category-So-tests: New file.
50517         * modules/unictype/category-Z-tests: New file.
50518         * modules/unictype/category-Zl-tests: New file.
50519         * modules/unictype/category-Zp-tests: New file.
50520         * modules/unictype/category-Zs-tests: New file.
50521         * modules/unictype/category-and-not-tests: New file.
50522         * modules/unictype/category-and-tests: New file.
50523         * modules/unictype/category-byname-tests: New file.
50524         * modules/unictype/category-name-tests: New file.
50525         * modules/unictype/category-none-tests: New file.
50526         * modules/unictype/category-of-tests: New file.
50527         * modules/unictype/category-or-tests: New file.
50528         * modules/unictype/category-test-withtable-tests: New file.
50529         * modules/unictype/combining-class-tests: New file.
50530         * modules/unictype/ctype-alnum-tests: New file.
50531         * modules/unictype/ctype-alpha-tests: New file.
50532         * modules/unictype/ctype-blank-tests: New file.
50533         * modules/unictype/ctype-cntrl-tests: New file.
50534         * modules/unictype/ctype-digit-tests: New file.
50535         * modules/unictype/ctype-graph-tests: New file.
50536         * modules/unictype/ctype-lower-tests: New file.
50537         * modules/unictype/ctype-print-tests: New file.
50538         * modules/unictype/ctype-punct-tests: New file.
50539         * modules/unictype/ctype-space-tests: New file.
50540         * modules/unictype/ctype-upper-tests: New file.
50541         * modules/unictype/ctype-xdigit-tests: New file.
50542         * modules/unictype/decimal-digit-tests: New file.
50543         * modules/unictype/digit-tests: New file.
50544         * modules/unictype/mirror-tests: New file.
50545         * modules/unictype/numeric-tests: New file.
50546         * modules/unictype/property-alphabetic-tests: New file.
50547         * modules/unictype/property-ascii-hex-digit-tests: New file.
50548         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50549         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50550         * modules/unictype/property-bidi-block-separator-tests: New file.
50551         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50552         * modules/unictype/property-bidi-common-separator-tests: New file.
50553         * modules/unictype/property-bidi-control-tests: New file.
50554         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50555         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50556         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50557         * modules/unictype/property-bidi-european-digit-tests: New file.
50558         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50559         * modules/unictype/property-bidi-left-to-right-tests: New file.
50560         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50561         * modules/unictype/property-bidi-other-neutral-tests: New file.
50562         * modules/unictype/property-bidi-pdf-tests: New file.
50563         * modules/unictype/property-bidi-segment-separator-tests: New file.
50564         * modules/unictype/property-bidi-whitespace-tests: New file.
50565         * modules/unictype/property-byname-tests: New file.
50566         * modules/unictype/property-combining-tests: New file.
50567         * modules/unictype/property-composite-tests: New file.
50568         * modules/unictype/property-currency-symbol-tests: New file.
50569         * modules/unictype/property-dash-tests: New file.
50570         * modules/unictype/property-decimal-digit-tests: New file.
50571         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50572         * modules/unictype/property-deprecated-tests: New file.
50573         * modules/unictype/property-diacritic-tests: New file.
50574         * modules/unictype/property-extender-tests: New file.
50575         * modules/unictype/property-format-control-tests: New file.
50576         * modules/unictype/property-grapheme-base-tests: New file.
50577         * modules/unictype/property-grapheme-extend-tests: New file.
50578         * modules/unictype/property-grapheme-link-tests: New file.
50579         * modules/unictype/property-hex-digit-tests: New file.
50580         * modules/unictype/property-hyphen-tests: New file.
50581         * modules/unictype/property-id-continue-tests: New file.
50582         * modules/unictype/property-id-start-tests: New file.
50583         * modules/unictype/property-ideographic-tests: New file.
50584         * modules/unictype/property-ids-binary-operator-tests: New file.
50585         * modules/unictype/property-ids-trinary-operator-tests: New file.
50586         * modules/unictype/property-ignorable-control-tests: New file.
50587         * modules/unictype/property-iso-control-tests: New file.
50588         * modules/unictype/property-join-control-tests: New file.
50589         * modules/unictype/property-left-of-pair-tests: New file.
50590         * modules/unictype/property-line-separator-tests: New file.
50591         * modules/unictype/property-logical-order-exception-tests: New file.
50592         * modules/unictype/property-lowercase-tests: New file.
50593         * modules/unictype/property-math-tests: New file.
50594         * modules/unictype/property-non-break-tests: New file.
50595         * modules/unictype/property-not-a-character-tests: New file.
50596         * modules/unictype/property-numeric-tests: New file.
50597         * modules/unictype/property-other-alphabetic-tests: New file.
50598         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50599         * modules/unictype/property-other-grapheme-extend-tests: New file.
50600         * modules/unictype/property-other-id-continue-tests: New file.
50601         * modules/unictype/property-other-id-start-tests: New file.
50602         * modules/unictype/property-other-lowercase-tests: New file.
50603         * modules/unictype/property-other-math-tests: New file.
50604         * modules/unictype/property-other-uppercase-tests: New file.
50605         * modules/unictype/property-paired-punctuation-tests: New file.
50606         * modules/unictype/property-paragraph-separator-tests: New file.
50607         * modules/unictype/property-pattern-syntax-tests: New file.
50608         * modules/unictype/property-pattern-white-space-tests: New file.
50609         * modules/unictype/property-private-use-tests: New file.
50610         * modules/unictype/property-punctuation-tests: New file.
50611         * modules/unictype/property-quotation-mark-tests: New file.
50612         * modules/unictype/property-radical-tests: New file.
50613         * modules/unictype/property-sentence-terminal-tests: New file.
50614         * modules/unictype/property-soft-dotted-tests: New file.
50615         * modules/unictype/property-space-tests: New file.
50616         * modules/unictype/property-terminal-punctuation-tests: New file.
50617         * modules/unictype/property-test-tests: New file.
50618         * modules/unictype/property-titlecase-tests: New file.
50619         * modules/unictype/property-unassigned-code-value-tests: New file.
50620         * modules/unictype/property-unified-ideograph-tests: New file.
50621         * modules/unictype/property-uppercase-tests: New file.
50622         * modules/unictype/property-variation-selector-tests: New file.
50623         * modules/unictype/property-white-space-tests: New file.
50624         * modules/unictype/property-xid-continue-tests: New file.
50625         * modules/unictype/property-xid-start-tests: New file.
50626         * modules/unictype/property-zero-width-tests: New file.
50627         * modules/unictype/scripts-tests: New file.
50628         * modules/unictype/syntax-c-ident-tests: New file.
50629         * modules/unictype/syntax-c-whitespace-tests: New file.
50630         * modules/unictype/syntax-java-ident-tests: New file.
50631         * modules/unictype/syntax-java-whitespace-tests: New file.
50632         * tests/unictype/test-bidi_byname.c: New file.
50633         * tests/unictype/test-bidi_name.c: New file.
50634         * tests/unictype/test-bidi_of.c: New file.
50635         * tests/unictype/test-bidi_test.c: New file.
50636         * tests/unictype/test-block_list.c: New file.
50637         * tests/unictype/test-block_of.c: New file.
50638         * tests/unictype/test-block_test.c: New file.
50639         * tests/unictype/test-categ_and.c: New file.
50640         * tests/unictype/test-categ_and_not.c: New file.
50641         * tests/unictype/test-categ_byname.c: New file.
50642         * tests/unictype/test-categ_name.c: New file.
50643         * tests/unictype/test-categ_none.c: New file.
50644         * tests/unictype/test-categ_of.c: New file.
50645         * tests/unictype/test-categ_or.c: New file.
50646         * tests/unictype/test-categ_test_withtable.c: New file.
50647         * tests/unictype/test-combining.c: New file.
50648         * tests/unictype/test-decdigit.c: New file.
50649         * tests/unictype/test-digit.c: New file.
50650         * tests/unictype/test-mirror.c: New file.
50651         * tests/unictype/test-numeric.c: New file.
50652         * tests/unictype/test-pr_byname.c: New file.
50653         * tests/unictype/test-pr_test.c: New file.
50654         * tests/unictype/test-predicate-part1.h: New file.
50655         * tests/unictype/test-predicate-part2.h: New file.
50656         * tests/unictype/test-scripts.c: New file.
50657         * tests/unictype/test-sy_c_ident.c: New file.
50658         * tests/unictype/test-sy_java_ident.c: New file.
50659
50660         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50661         for Unicode 5.0.0.
50662         * tests/unictype/test-categ_Cc.c: Likewise.
50663         * tests/unictype/test-categ_Cf.c: Likewise.
50664         * tests/unictype/test-categ_Cn.c: Likewise.
50665         * tests/unictype/test-categ_Co.c: Likewise.
50666         * tests/unictype/test-categ_Cs.c: Likewise.
50667         * tests/unictype/test-categ_L.c: Likewise.
50668         * tests/unictype/test-categ_Ll.c: Likewise.
50669         * tests/unictype/test-categ_Lm.c: Likewise.
50670         * tests/unictype/test-categ_Lo.c: Likewise.
50671         * tests/unictype/test-categ_Lt.c: Likewise.
50672         * tests/unictype/test-categ_Lu.c: Likewise.
50673         * tests/unictype/test-categ_M.c: Likewise.
50674         * tests/unictype/test-categ_Mc.c: Likewise.
50675         * tests/unictype/test-categ_Me.c: Likewise.
50676         * tests/unictype/test-categ_Mn.c: Likewise.
50677         * tests/unictype/test-categ_N.c: Likewise.
50678         * tests/unictype/test-categ_Nd.c: Likewise.
50679         * tests/unictype/test-categ_Nl.c: Likewise.
50680         * tests/unictype/test-categ_No.c: Likewise.
50681         * tests/unictype/test-categ_P.c: Likewise.
50682         * tests/unictype/test-categ_Pc.c: Likewise.
50683         * tests/unictype/test-categ_Pd.c: Likewise.
50684         * tests/unictype/test-categ_Pe.c: Likewise.
50685         * tests/unictype/test-categ_Pf.c: Likewise.
50686         * tests/unictype/test-categ_Pi.c: Likewise.
50687         * tests/unictype/test-categ_Po.c: Likewise.
50688         * tests/unictype/test-categ_Ps.c: Likewise.
50689         * tests/unictype/test-categ_S.c: Likewise.
50690         * tests/unictype/test-categ_Sc.c: Likewise.
50691         * tests/unictype/test-categ_Sk.c: Likewise.
50692         * tests/unictype/test-categ_Sm.c: Likewise.
50693         * tests/unictype/test-categ_So.c: Likewise.
50694         * tests/unictype/test-categ_Z.c: Likewise.
50695         * tests/unictype/test-categ_Zl.c: Likewise.
50696         * tests/unictype/test-categ_Zp.c: Likewise.
50697         * tests/unictype/test-categ_Zs.c: Likewise.
50698         * tests/unictype/test-ctype_alnum.c: Likewise.
50699         * tests/unictype/test-ctype_alpha.c: Likewise.
50700         * tests/unictype/test-ctype_blank.c: Likewise.
50701         * tests/unictype/test-ctype_cntrl.c: Likewise.
50702         * tests/unictype/test-ctype_digit.c: Likewise.
50703         * tests/unictype/test-ctype_graph.c: Likewise.
50704         * tests/unictype/test-ctype_lower.c: Likewise.
50705         * tests/unictype/test-ctype_print.c: Likewise.
50706         * tests/unictype/test-ctype_punct.c: Likewise.
50707         * tests/unictype/test-ctype_space.c: Likewise.
50708         * tests/unictype/test-ctype_upper.c: Likewise.
50709         * tests/unictype/test-ctype_xdigit.c: Likewise.
50710         * tests/unictype/test-decdigit.h: Likewise.
50711         * tests/unictype/test-digit.h: Likewise.
50712         * tests/unictype/test-numeric.h: Likewise.
50713         * tests/unictype/test-pr_alphabetic.c: Likewise.
50714         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50715         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50716         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50717         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50718         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50719         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50720         * tests/unictype/test-pr_bidi_control.c: Likewise.
50721         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50722         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50723         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50724         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50729         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50730         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50731         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50732         * tests/unictype/test-pr_combining.c: Likewise.
50733         * tests/unictype/test-pr_composite.c: Likewise.
50734         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50735         * tests/unictype/test-pr_dash.c: Likewise.
50736         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50737         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50738         * tests/unictype/test-pr_deprecated.c: Likewise.
50739         * tests/unictype/test-pr_diacritic.c: Likewise.
50740         * tests/unictype/test-pr_extender.c: Likewise.
50741         * tests/unictype/test-pr_format_control.c: Likewise.
50742         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50743         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50744         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50745         * tests/unictype/test-pr_hex_digit.c: Likewise.
50746         * tests/unictype/test-pr_hyphen.c: Likewise.
50747         * tests/unictype/test-pr_id_continue.c: Likewise.
50748         * tests/unictype/test-pr_id_start.c: Likewise.
50749         * tests/unictype/test-pr_ideographic.c: Likewise.
50750         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50751         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50752         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50753         * tests/unictype/test-pr_iso_control.c: Likewise.
50754         * tests/unictype/test-pr_join_control.c: Likewise.
50755         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50756         * tests/unictype/test-pr_line_separator.c: Likewise.
50757         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50758         * tests/unictype/test-pr_lowercase.c: Likewise.
50759         * tests/unictype/test-pr_math.c: Likewise.
50760         * tests/unictype/test-pr_non_break.c: Likewise.
50761         * tests/unictype/test-pr_not_a_character.c: Likewise.
50762         * tests/unictype/test-pr_numeric.c: Likewise.
50763         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50764         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50765         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50766         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50767         * tests/unictype/test-pr_other_id_start.c: Likewise.
50768         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50769         * tests/unictype/test-pr_other_math.c: Likewise.
50770         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50771         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50772         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50773         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50774         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50775         * tests/unictype/test-pr_private_use.c: Likewise.
50776         * tests/unictype/test-pr_punctuation.c: Likewise.
50777         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50778         * tests/unictype/test-pr_radical.c: Likewise.
50779         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50780         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50781         * tests/unictype/test-pr_space.c: Likewise.
50782         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50783         * tests/unictype/test-pr_titlecase.c: Likewise.
50784         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50785         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50786         * tests/unictype/test-pr_uppercase.c: Likewise.
50787         * tests/unictype/test-pr_variation_selector.c: Likewise.
50788         * tests/unictype/test-pr_white_space.c: Likewise.
50789         * tests/unictype/test-pr_xid_continue.c: Likewise.
50790         * tests/unictype/test-pr_xid_start.c: Likewise.
50791         * tests/unictype/test-pr_zero_width.c: Likewise.
50792         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50793         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50794
50795 2007-11-12  Bruno Haible  <bruno@clisp.org>
50796
50797         Unicode character classification functions.
50798         * lib/unictype.h: New file.
50799         * modules/unictype/base: New file.
50800         * modules/unictype/category-L: New file.
50801         * modules/unictype/category-Lu: New file.
50802         * modules/unictype/category-Ll: New file.
50803         * modules/unictype/category-Lt: New file.
50804         * modules/unictype/category-Lm: New file.
50805         * modules/unictype/category-Lo: New file.
50806         * modules/unictype/category-M: New file.
50807         * modules/unictype/category-Mn: New file.
50808         * modules/unictype/category-Mc: New file.
50809         * modules/unictype/category-Me: New file.
50810         * modules/unictype/category-N: New file.
50811         * modules/unictype/category-Nd: New file.
50812         * modules/unictype/category-Nl: New file.
50813         * modules/unictype/category-No: New file.
50814         * modules/unictype/category-P: New file.
50815         * modules/unictype/category-Pc: New file.
50816         * modules/unictype/category-Pd: New file.
50817         * modules/unictype/category-Ps: New file.
50818         * modules/unictype/category-Pe: New file.
50819         * modules/unictype/category-Pi: New file.
50820         * modules/unictype/category-Pf: New file.
50821         * modules/unictype/category-Po: New file.
50822         * modules/unictype/category-S: New file.
50823         * modules/unictype/category-Sm: New file.
50824         * modules/unictype/category-Sc: New file.
50825         * modules/unictype/category-Sk: New file.
50826         * modules/unictype/category-So: New file.
50827         * modules/unictype/category-Z: New file.
50828         * modules/unictype/category-Zs: New file.
50829         * modules/unictype/category-Zl: New file.
50830         * modules/unictype/category-Zp: New file.
50831         * modules/unictype/category-C: New file.
50832         * modules/unictype/category-Cc: New file.
50833         * modules/unictype/category-Cf: New file.
50834         * modules/unictype/category-Cs: New file.
50835         * modules/unictype/category-Co: New file.
50836         * modules/unictype/category-Cn: New file.
50837         * modules/unictype/category-or: New file.
50838         * modules/unictype/category-of: New file.
50839         * modules/unictype/category-test: New file.
50840         * modules/unictype/category-test-withtable: New file.
50841         * modules/unictype/category-byname: New file.
50842         * modules/unictype/category-none: New file.
50843         * modules/unictype/category-and: New file.
50844         * modules/unictype/category-and-not: New file.
50845         * modules/unictype/category-name: New file.
50846         * modules/unictype/combining-class: New file.
50847         * modules/unictype/category-all: New file.
50848         * modules/unictype/bidicategory-all: New file.
50849         * modules/unictype/bidicategory-byname: New file.
50850         * modules/unictype/bidicategory-name: New file.
50851         * modules/unictype/bidicategory-of: New file.
50852         * modules/unictype/bidicategory-test: New file.
50853         * modules/unictype/decimal-digit: New file.
50854         * modules/unictype/digit: New file.
50855         * modules/unictype/numeric: New file.
50856         * modules/unictype/mirror: New file.
50857         * modules/unictype/property-white-space: New file.
50858         * modules/unictype/property-alphabetic: New file.
50859         * modules/unictype/property-other-alphabetic: New file.
50860         * modules/unictype/property-not-a-character: New file.
50861         * modules/unictype/property-default-ignorable-code-point: New file.
50862         * modules/unictype/property-other-default-ignorable-code-point: New
50863         file.
50864         * modules/unictype/property-deprecated: New file.
50865         * modules/unictype/property-logical-order-exception: New file.
50866         * modules/unictype/property-variation-selector: New file.
50867         * modules/unictype/property-private-use: New file.
50868         * modules/unictype/property-unassigned-code-value: New file.
50869         * modules/unictype/property-uppercase: New file.
50870         * modules/unictype/property-other-uppercase: New file.
50871         * modules/unictype/property-lowercase: New file.
50872         * modules/unictype/property-other-lowercase: New file.
50873         * modules/unictype/property-titlecase: New file.
50874         * modules/unictype/property-soft-dotted: New file.
50875         * modules/unictype/property-id-start: New file.
50876         * modules/unictype/property-other-id-start: New file.
50877         * modules/unictype/property-id-continue: New file.
50878         * modules/unictype/property-other-id-continue: New file.
50879         * modules/unictype/property-xid-start: New file.
50880         * modules/unictype/property-xid-continue: New file.
50881         * modules/unictype/property-pattern-white-space: New file.
50882         * modules/unictype/property-pattern-syntax: New file.
50883         * modules/unictype/property-join-control: New file.
50884         * modules/unictype/property-grapheme-base: New file.
50885         * modules/unictype/property-grapheme-extend: New file.
50886         * modules/unictype/property-other-grapheme-extend: New file.
50887         * modules/unictype/property-grapheme-link: New file.
50888         * modules/unictype/property-bidi-control: New file.
50889         * modules/unictype/property-bidi-left-to-right: New file.
50890         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50891         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50892         * modules/unictype/property-bidi-european-digit: New file.
50893         * modules/unictype/property-bidi-eur-num-separator: New file.
50894         * modules/unictype/property-bidi-eur-num-terminator: New file.
50895         * modules/unictype/property-bidi-arabic-digit: New file.
50896         * modules/unictype/property-bidi-common-separator: New file.
50897         * modules/unictype/property-bidi-block-separator: New file.
50898         * modules/unictype/property-bidi-segment-separator: New file.
50899         * modules/unictype/property-bidi-whitespace: New file.
50900         * modules/unictype/property-bidi-non-spacing-mark: New file.
50901         * modules/unictype/property-bidi-boundary-neutral: New file.
50902         * modules/unictype/property-bidi-pdf: New file.
50903         * modules/unictype/property-bidi-embedding-or-override: New file.
50904         * modules/unictype/property-bidi-other-neutral: New file.
50905         * modules/unictype/property-hex-digit: New file.
50906         * modules/unictype/property-ascii-hex-digit: New file.
50907         * modules/unictype/property-ideographic: New file.
50908         * modules/unictype/property-unified-ideograph: New file.
50909         * modules/unictype/property-radical: New file.
50910         * modules/unictype/property-ids-binary-operator: New file.
50911         * modules/unictype/property-ids-trinary-operator: New file.
50912         * modules/unictype/property-zero-width: New file.
50913         * modules/unictype/property-space: New file.
50914         * modules/unictype/property-non-break: New file.
50915         * modules/unictype/property-iso-control: New file.
50916         * modules/unictype/property-format-control: New file.
50917         * modules/unictype/property-dash: New file.
50918         * modules/unictype/property-hyphen: New file.
50919         * modules/unictype/property-punctuation: New file.
50920         * modules/unictype/property-line-separator: New file.
50921         * modules/unictype/property-paragraph-separator: New file.
50922         * modules/unictype/property-quotation-mark: New file.
50923         * modules/unictype/property-sentence-terminal: New file.
50924         * modules/unictype/property-terminal-punctuation: New file.
50925         * modules/unictype/property-currency-symbol: New file.
50926         * modules/unictype/property-math: New file.
50927         * modules/unictype/property-other-math: New file.
50928         * modules/unictype/property-paired-punctuation: New file.
50929         * modules/unictype/property-left-of-pair: New file.
50930         * modules/unictype/property-combining: New file.
50931         * modules/unictype/property-composite: New file.
50932         * modules/unictype/property-decimal-digit: New file.
50933         * modules/unictype/property-numeric: New file.
50934         * modules/unictype/property-diacritic: New file.
50935         * modules/unictype/property-extender: New file.
50936         * modules/unictype/property-ignorable-control: New file.
50937         * modules/unictype/property-test: New file.
50938         * modules/unictype/property-byname: New file.
50939         * modules/unictype/property-all: New file.
50940         * modules/unictype/scripts: New file.
50941         * modules/unictype/scripts-all: New file.
50942         * modules/unictype/block-of: New file.
50943         * modules/unictype/block-test: New file.
50944         * modules/unictype/block-list: New file.
50945         * modules/unictype/block-all: New file.
50946         * modules/unictype/syntax-c-whitespace: New file.
50947         * modules/unictype/syntax-java-whitespace: New file.
50948         * modules/unictype/syntax-c-ident: New file.
50949         * modules/unictype/syntax-java-ident: New file.
50950         * modules/unictype/ctype-alnum: New file.
50951         * modules/unictype/ctype-alpha: New file.
50952         * modules/unictype/ctype-cntrl: New file.
50953         * modules/unictype/ctype-digit: New file.
50954         * modules/unictype/ctype-graph: New file.
50955         * modules/unictype/ctype-lower: New file.
50956         * modules/unictype/ctype-print: New file.
50957         * modules/unictype/ctype-punct: New file.
50958         * modules/unictype/ctype-space: New file.
50959         * modules/unictype/ctype-upper: New file.
50960         * modules/unictype/ctype-xdigit: New file.
50961         * modules/unictype/ctype-blank: New file.
50962         * lib/unictype/bidi_byname.c: New file.
50963         * lib/unictype/bidi_name.c: New file.
50964         * lib/unictype/bidi_of.c: New file.
50965         * lib/unictype/bidi_test.c: New file.
50966         * lib/unictype/bitmap.h: New file.
50967         * lib/unictype/block_test.c: New file.
50968         * lib/unictype/blocks.c: New file.
50969         * lib/unictype/categ_C.c: New file.
50970         * lib/unictype/categ_Cc.c: New file.
50971         * lib/unictype/categ_Cf.c: New file.
50972         * lib/unictype/categ_Cn.c: New file.
50973         * lib/unictype/categ_Co.c: New file.
50974         * lib/unictype/categ_Cs.c: New file.
50975         * lib/unictype/categ_L.c: New file.
50976         * lib/unictype/categ_Ll.c: New file.
50977         * lib/unictype/categ_Lm.c: New file.
50978         * lib/unictype/categ_Lo.c: New file.
50979         * lib/unictype/categ_Lt.c: New file.
50980         * lib/unictype/categ_Lu.c: New file.
50981         * lib/unictype/categ_M.c: New file.
50982         * lib/unictype/categ_Mc.c: New file.
50983         * lib/unictype/categ_Me.c: New file.
50984         * lib/unictype/categ_Mn.c: New file.
50985         * lib/unictype/categ_N.c: New file.
50986         * lib/unictype/categ_Nd.c: New file.
50987         * lib/unictype/categ_Nl.c: New file.
50988         * lib/unictype/categ_No.c: New file.
50989         * lib/unictype/categ_P.c: New file.
50990         * lib/unictype/categ_Pc.c: New file.
50991         * lib/unictype/categ_Pd.c: New file.
50992         * lib/unictype/categ_Pe.c: New file.
50993         * lib/unictype/categ_Pf.c: New file.
50994         * lib/unictype/categ_Pi.c: New file.
50995         * lib/unictype/categ_Po.c: New file.
50996         * lib/unictype/categ_Ps.c: New file.
50997         * lib/unictype/categ_S.c: New file.
50998         * lib/unictype/categ_Sc.c: New file.
50999         * lib/unictype/categ_Sk.c: New file.
51000         * lib/unictype/categ_Sm.c: New file.
51001         * lib/unictype/categ_So.c: New file.
51002         * lib/unictype/categ_Z.c: New file.
51003         * lib/unictype/categ_Zl.c: New file.
51004         * lib/unictype/categ_Zp.c: New file.
51005         * lib/unictype/categ_Zs.c: New file.
51006         * lib/unictype/categ_and.c: New file.
51007         * lib/unictype/categ_and_not.c: New file.
51008         * lib/unictype/categ_byname.c: New file.
51009         * lib/unictype/categ_name.c: New file.
51010         * lib/unictype/categ_none.c: New file.
51011         * lib/unictype/categ_of.c: New file.
51012         * lib/unictype/categ_or.c: New file.
51013         * lib/unictype/categ_test.c: New file.
51014         * lib/unictype/combining.c: New file.
51015         * lib/unictype/ctype_alnum.c: New file.
51016         * lib/unictype/ctype_alpha.c: New file.
51017         * lib/unictype/ctype_blank.c: New file.
51018         * lib/unictype/ctype_cntrl.c: New file.
51019         * lib/unictype/ctype_digit.c: New file.
51020         * lib/unictype/ctype_graph.c: New file.
51021         * lib/unictype/ctype_lower.c: New file.
51022         * lib/unictype/ctype_print.c: New file.
51023         * lib/unictype/ctype_punct.c: New file.
51024         * lib/unictype/ctype_space.c: New file.
51025         * lib/unictype/ctype_upper.c: New file.
51026         * lib/unictype/ctype_xdigit.c: New file.
51027         * lib/unictype/decdigit.c: New file.
51028         * lib/unictype/digit.c: New file.
51029         * lib/unictype/identsyntaxmap.h: New file.
51030         * lib/unictype/mirror.c: New file.
51031         * lib/unictype/numeric.c: New file.
51032         * lib/unictype/pr_alphabetic.c: New file.
51033         * lib/unictype/pr_ascii_hex_digit.c: New file.
51034         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51035         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51036         * lib/unictype/pr_bidi_block_separator.c: New file.
51037         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51038         * lib/unictype/pr_bidi_common_separator.c: New file.
51039         * lib/unictype/pr_bidi_control.c: New file.
51040         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51041         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51042         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51043         * lib/unictype/pr_bidi_european_digit.c: New file.
51044         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51045         * lib/unictype/pr_bidi_left_to_right.c: New file.
51046         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51047         * lib/unictype/pr_bidi_other_neutral.c: New file.
51048         * lib/unictype/pr_bidi_pdf.c: New file.
51049         * lib/unictype/pr_bidi_segment_separator.c: New file.
51050         * lib/unictype/pr_bidi_whitespace.c: New file.
51051         * lib/unictype/pr_byname.c: New file.
51052         * lib/unictype/pr_byname.gperf: New file.
51053         * lib/unictype/pr_combining.c: New file.
51054         * lib/unictype/pr_composite.c: New file.
51055         * lib/unictype/pr_currency_symbol.c: New file.
51056         * lib/unictype/pr_dash.c: New file.
51057         * lib/unictype/pr_decimal_digit.c: New file.
51058         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51059         * lib/unictype/pr_deprecated.c: New file.
51060         * lib/unictype/pr_diacritic.c: New file.
51061         * lib/unictype/pr_extender.c: New file.
51062         * lib/unictype/pr_format_control.c: New file.
51063         * lib/unictype/pr_grapheme_base.c: New file.
51064         * lib/unictype/pr_grapheme_extend.c: New file.
51065         * lib/unictype/pr_grapheme_link.c: New file.
51066         * lib/unictype/pr_hex_digit.c: New file.
51067         * lib/unictype/pr_hyphen.c: New file.
51068         * lib/unictype/pr_id_continue.c: New file.
51069         * lib/unictype/pr_id_start.c: New file.
51070         * lib/unictype/pr_ideographic.c: New file.
51071         * lib/unictype/pr_ids_binary_operator.c: New file.
51072         * lib/unictype/pr_ids_trinary_operator.c: New file.
51073         * lib/unictype/pr_ignorable_control.c: New file.
51074         * lib/unictype/pr_iso_control.c: New file.
51075         * lib/unictype/pr_join_control.c: New file.
51076         * lib/unictype/pr_left_of_pair.c: New file.
51077         * lib/unictype/pr_line_separator.c: New file.
51078         * lib/unictype/pr_logical_order_exception.c: New file.
51079         * lib/unictype/pr_lowercase.c: New file.
51080         * lib/unictype/pr_math.c: New file.
51081         * lib/unictype/pr_non_break.c: New file.
51082         * lib/unictype/pr_not_a_character.c: New file.
51083         * lib/unictype/pr_numeric.c: New file.
51084         * lib/unictype/pr_other_alphabetic.c: New file.
51085         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51086         * lib/unictype/pr_other_grapheme_extend.c: New file.
51087         * lib/unictype/pr_other_id_continue.c: New file.
51088         * lib/unictype/pr_other_id_start.c: New file.
51089         * lib/unictype/pr_other_lowercase.c: New file.
51090         * lib/unictype/pr_other_math.c: New file.
51091         * lib/unictype/pr_other_uppercase.c: New file.
51092         * lib/unictype/pr_paired_punctuation.c: New file.
51093         * lib/unictype/pr_paragraph_separator.c: New file.
51094         * lib/unictype/pr_pattern_syntax.c: New file.
51095         * lib/unictype/pr_pattern_white_space.c: New file.
51096         * lib/unictype/pr_private_use.c: New file.
51097         * lib/unictype/pr_punctuation.c: New file.
51098         * lib/unictype/pr_quotation_mark.c: New file.
51099         * lib/unictype/pr_radical.c: New file.
51100         * lib/unictype/pr_sentence_terminal.c: New file.
51101         * lib/unictype/pr_soft_dotted.c: New file.
51102         * lib/unictype/pr_space.c: New file.
51103         * lib/unictype/pr_terminal_punctuation.c: New file.
51104         * lib/unictype/pr_test.c: New file.
51105         * lib/unictype/pr_titlecase.c: New file.
51106         * lib/unictype/pr_unassigned_code_value.c: New file.
51107         * lib/unictype/pr_unified_ideograph.c: New file.
51108         * lib/unictype/pr_uppercase.c: New file.
51109         * lib/unictype/pr_variation_selector.c: New file.
51110         * lib/unictype/pr_white_space.c: New file.
51111         * lib/unictype/pr_xid_continue.c: New file.
51112         * lib/unictype/pr_xid_start.c: New file.
51113         * lib/unictype/pr_zero_width.c: New file.
51114         * lib/unictype/scripts.c: New file.
51115         * lib/unictype/sy_c_ident.c: New file.
51116         * lib/unictype/sy_c_whitespace.c: New file.
51117         * lib/unictype/sy_java_ident.c: New file.
51118         * lib/unictype/sy_java_whitespace.c: New file.
51119
51120         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51121         Unicode 5.0.0.
51122         * lib/unictype/blocks.h: Likewise.
51123         * lib/unictype/categ_C.h: Likewise.
51124         * lib/unictype/categ_Cc.h: Likewise.
51125         * lib/unictype/categ_Cf.h: Likewise.
51126         * lib/unictype/categ_Cn.h: Likewise.
51127         * lib/unictype/categ_Co.h: Likewise.
51128         * lib/unictype/categ_Cs.h: Likewise.
51129         * lib/unictype/categ_L.h: Likewise.
51130         * lib/unictype/categ_Ll.h: Likewise.
51131         * lib/unictype/categ_Lm.h: Likewise.
51132         * lib/unictype/categ_Lo.h: Likewise.
51133         * lib/unictype/categ_Lt.h: Likewise.
51134         * lib/unictype/categ_Lu.h: Likewise.
51135         * lib/unictype/categ_M.h: Likewise.
51136         * lib/unictype/categ_Mc.h: Likewise.
51137         * lib/unictype/categ_Me.h: Likewise.
51138         * lib/unictype/categ_Mn.h: Likewise.
51139         * lib/unictype/categ_N.h: Likewise.
51140         * lib/unictype/categ_Nd.h: Likewise.
51141         * lib/unictype/categ_Nl.h: Likewise.
51142         * lib/unictype/categ_No.h: Likewise.
51143         * lib/unictype/categ_P.h: Likewise.
51144         * lib/unictype/categ_Pc.h: Likewise.
51145         * lib/unictype/categ_Pd.h: Likewise.
51146         * lib/unictype/categ_Pe.h: Likewise.
51147         * lib/unictype/categ_Pf.h: Likewise.
51148         * lib/unictype/categ_Pi.h: Likewise.
51149         * lib/unictype/categ_Po.h: Likewise.
51150         * lib/unictype/categ_Ps.h: Likewise.
51151         * lib/unictype/categ_S.h: Likewise.
51152         * lib/unictype/categ_Sc.h: Likewise.
51153         * lib/unictype/categ_Sk.h: Likewise.
51154         * lib/unictype/categ_Sm.h: Likewise.
51155         * lib/unictype/categ_So.h: Likewise.
51156         * lib/unictype/categ_Z.h: Likewise.
51157         * lib/unictype/categ_Zl.h: Likewise.
51158         * lib/unictype/categ_Zp.h: Likewise.
51159         * lib/unictype/categ_Zs.h: Likewise.
51160         * lib/unictype/categ_of.h: Likewise.
51161         * lib/unictype/combining.h: Likewise.
51162         * lib/unictype/ctype_alnum.h: Likewise.
51163         * lib/unictype/ctype_alpha.h: Likewise.
51164         * lib/unictype/ctype_blank.h: Likewise.
51165         * lib/unictype/ctype_cntrl.h: Likewise.
51166         * lib/unictype/ctype_digit.h: Likewise.
51167         * lib/unictype/ctype_graph.h: Likewise.
51168         * lib/unictype/ctype_lower.h: Likewise.
51169         * lib/unictype/ctype_print.h: Likewise.
51170         * lib/unictype/ctype_punct.h: Likewise.
51171         * lib/unictype/ctype_space.h: Likewise.
51172         * lib/unictype/ctype_upper.h: Likewise.
51173         * lib/unictype/ctype_xdigit.h: Likewise.
51174         * lib/unictype/decdigit.h: Likewise.
51175         * lib/unictype/digit.h: Likewise.
51176         * lib/unictype/mirror.h: Likewise.
51177         * lib/unictype/numeric.h: Likewise.
51178         * lib/unictype/pr_alphabetic.h: Likewise.
51179         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51180         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51181         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51182         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51183         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51184         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51185         * lib/unictype/pr_bidi_control.h: Likewise.
51186         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51187         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51188         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51189         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51190         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51191         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51192         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51193         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51194         * lib/unictype/pr_bidi_pdf.h: Likewise.
51195         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51196         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51197         * lib/unictype/pr_combining.h: Likewise.
51198         * lib/unictype/pr_composite.h: Likewise.
51199         * lib/unictype/pr_currency_symbol.h: Likewise.
51200         * lib/unictype/pr_dash.h: Likewise.
51201         * lib/unictype/pr_decimal_digit.h: Likewise.
51202         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51203         * lib/unictype/pr_deprecated.h: Likewise.
51204         * lib/unictype/pr_diacritic.h: Likewise.
51205         * lib/unictype/pr_extender.h: Likewise.
51206         * lib/unictype/pr_format_control.h: Likewise.
51207         * lib/unictype/pr_grapheme_base.h: Likewise.
51208         * lib/unictype/pr_grapheme_extend.h: Likewise.
51209         * lib/unictype/pr_grapheme_link.h: Likewise.
51210         * lib/unictype/pr_hex_digit.h: Likewise.
51211         * lib/unictype/pr_hyphen.h: Likewise.
51212         * lib/unictype/pr_id_continue.h: Likewise.
51213         * lib/unictype/pr_id_start.h: Likewise.
51214         * lib/unictype/pr_ideographic.h: Likewise.
51215         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51216         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51217         * lib/unictype/pr_ignorable_control.h: Likewise.
51218         * lib/unictype/pr_iso_control.h: Likewise.
51219         * lib/unictype/pr_join_control.h: Likewise.
51220         * lib/unictype/pr_left_of_pair.h: Likewise.
51221         * lib/unictype/pr_line_separator.h: Likewise.
51222         * lib/unictype/pr_logical_order_exception.h: Likewise.
51223         * lib/unictype/pr_lowercase.h: Likewise.
51224         * lib/unictype/pr_math.h: Likewise.
51225         * lib/unictype/pr_non_break.h: Likewise.
51226         * lib/unictype/pr_not_a_character.h: Likewise.
51227         * lib/unictype/pr_numeric.h: Likewise.
51228         * lib/unictype/pr_other_alphabetic.h: Likewise.
51229         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51230         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51231         * lib/unictype/pr_other_id_continue.h: Likewise.
51232         * lib/unictype/pr_other_id_start.h: Likewise.
51233         * lib/unictype/pr_other_lowercase.h: Likewise.
51234         * lib/unictype/pr_other_math.h: Likewise.
51235         * lib/unictype/pr_other_uppercase.h: Likewise.
51236         * lib/unictype/pr_paired_punctuation.h: Likewise.
51237         * lib/unictype/pr_paragraph_separator.h: Likewise.
51238         * lib/unictype/pr_pattern_syntax.h: Likewise.
51239         * lib/unictype/pr_pattern_white_space.h: Likewise.
51240         * lib/unictype/pr_private_use.h: Likewise.
51241         * lib/unictype/pr_punctuation.h: Likewise.
51242         * lib/unictype/pr_quotation_mark.h: Likewise.
51243         * lib/unictype/pr_radical.h: Likewise.
51244         * lib/unictype/pr_sentence_terminal.h: Likewise.
51245         * lib/unictype/pr_soft_dotted.h: Likewise.
51246         * lib/unictype/pr_space.h: Likewise.
51247         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51248         * lib/unictype/pr_titlecase.h: Likewise.
51249         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51250         * lib/unictype/pr_unified_ideograph.h: Likewise.
51251         * lib/unictype/pr_uppercase.h: Likewise.
51252         * lib/unictype/pr_variation_selector.h: Likewise.
51253         * lib/unictype/pr_white_space.h: Likewise.
51254         * lib/unictype/pr_xid_continue.h: Likewise.
51255         * lib/unictype/pr_xid_start.h: Likewise.
51256         * lib/unictype/pr_zero_width.h: Likewise.
51257         * lib/unictype/scripts.h: Likewise.
51258         * lib/unictype/scripts_byname.gperf: Likewise.
51259         * lib/unictype/sy_c_ident.h: Likewise.
51260         * lib/unictype/sy_c_whitespace.h: Likewise.
51261         * lib/unictype/sy_java_ident.h: Likewise.
51262         * lib/unictype/sy_java_whitespace.h: Likewise.
51263
51264         * lib/unictype/Makefile: New file.
51265         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51266         glibc.
51267         * lib/unictype/3level.h: New file, copied from glibc.
51268         * lib/unictype/3levelbit.h: New file.
51269
51270 2007-11-11  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/gperf: New file.
51273         * modules/iconv_open (Depends-on): Add it.
51274         (Makefile.am): Remove the GPERF definition.
51275
51276 2007-11-11  Bruno Haible  <bruno@clisp.org>
51277
51278         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51279         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51280
51281 2007-11-11  Bruno Haible  <bruno@clisp.org>
51282
51283         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51284         (usage): Remove function.
51285
51286 2007-11-11  Bruno Haible  <bruno@clisp.org>
51287
51288         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51289         gl_FUNC_CEILF_LIBS.
51290         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51291         gl_FUNC_CEIL_LIBS.
51292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51293         gl_FUNC_CEILL_LIBS.
51294         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51295         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51296         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51297
51298 2007-11-11  Bruno Haible  <bruno@clisp.org>
51299
51300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51301         roundf were declared but do not exist on functions.
51302         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51303         roundl were declared but do not exist on functions.
51304         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51305         HAVE_FLOORL_AND_CEILL, respectively.
51306         Needed for Sun C on Solaris 10.
51307
51308 2007-11-11  Bruno Haible  <bruno@clisp.org>
51309
51310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51311         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51312         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51313         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51315         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51316         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51317         HAVE_DECL_ROUNDF.
51318         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51319         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51321         of HAVE_DECL_ROUND*.
51322         * modules/math (Makefile.am): Update.
51323
51324 2007-11-10  Bruno Haible  <bruno@clisp.org>
51325
51326         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51327         ptrdiff_t as m4/intl.m4.
51328
51329 2007-11-10  Jim Meyering  <meyering@redhat.com>
51330
51331         Avoid link failure for the argmatch test.
51332         * tests/test-argmatch.c (usage): Define function to avoid a link
51333         failure: argmatch_die requires a usage function.
51334
51335 2007-11-09  Bruno Haible  <bruno@clisp.org>
51336
51337         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51338         * doc/functions/vsnprintf.texi: Likewise.
51339         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51340         with a size argument < 2.
51341
51342 2007-11-09  Bruno Haible  <bruno@clisp.org>
51343
51344         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51345         buffer. Fixes an inefficiency introduced on 2007-11-03.
51346
51347 2007-11-09  Bruno Haible  <bruno@clisp.org>
51348
51349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51350         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51351
51352 2007-11-08  Jim Meyering  <meyering@redhat.com>
51353
51354         Change cache variable name prefix "jm_" to "gl_" everywhere.
51355         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51356         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51357         * m4/uptime.m4: s/gl_/jm_/
51358
51359 2007-11-07  Bruno Haible  <bruno@clisp.org>
51360
51361         Update to GNU gettext 0.17.
51362         * m4/intl.m4: Update to GNU gettext 0.17.
51363         * m4/po.m4: Likewise.
51364         * modules/gettext (Files): Remove m4/ulonglong.m4.
51365         (configure.ac): Require gettext infrastructure from version 0.17.
51366
51367 2007-11-06  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51370         symbolic values are not defined in a public header.
51371         * lib/freadable.c (freadable) [QNX]: Likewise.
51372         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51373         * lib/freading.c (freading) [QNX]: Likewise.
51374         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51375         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51376         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51377         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51378         Reported by Alain Magloire.
51379
51380         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51381
51382 2007-11-05  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51385         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51386         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51387         Reported by Eric Blake.
51388
51389 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51390             Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51393         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51394         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51395         (malloc): Undefine also before including <stdlib.h>.
51396         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51397         Needed on OSF/1 4.0.
51398
51399 2007-11-05  Jim Meyering  <meyering@redhat.com>
51400
51401         git-version-gen: sync from coreutils.
51402         * build-aux/git-version-gen: Add comments.
51403         Change the first '-' to '.' in the snapshot version string,
51404         e.g., 6.9-377-08144 -> 6.9.377-08144
51405         Remove first parameter.
51406         Don't declare a version "-dirty" merely because a time
51407         stamp has changed.
51408
51409 2007-11-04  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/lock.h: Protect all macro definitions containing an 'if'
51412         statement through a "do { ... } while (0)".
51413         * lib/tls.h: Likewise.
51414
51415 2007-11-04  Bruno Haible  <bruno@clisp.org>
51416
51417         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51418
51419 2007-11-04  Bruno Haible  <bruno@clisp.org>
51420
51421         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51422         * modules/fprintf-posix (Depends-on): Add nocrash.
51423         * modules/snprintf-posix (Depends-on): Likewise.
51424         * modules/sprintf-posix (Depends-on): Likewise.
51425         * modules/vasnprintf-posix (Depends-on): Likewise.
51426         * modules/vasprintf-posix (Depends-on): Likewise.
51427         * modules/vfprintf-posix (Depends-on): Likewise.
51428         * modules/vsnprintf-posix (Depends-on): Likewise.
51429         * modules/vsprintf-posix (Depends-on): Likewise.
51430         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51431         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51432         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51433         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51434         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51435         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51436         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51437
51438 2007-11-04  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/nocrash: New file.
51441         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51442         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51443
51444 2007-11-04  Bruno Haible  <bruno@clisp.org>
51445
51446         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51447         precision handling.
51448         * tests/test-vasprintf-posix.c (test_function): Likewise.
51449         * tests/test-snprintf-posix.h (test_function): Likewise.
51450         * tests/test-sprintf-posix.h (test_function): Likewise.
51451
51452         Fix *printf behaviour for large precisions on mingw and BeOS.
51453         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51454         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51456         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51458         gl_PRINTF_PRECISION and test its result. Invoke
51459         gl_PREREQ_VASNPRINTF_PRECISION.
51460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51467         * doc/functions/fprintf.texi: Update.
51468         * doc/functions/printf.texi: Update.
51469         * doc/functions/snprintf.texi: Update.
51470         * doc/functions/sprintf.texi: Update.
51471         * doc/functions/vfprintf.texi: Update.
51472         * doc/functions/vprintf.texi: Update.
51473         * doc/functions/vsnprintf.texi: Update.
51474         * doc/functions/vsprintf.texi: Update.
51475
51476 2007-11-04  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51479
51480 2007-11-04  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51483         Reported by Sylvain Beucler <beuc@gnu.org>.
51484
51485 2007-11-03  Bruno Haible  <bruno@clisp.org>
51486
51487         * tests/test-fprintf-posix2.sh: New file.
51488         * tests/test-fprintf-posix2.c: New file.
51489         * modules/fprintf-posix-tests (Files): Add them.
51490         (TESTS): Add test-fprintf-posix2.sh.
51491         (configure.ac): Check for getrlimit and setrlimit.
51492         (check_PROGRAMS): Add test-fprintf-posix2.
51493
51494         * tests/test-printf-posix2.sh: New file.
51495         * tests/test-printf-posix2.c: New file.
51496         * modules/printf-posix-tests (Files): Add them.
51497         (TESTS): Add test-printf-posix2.sh.
51498         (configure.ac): Check for getrlimit and setrlimit.
51499         (check_PROGRAMS): Add test-printf-posix2.
51500
51501         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51502         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51503         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51504         (decode_double): New function, copied from decode_long_double.
51505         (scale10_round_decimal_decoded): New function, extracted from
51506         scale10_round_decimal_long_double.
51507         (scale10_round_decimal_long_double): Use it.
51508         (scale10_round_decimal_double): New function.
51509         (floorlog10): New function.
51510         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51514         gl_PRINTF_ENOMEM and test its result. Invoke
51515         gl_PREREQ_VASNPRINTF_ENOMEM.
51516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51523         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51524         * modules/snprintf-posix (Depends-on): Likewise.
51525         * modules/sprintf-posix (Depends-on): Likewise.
51526         * modules/vasnprintf-posix (Depends-on): Likewise.
51527         * modules/vasprintf-posix (Depends-on): Likewise.
51528         * modules/vfprintf-posix (Depends-on): Likewise.
51529         * modules/vsnprintf-posix (Depends-on): Likewise.
51530         * modules/vsprintf-posix (Depends-on): Likewise.
51531         * doc/functions/fprintf.texi: Update.
51532         * doc/functions/printf.texi: Update.
51533         * doc/functions/snprintf.texi: Update.
51534         * doc/functions/sprintf.texi: Update.
51535         * doc/functions/vfprintf.texi: Update.
51536         * doc/functions/vprintf.texi: Update.
51537         * doc/functions/vsnprintf.texi: Update.
51538         * doc/functions/vsprintf.texi: Update.
51539
51540 2007-11-03  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/frexp-nolibm-tests: New file.
51543
51544         * modules/frexp-nolibm: New file.
51545         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51546
51547 2007-11-03  Bruno Haible  <bruno@clisp.org>
51548
51549         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51550         value is C99 compliant.
51551         Needed for OSF/1 5.1.
51552
51553 2007-11-03  Bruno Haible  <bruno@clisp.org>
51554
51555         Fix out-of-memory handling of vasnprintf.
51556         * lib/printf-parse.c: Include <errno.h>.
51557         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51558         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51559         is already set.
51560
51561 2007-11-02  Eric Blake  <ebb9@byu.net>
51562
51563         Fix tests on cygwin.
51564         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51565
51566 2007-11-01  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51569         warning.
51570         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51571         needed for POSIX compatibility.
51572
51573 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51574
51575         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51576         for compatibility with GNU.
51577
51578 2007-11-01  Bruno Haible  <bruno@clisp.org>
51579
51580         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51581         (putenv): Renamed from rpl_putenv. Change argument type from
51582         'const char *' to 'char *'.
51583         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51584         of defining putenv in config.h, just set REPLACE_PUTENV.
51585         * modules/putenv (Depends-on): Add stdlib.
51586         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51587         (Include): Use <stdlib.h>.
51588         * lib/stdlib.in.h (putenv): New declaration.
51589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51590         REPLACE_PUTENV.
51591         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51592         REPLACE_PUTENV.
51593         Needed for MacOS X 10.5.0.
51594         Reported by Peter O'Gorman <peter@pogma.com>.
51595
51596 2007-11-01  Jim Meyering  <meyering@redhat.com>
51597
51598         Treat an empty date string exactly like "0".
51599         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51600         if the remaining date string (to be parsed) is empty, use "0".
51601         Reported by Mischa Molhoek and discussed in this thread:
51602         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51603
51604 2007-10-31  Bruno Haible  <bruno@clisp.org>
51605
51606         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51607         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51608         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51609         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51610         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51611         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51612
51613 2007-10-31  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51616         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51617         (AC_TYPE_LONG_LONG_INT): Use it.
51618         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51619         it as well.
51620         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51621         to m4/longlong.m4.
51622         * modules/stdint (Files): Remove m4/ulonglong.m4.
51623         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51624         m4/ulonglong.m4.
51625         * modules/strtoumax (Files): Likewise.
51626
51627 2007-10-30  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/xvasprintf-posix: New file.
51630         Suggested by Eric Blake.
51631
51632 2007-10-30  Bruno Haible  <bruno@clisp.org>
51633
51634         * modules/xprintf-posix-tests: New file.
51635         * tests/test-xprintf-posix.sh: New file.
51636         * tests/test-xprintf-posix.c: New file.
51637         * tests/test-xfprintf-posix.c: New file.
51638
51639         * modules/xprintf-posix: New file.
51640
51641 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51642
51643         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51644         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51645         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51646
51647 2007-10-29  Bruno Haible  <bruno@clisp.org>
51648
51649         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51650         contain the special marker '_cv_'.
51651         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51652         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51653         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51654         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51655         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51656         Reported by Ralf Wildenhues.
51657
51658 2007-10-29  Bruno Haible  <bruno@clisp.org>
51659
51660         * gnulib-tool (func_import): When --lgpl is not specified, set
51661         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51662         GPLv3.
51663         Reported by Simon Josefsson.
51664
51665 2007-10-28  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51668         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51669         HAVE_DECL_ISFINITE.
51670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51671         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51672         HAVE_DECL_ISFINITE.
51673
51674 2007-10-28  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51677         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51678
51679 2007-10-28  Bruno Haible  <bruno@clisp.org>
51680
51681         Fix link errors with Sun C 5.0 on Solaris 10.
51682         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51683         function is declared but not present in the compiler's libm.
51684         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51685         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51686         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51687         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51688         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51689         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51690         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51692         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51693         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51694         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51695         HAVE_DECL_FLOORL.
51696
51697 2007-10-28  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51700         gl_FUNC_FLOORL. Cache the result.
51701         (gl_FUNC_FLOORL): Use it.
51702         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51703         gl_FUNC_CEILL. Cache the result.
51704         (gl_FUNC_CEILL): Use it.
51705
51706         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51707         gl_FUNC_FLOOR. Cache the result.
51708         (gl_FUNC_FLOOR): Use it.
51709         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51710         gl_FUNC_CEIL. Cache the result.
51711         (gl_FUNC_CEIL): Use it.
51712
51713         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51714         gl_FUNC_FLOORF. Cache the result.
51715         (gl_FUNC_FLOORF): Use it.
51716         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51717         gl_FUNC_CEILF. Cache the result.
51718         (gl_FUNC_CEILF): Use it.
51719
51720 2007-10-28  Bruno Haible  <bruno@clisp.org>
51721
51722         * gnulib-tool: Allow specifying the LGPL version number through
51723         --lgpl=2 or --lgpl=3.
51724         (func_usage): Document --lgpl with argument.
51725         Handle --lgpl=... arguments.
51726         (func_import): Recognize also gl_LGPL calls with an argument. When
51727         --lgpl=2 is used and the module's license is just LGPL, report an
51728         error. Set sed_transform_lib_file according to the lgpl variable. In
51729         the generated files, use --lgpl or gl_LGPL invocations with argument,
51730         if necessary.
51731         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51732         an LGPv2+ license.
51733         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51734         gl_LGPL macro.
51735
51736 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51737             Bruno Haible  <bruno@clisp.org>
51738
51739         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51740         (u16_uctomb_aux): Likewise.
51741         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51742         !HAVE_INLINE.
51743         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51744
51745 2007-10-28  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51748         Invoke AM_GETTEXT_OPTION if it exists.
51749         * modules/vasprintf: Likewise.
51750         * modules/verror: Likewise.
51751         * modules/xprintf: Likewise.
51752         * modules/xvasprintf: Likewise.
51753
51754 2007-10-27  Ben Pfaff  <blp@gnu.org>
51755
51756         * lib/math.in.h: Define isfinite macro and prototypes for
51757         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51758         implementations.
51759         * m4/math_h.m4: New substitutions for isfinite module.
51760         * lib/isfinite.c: New file.
51761         * m4/isfinite.m4: New file.
51762         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51763         * modules/isfinite: New file.
51764         * modules/isfinite-tests: New file.
51765         * tests/tests-isfinite.c: New file.
51766         * doc/functions/isfinite.texi: Mention isfinite module.
51767         * MODULES.html.sh: Mention new module.
51768
51769 2007-10-27  Ben Pfaff  <blp@gnu.org>
51770
51771         Ralf Wildenhues reported that Tru64 4.0D declares the round
51772         functions but does not have definitions.
51773         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51774         cannot be found in any library, set the output variable to
51775         "missing" instead of "".
51776         * m4/round.m4: Also use our substitute if we cannot find round in
51777         any library, even if it is declared.
51778         * m4/roundf.m4: Likewise for roundf.
51779         * m4/roundl.m4: Likewise for roundl.
51780         * lib/math.in.h: Undefine roundf, round, roundl before defining
51781         their replacements, to allow for hypothetical systems where these
51782         may be defined as macros but not available in libraries.
51783
51784 2007-10-27  Bruno Haible  <bruno@clisp.org>
51785
51786         * doc/gnulib.texi: Invoke @firstparagraphindent.
51787         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51788         changes in gnulib.
51789         (Source changes): New section.
51790
51791 2007-10-26  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51794         borrowed from autoconf.
51795
51796 2007-10-26  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51799         strerror returned the empty string. Needed on HP-UX 11.00.
51800
51801 2007-10-24  Micah Cowan  <micah@cowan.name>
51802
51803         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51804         * build-aux/bootstrap: Remove support for now-unnecessary option,
51805         --cvs-user, and envvars CVS_USER, CVS_RSH.
51806
51807 2007-10-24  Jim Meyering  <meyering@redhat.com>
51808
51809         Avoid diagnostics from sha1sum when there is no cached checksum.
51810         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51811         if the po.s1 file hasn't been created yet.
51812
51813         * build-aux/bootstrap: Sync from coreutils:
51814         2007-10-24  Jim Meyering  <meyering@redhat.com>
51815         Get gnulib from the git repository, not from an obsolete cvs one.
51816         * build-aux/bootstrap: Suggestion from Micah Cowan.
51817         2007-10-04  Jim Meyering  <jim@meyering.net>
51818         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51819         (update_po_files): Work also when there are no .po files in po/.
51820
51821 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51822
51823         * README: Append ".git" to git and cg examples.
51824         Problem reported by Benoit Sigoure.
51825
51826 2007-10-23  Micah Cowan  <micah@cowan.name>
51827
51828         * users.txt: Add wget.
51829
51830 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51831
51832         Fix linking of some unistdio tests on FreeBSD.
51833         * modules/unistdio/u16-vsnprintf-tests
51834         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51835         * modules/unistdio/u16-vsprintf-tests
51836         (test_u16_vsnprintf1_LDADD): Likewise.
51837         * modules/unistdio/u32-vsnprintf-tests
51838         (test_u32_vsnprintf1_LDADD): Likewise.
51839         * modules/unistdio/u32-vsprintf-tests
51840         (test_u32_vsprintf1_LDADD): Likewise.
51841         * modules/unistdio/u8-vsnprintf-tests
51842         (test_u8_vsnprintf1_LDADD): Likewise.
51843         * modules/unistdio/u8-vsprintf-tests
51844         (test_u8_vsprintf1_LDADD): Likewise.
51845         * modules/unistdio/ulc-vsnprintf-tests
51846         (test_ulc_vsnprintf1_LDADD): Likewise.
51847         * modules/unistdio/ulc-vsprintf-tests
51848         (test_ulc_vsprintf1_LDADD): Likewise.
51849
51850         Fix linking of some uniconv tests on FreeBSD.
51851         * modules/uniconv/u16-conv-from-enc-tests
51852         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51853         * modules/uniconv/u16-conv-to-enc-tests
51854         (test_u16_conv_to_enc_LDADD): Likewise.
51855         * modules/uniconv/u16-strconv-from-enc-tests
51856         (test_u16_strconv_from_enc_LDADD): Likewise.
51857         * modules/uniconv/u16-strconv-to-enc-tests
51858         (test_u16_strconv_to_enc_LDADD): Likewise.
51859         * modules/uniconv/u32-conv-from-enc-tests
51860         (test_u32_conv_from_enc_LDADD): Likewise.
51861         * modules/uniconv/u32-conv-to-enc-tests
51862         (test_u32_conv_to_enc_LDADD): Likewise.
51863         * modules/uniconv/u32-strconv-from-enc-tests
51864         (test_u32_strconv_from_enc_LDADD): Likewise.
51865         * modules/uniconv/u32-strconv-to-enc-tests
51866         (test_u32_strconv_to_enc_LDADD): Likewise.
51867         * modules/uniconv/u8-conv-from-enc-tests
51868         (test_u8_conv_from_enc_LDADD): Likewise.
51869         * modules/uniconv/u8-conv-to-enc-tests
51870         (test_u8_conv_to_enc_LDADD): Likewise.
51871         * modules/uniconv/u8-strconv-from-enc-tests
51872         (test_u8_strconv_from_enc_LDADD): Likewise.
51873         * modules/uniconv/u8-strconv-to-enc-tests
51874         (test_u8_strconv_to_enc_LDADD): Likewise.
51875
51876 2007-10-22  Bruno Haible  <bruno@clisp.org>
51877
51878         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51879         size.
51880
51881 2007-10-22  Eric Blake  <ebb9@byu.net>
51882
51883         Tweak x*printf documentation.
51884         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51885         variable name and comments.
51886         Suggested by Bruno Haible.
51887
51888 2007-10-22  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/acl.c (copy_acl): Fix file name in comment.
51891
51892 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51893
51894         Fix Tru64 problem with stdbool.h.
51895         * lib/stdbool.in.h (false, true):
51896         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51897         Don't declare as an enum in this situation; it runs afoul of Tru64.
51898         Problem reported by Steven M. Schweda in
51899         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51900
51901 2007-10-22  Eric Blake  <ebb9@byu.net>
51902
51903         Also wrap vf?printf.
51904         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51905         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51906         (xvprintf, xvfprintf): New functions.
51907
51908 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51909
51910         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51911         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51912
51913         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51914         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51915
51916 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51919         by Bruno Haible.
51920
51921 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51922
51923         * lib/getloadavg.c
51924         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51925         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51926
51927         * tests/test-i-ring.c: Work for C89.
51928
51929 2007-10-22  Bruno Haible  <bruno@clisp.org>
51930
51931         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51932         -1u, in preprocessor expression, so that we don't test for the bug
51933         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51935
51936 2007-10-22  Eric Blake  <ebb9@byu.net>
51937
51938         * tests/test-yesno.sh: Silence stderr during test.
51939
51940 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51941
51942         * modules/crypto/gc-camellia: New file.
51943
51944         * m4/gc-camellia.m4: New file.
51945
51946         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51947
51948         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51949
51950 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51951
51952         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51953         --help to stdout.  Reported by sms@antinode.org (Steven
51954         M. Schweda).
51955
51956 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51957
51958         * users.txt: Fix link to libksba.
51959
51960 2007-10-21  Ben Pfaff  <blp@gnu.org>
51961
51962         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51963         round.c roundf implementation that depends on floorf and ceilf to
51964         be tested unconditionally.
51965
51966 2007-10-21  Ben Pfaff  <blp@gnu.org>
51967
51968         * m4/check-libm-func.m4: Removed.
51969         * m4/check-math-lib.m4: New file.
51970         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51971         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51972         definition and lack of AC_LIBOBJ([roundf]).
51973         * m4/roundl.m4: Ditto, and similarly for roundl.
51974         * modules/round: Reference new m4 file.
51975         * modules/roundf: Ditto.
51976         * modules/roundl: Ditto.
51977         * tests/test-round2.c (main): Use ROUND instead of round.
51978         Bug report from Bruno Haible.
51979
51980 2007-10-21  Bruno Haible  <bruno@clisp.org>
51981
51982         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51983         context.
51984
51985 2007-10-21  Bruno Haible  <bruno@clisp.org>
51986
51987         * tests/test-wcwidth.c (main): Allow negative result for some control
51988         characters.
51989
51990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51991         Needed on OSF/1 5.1.
51992
51993 2007-10-21  Bruno Haible  <bruno@clisp.org>
51994
51995         * tests/test-floorf1.c: Include isnanf.h.
51996         (main): Use isnanf() instead of isnan().
51997         * tests/test-ceilf1.c: Include isnanf.h.
51998         (main): Use isnanf() instead of isnan().
51999         * tests/test-truncf1.c: Include isnanf.h.
52000         (main): Use isnanf() instead of isnan().
52001         * tests/test-roundf1.c: Include isnanf.h.
52002         (main): Use isnanf() instead of isnan().
52003
52004 2007-10-21  Eric Blake  <ebb9@byu.net>
52005
52006         * users.txt: Update URL for m4.
52007
52008 2007-10-21  Bruno Haible  <bruno@clisp.org>
52009
52010         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52011
52012 2007-10-21  Bruno Haible  <bruno@clisp.org>
52013
52014         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52015         Git's management files if the CVS files are not present.
52016
52017 2007-10-20  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52020         gcc-3.4.x.
52021
52022 2007-10-20  Ben Pfaff  <blp@gnu.org>
52023
52024         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52025         implementations.
52026         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52027         * lib/round.c: New file.
52028         * lib/roundf.c: New file.
52029         * lib/roundl.c: New file.
52030         * m4/round.m4: New file.
52031         * m4/roundf.m4: New file.
52032         * m4/roundl.m4: New file.
52033         * m4/check-libm-func-m4: New file.
52034         * modules/math: Replace round, roundf, roundl related @VARS@ in
52035         math.in.h.
52036         * modules/round: New file.
52037         * modules/round-tests: New file.
52038         * modules/roundf: New file.
52039         * modules/roundf-tests: New file.
52040         * modules/roundl: New file.
52041         * modules/roundl-tests: New file.
52042         * tests/test-round1.c: New file.
52043         * tests/test-round2.c: New file.
52044         * tests/test-roundf1.c: New file.
52045         * tests/test-roundf2.c: New file.
52046         * tests/test-roundl.c: New file.
52047         * doc/functions/round.texi: Mention round module.
52048         * doc/functions/roundf.texi: Mention roundf module.
52049         * doc/functions/roundl.texi: Mention roundl module.
52050         * MODULES.html.sh: Mention new modules.
52051         Thanks to Bruno Haible for suggestions.
52052
52053 2007-10-20  Jim Meyering  <meyering@redhat.com>
52054
52055         * lib/xprintf.c: Include <config.h> unconditionally.
52056
52057         Change xprintf's license to GPL.
52058         * modules/xprintf (License): s/LGPL/GPL/, since this module
52059         depends on modules (exit and exitfail) which are GPL.
52060         Suggestion from Bruno Haible.
52061
52062         xprintf fixes.
52063         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52064         Use a clearer diagnostic.
52065         Patch from Bruno Haible.
52066
52067 2007-10-20  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52070         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52072
52073 2007-10-20  Bruno Haible  <bruno@clisp.org>
52074
52075         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52076         precision in the comparison result > x - 1 or similar.
52077         * tests/test-ceilf2.c (correct_result_p): Likewise.
52078         * tests/test-truncf2.c (correct_result_p): Likewise.
52079         * tests/test-trunc2.c (correct_result_p): Likewise.
52080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52081
52082 2007-10-20  Bruno Haible  <bruno@clisp.org>
52083
52084         * modules/ceil: New file.
52085         * m4/ceil.m4: New file.
52086         * doc/functions/ceil.texi: Mention the 'ceil' module.
52087
52088 2007-10-20  Bruno Haible  <bruno@clisp.org>
52089
52090         * modules/floor: New file.
52091         * m4/floor.m4: New file.
52092         * doc/functions/floor.texi: Mention the 'floor' module.
52093
52094 2007-10-20  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52097         of %a.
52098         * modules/floorf-tests (Depends-on): Likewise.
52099         * modules/truncf-tests (Depends-on): Likewise.
52100         * modules/trunc-tests (Depends-on): Likewise.
52101         Reported by Ben Pfaff.
52102
52103 2007-10-19  Jim Meyering  <meyering@redhat.com>
52104
52105         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52106         Don't bother testing specific errno values.  Just test ferror.
52107
52108         New module: xprintf
52109         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52110
52111 2007-10-19  Bruno Haible  <bruno@clisp.org>
52112
52113         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52114         syntax.
52115         * modules/javaexec (Makefile.am): Likewise.
52116         * modules/relocatable-prog (Makefile.am): Likewise.
52117         Suggested by Jim Meyering.
52118
52119 2007-10-18  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52122         Reported by Jim Meyering.
52123
52124 2007-10-18  Eric Blake  <ebb9@byu.net>
52125
52126         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52127
52128 2007-10-18  Bruno Haible  <bruno@clisp.org>
52129
52130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52131         the format string into writable memory. Needed in Fortify conditions.
52132
52133 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52137         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52138         * modules/trim (Depends-on): Add mbchar.
52139         (configure.ac): Add gl_FUNC_MBRTOWC.
52140         (Makefile.am): Augment lib_SOURCES.
52141
52142 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         Modify glob.c to use fstatat and dirfd, to simplify it.
52145         Suggested by Eric Blake.
52146         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52147         Don't include <stdbool.h>; not used.
52148         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52149         (link_exists_p): Simplify implementation, since we can now assume
52150         dirfd and fstatat.
52151         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52152
52153 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52154
52155         * gnulib-tool (func_get_dependencies): Fix sed script to
52156         match only tests.
52157
52158 2007-10-17  Bruno Haible  <bruno@clisp.org>
52159
52160         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52161         allow locale names without encoding suffix.
52162         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52164
52165 2007-10-16  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52168         * lib/getgroups.c (getgroups): Likewise.
52169         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52170
52171 2007-10-16  Bruno Haible  <bruno@clisp.org>
52172
52173         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52174         * modules/malloc-posix (License): Likewise.
52175         * modules/realloc-posix (License): Likewise.
52176         * modules/calloc-posix (License): Likewise.
52177         * modules/intprops (License): Change from GPL to LGPL, with
52178         Paul Eggert's approval.
52179
52180 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         Merge glibc changes into lib/glob.c.
52183
52184         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52185         2007-10-15 04:59:03 UTC.  Here are the changes:
52186
52187         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52188
52189         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52190
52191         * lib/glob.c: Add some branch prediction throughout.
52192
52193         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52194
52195         [BZ #5103]
52196         * lib/glob.c (glob): Recognize patterns starting \/.
52197
52198         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52199
52200         [BZ #3996]
52201         * lib/glob.c (attribute_hidden): Define if not defined.
52202         (glob): Unescape dirname, filename or username when needed and not
52203         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52204         is NULL.  Handle unescaped [ in pattern without closing ].
52205         Don't pass GLOB_CHECK down to recursive glob for directories.
52206         (__glob_pattern_type): New function.
52207         (__glob_pattern_p): Implement using __glob_pattern_type.
52208         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52209         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52210         Remove unreachable code.
52211
52212         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52213
52214         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52215         explain why there are no leaks.
52216
52217         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52218
52219         [BZ #3253]
52220         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52221         time, rather allocate increasingly bigger arrays of pointers, if
52222         possible with alloca, if too large with malloc.
52223
52224 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52225
52226         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52227         Problem reported by H.Merijn Brand in
52228         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52229         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52230         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52231
52232 2007-10-15  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52235         with explicit rpl_ prefix.
52236         * lib/fopen.c (fopen): Likewise.
52237         * lib/freopen.c (freopen): Likewise.
52238         * lib/iconv.c (iconv): Likewise.
52239         * lib/iconv_close.c (iconv_close): Likewise.
52240
52241 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52242
52243         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52244
52245 2007-10-15  Bruno Haible  <bruno@clisp.org>
52246
52247         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52248         <stddef.h> instead of <stdlib.h> since we only need NULL.
52249         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52250
52251 2007-10-15  Bruno Haible  <bruno@clisp.org>
52252
52253         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52254         Replace paragraph talking about LIBOBJS.
52255         Reported by Colin Watson <cjwatson@debian.org>.
52256
52257 2007-10-15  Bruno Haible  <bruno@clisp.org>
52258
52259         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52260         <stdlib.h> before using NULL.
52261
52262 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52263
52264         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52265         Reported by Albert Chin <china@thewrittenword.com>.
52266
52267 2007-10-14  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/iconv_open-utf-tests: New file.
52270         * tests/test-iconv-utf.c: New file.
52271
52272         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52273         * modules/iconv_open-utf: New file.
52274         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52275         (iconv, iconv_close): New declarations.
52276         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52277         be defined.
52278         (iconv_open): Add special handling of conversion between UTF-8 and
52279         UTF-{16,32}{BE,LE}.
52280         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52281         * lib/iconv_close.c: New file.
52282         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52283         gl_FUNC_ICONV_OPEN.
52284         (gl_FUNC_ICONV_OPEN): Use it.
52285         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52286         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52287         and REPLACE_ICONV_UTF.
52288         * modules/iconv_open (Depends-on): Add c-strcase.
52289         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52290         ICONV_CONST.
52291         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52292
52293 2007-10-13  Albert Chin  <china@thewrittenword.com>
52294             Bruno Haible  <bruno@clisp.org>
52295
52296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52297         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52298
52299 2007-10-13  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52302         defined, use the ISO C99 inline semantics.
52303         * lib/argp.h (ARGP_EI): Likewise.
52304
52305 2007-10-13  Bruno Haible  <bruno@clisp.org>
52306
52307         Handle 'inline' change in gcc 4.3.0.
52308         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52309         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52310         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52311         argp_fmtstream_point): Disable 'extern' declaration if the function
52312         definition is going to be provided inline.
52313         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52314         semantics, not the ISO C99 inline semantics.
52315         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52316         'extern' declaration if the function definition is going to be provided
52317         inline.
52318         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52319         the GNU C inline semantics, not the ISO C99 inline semantics. With
52320         GCC 4.2, avoid a warning.
52321
52322 2007-10-13  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/freading.h (freading): Enable the use of __freading for
52325         glibc >= 2.7.
52326         * lib/freading.c (freading): Likewise.
52327
52328 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52329
52330         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52331         "warning: C99 inline functions are not supported; using GNU89".
52332
52333 2007-10-12  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52336         of 2.
52337         * tests/test-ceilf2.c: New file.
52338         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52339
52340         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52341         * modules/ceilf-tests: Update.
52342
52343 2007-10-12  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52346         of 2.
52347         * tests/test-floorf2.c: New file.
52348         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52349
52350         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52351         * modules/floorf-tests: Update.
52352
52353 2007-10-12  Bruno Haible  <bruno@clisp.org>
52354
52355         * tests/test-trunc2.c: New file.
52356         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52357
52358         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52359         * modules/trunc-tests: Update.
52360
52361 2007-10-12  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52364         of 2.
52365         * tests/test-truncf2.c: New file.
52366         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52367
52368         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52369         * modules/truncf-tests: Update.
52370
52371 2007-10-11  Eric Blake  <ebb9@byu.net>
52372
52373         Don't claim strerror is broken on Interix.
52374         * doc/functions/strerror.texi (strerror): Known broken systems are
52375         now Solaris 8, and not Interix.
52376         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52377         Interix on cross-compile.
52378         Reported by Martin Koeppe in
52379         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52380
52381 2007-10-11  Bruno Haible  <bruno@clisp.org>
52382
52383         * modules/i-ring-tests: New file.
52384         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52385         instead of assert.
52386
52387 2007-10-11  Bruno Haible  <bruno@clisp.org>
52388
52389         * modules/filenamecat-tests: New file.
52390         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52391         * lib/filenamecat.c: Remove test code.
52392
52393 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52396
52397         * lib/strerror.c: Include <string.h> always, to test interface,
52398         and to remove the need for the dummy.
52399         Include intprops.h to compute width instead of doing it ourselves
52400         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52401         (strerror): Define it to return NULL if there's no system strerror.
52402         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52403         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52404         ancient pre-strerror Unix systems well any more.  Saying "unknown
52405         system error" is enough.
52406         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52407         simpler strerror.c implementation.
52408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52409         Simplify the tests to reflect the simpler strerror implementation.
52410         * modules/strerror (Depends-on): Add intprops.
52411
52412 2007-10-09  Eric Blake  <ebb9@byu.net>
52413
52414         Silence test-fpending.
52415         * modules/fpending-tests (Files): Add wrapper script.
52416         * tests/test-fpending.sh: New file.
52417
52418 2007-10-09  Bruno Haible  <bruno@clisp.org>
52419
52420         * MODULES.html.sh (func_module): Don't create a hyperlink for
52421         function names like 'printf_frexp'.
52422         (Misc): Add crc, memxor.
52423         (Characteristics of floating types): New section.
52424         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52425         isnanf-nolibm, signbit, trunc, truncf, truncl.
52426         (Enhancements for ISO C 99 functions): New subsection Input/output.
52427         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52428         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52429         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52430         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52431         (Enhancements for POSIX:2001 functions): Add chdir-long.
52432         (File system functions): Add areadlink, chdir-safer, read-file.
52433         Remove cycle-check.
52434         (File system as inode set): New section.
52435         (Date and time): Add gethrxtime.
52436         (Multithreading): Add openmp.
52437         (Internationalization functions): Add localename.
52438         (Unicode string functions): Add unistr/u*-mbsnlen.
52439         (Support for maintaining and releasing projects): Add git-version-gen.
52440         (Lone files): Remove directories.
52441
52442 2007-10-08  Ben Pfaff  <blp@gnu.org>
52443
52444         * lib/xmalloca.h: Fix typo in comment.
52445
52446 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52449         when avoiding problems with integer overflow.  Use a portable test
52450         instead.
52451
52452 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52453
52454         * modules/dummy (License): Change to LGPLv2+.
52455         * modules/float (License): Likewise
52456         * modules/realloc (License): Likewise
52457         * modules/stdlib (License): Likewise
52458
52459 2007-10-07  Bruno Haible  <bruno@clisp.org>
52460
52461         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52462         * floor.c (TWO_MANT_DIG): Likewise.
52463         * ceil.c (TWO_MANT_DIG): Likewise.
52464         Reported by Ben Pfaff.
52465
52466 2007-10-07  Bruno Haible  <bruno@clisp.org>
52467
52468         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52469         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52470         * lib/frexp.c (FUNC): Likewise.
52471         * lib/printf-frexp.h (printf_frexp): Likewise.
52472         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52473         * lib/printf-frexp.c (FUNC): Likewise.
52474         Suggested by Jim Meyering.
52475
52476 2007-10-07  Jim Meyering  <meyering@redhat.com>
52477
52478         Make xnanosleep's integer overflow test more robust.
52479         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52480         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52481
52482 2007-10-07  Bruno Haible  <bruno@clisp.org>
52483
52484         * NEWS: Mention the license change.
52485
52486         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52487         abbreviations in the modules files.
52488
52489         Change copyright notice from GPLv2+ to GPLv3+.
52490         * README: Change copyright notice.
52491         * MODULES.html.sh: Likewise.
52492         * build-aux/bootstrap.conf: Likewise.
52493         * build-aux/config.libpath: Likewise.
52494         * build-aux/csharpcomp.sh.in: Likewise.
52495         * build-aux/csharpexec.sh.in: Likewise.
52496         * build-aux/install-reloc: Likewise.
52497         * build-aux/javacomp.sh.in: Likewise.
52498         * build-aux/javaexec.sh.in: Likewise.
52499         * build-aux/ldd.sh.in: Likewise.
52500         * build-aux/reloc-ldflags: Likewise.
52501         * build-aux/relocatable.sh.in: Likewise.
52502         * build-aux/x-to-1.in: Likewise.
52503         * check-module: Likewise.
52504         * config/srclistvars.sh: Likewise.
52505         * gnulib-tool: Likewise.
52506         * lib/acl-internal.h: Likewise.
52507         * lib/acl.c: Likewise.
52508         * lib/acl.h: Likewise.
52509         * lib/acl_entries.c: Likewise.
52510         * lib/areadlink-with-size.c: Likewise.
52511         * lib/areadlink.c: Likewise.
52512         * lib/areadlink.h: Likewise.
52513         * lib/argmatch.c: Likewise.
52514         * lib/argmatch.h: Likewise.
52515         * lib/argp-ba.c: Likewise.
52516         * lib/argp-eexst.c: Likewise.
52517         * lib/argp-fmtstream.c: Likewise.
52518         * lib/argp-fmtstream.h: Likewise.
52519         * lib/argp-fs-xinl.c: Likewise.
52520         * lib/argp-help.c: Likewise.
52521         * lib/argp-namefrob.h: Likewise.
52522         * lib/argp-parse.c: Likewise.
52523         * lib/argp-pin.c: Likewise.
52524         * lib/argp-pv.c: Likewise.
52525         * lib/argp-pvh.c: Likewise.
52526         * lib/argp-xinl.c: Likewise.
52527         * lib/argp.h: Likewise.
52528         * lib/at-func.c: Likewise.
52529         * lib/atanl.c: Likewise.
52530         * lib/backupfile.c: Likewise.
52531         * lib/backupfile.h: Likewise.
52532         * lib/basename.c: Likewise.
52533         * lib/binary-io.h: Likewise.
52534         * lib/byteswap.in.h: Likewise.
52535         * lib/c-stack.c: Likewise.
52536         * lib/c-stack.h: Likewise.
52537         * lib/c-strcasestr.c: Likewise.
52538         * lib/c-strcasestr.h: Likewise.
52539         * lib/c-strstr.c: Likewise.
52540         * lib/c-strstr.h: Likewise.
52541         * lib/c-strtod.c: Likewise.
52542         * lib/calloc.c: Likewise.
52543         * lib/canon-host.c: Likewise.
52544         * lib/canon-host.h: Likewise.
52545         * lib/canonicalize-lgpl.c: Likewise.
52546         * lib/canonicalize.c: Likewise.
52547         * lib/canonicalize.h: Likewise.
52548         * lib/ceil.c: Likewise.
52549         * lib/ceilf.c: Likewise.
52550         * lib/ceill.c: Likewise.
52551         * lib/chdir-long.c: Likewise.
52552         * lib/chdir-long.h: Likewise.
52553         * lib/chdir-safer.c: Likewise.
52554         * lib/chdir-safer.h: Likewise.
52555         * lib/chown.c: Likewise.
52556         * lib/classpath.c: Likewise.
52557         * lib/classpath.h: Likewise.
52558         * lib/clean-temp.c: Likewise.
52559         * lib/clean-temp.h: Likewise.
52560         * lib/cloexec.c: Likewise.
52561         * lib/close-stream.c: Likewise.
52562         * lib/closein.c: Likewise.
52563         * lib/closein.h: Likewise.
52564         * lib/closeout.c: Likewise.
52565         * lib/closeout.h: Likewise.
52566         * lib/concat-filename.c: Likewise.
52567         * lib/copy-file.c: Likewise.
52568         * lib/copy-file.h: Likewise.
52569         * lib/count-one-bits.h: Likewise.
52570         * lib/crc.c: Likewise.
52571         * lib/crc.h: Likewise.
52572         * lib/creat-safer.c: Likewise.
52573         * lib/csharpcomp.c: Likewise.
52574         * lib/csharpcomp.h: Likewise.
52575         * lib/csharpexec.c: Likewise.
52576         * lib/csharpexec.h: Likewise.
52577         * lib/cycle-check.c: Likewise.
52578         * lib/cycle-check.h: Likewise.
52579         * lib/diacrit.c: Likewise.
52580         * lib/diacrit.h: Likewise.
52581         * lib/diffseq.h: Likewise.
52582         * lib/dirchownmod.c: Likewise.
52583         * lib/dirent.in.h: Likewise.
52584         * lib/dirfd.c: Likewise.
52585         * lib/dirfd.h: Likewise.
52586         * lib/dirname.c: Likewise.
52587         * lib/dirname.h: Likewise.
52588         * lib/dummy.c: Likewise.
52589         * lib/dup-safer.c: Likewise.
52590         * lib/dup2.c: Likewise.
52591         * lib/eealloc.h: Likewise.
52592         * lib/error.c: Likewise.
52593         * lib/error.h: Likewise.
52594         * lib/euidaccess.c: Likewise.
52595         * lib/exclude.c: Likewise.
52596         * lib/exclude.h: Likewise.
52597         * lib/execute.c: Likewise.
52598         * lib/execute.h: Likewise.
52599         * lib/exitfail.c: Likewise.
52600         * lib/exitfail.h: Likewise.
52601         * lib/expl.c: Likewise.
52602         * lib/fatal-signal.c: Likewise.
52603         * lib/fatal-signal.h: Likewise.
52604         * lib/fbufmode.c: Likewise.
52605         * lib/fbufmode.h: Likewise.
52606         * lib/fchdir.c: Likewise.
52607         * lib/fchmodat.c: Likewise.
52608         * lib/fchownat.c: Likewise.
52609         * lib/fcntl--.h: Likewise.
52610         * lib/fcntl-safer.h: Likewise.
52611         * lib/fcntl.in.h: Likewise.
52612         * lib/fd-safer.c: Likewise.
52613         * lib/fflush.c: Likewise.
52614         * lib/file-has-acl.c: Likewise.
52615         * lib/file-set.c: Likewise.
52616         * lib/file-type.c: Likewise.
52617         * lib/file-type.h: Likewise.
52618         * lib/fileblocks.c: Likewise.
52619         * lib/filemode.c: Likewise.
52620         * lib/filemode.h: Likewise.
52621         * lib/filename.h: Likewise.
52622         * lib/filenamecat.c: Likewise.
52623         * lib/filenamecat.h: Likewise.
52624         * lib/findprog.c: Likewise.
52625         * lib/findprog.h: Likewise.
52626         * lib/float.in.h: Likewise.
52627         * lib/floor.c: Likewise.
52628         * lib/floorf.c: Likewise.
52629         * lib/floorl.c: Likewise.
52630         * lib/fopen-safer.c: Likewise.
52631         * lib/fopen.c: Likewise.
52632         * lib/fpending.c: Likewise.
52633         * lib/fpending.h: Likewise.
52634         * lib/fprintf.c: Likewise.
52635         * lib/fprintftime.h: Likewise.
52636         * lib/fpucw.h: Likewise.
52637         * lib/fpurge.c: Likewise.
52638         * lib/fpurge.h: Likewise.
52639         * lib/freadable.c: Likewise.
52640         * lib/freadable.h: Likewise.
52641         * lib/freadahead.c: Likewise.
52642         * lib/freadahead.h: Likewise.
52643         * lib/freading.c: Likewise.
52644         * lib/freading.h: Likewise.
52645         * lib/free.c: Likewise.
52646         * lib/freopen.c: Likewise.
52647         * lib/frexp.c: Likewise.
52648         * lib/frexpl.c: Likewise.
52649         * lib/fseek.c: Likewise.
52650         * lib/fseterr.c: Likewise.
52651         * lib/fseterr.h: Likewise.
52652         * lib/fstatat.c: Likewise.
52653         * lib/fstrcmp.c: Likewise.
52654         * lib/fstrcmp.h: Likewise.
52655         * lib/fsusage.c: Likewise.
52656         * lib/fsusage.h: Likewise.
52657         * lib/ftell.c: Likewise.
52658         * lib/ftello.c: Likewise.
52659         * lib/fts-cycle.c: Likewise.
52660         * lib/fts.c: Likewise.
52661         * lib/fts_.h: Likewise.
52662         * lib/full-read.c: Likewise.
52663         * lib/full-read.h: Likewise.
52664         * lib/full-write.c: Likewise.
52665         * lib/full-write.h: Likewise.
52666         * lib/fwritable.c: Likewise.
52667         * lib/fwritable.h: Likewise.
52668         * lib/fwriteerror.c: Likewise.
52669         * lib/fwriteerror.h: Likewise.
52670         * lib/fwriting.c: Likewise.
52671         * lib/fwriting.h: Likewise.
52672         * lib/gcd.c: Likewise.
52673         * lib/gcd.h: Likewise.
52674         * lib/getcwd.c: Likewise.
52675         * lib/getdate.h: Likewise.
52676         * lib/getdate.y: Likewise.
52677         * lib/getdomainname.c: Likewise.
52678         * lib/getdomainname.h: Likewise.
52679         * lib/getgroups.c: Likewise.
52680         * lib/gethostname.c: Likewise.
52681         * lib/gethrxtime.c: Likewise.
52682         * lib/gethrxtime.h: Likewise.
52683         * lib/getloadavg.c: Likewise.
52684         * lib/getndelim2.c: Likewise.
52685         * lib/getndelim2.h: Likewise.
52686         * lib/getnline.c: Likewise.
52687         * lib/getnline.h: Likewise.
52688         * lib/getopt.c: Likewise.
52689         * lib/getopt.in.h: Likewise.
52690         * lib/getopt1.c: Likewise.
52691         * lib/getopt_int.h: Likewise.
52692         * lib/getpagesize.h: Likewise.
52693         * lib/getsubopt.c: Likewise.
52694         * lib/gettime.c: Likewise.
52695         * lib/getugroups.c: Likewise.
52696         * lib/getugroups.h: Likewise.
52697         * lib/getusershell.c: Likewise.
52698         * lib/gl_anyavltree_list1.h: Likewise.
52699         * lib/gl_anyavltree_list2.h: Likewise.
52700         * lib/gl_anyhash_list1.h: Likewise.
52701         * lib/gl_anyhash_list2.h: Likewise.
52702         * lib/gl_anylinked_list1.h: Likewise.
52703         * lib/gl_anylinked_list2.h: Likewise.
52704         * lib/gl_anyrbtree_list1.h: Likewise.
52705         * lib/gl_anyrbtree_list2.h: Likewise.
52706         * lib/gl_anytree_list1.h: Likewise.
52707         * lib/gl_anytree_list2.h: Likewise.
52708         * lib/gl_anytree_oset.h: Likewise.
52709         * lib/gl_anytreehash_list1.h: Likewise.
52710         * lib/gl_anytreehash_list2.h: Likewise.
52711         * lib/gl_array_list.c: Likewise.
52712         * lib/gl_array_list.h: Likewise.
52713         * lib/gl_array_oset.c: Likewise.
52714         * lib/gl_array_oset.h: Likewise.
52715         * lib/gl_avltree_list.c: Likewise.
52716         * lib/gl_avltree_list.h: Likewise.
52717         * lib/gl_avltree_oset.c: Likewise.
52718         * lib/gl_avltree_oset.h: Likewise.
52719         * lib/gl_avltreehash_list.c: Likewise.
52720         * lib/gl_avltreehash_list.h: Likewise.
52721         * lib/gl_carray_list.c: Likewise.
52722         * lib/gl_carray_list.h: Likewise.
52723         * lib/gl_linked_list.c: Likewise.
52724         * lib/gl_linked_list.h: Likewise.
52725         * lib/gl_linkedhash_list.c: Likewise.
52726         * lib/gl_linkedhash_list.h: Likewise.
52727         * lib/gl_list.c: Likewise.
52728         * lib/gl_list.h: Likewise.
52729         * lib/gl_oset.c: Likewise.
52730         * lib/gl_oset.h: Likewise.
52731         * lib/gl_rbtree_list.c: Likewise.
52732         * lib/gl_rbtree_list.h: Likewise.
52733         * lib/gl_rbtree_oset.c: Likewise.
52734         * lib/gl_rbtree_oset.h: Likewise.
52735         * lib/gl_rbtreehash_list.c: Likewise.
52736         * lib/gl_rbtreehash_list.h: Likewise.
52737         * lib/gl_sublist.c: Likewise.
52738         * lib/gl_sublist.h: Likewise.
52739         * lib/group-member.c: Likewise.
52740         * lib/group-member.h: Likewise.
52741         * lib/hard-locale.c: Likewise.
52742         * lib/hard-locale.h: Likewise.
52743         * lib/hash-pjw.c: Likewise.
52744         * lib/hash-pjw.h: Likewise.
52745         * lib/hash-triple.c: Likewise.
52746         * lib/hash.c: Likewise.
52747         * lib/hash.h: Likewise.
52748         * lib/human.c: Likewise.
52749         * lib/human.h: Likewise.
52750         * lib/i-ring.c: Likewise.
52751         * lib/i-ring.h: Likewise.
52752         * lib/idcache.c: Likewise.
52753         * lib/imaxabs.c: Likewise.
52754         * lib/imaxdiv.c: Likewise.
52755         * lib/inet_pton.c: Likewise.
52756         * lib/inet_pton.h: Likewise.
52757         * lib/intprops.h: Likewise.
52758         * lib/inttostr.c: Likewise.
52759         * lib/inttostr.h: Likewise.
52760         * lib/inttypes.in.h: Likewise.
52761         * lib/isapipe.c: Likewise.
52762         * lib/isdir.c: Likewise.
52763         * lib/isnan.c: Likewise.
52764         * lib/isnan.h: Likewise.
52765         * lib/isnanf.c: Likewise.
52766         * lib/isnanf.h: Likewise.
52767         * lib/isnanl-nolibm.h: Likewise.
52768         * lib/isnanl.c: Likewise.
52769         * lib/isnanl.h: Likewise.
52770         * lib/javacomp.c: Likewise.
52771         * lib/javacomp.h: Likewise.
52772         * lib/javaexec.c: Likewise.
52773         * lib/javaexec.h: Likewise.
52774         * lib/javaversion.c: Likewise.
52775         * lib/javaversion.h: Likewise.
52776         * lib/javaversion.java: Likewise.
52777         * lib/lbrkprop.h: Likewise.
52778         * lib/lchmod.h: Likewise.
52779         * lib/lchown.c: Likewise.
52780         * lib/ldexpl.c: Likewise.
52781         * lib/linebreak.c: Likewise.
52782         * lib/linebreak.h: Likewise.
52783         * lib/linebuffer.c: Likewise.
52784         * lib/linebuffer.h: Likewise.
52785         * lib/locale.in.h: Likewise.
52786         * lib/logl.c: Likewise.
52787         * lib/long-options.c: Likewise.
52788         * lib/long-options.h: Likewise.
52789         * lib/lstat.c: Likewise.
52790         * lib/lstat.h: Likewise.
52791         * lib/math.in.h: Likewise.
52792         * lib/mbchar.c: Likewise.
52793         * lib/mbchar.h: Likewise.
52794         * lib/mbfile.h: Likewise.
52795         * lib/mbiter.h: Likewise.
52796         * lib/mbscasecmp.c: Likewise.
52797         * lib/mbscasestr.c: Likewise.
52798         * lib/mbschr.c: Likewise.
52799         * lib/mbscspn.c: Likewise.
52800         * lib/mbslen.c: Likewise.
52801         * lib/mbsncasecmp.c: Likewise.
52802         * lib/mbsnlen.c: Likewise.
52803         * lib/mbspbrk.c: Likewise.
52804         * lib/mbspcasecmp.c: Likewise.
52805         * lib/mbsrchr.c: Likewise.
52806         * lib/mbssep.c: Likewise.
52807         * lib/mbsspn.c: Likewise.
52808         * lib/mbsstr.c: Likewise.
52809         * lib/mbstok_r.c: Likewise.
52810         * lib/mbswidth.c: Likewise.
52811         * lib/mbswidth.h: Likewise.
52812         * lib/mbuiter.h: Likewise.
52813         * lib/memcasecmp.c: Likewise.
52814         * lib/memcasecmp.h: Likewise.
52815         * lib/memchr.c: Likewise.
52816         * lib/memcmp.c: Likewise.
52817         * lib/memcoll.c: Likewise.
52818         * lib/memcoll.h: Likewise.
52819         * lib/memcpy.c: Likewise.
52820         * lib/memrchr.c: Likewise.
52821         * lib/mkancesdirs.c: Likewise.
52822         * lib/mkdir-p.c: Likewise.
52823         * lib/mkdir-p.h: Likewise.
52824         * lib/mkdir.c: Likewise.
52825         * lib/mkdirat.c: Likewise.
52826         * lib/mkdtemp.c: Likewise.
52827         * lib/mkstemp-safer.c: Likewise.
52828         * lib/mkstemp.c: Likewise.
52829         * lib/modechange.c: Likewise.
52830         * lib/modechange.h: Likewise.
52831         * lib/mountlist.c: Likewise.
52832         * lib/mountlist.h: Likewise.
52833         * lib/mpsort.c: Likewise.
52834         * lib/nanosleep.c: Likewise.
52835         * lib/obstack.c: Likewise.
52836         * lib/obstack.h: Likewise.
52837         * lib/open-safer.c: Likewise.
52838         * lib/open.c: Likewise.
52839         * lib/openat-die.c: Likewise.
52840         * lib/openat-priv.h: Likewise.
52841         * lib/openat-proc.c: Likewise.
52842         * lib/openat.c: Likewise.
52843         * lib/openat.h: Likewise.
52844         * lib/pagealign_alloc.c: Likewise.
52845         * lib/pagealign_alloc.h: Likewise.
52846         * lib/physmem.c: Likewise.
52847         * lib/physmem.h: Likewise.
52848         * lib/pipe-safer.c: Likewise.
52849         * lib/pipe.c: Likewise.
52850         * lib/pipe.h: Likewise.
52851         * lib/posixtm.c: Likewise.
52852         * lib/posixtm.h: Likewise.
52853         * lib/posixver.c: Likewise.
52854         * lib/printf-frexp.c: Likewise.
52855         * lib/printf-frexp.h: Likewise.
52856         * lib/printf-frexpl.c: Likewise.
52857         * lib/printf-frexpl.h: Likewise.
52858         * lib/printf.c: Likewise.
52859         * lib/progname.c: Likewise.
52860         * lib/progname.h: Likewise.
52861         * lib/progreloc.c: Likewise.
52862         * lib/putenv.c: Likewise.
52863         * lib/quote.c: Likewise.
52864         * lib/quote.h: Likewise.
52865         * lib/quotearg.c: Likewise.
52866         * lib/quotearg.h: Likewise.
52867         * lib/raise.c: Likewise.
52868         * lib/readline.c: Likewise.
52869         * lib/readline.h: Likewise.
52870         * lib/readlink.c: Likewise.
52871         * lib/readtokens.c: Likewise.
52872         * lib/readtokens.h: Likewise.
52873         * lib/readtokens0.c: Likewise.
52874         * lib/readtokens0.h: Likewise.
52875         * lib/readutmp.c: Likewise.
52876         * lib/readutmp.h: Likewise.
52877         * lib/realloc.c: Likewise.
52878         * lib/relocwrapper.c: Likewise.
52879         * lib/rename-dest-slash.c: Likewise.
52880         * lib/rename.c: Likewise.
52881         * lib/rmdir.c: Likewise.
52882         * lib/rpmatch.c: Likewise.
52883         * lib/safe-read.c: Likewise.
52884         * lib/safe-read.h: Likewise.
52885         * lib/safe-write.c: Likewise.
52886         * lib/safe-write.h: Likewise.
52887         * lib/same-inode.h: Likewise.
52888         * lib/same.c: Likewise.
52889         * lib/same.h: Likewise.
52890         * lib/save-cwd.c: Likewise.
52891         * lib/save-cwd.h: Likewise.
52892         * lib/savedir.c: Likewise.
52893         * lib/savedir.h: Likewise.
52894         * lib/savewd.c: Likewise.
52895         * lib/savewd.h: Likewise.
52896         * lib/search.in.h: Likewise.
52897         * lib/setenv.c: Likewise.
52898         * lib/setenv.h: Likewise.
52899         * lib/settime.c: Likewise.
52900         * lib/sh-quote.c: Likewise.
52901         * lib/sh-quote.h: Likewise.
52902         * lib/sig2str.c: Likewise.
52903         * lib/sig2str.h: Likewise.
52904         * lib/signal.in.h: Likewise.
52905         * lib/signbitd.c: Likewise.
52906         * lib/signbitf.c: Likewise.
52907         * lib/signbitl.c: Likewise.
52908         * lib/sigprocmask.c: Likewise.
52909         * lib/sincosl.c: Likewise.
52910         * lib/sleep.c: Likewise.
52911         * lib/sprintf.c: Likewise.
52912         * lib/sqrtl.c: Likewise.
52913         * lib/stat-time.h: Likewise.
52914         * lib/stdio--.h: Likewise.
52915         * lib/stdio-safer.h: Likewise.
52916         * lib/stdlib--.h: Likewise.
52917         * lib/stdlib-safer.h: Likewise.
52918         * lib/stdlib.in.h: Likewise.
52919         * lib/stpcpy.c: Likewise.
52920         * lib/stpncpy.c: Likewise.
52921         * lib/strchrnul.c: Likewise.
52922         * lib/strcspn.c: Likewise.
52923         * lib/strerror.c: Likewise.
52924         * lib/strftime.c: Likewise.
52925         * lib/strftime.h: Likewise.
52926         * lib/striconveh.c: Likewise.
52927         * lib/striconveh.h: Likewise.
52928         * lib/striconveha.c: Likewise.
52929         * lib/striconveha.h: Likewise.
52930         * lib/stripslash.c: Likewise.
52931         * lib/strnlen1.c: Likewise.
52932         * lib/strnlen1.h: Likewise.
52933         * lib/strtod.c: Likewise.
52934         * lib/strtoimax.c: Likewise.
52935         * lib/strtok_r.c: Likewise.
52936         * lib/strtol.c: Likewise.
52937         * lib/strtoll.c: Likewise.
52938         * lib/strtoul.c: Likewise.
52939         * lib/strtoull.c: Likewise.
52940         * lib/sysexits.in.h: Likewise.
52941         * lib/tempname.c: Likewise.
52942         * lib/tempname.h: Likewise.
52943         * lib/timespec.h: Likewise.
52944         * lib/tls.c: Likewise.
52945         * lib/tls.h: Likewise.
52946         * lib/tmpdir.c: Likewise.
52947         * lib/tmpdir.h: Likewise.
52948         * lib/tmpfile-safer.c: Likewise.
52949         * lib/tmpfile.c: Likewise.
52950         * lib/trigl.c: Likewise.
52951         * lib/trigl.h: Likewise.
52952         * lib/trim.c: Likewise.
52953         * lib/trim.h: Likewise.
52954         * lib/trunc.c: Likewise.
52955         * lib/truncf.c: Likewise.
52956         * lib/truncl.c: Likewise.
52957         * lib/tsearch.c: Likewise.
52958         * lib/unicodeio.c: Likewise.
52959         * lib/unicodeio.h: Likewise.
52960         * lib/unistd--.h: Likewise.
52961         * lib/unistd-safer.h: Likewise.
52962         * lib/unistdio/ulc-fprintf.c: Likewise.
52963         * lib/unistdio/ulc-vfprintf.c: Likewise.
52964         * lib/unlinkdir.c: Likewise.
52965         * lib/unlinkdir.h: Likewise.
52966         * lib/unlocked-io.h: Likewise.
52967         * lib/unsetenv.c: Likewise.
52968         * lib/userspec.c: Likewise.
52969         * lib/utime.c: Likewise.
52970         * lib/utimecmp.c: Likewise.
52971         * lib/utimecmp.h: Likewise.
52972         * lib/utimens.c: Likewise.
52973         * lib/verify.h: Likewise.
52974         * lib/verror.c: Likewise.
52975         * lib/verror.h: Likewise.
52976         * lib/version-etc-fsf.c: Likewise.
52977         * lib/version-etc.c: Likewise.
52978         * lib/version-etc.h: Likewise.
52979         * lib/vfprintf.c: Likewise.
52980         * lib/vprintf.c: Likewise.
52981         * lib/vsprintf.c: Likewise.
52982         * lib/w32spawn.h: Likewise.
52983         * lib/wait-process.c: Likewise.
52984         * lib/wait-process.h: Likewise.
52985         * lib/wcwidth.c: Likewise.
52986         * lib/write-any-file.c: Likewise.
52987         * lib/xalloc-die.c: Likewise.
52988         * lib/xalloc.h: Likewise.
52989         * lib/xasprintf.c: Likewise.
52990         * lib/xgetcwd.c: Likewise.
52991         * lib/xgetcwd.h: Likewise.
52992         * lib/xgetdomainname.c: Likewise.
52993         * lib/xgetdomainname.h: Likewise.
52994         * lib/xgethostname.c: Likewise.
52995         * lib/xmalloc.c: Likewise.
52996         * lib/xmalloca.c: Likewise.
52997         * lib/xmalloca.h: Likewise.
52998         * lib/xmemcoll.c: Likewise.
52999         * lib/xnanosleep.c: Likewise.
53000         * lib/xreadlink.c: Likewise.
53001         * lib/xreadlink.h: Likewise.
53002         * lib/xsetenv.c: Likewise.
53003         * lib/xsetenv.h: Likewise.
53004         * lib/xstriconv.c: Likewise.
53005         * lib/xstriconv.h: Likewise.
53006         * lib/xstrndup.c: Likewise.
53007         * lib/xstrndup.h: Likewise.
53008         * lib/xstrtod.c: Likewise.
53009         * lib/xstrtod.h: Likewise.
53010         * lib/xstrtol-error.c: Likewise.
53011         * lib/xstrtol.c: Likewise.
53012         * lib/xstrtol.h: Likewise.
53013         * lib/xtime.h: Likewise.
53014         * lib/xvasprintf.c: Likewise.
53015         * lib/xvasprintf.h: Likewise.
53016         * lib/yesno.c: Likewise.
53017         * lib/yesno.h: Likewise.
53018         * posix-modules: Likewise.
53019         * tests/test-alloca-opt.c: Likewise.
53020         * tests/test-arcfour.c: Likewise.
53021         * tests/test-arctwo.c: Likewise.
53022         * tests/test-argmatch.c: Likewise.
53023         * tests/test-argp-2.sh: Likewise.
53024         * tests/test-argp.c: Likewise.
53025         * tests/test-arpa_inet.c: Likewise.
53026         * tests/test-array_list.c: Likewise.
53027         * tests/test-array_oset.c: Likewise.
53028         * tests/test-atexit.c: Likewise.
53029         * tests/test-avltree_list.c: Likewise.
53030         * tests/test-avltree_oset.c: Likewise.
53031         * tests/test-avltreehash_list.c: Likewise.
53032         * tests/test-base64.c: Likewise.
53033         * tests/test-binary-io.c: Likewise.
53034         * tests/test-byteswap.c: Likewise.
53035         * tests/test-c-ctype.c: Likewise.
53036         * tests/test-c-strcasecmp.c: Likewise.
53037         * tests/test-c-strcasestr.c: Likewise.
53038         * tests/test-c-strncasecmp.c: Likewise.
53039         * tests/test-c-strstr.c: Likewise.
53040         * tests/test-canonicalize-lgpl.c: Likewise.
53041         * tests/test-canonicalize.c: Likewise.
53042         * tests/test-carray_list.c: Likewise.
53043         * tests/test-ceilf.c: Likewise.
53044         * tests/test-ceill.c: Likewise.
53045         * tests/test-count-one-bits.c: Likewise.
53046         * tests/test-crc.c: Likewise.
53047         * tests/test-dirname.c: Likewise.
53048         * tests/test-fbufmode.c: Likewise.
53049         * tests/test-fcntl.c: Likewise.
53050         * tests/test-fflush.c: Likewise.
53051         * tests/test-floorf.c: Likewise.
53052         * tests/test-floorl.c: Likewise.
53053         * tests/test-fopen.c: Likewise.
53054         * tests/test-fprintf-posix.c: Likewise.
53055         * tests/test-fprintf-posix.h: Likewise.
53056         * tests/test-fpurge.c: Likewise.
53057         * tests/test-freadable.c: Likewise.
53058         * tests/test-freadahead.c: Likewise.
53059         * tests/test-freading.c: Likewise.
53060         * tests/test-freopen.c: Likewise.
53061         * tests/test-frexp.c: Likewise.
53062         * tests/test-frexpl.c: Likewise.
53063         * tests/test-fseek.c: Likewise.
53064         * tests/test-fseeko.c: Likewise.
53065         * tests/test-fseterr.c: Likewise.
53066         * tests/test-fstrcmp.c: Likewise.
53067         * tests/test-ftell.c: Likewise.
53068         * tests/test-ftello.c: Likewise.
53069         * tests/test-fwritable.c: Likewise.
53070         * tests/test-fwriting.c: Likewise.
53071         * tests/test-getaddrinfo.c: Likewise.
53072         * tests/test-getpass.c: Likewise.
53073         * tests/test-gettimeofday.c: Likewise.
53074         * tests/test-hmac-md5.c: Likewise.
53075         * tests/test-hmac-sha1.c: Likewise.
53076         * tests/test-iconv.c: Likewise.
53077         * tests/test-iconvme.c: Likewise.
53078         * tests/test-inttypes.c: Likewise.
53079         * tests/test-isnan.c: Likewise.
53080         * tests/test-isnanf.c: Likewise.
53081         * tests/test-isnanl-nolibm.c: Likewise.
53082         * tests/test-isnanl.c: Likewise.
53083         * tests/test-isnanl.h: Likewise.
53084         * tests/test-ldexpl.c: Likewise.
53085         * tests/test-linked_list.c: Likewise.
53086         * tests/test-linkedhash_list.c: Likewise.
53087         * tests/test-locale.c: Likewise.
53088         * tests/test-localename.c: Likewise.
53089         * tests/test-lock.c: Likewise.
53090         * tests/test-lseek.c: Likewise.
53091         * tests/test-malloca.c: Likewise.
53092         * tests/test-math.c: Likewise.
53093         * tests/test-mbscasecmp.c: Likewise.
53094         * tests/test-mbscasestr1.c: Likewise.
53095         * tests/test-mbscasestr2.c: Likewise.
53096         * tests/test-mbscasestr3.c: Likewise.
53097         * tests/test-mbscasestr4.c: Likewise.
53098         * tests/test-mbschr.c: Likewise.
53099         * tests/test-mbscspn.c: Likewise.
53100         * tests/test-mbsncasecmp.c: Likewise.
53101         * tests/test-mbspbrk.c: Likewise.
53102         * tests/test-mbspcasecmp.c: Likewise.
53103         * tests/test-mbsrchr.c: Likewise.
53104         * tests/test-mbsspn.c: Likewise.
53105         * tests/test-mbsstr1.c: Likewise.
53106         * tests/test-mbsstr2.c: Likewise.
53107         * tests/test-mbsstr3.c: Likewise.
53108         * tests/test-md5.c: Likewise.
53109         * tests/test-memmem.c: Likewise.
53110         * tests/test-netinet_in.c: Likewise.
53111         * tests/test-open.c: Likewise.
53112         * tests/test-printf-frexp.c: Likewise.
53113         * tests/test-printf-frexpl.c: Likewise.
53114         * tests/test-printf-posix.c: Likewise.
53115         * tests/test-printf-posix.h: Likewise.
53116         * tests/test-rbtree_list.c: Likewise.
53117         * tests/test-rbtree_oset.c: Likewise.
53118         * tests/test-rbtreehash_list.c: Likewise.
53119         * tests/test-read-file.c: Likewise.
53120         * tests/test-rijndael.c: Likewise.
53121         * tests/test-search.c: Likewise.
53122         * tests/test-signbit.c: Likewise.
53123         * tests/test-sleep.c: Likewise.
53124         * tests/test-snprintf-posix.c: Likewise.
53125         * tests/test-snprintf-posix.h: Likewise.
53126         * tests/test-snprintf.c: Likewise.
53127         * tests/test-sprintf-posix.c: Likewise.
53128         * tests/test-sprintf-posix.h: Likewise.
53129         * tests/test-stat-time.c: Likewise.
53130         * tests/test-stdbool.c: Likewise.
53131         * tests/test-stdint.c: Likewise.
53132         * tests/test-stdio.c: Likewise.
53133         * tests/test-stdlib.c: Likewise.
53134         * tests/test-stpncpy.c: Likewise.
53135         * tests/test-strcasestr.c: Likewise.
53136         * tests/test-striconv.c: Likewise.
53137         * tests/test-striconveh.c: Likewise.
53138         * tests/test-striconveha.c: Likewise.
53139         * tests/test-string.c: Likewise.
53140         * tests/test-sys_select.c: Likewise.
53141         * tests/test-sys_socket.c: Likewise.
53142         * tests/test-sys_stat.c: Likewise.
53143         * tests/test-sys_time.c: Likewise.
53144         * tests/test-sysexits.c: Likewise.
53145         * tests/test-time.c: Likewise.
53146         * tests/test-tls.c: Likewise.
53147         * tests/test-trunc.c: Likewise.
53148         * tests/test-truncf.c: Likewise.
53149         * tests/test-truncl.c: Likewise.
53150         * tests/test-unistd.c: Likewise.
53151         * tests/test-vasnprintf-posix.c: Likewise.
53152         * tests/test-vasnprintf-posix2.c: Likewise.
53153         * tests/test-vasnprintf.c: Likewise.
53154         * tests/test-vasprintf-posix.c: Likewise.
53155         * tests/test-vasprintf.c: Likewise.
53156         * tests/test-verify.c: Likewise.
53157         * tests/test-vfprintf-posix.c: Likewise.
53158         * tests/test-vprintf-posix.c: Likewise.
53159         * tests/test-vsnprintf-posix.c: Likewise.
53160         * tests/test-vsnprintf.c: Likewise.
53161         * tests/test-vsprintf-posix.c: Likewise.
53162         * tests/test-wchar.c: Likewise.
53163         * tests/test-wctype.c: Likewise.
53164         * tests/test-wcwidth.c: Likewise.
53165         * tests/test-xstrtol.c: Likewise.
53166         * tests/test-xvasprintf.c: Likewise.
53167         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53168         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53169         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53170         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53171         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53172         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53173         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53174         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53175         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53176         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53179         * tests/uniname/test-uninames.c: Likewise.
53180         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53181         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53182         * tests/unistdio/test-u16-printf1.h: Likewise.
53183         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53184         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53185         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53186         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53187         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53188         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53189         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53190         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53191         * tests/unistdio/test-u32-printf1.h: Likewise.
53192         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53193         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53194         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53195         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53196         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53197         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53198         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53199         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53200         * tests/unistdio/test-u8-printf1.h: Likewise.
53201         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53202         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53203         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53204         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53205         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53206         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53207         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53208         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53209         * tests/unistdio/test-ulc-printf1.h: Likewise.
53210         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53211         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53212         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53213         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53214         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53215         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53216         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53217         * tests/uniwidth/test-u16-width.c: Likewise.
53218         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53219         * tests/uniwidth/test-u32-width.c: Likewise.
53220         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53221         * tests/uniwidth/test-u8-width.c: Likewise.
53222         * tests/uniwidth/test-uc_width.c: Likewise.
53223         * config/srclist-update: Likewise.
53224         (fixlicense): Update to GPLv3+.
53225
53226         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53227         * tests/test-tsearch.c: Change copyright notice.
53228
53229         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53230         * lib/c-strcaseeq.h: Change copyright notice.
53231         * lib/streq.h: Likewise.
53232         * lib/uniconv.h: Likewise.
53233         * lib/uniconv/u-conv-from-enc.h: Likewise.
53234         * lib/uniconv/u-conv-to-enc.h: Likewise.
53235         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53236         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53237         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53238         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53239         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53240         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53241         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53242         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53243         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53244         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53245         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53246         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53247         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53248         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53249         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53250         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53251         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53252         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53253         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53254         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53255         * lib/uniname.h: Likewise.
53256         * lib/uniname/uniname.c: Likewise.
53257         * lib/unistdio.h: Likewise.
53258         * lib/unistdio/u-asnprintf.h: Likewise.
53259         * lib/unistdio/u-asprintf.h: Likewise.
53260         * lib/unistdio/u-printf-args.c: Likewise.
53261         * lib/unistdio/u-printf-args.h: Likewise.
53262         * lib/unistdio/u-printf-parse.h: Likewise.
53263         * lib/unistdio/u-snprintf.h: Likewise.
53264         * lib/unistdio/u-sprintf.h: Likewise.
53265         * lib/unistdio/u-vasprintf.h: Likewise.
53266         * lib/unistdio/u-vsnprintf.h: Likewise.
53267         * lib/unistdio/u-vsprintf.h: Likewise.
53268         * lib/unistdio/u16-asnprintf.c: Likewise.
53269         * lib/unistdio/u16-asprintf.c: Likewise.
53270         * lib/unistdio/u16-printf-parse.c: Likewise.
53271         * lib/unistdio/u16-snprintf.c: Likewise.
53272         * lib/unistdio/u16-sprintf.c: Likewise.
53273         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53274         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53275         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53276         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53277         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53278         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53279         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53280         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53281         * lib/unistdio/u16-vasnprintf.c: Likewise.
53282         * lib/unistdio/u16-vasprintf.c: Likewise.
53283         * lib/unistdio/u16-vsnprintf.c: Likewise.
53284         * lib/unistdio/u16-vsprintf.c: Likewise.
53285         * lib/unistdio/u32-asnprintf.c: Likewise.
53286         * lib/unistdio/u32-asprintf.c: Likewise.
53287         * lib/unistdio/u32-printf-parse.c: Likewise.
53288         * lib/unistdio/u32-snprintf.c: Likewise.
53289         * lib/unistdio/u32-sprintf.c: Likewise.
53290         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53291         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53292         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53293         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53294         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53295         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53296         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53297         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53298         * lib/unistdio/u32-vasnprintf.c: Likewise.
53299         * lib/unistdio/u32-vasprintf.c: Likewise.
53300         * lib/unistdio/u32-vsnprintf.c: Likewise.
53301         * lib/unistdio/u32-vsprintf.c: Likewise.
53302         * lib/unistdio/u8-asnprintf.c: Likewise.
53303         * lib/unistdio/u8-asprintf.c: Likewise.
53304         * lib/unistdio/u8-printf-parse.c: Likewise.
53305         * lib/unistdio/u8-snprintf.c: Likewise.
53306         * lib/unistdio/u8-sprintf.c: Likewise.
53307         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53308         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53309         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53310         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53311         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53312         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53313         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53314         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53315         * lib/unistdio/u8-vasnprintf.c: Likewise.
53316         * lib/unistdio/u8-vasprintf.c: Likewise.
53317         * lib/unistdio/u8-vsnprintf.c: Likewise.
53318         * lib/unistdio/u8-vsprintf.c: Likewise.
53319         * lib/unistdio/ulc-asnprintf.c: Likewise.
53320         * lib/unistdio/ulc-asprintf.c: Likewise.
53321         * lib/unistdio/ulc-printf-parse.c: Likewise.
53322         * lib/unistdio/ulc-snprintf.c: Likewise.
53323         * lib/unistdio/ulc-sprintf.c: Likewise.
53324         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53325         * lib/unistdio/ulc-vasprintf.c: Likewise.
53326         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53327         * lib/unistdio/ulc-vsprintf.c: Likewise.
53328         * lib/unistr.h: Likewise.
53329         * lib/unistr/u-cpy-alloc.h: Likewise.
53330         * lib/unistr/u-cpy.h: Likewise.
53331         * lib/unistr/u-endswith.h: Likewise.
53332         * lib/unistr/u-move.h: Likewise.
53333         * lib/unistr/u-set.h: Likewise.
53334         * lib/unistr/u-startswith.h: Likewise.
53335         * lib/unistr/u-stpcpy.h: Likewise.
53336         * lib/unistr/u-stpncpy.h: Likewise.
53337         * lib/unistr/u-strcat.h: Likewise.
53338         * lib/unistr/u-strcpy.h: Likewise.
53339         * lib/unistr/u-strcspn.h: Likewise.
53340         * lib/unistr/u-strdup.h: Likewise.
53341         * lib/unistr/u-strlen.h: Likewise.
53342         * lib/unistr/u-strncat.h: Likewise.
53343         * lib/unistr/u-strncpy.h: Likewise.
53344         * lib/unistr/u-strnlen.h: Likewise.
53345         * lib/unistr/u-strpbrk.h: Likewise.
53346         * lib/unistr/u-strspn.h: Likewise.
53347         * lib/unistr/u-strstr.h: Likewise.
53348         * lib/unistr/u-strtok.h: Likewise.
53349         * lib/unistr/u16-check.c: Likewise.
53350         * lib/unistr/u16-chr.c: Likewise.
53351         * lib/unistr/u16-cmp.c: Likewise.
53352         * lib/unistr/u16-cpy-alloc.c: Likewise.
53353         * lib/unistr/u16-cpy.c: Likewise.
53354         * lib/unistr/u16-endswith.c: Likewise.
53355         * lib/unistr/u16-mblen.c: Likewise.
53356         * lib/unistr/u16-mbsnlen.c: Likewise.
53357         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53358         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53359         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53360         * lib/unistr/u16-mbtouc.c: Likewise.
53361         * lib/unistr/u16-mbtoucr.c: Likewise.
53362         * lib/unistr/u16-move.c: Likewise.
53363         * lib/unistr/u16-next.c: Likewise.
53364         * lib/unistr/u16-prev.c: Likewise.
53365         * lib/unistr/u16-set.c: Likewise.
53366         * lib/unistr/u16-startswith.c: Likewise.
53367         * lib/unistr/u16-stpcpy.c: Likewise.
53368         * lib/unistr/u16-stpncpy.c: Likewise.
53369         * lib/unistr/u16-strcat.c: Likewise.
53370         * lib/unistr/u16-strchr.c: Likewise.
53371         * lib/unistr/u16-strcmp.c: Likewise.
53372         * lib/unistr/u16-strcpy.c: Likewise.
53373         * lib/unistr/u16-strcspn.c: Likewise.
53374         * lib/unistr/u16-strdup.c: Likewise.
53375         * lib/unistr/u16-strlen.c: Likewise.
53376         * lib/unistr/u16-strmblen.c: Likewise.
53377         * lib/unistr/u16-strmbtouc.c: Likewise.
53378         * lib/unistr/u16-strncat.c: Likewise.
53379         * lib/unistr/u16-strncmp.c: Likewise.
53380         * lib/unistr/u16-strncpy.c: Likewise.
53381         * lib/unistr/u16-strnlen.c: Likewise.
53382         * lib/unistr/u16-strpbrk.c: Likewise.
53383         * lib/unistr/u16-strrchr.c: Likewise.
53384         * lib/unistr/u16-strspn.c: Likewise.
53385         * lib/unistr/u16-strstr.c: Likewise.
53386         * lib/unistr/u16-strtok.c: Likewise.
53387         * lib/unistr/u16-to-u32.c: Likewise.
53388         * lib/unistr/u16-to-u8.c: Likewise.
53389         * lib/unistr/u16-uctomb-aux.c: Likewise.
53390         * lib/unistr/u16-uctomb.c: Likewise.
53391         * lib/unistr/u32-check.c: Likewise.
53392         * lib/unistr/u32-chr.c: Likewise.
53393         * lib/unistr/u32-cmp.c: Likewise.
53394         * lib/unistr/u32-cpy-alloc.c: Likewise.
53395         * lib/unistr/u32-cpy.c: Likewise.
53396         * lib/unistr/u32-endswith.c: Likewise.
53397         * lib/unistr/u32-mblen.c: Likewise.
53398         * lib/unistr/u32-mbsnlen.c: Likewise.
53399         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53400         * lib/unistr/u32-mbtouc.c: Likewise.
53401         * lib/unistr/u32-mbtoucr.c: Likewise.
53402         * lib/unistr/u32-move.c: Likewise.
53403         * lib/unistr/u32-next.c: Likewise.
53404         * lib/unistr/u32-prev.c: Likewise.
53405         * lib/unistr/u32-set.c: Likewise.
53406         * lib/unistr/u32-startswith.c: Likewise.
53407         * lib/unistr/u32-stpcpy.c: Likewise.
53408         * lib/unistr/u32-stpncpy.c: Likewise.
53409         * lib/unistr/u32-strcat.c: Likewise.
53410         * lib/unistr/u32-strchr.c: Likewise.
53411         * lib/unistr/u32-strcmp.c: Likewise.
53412         * lib/unistr/u32-strcpy.c: Likewise.
53413         * lib/unistr/u32-strcspn.c: Likewise.
53414         * lib/unistr/u32-strdup.c: Likewise.
53415         * lib/unistr/u32-strlen.c: Likewise.
53416         * lib/unistr/u32-strmblen.c: Likewise.
53417         * lib/unistr/u32-strmbtouc.c: Likewise.
53418         * lib/unistr/u32-strncat.c: Likewise.
53419         * lib/unistr/u32-strncmp.c: Likewise.
53420         * lib/unistr/u32-strncpy.c: Likewise.
53421         * lib/unistr/u32-strnlen.c: Likewise.
53422         * lib/unistr/u32-strpbrk.c: Likewise.
53423         * lib/unistr/u32-strrchr.c: Likewise.
53424         * lib/unistr/u32-strspn.c: Likewise.
53425         * lib/unistr/u32-strstr.c: Likewise.
53426         * lib/unistr/u32-strtok.c: Likewise.
53427         * lib/unistr/u32-to-u16.c: Likewise.
53428         * lib/unistr/u32-to-u8.c: Likewise.
53429         * lib/unistr/u32-uctomb.c: Likewise.
53430         * lib/unistr/u8-check.c: Likewise.
53431         * lib/unistr/u8-chr.c: Likewise.
53432         * lib/unistr/u8-cmp.c: Likewise.
53433         * lib/unistr/u8-cpy-alloc.c: Likewise.
53434         * lib/unistr/u8-cpy.c: Likewise.
53435         * lib/unistr/u8-endswith.c: Likewise.
53436         * lib/unistr/u8-mblen.c: Likewise.
53437         * lib/unistr/u8-mbsnlen.c: Likewise.
53438         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53439         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53440         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53441         * lib/unistr/u8-mbtouc.c: Likewise.
53442         * lib/unistr/u8-mbtoucr.c: Likewise.
53443         * lib/unistr/u8-move.c: Likewise.
53444         * lib/unistr/u8-next.c: Likewise.
53445         * lib/unistr/u8-prev.c: Likewise.
53446         * lib/unistr/u8-set.c: Likewise.
53447         * lib/unistr/u8-startswith.c: Likewise.
53448         * lib/unistr/u8-stpcpy.c: Likewise.
53449         * lib/unistr/u8-stpncpy.c: Likewise.
53450         * lib/unistr/u8-strcat.c: Likewise.
53451         * lib/unistr/u8-strchr.c: Likewise.
53452         * lib/unistr/u8-strcmp.c: Likewise.
53453         * lib/unistr/u8-strcpy.c: Likewise.
53454         * lib/unistr/u8-strcspn.c: Likewise.
53455         * lib/unistr/u8-strdup.c: Likewise.
53456         * lib/unistr/u8-strlen.c: Likewise.
53457         * lib/unistr/u8-strmblen.c: Likewise.
53458         * lib/unistr/u8-strmbtouc.c: Likewise.
53459         * lib/unistr/u8-strncat.c: Likewise.
53460         * lib/unistr/u8-strncmp.c: Likewise.
53461         * lib/unistr/u8-strncpy.c: Likewise.
53462         * lib/unistr/u8-strnlen.c: Likewise.
53463         * lib/unistr/u8-strpbrk.c: Likewise.
53464         * lib/unistr/u8-strrchr.c: Likewise.
53465         * lib/unistr/u8-strspn.c: Likewise.
53466         * lib/unistr/u8-strstr.c: Likewise.
53467         * lib/unistr/u8-strtok.c: Likewise.
53468         * lib/unistr/u8-to-u16.c: Likewise.
53469         * lib/unistr/u8-to-u32.c: Likewise.
53470         * lib/unistr/u8-uctomb-aux.c: Likewise.
53471         * lib/unistr/u8-uctomb.c: Likewise.
53472         * lib/unitypes.h: Likewise.
53473         * lib/uniwidth.h: Likewise.
53474         * lib/uniwidth/cjk.h: Likewise.
53475         * lib/uniwidth/u16-strwidth.c: Likewise.
53476         * lib/uniwidth/u16-width.c: Likewise.
53477         * lib/uniwidth/u32-strwidth.c: Likewise.
53478         * lib/uniwidth/u32-width.c: Likewise.
53479         * lib/uniwidth/u8-strwidth.c: Likewise.
53480         * lib/uniwidth/u8-width.c: Likewise.
53481         * lib/uniwidth/width.c: Likewise.
53482
53483 2007-10-07  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53486         The file is still under LGPL (see modules/inttypes).
53487
53488 2007-10-06  Bruno Haible  <bruno@clisp.org>
53489
53490         * modules/trunc (Dependencies): Add 'extensions'.
53491         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53492         Reported by Ben Pfaff <blp@gnu.org>.
53493
53494 2007-10-06  Bruno Haible  <bruno@clisp.org>
53495
53496         * modules/freopen-tests: New file.
53497         * tests/test-freopen.c: New file.
53498
53499         * modules/fopen-tests: New file.
53500         * tests/test-fopen.c: New file.
53501
53502         * modules/fopen: New file.
53503         * lib/fopen.c: New file.
53504         * m4/fopen.m4: New file.
53505         * modules/freopen: New file.
53506         * lib/freopen.c: New file.
53507         * m4/freopen.m4: New file.
53508         * lib/stdio.in.h (fopen, freopen): New declarations.
53509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53510         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53511         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53512         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53513         * doc/functions/fopen.texi: Mention the 'fopen' module.
53514         * doc/functions/freopen.texi: Mention the 'freopen' module.
53515
53516 2007-10-06  Bruno Haible  <bruno@clisp.org>
53517
53518         * modules/open-tests: New file.
53519         * tests/test-open.c: New file.
53520
53521         * modules/open: New file.
53522         * lib/open.c: New file.
53523         * m4/open.m4: New file.
53524         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53525         lib/open.c does.
53526         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53527         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53528         macros.
53529         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53530         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53531         REPLACE_OPEN.
53532         * doc/functions/open.texi: Mention the 'open' module.
53533
53534 2007-10-04  Bruno Haible  <bruno@clisp.org>
53535
53536         * modules/ceill-tests: New file.
53537         * tests/test-ceill.c: New file.
53538
53539         * modules/ceill: New file.
53540         * lib/ceill.c: Replace entire file.
53541         * m4/ceill.m4: New file.
53542         * lib/math.in.h (ceill): Replace declaration.
53543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53544         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53545         * doc/functions/ceill.texi: Mention the 'ceill' module.
53546         * modules/mathl (Files): Remove lib/ceill.c.
53547         (Depends-on): Add ceill.
53548
53549 2007-10-04  Bruno Haible  <bruno@clisp.org>
53550
53551         * modules/ceilf-tests: New file.
53552         * tests/test-ceilf.c: New file.
53553
53554         * modules/ceilf: New file.
53555         * lib/ceil.c: New file.
53556         * lib/ceilf.c: New file.
53557         * m4/ceilf.m4: New file.
53558         * lib/math.in.h (ceilf): New declaration.
53559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53560         HAVE_DECL_CEILF.
53561         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53562         HAVE_DECL_CEILF.
53563         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53564
53565 2007-10-04  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/floorl-tests: New file.
53568         * tests/test-floorl.c: New file.
53569
53570         * modules/floorl: New file.
53571         * lib/floorl.c: Replace entire file.
53572         * m4/floorl.m4: New file.
53573         * lib/math.in.h (floorl): Replace declaration.
53574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53575         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53576         * doc/functions/floorl.texi: Mention the 'floorl' module.
53577         * modules/mathl (Files): Remove lib/floorl.c.
53578         (Depends-on): Add floorl.
53579
53580 2007-10-04  Bruno Haible  <bruno@clisp.org>
53581
53582         * modules/floorf-tests: New file.
53583         * tests/test-floorf.c: New file.
53584
53585         * modules/floorf: New file.
53586         * lib/floor.c: New file.
53587         * lib/floorf.c: New file.
53588         * m4/floorf.m4: New file.
53589         * lib/math.in.h (floorf): New declaration.
53590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53591         HAVE_DECL_FLOORF.
53592         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53593         HAVE_DECL_FLOORF.
53594         * doc/functions/floorf.texi: Mention the 'floorf' module.
53595
53596 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53597             Bruno Haible  <bruno@clisp.org>
53598
53599         Advertise for the Git server instead of the CVS server.
53600         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53601         repository instead of the CVS one.
53602         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53603         about all VCS systems generically.
53604         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53605
53606 2007-10-04  Bruno Haible  <bruno@clisp.org>
53607
53608         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53609         means.
53610         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53611
53612 2007-10-04  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/truncl-tests: New file.
53615         * tests/test-truncl.c: New file.
53616
53617         * modules/truncl: New file.
53618         * lib/truncl.c: New file.
53619         * m4/truncl.m4: New file.
53620         * lib/math.in.h (truncl): New declaration.
53621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53622         HAVE_DECL_TRUNCL.
53623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53624         HAVE_DECL_TRUNCL.
53625         * doc/functions/truncl.texi: Mention the 'truncl' module.
53626
53627 2007-10-04  Bruno Haible  <bruno@clisp.org>
53628
53629         * modules/truncf-tests: New file.
53630         * tests/test-truncf.c: New file.
53631
53632         * modules/truncf: New file.
53633         * lib/trunc.c: Make paramerizable through USE_* macros.
53634         * lib/truncf.c: New file.
53635         * m4/truncf.m4: New file.
53636         * lib/math.in.h (truncf): New declaration.
53637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53638         HAVE_DECL_TRUNCF.
53639         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53640         HAVE_DECL_TRUNCF.
53641         * doc/functions/truncf.texi: Mention the 'truncf' module.
53642
53643 2007-10-03  Bruno Haible  <bruno@clisp.org>
53644
53645         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53646         augmentation also for tests modules.
53647         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53648         * modules/atexit-tests (Makefile.am): Likewise.
53649         * modules/binary-io-tests (Makefile.am): Likewise.
53650         * modules/c-strcase-tests (Makefile.am): Likewise.
53651         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53652         * modules/canonicalize-tests (Makefile.am): Likewise.
53653         * modules/closein-tests (Makefile.am): Likewise.
53654         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53655         * modules/freadahead-tests (Makefile.am): Likewise.
53656         * modules/fseek-tests (Makefile.am): Likewise.
53657         * modules/fseeko-tests (Makefile.am): Likewise.
53658         * modules/ftell-tests (Makefile.am): Likewise.
53659         * modules/ftello-tests (Makefile.am): Likewise.
53660         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53661         * modules/isnanl-tests (Makefile.am): Likewise.
53662         * modules/lseek-tests (Makefile.am): Likewise.
53663         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53664         * modules/mbscasestr-tests (Makefile.am): Likewise.
53665         * modules/mbschr-tests (Makefile.am): Likewise.
53666         * modules/mbscspn-tests (Makefile.am): Likewise.
53667         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53668         * modules/mbspbrk-tests (Makefile.am): Likewise.
53669         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53670         * modules/mbsrchr-tests (Makefile.am): Likewise.
53671         * modules/mbsspn-tests (Makefile.am): Likewise.
53672         * modules/mbsstr-tests (Makefile.am): Likewise.
53673         * modules/printf-posix-tests (Makefile.am): Likewise.
53674         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53675         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53676         * modules/tsearch-tests (Makefile.am): Likewise.
53677         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53678         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53679         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53680         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53681         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53682         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53683         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53684         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53685         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53686         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53687         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53688         * modules/xstrtol-tests (Makefile.am): Likewise.
53689         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53690         * modules/yesno-tests (Makefile.am): Likewise.
53691
53692 2007-10-03  Bruno Haible  <bruno@clisp.org>
53693
53694         * modules/trunc-tests: New file.
53695         * tests/test-trunc.c: New file.
53696
53697         * modules/trunc: New file.
53698         * lib/trunc.c: New file.
53699         * m4/trunc.m4: New file.
53700         * lib/math.in.h (trunc): New declaration.
53701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53702         HAVE_DECL_TRUNC.
53703         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53704         HAVE_DECL_TRUNC.
53705         * doc/functions/trunc.texi: Mention the 'trunc' module.
53706
53707 2007-10-03  Bruno Haible  <bruno@clisp.org>
53708
53709         * tests/test-fpending.c: New file, mostly copied
53710         from coreutils/lib/t-fpending.c.
53711         * modules/fpending-tests: New file.
53712
53713 2007-10-03  Bruno Haible  <bruno@clisp.org>
53714
53715         Port the stdio extensions to QNX (untested).
53716         * lib/fseterr.c (fseterr): Add support for QNX.
53717         * lib/fbufmode.c (fbufmode): Likewise.
53718         * lib/freadable.c (freadable): Likewise.
53719         * lib/fwritable.c (fwritable): Likewise.
53720         * lib/freading.c (freading): Likewise.
53721         * lib/fwriting.c (fwriting): Likewise.
53722         * lib/freadahead.c (freadahed): Likewise.
53723         * lib/fpurge.c (fpurge): Likewise.
53724         * lib/fseeko.c (rpl_fseeko): Likewise.
53725
53726 2007-10-03  Bruno Haible  <bruno@clisp.org>
53727             Jim Meyering  <jim@meyering.net>
53728             Eric Blake  <ebb9@byu.net>
53729
53730         * doc/relocatable.texi: Use @command instead of @program.
53731
53732 2007-10-02  Jim Meyering  <jim@meyering.net>
53733
53734         Perform one more "_.h" -> ".in.h" substitution.
53735         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53736         instead of unistd_.h here, too.
53737
53738 2007-10-01  Bruno Haible  <bruno@clisp.org>
53739
53740         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53741         Needed for the alloca-opt module.
53742
53743 2007-09-30  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53746         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53747         alloca_.h.
53748         * lib/argz.in.h: Renamed from lib/argz_.h.
53749         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53750         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53751         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53752         byteswap_.h.
53753         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53754         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53755         dirent_.h.
53756         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53757         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53758         fcntl_.h.
53759         * lib/float.in.h: Renamed from lib/float_.h.
53760         * modules/float (Files, Makefile.am): Use float.in.h instead of
53761         float_.h.
53762         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53763         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53764         fnmatch_.h.
53765         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53766         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53767         getopt_.h.
53768         * lib/glob.in.h: Renamed from lib/glob_.h.
53769         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53770         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53771         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53772         iconv_.h.
53773         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53774         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53775         inttypes_.h.
53776         * lib/locale.in.h: Renamed from lib/locale_.h.
53777         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53778         locale_.h.
53779         * lib/math.in.h: Renamed from lib/math_.h.
53780         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53781         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53782         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53783         of netinet_in_.h. Add dependency.
53784         * lib/poll.in.h: Renamed from lib/poll_.h.
53785         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53786         * lib/search.in.h: Renamed from lib/search_.h.
53787         * modules/search (Files, Makefile.am): Use search.in.h instead of
53788         search_.h.
53789         * lib/signal.in.h: Renamed from lib/signal_.h.
53790         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53791         _signal.h.
53792         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53793         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53794         stdbool_.h.
53795         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53796         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53797         stdint_.h.
53798         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53799         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53800         stdio_.h.
53801         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53802         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53803         stdlib_.h.
53804         * lib/string.in.h: Renamed from lib/string_.h.
53805         * modules/string (Files, Makefile.am): Use string.in.h instead of
53806         string_.h.
53807         * doc/gnulib-tool.texi (Initial import): Update.
53808         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53809         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53810         of sys_select_.h. Add dependency.
53811         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53812         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53813         of sys_socket_.h.
53814         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53815         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53816         sys_stat_.h.
53817         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53818         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53819         sys_time_.h.
53820         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53821         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53822         sysexits_.h.
53823         * lib/time.in.h: Renamed from lib/time_.h.
53824         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53825         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53826         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53827         unistd_.h.
53828         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53829         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53830         wchar_.h.
53831         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53832         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53833         wctype_.h.
53834         * build-aux/bootstrap (slurp): Update.
53835         * lib/.cppi-disable: Update.
53836
53837 2007-09-30  Bruno Haible  <bruno@clisp.org>
53838
53839         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53840         Needed on BeOS.
53841
53842 2007-09-30  Bruno Haible  <bruno@clisp.org>
53843
53844         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53845
53846 2007-09-29  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53849
53850 2007-09-29  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53853         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53854         * build-aux/install-reloc: Compile also areadlink.c.
53855         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53856
53857 2007-09-29  Bruno Haible  <bruno@clisp.org>
53858
53859         * gnulib-tool (func_emit_initmacro_done): Indentation.
53860
53861 2007-09-29  Bruno Haible  <bruno@clisp.org>
53862
53863         * README: Add CVS checkout update instructions.
53864         Info from Bob Proulx <bob@proulx.com>.
53865
53866 2007-09-28  Eric Blake  <ebb9@byu.net>
53867
53868         Provide move-if-change.
53869         * build-aux/move-if-change: New file, based on best practice
53870         rather than any canonical upstream location.
53871
53872 2007-09-28  Jim Meyering  <jim@meyering.net>
53873
53874         Fix canonicalize loop-detection corner case.
53875         Do not attempt to stat the symlink values stored via seen_triple.
53876         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53877         on linux-2.6.18, (but not 2.6.22).
53878         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53879         triple_compare.  The former compares dev,ino,filename, while the latter
53880         would actually stat dirname(filename) when dev and ino were equal.
53881         * lib/hash-triple.c: Install <string.h>.
53882         (STREQ): Define.
53883         (triple_compare_ino_str): New function.
53884         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53885
53886 2007-09-28  Eric Blake  <ebb9@byu.net>
53887
53888         Enforce that AC_REPLACE_FUNCS files exist.
53889         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53890         override check for typos.
53891
53892         Fix test-closein on Solaris 10.
53893         * tests/test-closein.c (main): Don't assume stdin can be inherited
53894         closed on all systems.
53895         * tests/test-closein.sh: Likewise.
53896         Reported by Piotr Tarnowski.
53897
53898 2007-09-28  Jim Meyering  <jim@meyering.net>
53899
53900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53901
53902 2007-09-27  Jim Meyering  <jim@meyering.net>
53903
53904         canonicalize: Avoid a false-positive cycle failure.
53905         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53906         Sort.  Remove cycle-check.
53907         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53908         not cycle-check.h.
53909         (seen_triple): New function.
53910         (canonicalize_filename_mode): Use it instead of cycle-check.
53911         * tests/test-canonicalize.c: Add a test for this bug.
53912         * tests/test-canonicalize.sh: Set up and run the test.
53913
53914         New module, file-set, from coreutils.
53915         * modules/file-set: Define it.
53916         * lib/file-set.c, lib/file-set.h: Implement.
53917
53918         New module, hash-triple, from coreutils.
53919         * modules/hash-triple: Define it.
53920         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53921
53922 2007-09-25  Eric Blake  <ebb9@byu.net>
53923
53924         Fix strerror on Interix.
53925         * lib/string_.h (strerror): Declare replacement.
53926         * doc/functions/strerror.texi (strerror): Document the Interix
53927         shortcoming.
53928         * modules/string (Makefile.am): Support new hooks.
53929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53930         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53931         gl_FUNC_STRERROR_SEPARATE.
53932         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53933         * lib/strerror.c (rpl_strerror): Provide replacement.
53934         * modules/strerror (Depends-on): Add string.
53935         (configure.ac): Detect use of module.
53936         * tests/test-strerror.c: New file.
53937         * modules/strerror-tests: New test module.
53938         * modules/argp (Depends-on): Add strerror.
53939         * modules/error (Depends-on): Likewise.
53940         Reported by Martin Koeppe.
53941
53942 2007-09-24  Bruno Haible  <bruno@clisp.org>
53943
53944         * README: Update git instructions.
53945
53946 2007-09-24  Eric Blake  <ebb9@byu.net>
53947
53948         Revert fpending breakage from 2007-09-08.
53949         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53950         __fpending.c.
53951
53952 2007-09-24  Jim Meyering  <jim@meyering.net>
53953
53954         filenamecat.c: Add a test.
53955         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53956         showing how the function works when DIR is the empty string.
53957
53958 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53959
53960         * tests/test-canonicalize.sh: Turn on executable bit.
53961
53962 2007-09-19  Eric Blake  <ebb9@byu.net>
53963
53964         * README: Update CVS instructions.
53965
53966 2007-09-18  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/areadlink: New file.
53969         * lib/areadlink.h (areadlink): New declaration.
53970         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53971
53972 2007-09-17  Jim Meyering  <jim@meyering.net>
53973
53974         * lib/savewd.c (ESTALE) [!defined]: Define.
53975         Reported to be required on Interix by Martin Koeppe.
53976
53977 2007-09-17  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_version): Use $version.
53980
53981 2007-09-16  Bruno Haible  <bruno@clisp.org>
53982
53983         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53984         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53985         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53986         Reported by Greg Schafer <gschafer@zip.com.au>.
53987
53988 2007-09-15  Bruno Haible  <bruno@clisp.org>
53989
53990         * gnulib-tool (sed): Try a little harder to make bash understand the
53991         alias.
53992         Reported by Bruce Korb <bruce.korb@gmail.com>.
53993
53994 2007-09-13  Eric Blake  <ebb9@byu.net>
53995
53996         * ChangeLog: Remove conflict markers.
53997
53998 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53999
54000         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54001         Reported by Bruno Haible <bruno@clisp.org>.
54002
54003 2007-09-12  Bruno Haible  <bruno@clisp.org>
54004
54005         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54006         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54007         is not defined.
54008
54009 2007-09-12  Eric Blake  <ebb9@byu.net>
54010
54011         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54012         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54013         Autoconf definition.
54014         * modules/euidaccess (Depends-on): Add extensions, for
54015         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54016         * modules/fnmatch (Depends-on): Likewise.
54017         * modules/getaddrinfo (Depends-on): Likewise.
54018         * modules/getdelim (Depends-on): Likewise.
54019         * modules/getline (Depends-on): Likewise.
54020         * modules/getsubopt (Depends-on): Likewise.
54021         * modules/gettext (Depends-on): Likewise.
54022         * modules/group-member (Depends-on): Likewise.
54023         * modules/mbchar (Depends-on): Likewise.
54024         * modules/memmem (Depends-on): Likewise.
54025         * modules/mempcpy (Depends-on): Likewise.
54026         * modules/memrchr (Depends-on): Likewise.
54027         * modules/pagealign_alloc (Depends-on): Likewise.
54028         * modules/readutmp (Depends-on): Likewise.
54029         * modules/stpcpy (Depends-on): Likewise.
54030         * modules/stpncpy (Depends-on): Likewise.
54031         * modules/strchrnul (Depends-on): Likewise.
54032         * modules/strndup (Depends-on): Likewise.
54033         * modules/strsep (Depends-on): Likewise.
54034         * modules/strverscmp (Depends-on): Likewise.
54035         * modules/vasprintf (Depends-on): Likewise.
54036         * modules/wcwidth (Depends-on): Likewise.
54037         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54038         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54039         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54041         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54042         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54043         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54044         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54045         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54046         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54048         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54049         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54050         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54051         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54052         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54056         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54057         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54059         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54060         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54061         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54063         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54064         so that lock.m4 can be used in gettext without extensions module.
54065
54066 2007-09-11  Bruno Haible  <bruno@clisp.org>
54067
54068         * m4/isc-posix.m4: Remove file.
54069         Suggested by Eric Blake.
54070
54071 2007-09-11  Eric Blake  <ebb9@byu.net>
54072
54073         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54074
54075 2007-09-10  Bruno Haible  <bruno@clisp.org>
54076
54077         * posix-modules: Fix typo in error message.
54078         Reported by Matt <mkraai@beckman.com>.
54079
54080 2007-09-09  Bruno Haible  <bruno@clisp.org>
54081
54082         * doc/functions/getdelim.texi: Update list of platforms lacking the
54083         function.
54084         * doc/functions/getline.texi: Likewise.
54085
54086 2007-09-09  Jim Meyering  <jim@meyering.net>
54087
54088         * lib/hash.c (hash_initialize): Detect calloc failure.
54089         Reported by Bruno Haible.
54090
54091 2007-09-09  Bruno Haible  <bruno@clisp.org>
54092
54093         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54094         malloc or realloc fails.
54095
54096 2007-09-09  Bruno Haible  <bruno@clisp.org>
54097
54098         * modules/getcwd (Depends-on): Add malloc-posix.
54099         * modules/glob (Depends-on): Likewise.
54100         * modules/putenv (Depends-on): Likewise.
54101         * modules/strdup (Depends-on): Likewise.
54102         * modules/getdelim (Depends-on): Add realloc-posix.
54103         * modules/read-file (Depends-on): Likewise.
54104
54105 2007-09-09  Bruno Haible  <bruno@clisp.org>
54106
54107         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54108         (gl_FUNC_MALLOC_POSIX): Require it.
54109         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54110         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54111         * modules/realloc (Files): Add m4/malloc.m4.
54112         * modules/calloc (Files): Likewise.
54113
54114 2007-09-09  Bruno Haible  <bruno@clisp.org>
54115
54116         * modules/malloc-posix: New file.
54117         * modules/malloc (Depends-on): Add malloc-posix.
54118         * lib/malloc.c: Include errno.h.
54119         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54120         and a POSIX-compatible malloc into a single function. Set ENOMEM
54121         when returning NULL.
54122         * m4/malloc.m4: New file.
54123         * doc/functions/malloc.texi: Mention the malloc-posix module.
54124         * lib/stdlib_.h (malloc): New declaration.
54125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54126         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54127         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54128         and HAVE_MALLOC_POSIX.
54129
54130 2007-09-09  Bruno Haible  <bruno@clisp.org>
54131
54132         * modules/realloc-posix: New file.
54133         * modules/realloc (Depends-on): Add realloc-posix.
54134         * lib/realloc.c: Include errno.h.
54135         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54136         and a POSIX-compatible realloc into a single function. Set ENOMEM
54137         when returning NULL.
54138         * m4/realloc.m4: New file.
54139         * doc/functions/realloc.texi: Mention the realloc-posix module.
54140         * lib/stdlib_.h (realloc): New declaration.
54141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54142         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54143         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54144         and HAVE_REALLOC_POSIX.
54145
54146 2007-09-09  Bruno Haible  <bruno@clisp.org>
54147
54148         * modules/calloc-posix: New file.
54149         * modules/calloc (Depends-on): Add calloc-posix.
54150         * lib/calloc.c: Include errno.h.
54151         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54152         and a POSIX-compatible calloc into a single function. Set ENOMEM
54153         when returning NULL.
54154         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54155         * doc/functions/calloc.texi: Mention the calloc-posix module.
54156         * lib/stdlib_.h (calloc): New declaration.
54157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54158         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54159         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54160         and HAVE_CALLOC_POSIX.
54161
54162 2007-09-09  Bruno Haible  <bruno@clisp.org>
54163
54164         Allow for modules to show an arbitrary notice.
54165         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54166         * gnulib-tool: New option --extract-notice.
54167         (func_usage): Document it.
54168         (sed_extract_prog): Update.
54169         (func_get_notice): New function.
54170         (func_modules_notice): New function.
54171         (func_import, func_create_testdir): Invoke it.
54172         Suggested by Jim Meyering.
54173
54174 2007-09-09  Bruno Haible  <bruno@clisp.org>
54175
54176         * gnulib-tool: New options --verbose, --quiet.
54177         (func_usage): Document them.
54178         (verbose): New variable.
54179         (func_execute_command): New function.
54180         (func_import): Don't show the module list and the file list if
54181         $verbose < 0.
54182         (func_create_testdir): Likewise. Use func_execute_command.
54183         (func_create_megatestdir): Use func_execute_command.
54184
54185 2007-09-08  Bruno Haible  <bruno@clisp.org>
54186
54187         * gnulib-tool (func_import): Prefer rsync over wget when available,
54188         for fetching the PO files.
54189
54190 2007-09-08  Bruno Haible  <bruno@clisp.org>
54191
54192         * posix-modules: New file. Portions copied from gnulib-tool.
54193         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54194
54195 2007-09-08  Jim Meyering  <jim@meyering.net>
54196
54197         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54198         * lib/fpending.h: Rename from __fpending.h.
54199         * lib/fpending.c: Rename from __fpending.c.
54200         Include "fpending.h", not "__fpending.h".
54201         * lib/__fpending.h, lib/__fpending.c: Remove files.
54202         * modules/fpending (Files): Reflect new file names.
54203         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54204
54205 2007-09-08  Bruno Haible  <bruno@clisp.org>
54206
54207         * m4/inttypes-h.m4: Remove stub file.
54208
54209 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54210
54211         * doc/headers/stdint.texi: Discuss #include_next issue.
54212
54213 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54214
54215         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54216
54217 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54218
54219         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54220         in variable name.
54221
54222 2007-09-03  Jim Meyering  <jim@meyering.net>
54223
54224         New module: git-version-gen.
54225         * modules/git-version-gen: New file.
54226
54227         Import changes from coreutils for bootstrap script.
54228
54229         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54230
54231         bootstrap: uses rsync to download the .po files
54232         * build-aux/bootstrap (po_download_command_format): New global.
54233         (download_po_files): Use rsync.
54234         (update_po_files): Don't remove .po files after download,
54235         so future rsync runs can take advantage of the copies.
54236
54237         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54238
54239         Solve the unnecessary-.po-file-regeneration problem once and for all.
54240         * build-aux/bootstrap (download_po_files): New function, renamed from
54241         get_translations.  Now, downloads, but doesn't update LINGUAS.
54242         (update_po_files): New function.
54243
54244         bootstrap: Ignore more.
54245         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54246         uniwidth to e.g., lib/.gitignore.
54247         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54248
54249         * build-aux/bootstrap: New setting: vc_ignore.
54250         (insert_sorted_if_absent): Create $file if absent.
54251         Adapt to new, possibly empty, list: $vc_ignore.
54252
54253         bootstrap: generate more ignorable names
54254         * build-aux/bootstrap (slurp): When generating ignorable names,
54255         also map .sin to .sed, .gperf to .c, and .y to .c.
54256
54257 2007-09-03  Jim Meyering  <jim@meyering.net>
54258
54259         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54260         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54261
54262 2007-09-02  Bruno Haible  <bruno@clisp.org>
54263
54264         Fix mis-recognition of 'mcs' on QNX 6.
54265         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54266         output contains the string "Mono".
54267         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54268         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54269
54270 2007-09-01  Bruno Haible  <bruno@clisp.org>
54271
54272         Fix collision between uniwidth/* and linebreak modules.
54273         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54274         u32_width): Remove declarations.
54275         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54276         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54277         streq3, streq2, streq1, streq0): Remove functions.
54278         (STREQ): Remove macro.
54279         (is_cjk_encoding): Remove function.
54280         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54281         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54282         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54283         * NEWS: Document the change.
54284
54285 2007-09-01  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/streq.h: Add double-inclusion guard.
54288
54289 2007-09-01  Karl Berry  <karl@gnu.org>
54290
54291         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54292
54293 2007-08-28  Jim Meyering  <jim@meyering.net>
54294
54295         Rename mreadlink_with_size to areadlink_with_size.
54296         * NEWS: Document the change.
54297         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54298         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54299         * lib/mreadlink.h: Rename this to...
54300         * lib/areadlink.h: ...this.
54301         * modules/mreadlink-with-size: Rename this to...
54302         * modules/areadlink-with-size: ...this.
54303         * lib/canonicalize.c: Reflect the renaming.
54304         * modules/canonicalize: Likewise.
54305
54306 2007-08-26  Bruno Haible  <bruno@clisp.org>
54307
54308         * gnulib-tool (func_import): When deciding which files to remove,
54309         consider also dangling symbolic links.
54310         Reported by Eric Blake.
54311
54312 2007-08-26  Bruno Haible  <bruno@clisp.org>
54313
54314         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54315
54316 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54317
54318         * lib/readline.c: Don't include getline.h, the prototype is now
54319         found in stdio.h.
54320
54321 2007-08-23  Jim Meyering  <jim@meyering.net>
54322
54323         Getdelim touchup.
54324         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54325         around the funlockfile call, since funlockfile never sets errno.
54326         Don't set errno upon failed realloc.
54327
54328 2007-08-22  Eric Blake  <ebb9@byu.net>
54329
54330         Getline touchups.
54331         * lib/getdelim.c (getdelim): Revert regression that required *n to
54332         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54333         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54334         getdelim, rather than whether implementation is missing.
54335         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54336         * lib/stdio_.h (getline): Also declare if replacement is
54337         required.
54338         * doc/functions/getdelim.texi: New file.
54339         * doc/functions/getline.texi: Likewise.
54340         * doc/gnulib.texi (Function Substitutes): Add new files.
54341         Reported by Bruno Haible.
54342
54343 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54344
54345         * users.txt: Add Guile.
54346
54347 2007-08-22  Eric Blake  <ebb9@byu.net>
54348
54349         * tests/test-getdelim.c (main): Use remove, not unlink.
54350         * tests/test-getline.c (main): Likewise.
54351
54352         Move getline and getdelim into stdio.h, per POSIX 200x.
54353         * modules/getline (Files): Remove getline.h.
54354         (Depends-on): Add stdio.
54355         (configure.ac): Add module indicator.
54356         * modules/getdelim (Files): Remove getdelim.h.
54357         (Depends-on): Add stdio.
54358         (configure.ac): Add module indicator.
54359         * modules/stdio (Makefile.am): Work with new indicators.
54360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54363         * lib/getdelim.h: Delete.
54364         * lib/getline.h: Delete.
54365         * lib/stdio_.h (getdelim, getline): Declare.
54366         * modules/getdelim-tests: New module.
54367         * modules/getline-tests: Likewise.
54368         * tests/test-getdelim.c: New file.
54369         * tests/test-getline.c: Likewise.
54370         * NEWS: Document the change.
54371         * lib/getline.c: Update choice of header.
54372         * lib/csharpcomp.c: Likewise.
54373         * lib/getpass.c: Likewise.
54374         * lib/javacomp.c: Likewise.
54375         * lib/javaversion.c: Likewise.
54376         * lib/yesno.c: Likewise.
54377         * lib/getdelim.c: Likewise.
54378         (getdelim): Set errno on failure, and avoid memory leak.
54379
54380 2007-08-19  Bruno Haible  <bruno@clisp.org>
54381
54382         * modules/closein (Depends-on): Add freadahead.
54383         * lib/closein.c: Include freadahead.h.
54384         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54385         is zero.
54386
54387 2007-08-19  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/freadahead-tests: New file.
54390         * tests/test-freadahead.sh: New file.
54391         * tests/test-freadahead.c: New file.
54392
54393         * modules/freadahead: New file.
54394         * lib/freadahead.h: New file.
54395         * lib/freadahead.c: New file.
54396         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54397         fbufmode, fpurge, freadable, fwritable.
54398
54399 2007-08-19  Eric Blake  <ebb9@byu.net>
54400
54401         Test yesno in combination with closein.
54402         * lib/yesno.c (yesno): Document use of stdin.
54403         * modules/yesno-tests (Files): New module.
54404         * tests/test-yesno.c (main): New file.
54405         * tests/test-yesno.sh: Likewise.
54406
54407 2007-08-19  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54410         * lib/fseeko.c (rpl_fseeko): Likewise.
54411         * lib/fseterr.c (fseterr): Likewise.
54412
54413 2007-08-19  Bruno Haible  <bruno@clisp.org>
54414
54415         * tests/test-lseek.c (main): Disable a test for BeOS.
54416         * doc/functions/lseek.texi: Document the BeOS bug.
54417
54418 2007-08-19  Bruno Haible  <bruno@clisp.org>
54419             Eric Blake  <ebb9@byu.net>
54420
54421         * lib/lseek.c: Include <sys/stat.h>.
54422         (rpl_lseek): Add workaround code also for Unix platforms.
54423         Needed for BeOS.
54424         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54425         * doc/functions/lseek.texi: Document BeOS definiency.
54426
54427 2007-08-18  Bruno Haible  <bruno@clisp.org>
54428
54429         * modules/fstrcmp-tests: New file.
54430         * tests/test-fstrcmp.c: New file.
54431
54432 2007-08-18  Bruno Haible  <bruno@clisp.org>
54433
54434         * modules/fstrcmp: New file, from GNU gettext with modifications.
54435         * lib/fstrcmp.h: New file, from GNU gettext.
54436         * lib/fstrcmp.c: New file, from GNU gettext.
54437         * MODULES.html.sh (String handling): Add fstrcmp.
54438
54439 2007-08-18  Bruno Haible  <bruno@clisp.org>
54440
54441         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54442         'bool'.
54443         (diag, compareseq): Remove const from the ctxt argument.
54444         (USE_HEURISTIC): Undefine at the end.
54445
54446 2007-08-18  Jim Meyering  <jim@meyering.net>
54447
54448         New file: lib/idcache.h
54449         * NEWS: Mention the addition.
54450         * modules/idcache (Files): Add lib/idcache.h
54451         * lib/idcache.c: Include "idcache.h".
54452         Don't include <sys/types.h>.
54453         Add a FIXME comment.
54454         Move file-scoped "static" declarations to the top.
54455         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54456
54457 2007-08-17  Bruno Haible  <bruno@clisp.org>
54458         and Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         * MODULES.html.sh: Add diffseq.
54461         * modules/diffseq: New file.
54462         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54463         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54464
54465 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         Import changes from coreutils for bootstrap script.
54468
54469         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         * build-aux/bootstrap (slurp): Work even in environments where
54472         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54473         current code does not slurp files whose names start with ".", and
54474         this looks like it might be a troublesome area.
54475
54476         2007-07-11  Jim Meyering  <jim@meyering.net>
54477
54478         If there's a GPL vN copyright comment, require that N == 3.
54479
54480         2007-07-08  Jim Meyering  <jim@meyering.net>
54481
54482         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54483         * build-aux/bootstrap (mam_template): Move definition out of loop.
54484
54485         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54486
54487         * build-aux/bootstrap (symlink_to_dir): Rename function from
54488         symlink_to_gnulib.  Add a directory parameter.  Update all
54489         callers.
54490         (cp_mark_as_generated): Also check for -- and link to -- files in
54491         gl/.
54492
54493         2007-07-08  Jim Meyering  <jim@meyering.net>
54494
54495         Adapt to deeper hierarchy in gnulib.
54496         * build-aux/bootstrap (symlink_to_dir): If the destination
54497         directory doesn't exist, create it. This is required at least for
54498         "lib/uniwidth/cjk.h".
54499
54500         2007-05-15  Jim Meyering  <jim@meyering.net>
54501
54502         * build-aux/bootstrap: Now that generated Makefile.am files
54503         are no longer under version control, they must be created at
54504         bootstrap time.
54505
54506 2007-08-14  Ben Pfaff  <blp@gnu.org>
54507
54508         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54509
54510 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54511
54512         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54513         given the changes below.
54514         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54515         even on hosts that have padding bits beyond the supported 64.
54516
54517 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54520         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54521         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54522         depends on it.
54523         (xstrtol_error): Remove.
54524         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54525         but with a different signature.
54526         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54527         * lib/xstrtol-error.c: Include exitfail.h.
54528         (xstrtol_fatal): New function, with a different signature from the
54529         old xstrtol_error, so that the caller need not worry about passing
54530         in an exit status, or about storage management of the option argument.
54531         (xstrtol_error): Now a static function.  Redo signature to
54532         implement xstrtol_fatal.  Output the correct number of hyphens in
54533         front of the option so that the caller need not worry about
54534         storage management.
54535         (N_): New macro.
54536         (_): Remove; not used now.
54537         * modules/xstrtol: Depend on getopt.
54538         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54539         of old STRTOL_FATAL_ERROR macro.
54540         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54541         of test program.
54542         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54543         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54544
54545 2007-08-08  Eric Blake  <ebb9@byu.net>
54546
54547         * lib/xstrtol-error.c: Add missing include.
54548
54549         Move xstrtol messages into gnulib domain, when --pobase is used.
54550         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54551         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54552         * modules/xstrtol (Files): Distribute new file.
54553         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54554         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54555         * tests/test-xstrtol.c: ...into new file.
54556         * tests/test-xstrtoul.c: Also test xstrtoul.
54557         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54558         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54559         * tests/test-xstrtol.sh: Drive the tests.
54560         * tests/test-xstrtoimax.sh: Likewise.
54561         * tests/test-xstrtoumax.sh: Likewise.
54562         * modules/xstrtol-tests: New module.
54563         * modules/xstrtoimax-tests: Likewise.
54564         * modules/xstrtoumax-tests: Likewise.
54565
54566 2007-08-08  Jim Meyering  <jim@meyering.net>
54567
54568         New function: mfile_name_concat.
54569         * lib/filenamecat.c (mfile_name_concat): New function, just like
54570         file_name_concat, but return NULL upon failure rather than exiting
54571         with a diagnostic.
54572         * lib/filenamecat.h: Declare it.
54573
54574 2007-08-07  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54577         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54578         warning from gcc.
54579         Reported by Eric Blake.
54580
54581 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54582
54583         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54584         * modules/crypto/arcfour (License): Likewise.
54585         * modules/crypto/des-tests (License): Likewise.
54586         * modules/crypto/gc-arctwo-tests (License): Likewise.
54587         * modules/crypto/gc-des-tests (License): Likewise.
54588         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54589         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54590         * modules/crypto/gc-md2-tests (License): Likewise.
54591         * modules/crypto/gc-md4-tests (License): Likewise.
54592         * modules/crypto/gc-md5-tests (License): Likewise.
54593         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54594         * modules/crypto/gc-rijndael-tests (License): Likewise.
54595         * modules/crypto/gc-sha1-tests (License): Likewise.
54596         * modules/crypto/gc-tests (License): Likewise.
54597         * modules/crypto/hmac-md5 (License): Likewise.
54598         * modules/crypto/hmac-sha1 (License): Likewise.
54599         * modules/crypto/md2-tests (License): Likewise.
54600         * modules/crypto/md4-tests (License): Likewise.
54601         * modules/crypto/md5 (License): Likewise.
54602         * modules/crypto/rijndael (License): Likewise.
54603         * modules/crypto/sha1 (License): Likewise.
54604         * modules/memxor (License): Likewise.
54605
54606 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54607         and Bruno Haible  <bruno@clisp.org>
54608
54609         * NEWS: Describe interface changes to human, xstrtol.
54610         * lib/human.h: Include <xstrtol.h>.
54611         (human_options): Return enum strtol_error, not int.  Remove
54612         bool arg; take int * instead.
54613         * lib/human.c: Don't include "gettext.h".
54614         (_): Remove; no longer used.
54615         Don't include <xstrtol.h>, since human.h does it.
54616         (human_options): Adjust to abovementioned interface changes.
54617         Do not report error to stderr; that's now the caller's
54618         responsibility.
54619         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54620         interface change.
54621         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54622         Str, Argument_type_string.  All uses changed.  Put " argument"
54623         in diagnostics to make them clearer.  Change wording of suffix
54624         message for clarity.
54625         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54626         Argument_type_string.
54627         (STRTOL_FATAL_WARN): Remove; no longer used.
54628         * modules/human (Depends-on): Remove gettext-h.
54629
54630 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54631
54632         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54633
54634 2007-07-31  Bruno Haible  <bruno@clisp.org>
54635
54636         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54637         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54638         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54639
54640 2007-07-31  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54643         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54644
54645 2007-07-30  Bruno Haible  <bruno@clisp.org>
54646
54647         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54648         * modules/c-ctype (License): Likewise.
54649         * modules/c-strcase (License): Likewise.
54650         * modules/check-version (License): Likewise.
54651         * modules/iconv (License): Likewise.
54652         * modules/iconv_open (License): Likewise.
54653         * modules/read-file (License): Likewise.
54654         * modules/striconv (License): Likewise.
54655         * modules/strverscmp (License): Likewise.
54656         * modules/vasprintf (License): Likewise.
54657         * modules/crypto/des (License): Likewise.
54658         * modules/crypto/gc (License): Likewise.
54659         * modules/crypto/gc-arcfour (License): Likewise.
54660         * modules/crypto/gc-arctwo (License): Likewise.
54661         * modules/crypto/gc-des (License): Likewise.
54662         * modules/crypto/gc-hmac-md5 (License): Likewise.
54663         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54664         * modules/crypto/gc-md2 (License): Likewise.
54665         * modules/crypto/gc-md4 (License): Likewise.
54666         * modules/crypto/gc-md5 (License): Likewise.
54667         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54668         * modules/crypto/gc-random (License): Likewise.
54669         * modules/crypto/gc-rijndael (License): Likewise.
54670         * modules/crypto/gc-sha1 (License): Likewise.
54671         * modules/crypto/md2 (License): Likewise.
54672         * modules/crypto/md4 (License): Likewise.
54673
54674 2007-07-30  Jim Meyering  <jim@meyering.net>
54675
54676         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54677         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54678         it has valid stat data.  This bug would cause du not to count the
54679         sizes of inaccessible directories.
54680         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54681         in <http://bugzilla.redhat.com/250077>.
54682
54683 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54684             Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54687         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54688         #include_next, gives a diagnostic about it, but reports no error in
54689         the exit code.
54690         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54691
54692 2007-07-24  Ben Pfaff  <blp@gnu.org>
54693
54694         Improve name: "count-one-bits" is better than "popcount".
54695         * MODULES.html.sh: Update name.
54696         * lib/popcount.h: Renamed lib/count-one-bits.h.
54697         (popcount): Renamed count_one_bits.
54698         (popcountl): Renamed count_one_bits_l.
54699         (popcountll): Renamed count_one_bits_ll.
54700         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54701         * modules/popcount: Renamed module/count-one-bits.
54702         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54703         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54704
54705 2007-07-23  Ben Pfaff  <blp@gnu.org>
54706
54707         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54708         better code generation, and add U to large constants to avoid
54709         warnings, in non-GCC case.
54710         Suggested by Bruno Haible.
54711
54712 2007-07-23  Ben Pfaff  <blp@gnu.org>
54713
54714         * lib/popcount.h: Use verify_true instead of if...abort.
54715         * modules/popcount: Depend on verify module.
54716         Suggested by Jim Meyering.
54717
54718 2007-07-23  Bruno Haible  <bruno@clisp.org>
54719
54720         * gnulib-tool (func_import): Create a .cvsignore file also when the
54721         directory is not yet in CVS but the toplevel directory is. When
54722         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54723         Reported by Karl Berry.
54724
54725 2007-07-22  Ben Pfaff  <blp@gnu.org>
54726
54727         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54728         case.
54729         Suggested by Eric Blake.
54730
54731 2007-07-22  Ben Pfaff  <blp@gnu.org>
54732
54733         New module: popcount.
54734         * MODULES.html.sh: Add popcount.
54735         * modules/popcount: New file.
54736         * modules/popcount-tests: New file.
54737         * tests/test-popcount.c: New file.
54738         * lib/popcount.h: New file.
54739         * m4/popcount.m4: New file.
54740
54741 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         * build-aux/announce-gen: Update to GPLv3.
54744
54745         * build-aux/config.guess: Update from config.
54746
54747 2007-07-21  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54750         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54751
54752 2007-07-20  Jim Meyering  <jim@meyering.net>
54753
54754         * check-module: Diagnose a self-dependency.
54755
54756 2007-07-19  Bruno Haible  <bruno@clisp.org>
54757
54758         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54759         empty.
54760         Reported by Eric Blake.
54761
54762 2007-07-18  Bruno Haible  <bruno@clisp.org>
54763
54764         * gnulib-tool: New options --po-base, --po-domain.
54765         (func_usage): Document them.
54766         (pobase, po_domain): New variables.
54767         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54768         DEFAULT_TEXT_DOMAIN.
54769         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54770         (func_import): Consider pobase and po_domain. Create a po/ directory.
54771         (func_create_testdir): Set pobase and po_domain to empty.
54772         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54773         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54774
54775 2007-07-18  Bruno Haible  <bruno@clisp.org>
54776
54777         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54778         EXTRA_DIST augmentation for files in build-aux/.
54779
54780 2007-07-16  Bruno Haible  <bruno@clisp.org>
54781
54782         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54783         * modules/getdelim (License): Likewise.
54784
54785 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54786
54787         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54788         * modules/d-type (License): Likewise.
54789         * modules/extensions (License): Likewise.
54790         * modules/fnmatch (License): Likewise.
54791         * modules/fseeko (License): Likewise.
54792         * modules/getaddrinfo (License): Likewise.
54793         * modules/getline (License): Likewise.
54794         * modules/getlogin_r (License): Likewise.
54795         * modules/getpass (License): Likewise.
54796         * modules/gettimeofday (License): Likewise.
54797         * modules/glob (License): Likewise.
54798         * modules/inet_ntop (License): Likewise.
54799         * modules/malloc (License): Likewise.
54800         * modules/malloca (License): Likewise.
54801         * modules/memmem (License): Likewise.
54802         * modules/mempcpy (License): Likewise.
54803         * modules/memset (License): Likewise.
54804         * modules/minmax (License): Likewise.
54805         * modules/mktime (License): Likewise.
54806         * modules/netinet_in (License): Likewise.
54807         * modules/pathmax (License): Likewise.
54808         * modules/poll (License): Likewise.
54809         * modules/regex (License): Likewise.
54810         * modules/snprintf (License): Likewise.
54811         * modules/stdbool (License): Likewise.
54812         * modules/stdint (License): Likewise.
54813         * modules/stdio (License): Likewise.
54814         * modules/strcase (License): Likewise.
54815         * modules/strcasestr (License): Likewise.
54816         * modules/strdup (License): Likewise.
54817         * modules/string (License): Likewise.
54818         * modules/strndup (License): Likewise.
54819         * modules/strnlen (License): Likewise.
54820         * modules/strpbrk (License): Likewise.
54821         * modules/strptime (License): Likewise.
54822         * modules/strsep (License): Likewise.
54823         * modules/sys_select (License): Likewise.
54824         * modules/sys_socket (License): Likewise.
54825         * modules/sys_stat (License): Likewise.
54826         * modules/sys_time (License): Likewise.
54827         * modules/time (License): Likewise.
54828         * modules/time_r (License): Likewise.
54829         * modules/timegm (License): Likewise.
54830         * modules/unistd (License): Likewise.
54831         * modules/vsnprintf (License): Likewise.
54832         * modules/wctype (License): Likewise.
54833
54834 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54835
54836         * modules/argz (License): LGPLv2+.
54837
54838 2007-07-15  Karl Berry  <karl@gnu.org>
54839
54840         * doc/gnulib.texi: revise node structure per new fdl.texi.
54841
54842 2007-07-14  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54845         the output file.
54846         * lib/uniname/uninames.h: Regenerated.
54847
54848 2007-07-14  Karl Berry  <karl@gnu.org>
54849
54850         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54851         omitting sectioning and index commands.
54852
54853 2007-07-13  Bruno Haible  <bruno@clisp.org>
54854
54855         New gnulib-tool option --more-symlinks.
54856         * gnulib-tool (func_usage): Document --more-symlinks.
54857         (do_copyrights): New variable.
54858         Recognize option --more-symlinks.
54859         (func_import): Don't add a copyright notice transform to
54860         sed_transform_lib_file if do_copyrights is empty.
54861
54862 2007-07-13  Bruno Haible  <bruno@clisp.org>
54863
54864         * lib/vasnprintf.c (decimal_point_char): Define also if
54865         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54866         && !NEED_PRINTF_DIRECTIVE_A.
54867         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54868         Gary V. Vaughan <gary@gnu.org>.
54869
54870 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54871
54872         * lib/inttypes_.h: Undo previous change, since it was fixed
54873         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54874
54875 2007-07-13  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54878         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54879
54880 2007-07-13  Jim Meyering  <jim@meyering.net>
54881
54882         df: Don't fail for Tru64's "file-on-file mount".
54883         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54884         so we fall through and use statfs instead.  Details here:
54885         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54886         Reported by Albert Chin.
54887
54888 2007-07-13  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54891         * modules/configmake (License): Likewise.
54892         * modules/gettext (License): Likewise.
54893         * modules/gettext-h (License): Likewise.
54894         * modules/include_next (License): Likewise.
54895         * modules/link-warning (License): Likewise.
54896         * modules/localcharset (License): Likewise.
54897         * modules/localename (License): Likewise.
54898         * modules/lock (License): Likewise.
54899         * modules/relocatable-lib-lgpl (License): Likewise.
54900         * modules/size_max (License): Likewise.
54901         * modules/vasnprintf (License): Likewise.
54902         * modules/wchar (License): Likewise.
54903         * modules/xsize (License): Likewise.
54904
54905 2007-07-13  Bruno Haible  <bruno@clisp.org>
54906
54907         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54908         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54909
54910 2007-07-12  Bruno Haible  <bruno@clisp.org>
54911
54912         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54913         in the modules files.
54914
54915 2007-07-11  Karl Berry  <karl@gnu.org>
54916
54917         * MODULES.html.sh (func_module): use
54918          sed -e '\|^'"${includefile}"'$|d'
54919          instead of /.../d, to avoid errors on $includefile's containing /.
54920
54921 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54922
54923         * gnulib-tool (func_import): Avoid duplication of --avoid
54924         statements
54925         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54926         names to `_' in variable names.
54927
54928 2007-07-10  Eric Blake  <ebb9@byu.net>
54929
54930         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54931         * NEWS: Document this change.
54932
54933 2007-07-08  Bruno Haible  <bruno@clisp.org>
54934
54935         Update to Unicode 5.0.
54936         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54937         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54938         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54939         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54940         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54941         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54942         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54943         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54944         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54945         U+10A3F, U+1D242..U+1D244.
54946         (nonspacing_table_ind): Update.
54947         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54948         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54949
54950 2007-07-08  Bruno Haible  <bruno@clisp.org>
54951
54952         Update to Unicode 5.0.
54953         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54954         code transform. Extend the name index field of unicode_name_to_code and
54955         unicode_code_to_name from 16 to 24 bits.
54956         * lib/uniname/uniname.c (unicode_character_name,
54957         unicode_name_character): Add the range 0x12xxx to the code transform.
54958         * lib/uniname/uninames.h: Regenerated.
54959         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54960
54961 2007-07-07  Bruno Haible  <bruno@clisp.org>
54962
54963         * modules/wcwidth-tests: New file.
54964         * tests/test-wcwidth.c: New file.
54965
54966         Work around MacOS X wcwidth() bug.
54967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54968         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54969         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54970         original wcwidth in non-UTF-8 locales.
54971         * modules/wcwidth (Depends-on): Add localcharset, streq,
54972         uniwidth/width.
54973         * doc/functions/wcwidth.texi: Update.
54974
54975 2007-07-07  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54978         (wcwidth): New declaration.
54979         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54980         macros.
54981         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54982         here. Prepare for creating <wchar.h> unconditionally.
54983         * modules/wchar (Depends-on): Add link-warning.
54984         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54985         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54986         * lib/wcwidth.h: Remove file.
54987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54988         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54989         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54990         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54991         (Include): Replace wcwidth.h with <wchar.h>.
54992         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54993         * lib/mbchar.h: Don't include wcwidth.h.
54994         * lib/mbswidth.c: Likewise.
54995         * NEWS: Mention the change.
54996
54997 2007-07-07  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55000         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55001         definition with an external declaration.
55002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55003         defined as a function. Remove AC_C_INLINE requirement.
55004         * modules/wcwidth (Files): Add lib/wcwidth.c.
55005         (Makefile.am): Remove redundant statement.
55006
55007 2007-07-07  Bruno Haible  <bruno@clisp.org>
55008
55009         * MODULES.html.sh (Unicode string functions): Add the new modules.
55010
55011         * tests/uniwidth/test-u32-strwidth.c: New file.
55012         * modules/uniwidth/u32-strwidth-tests: New file.
55013
55014         * lib/uniwidth/u32-strwidth.c: New file.
55015         * modules/uniwidth/u32-strwidth: New file.
55016
55017         * tests/uniwidth/test-u16-strwidth.c: New file.
55018         * modules/uniwidth/u16-strwidth-tests: New file.
55019
55020         * lib/uniwidth/u16-strwidth.c: New file.
55021         * modules/uniwidth/u16-strwidth: New file.
55022
55023         * tests/uniwidth/test-u8-strwidth.c: New file.
55024         * modules/uniwidth/u8-strwidth-tests: New file.
55025
55026         * lib/uniwidth/u8-strwidth.c: New file.
55027         * modules/uniwidth/u8-strwidth: New file.
55028
55029         * tests/uniwidth/test-u32-width.c: New file.
55030         * modules/uniwidth/u32-width-tests: New file.
55031
55032         * lib/uniwidth/u32-width.c: New file.
55033         * modules/uniwidth/u32-width: New file.
55034
55035         * tests/uniwidth/test-u16-width.c: New file.
55036         * modules/uniwidth/u16-width-tests: New file.
55037
55038         * lib/uniwidth/u16-width.c: New file.
55039         * modules/uniwidth/u16-width: New file.
55040
55041         * tests/uniwidth/test-u8-width.c: New file.
55042         * modules/uniwidth/u8-width-tests: New file.
55043
55044         * lib/uniwidth/u8-width.c: New file.
55045         * modules/uniwidth/u8-width: New file.
55046
55047         * tests/uniwidth/test-uc_width.c: New file.
55048         * modules/uniwidth/width-tests: New file.
55049
55050         * lib/uniwidth/width.c: New file, from GNU libiconv.
55051         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55052         * modules/uniwidth/width: New file.
55053
55054         * lib/uniwidth.h: New file, from GNU libiconv.
55055         * modules/uniwidth/base: New file.
55056
55057 2007-07-07  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/uniname.h: New file, from GNU gettext.
55060         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55061         * lib/uniname/uninames.h: New file, from GNU gettext.
55062         * lib/uniname/uniname.c: New file, from GNU gettext.
55063         * tests/uniname/test-uninames.sh: New file.
55064         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55065         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55066         * modules/uniname/base: New file.
55067         * modules/uniname/uniname: New file.
55068         * modules/uniname/uniname-tests: New file.
55069         * MODULES.html.sh (Unicode string functions): Add the new modules.
55070
55071 2007-07-06  Bruno Haible  <bruno@clisp.org>
55072
55073         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55074
55075 2007-07-06  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55078         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55079         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55080         include <sys/time.h>.
55081         Reported by Eric Blake.
55082
55083 2007-07-06  Eric Blake  <ebb9@byu.net>
55084
55085         Fix testing canonicalize on cygwin.
55086         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55087         Revert patch from 2007-06-19.
55088         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55089         canonicalize module is also in use.
55090         * tests/test-canonicalize.c: New file.
55091         * tests/test-canonicalize.sh: Likewise.
55092         * modules/canonicalize-tests: Likewise.
55093
55094 2007-07-06  Jim Meyering  <jim@meyering.net>
55095
55096         * lib/getugroups.c (getugroups): Detect getgrent failure.
55097         Adjust comment to reflect reality: this function may return -1.
55098
55099 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55100
55101         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55102         the new TP address.
55103         (usage): Fix typo
55104         (gnulib_mk): New variable.
55105
55106 2007-07-05  Jim Meyering  <jim@meyering.net>
55107
55108         Don't let endgrent clobber errno, no matter how improbable.
55109         * lib/getugroups.c (getugroups): Save and restore errno around
55110         endgrent call.
55111
55112         Close the group DB even when failing with 2^31 or more members.
55113         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55114
55115 2007-07-04  Jim Meyering  <jim@meyering.net>
55116
55117         * lib/getugroups.h: New file.
55118         * lib/getugroups.c: Include "getugroups.h".
55119         Remove uses of "register" keyword.
55120         Move local variable, "cp", down into scope where used.
55121         Give "username" parameter the "const" attribute.
55122         * modules/getugroups (Files): Add lib/getugroups.h
55123
55124 2007-07-04  Karl Berry  <karl@gnu.org>
55125
55126         * MODULES.html.sh (func_all_modules): Complete rename of
55127         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55128
55129 2007-07-02  Bruno Haible  <bruno@clisp.org>
55130
55131         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55132         mode, when inttypes.h comes from gnulib.
55133         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55134
55135 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55136
55137         * NEWS: Mention lgpl module name change.
55138
55139         * modules/lgpl-2.1: Renamed from lgpl.
55140
55141         * NEWS: Mention gpl module name change.
55142
55143         * modules/gpl-3.0: New file, based on gpl-2.0.
55144
55145         * modules/gpl-2.0: Renamed from gpl.
55146
55147         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55148         doc/gpl-2.0.texi.
55149
55150 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55153         #define __STDC_LIMIT_MACROS temporarily while including
55154         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55155         Problem reported by Joel E. Denny in
55156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55157
55158 2007-07-01  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/unistdio.h: New file.
55161         * lib/unistdio/u-asnprintf.h: New file.
55162         * lib/unistdio/u-asprintf.h: New file.
55163         * lib/unistdio/u-printf-args.c: New file.
55164         * lib/unistdio/u-printf-args.h: New file.
55165         * lib/unistdio/u-printf-parse.h: New file.
55166         * lib/unistdio/u-snprintf.h: New file.
55167         * lib/unistdio/u-sprintf.h: New file.
55168         * lib/unistdio/u-vasprintf.h: New file.
55169         * lib/unistdio/u-vsnprintf.h: New file.
55170         * lib/unistdio/u-vsprintf.h: New file.
55171         * lib/unistdio/ulc-asnprintf.c: New file.
55172         * lib/unistdio/ulc-asprintf.c: New file.
55173         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55174         * lib/unistdio/ulc-printf-parse.c: New file.
55175         * lib/unistdio/ulc-snprintf.c: New file.
55176         * lib/unistdio/ulc-sprintf.c: New file.
55177         * lib/unistdio/ulc-vasnprintf.c: New file.
55178         * lib/unistdio/ulc-vasprintf.c: New file.
55179         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55180         * lib/unistdio/ulc-vsnprintf.c: New file.
55181         * lib/unistdio/ulc-vsprintf.c: New file.
55182         * lib/unistdio/u8-asnprintf.c: New file.
55183         * lib/unistdio/u8-asprintf.c: New file.
55184         * lib/unistdio/u8-printf-parse.c: New file.
55185         * lib/unistdio/u8-snprintf.c: New file.
55186         * lib/unistdio/u8-sprintf.c: New file.
55187         * lib/unistdio/u8-vasnprintf.c: New file.
55188         * lib/unistdio/u8-vasprintf.c: New file.
55189         * lib/unistdio/u8-vsnprintf.c: New file.
55190         * lib/unistdio/u8-vsprintf.c: New file.
55191         * lib/unistdio/u8-u8-asnprintf.c: New file.
55192         * lib/unistdio/u8-u8-asprintf.c: New file.
55193         * lib/unistdio/u8-u8-snprintf.c: New file.
55194         * lib/unistdio/u8-u8-sprintf.c: New file.
55195         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55196         * lib/unistdio/u8-u8-vasprintf.c: New file.
55197         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55198         * lib/unistdio/u8-u8-vsprintf.c: New file.
55199         * lib/unistdio/u16-asnprintf.c: New file.
55200         * lib/unistdio/u16-asprintf.c: New file.
55201         * lib/unistdio/u16-printf-parse.c: New file.
55202         * lib/unistdio/u16-snprintf.c: New file.
55203         * lib/unistdio/u16-sprintf.c: New file.
55204         * lib/unistdio/u16-vasnprintf.c: New file.
55205         * lib/unistdio/u16-vasprintf.c: New file.
55206         * lib/unistdio/u16-vsnprintf.c: New file.
55207         * lib/unistdio/u16-vsprintf.c: New file.
55208         * lib/unistdio/u16-u16-asnprintf.c: New file.
55209         * lib/unistdio/u16-u16-asprintf.c: New file.
55210         * lib/unistdio/u16-u16-snprintf.c: New file.
55211         * lib/unistdio/u16-u16-sprintf.c: New file.
55212         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55213         * lib/unistdio/u16-u16-vasprintf.c: New file.
55214         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55215         * lib/unistdio/u16-u16-vsprintf.c: New file.
55216         * lib/unistdio/u32-asnprintf.c: New file.
55217         * lib/unistdio/u32-asprintf.c: New file.
55218         * lib/unistdio/u32-printf-parse.c: New file.
55219         * lib/unistdio/u32-snprintf.c: New file.
55220         * lib/unistdio/u32-sprintf.c: New file.
55221         * lib/unistdio/u32-vasnprintf.c: New file.
55222         * lib/unistdio/u32-vasprintf.c: New file.
55223         * lib/unistdio/u32-vsnprintf.c: New file.
55224         * lib/unistdio/u32-vsprintf.c: New file.
55225         * lib/unistdio/u32-u32-asnprintf.c: New file.
55226         * lib/unistdio/u32-u32-asprintf.c: New file.
55227         * lib/unistdio/u32-u32-snprintf.c: New file.
55228         * lib/unistdio/u32-u32-sprintf.c: New file.
55229         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55230         * lib/unistdio/u32-u32-vasprintf.c: New file.
55231         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55232         * lib/unistdio/u32-u32-vsprintf.c: New file.
55233         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55234         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55235         * tests/unistdio/test-ulc-printf1.h: New file.
55236         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55237         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55238         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55239         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55240         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55241         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55242         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55243         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55244         * tests/unistdio/test-u8-asnprintf1.c: New file.
55245         * tests/unistdio/test-u8-asnprintf1.h: New file.
55246         * tests/unistdio/test-u8-printf1.h: New file.
55247         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55248         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55249         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55250         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55251         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55252         * tests/unistdio/test-u8-vasprintf1.c: New file.
55253         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55254         * tests/unistdio/test-u8-vsprintf1.c: New file.
55255         * tests/unistdio/test-u16-asnprintf1.c: New file.
55256         * tests/unistdio/test-u16-asnprintf1.h: New file.
55257         * tests/unistdio/test-u16-printf1.h: New file.
55258         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55259         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55260         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55261         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55262         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55263         * tests/unistdio/test-u16-vasprintf1.c: New file.
55264         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55265         * tests/unistdio/test-u16-vsprintf1.c: New file.
55266         * tests/unistdio/test-u32-asnprintf1.c: New file.
55267         * tests/unistdio/test-u32-asnprintf1.h: New file.
55268         * tests/unistdio/test-u32-printf1.h: New file.
55269         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55270         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55271         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55272         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55273         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55274         * tests/unistdio/test-u32-vasprintf1.c: New file.
55275         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55276         * tests/unistdio/test-u32-vsprintf1.c: New file.
55277         * modules/unistdio/base: New file.
55278         * modules/unistdio/u-printf-args: New file.
55279         * modules/unistdio/ulc-asnprintf: New file.
55280         * modules/unistdio/ulc-asprintf: New file.
55281         * modules/unistdio/ulc-fprintf: New file.
55282         * modules/unistdio/ulc-printf-parse: New file.
55283         * modules/unistdio/ulc-snprintf: New file.
55284         * modules/unistdio/ulc-sprintf: New file.
55285         * modules/unistdio/ulc-vasnprintf: New file.
55286         * modules/unistdio/ulc-vasprintf: New file.
55287         * modules/unistdio/ulc-vfprintf: New file.
55288         * modules/unistdio/ulc-vsnprintf: New file.
55289         * modules/unistdio/ulc-vsprintf: New file.
55290         * modules/unistdio/u8-asnprintf: New file.
55291         * modules/unistdio/u8-asprintf: New file.
55292         * modules/unistdio/u8-printf-parse: New file.
55293         * modules/unistdio/u8-snprintf: New file.
55294         * modules/unistdio/u8-sprintf: New file.
55295         * modules/unistdio/u8-vasnprintf: New file.
55296         * modules/unistdio/u8-vasprintf: New file.
55297         * modules/unistdio/u8-vsnprintf: New file.
55298         * modules/unistdio/u8-vsprintf: New file.
55299         * modules/unistdio/u8-u8-asnprintf: New file.
55300         * modules/unistdio/u8-u8-asprintf: New file.
55301         * modules/unistdio/u8-u8-snprintf: New file.
55302         * modules/unistdio/u8-u8-sprintf: New file.
55303         * modules/unistdio/u8-u8-vasnprintf: New file.
55304         * modules/unistdio/u8-u8-vasprintf: New file.
55305         * modules/unistdio/u8-u8-vsnprintf: New file.
55306         * modules/unistdio/u8-u8-vsprintf: New file.
55307         * modules/unistdio/u16-asnprintf: New file.
55308         * modules/unistdio/u16-asprintf: New file.
55309         * modules/unistdio/u16-printf-parse: New file.
55310         * modules/unistdio/u16-snprintf: New file.
55311         * modules/unistdio/u16-sprintf: New file.
55312         * modules/unistdio/u16-vasnprintf: New file.
55313         * modules/unistdio/u16-vasprintf: New file.
55314         * modules/unistdio/u16-vsnprintf: New file.
55315         * modules/unistdio/u16-vsprintf: New file.
55316         * modules/unistdio/u16-u16-asnprintf: New file.
55317         * modules/unistdio/u16-u16-asprintf: New file.
55318         * modules/unistdio/u16-u16-snprintf: New file.
55319         * modules/unistdio/u16-u16-sprintf: New file.
55320         * modules/unistdio/u16-u16-vasnprintf: New file.
55321         * modules/unistdio/u16-u16-vasprintf: New file.
55322         * modules/unistdio/u16-u16-vsnprintf: New file.
55323         * modules/unistdio/u16-u16-vsprintf: New file.
55324         * modules/unistdio/u32-asnprintf: New file.
55325         * modules/unistdio/u32-asprintf: New file.
55326         * modules/unistdio/u32-printf-parse: New file.
55327         * modules/unistdio/u32-snprintf: New file.
55328         * modules/unistdio/u32-sprintf: New file.
55329         * modules/unistdio/u32-vasnprintf: New file.
55330         * modules/unistdio/u32-vasprintf: New file.
55331         * modules/unistdio/u32-vsnprintf: New file.
55332         * modules/unistdio/u32-vsprintf: New file.
55333         * modules/unistdio/u32-u32-asnprintf: New file.
55334         * modules/unistdio/u32-u32-asprintf: New file.
55335         * modules/unistdio/u32-u32-snprintf: New file.
55336         * modules/unistdio/u32-u32-sprintf: New file.
55337         * modules/unistdio/u32-u32-vasnprintf: New file.
55338         * modules/unistdio/u32-u32-vasprintf: New file.
55339         * modules/unistdio/u32-u32-vsnprintf: New file.
55340         * modules/unistdio/u32-u32-vsprintf: New file.
55341         * modules/unistdio/ulc-asnprintf-tests: New file.
55342         * modules/unistdio/ulc-vasnprintf-tests: New file.
55343         * modules/unistdio/ulc-vasprintf-tests: New file.
55344         * modules/unistdio/ulc-vsnprintf-tests: New file.
55345         * modules/unistdio/ulc-vsprintf-tests: New file.
55346         * modules/unistdio/u8-asnprintf-tests: New file.
55347         * modules/unistdio/u8-vasnprintf-tests: New file.
55348         * modules/unistdio/u8-vasprintf-tests: New file.
55349         * modules/unistdio/u8-vsnprintf-tests: New file.
55350         * modules/unistdio/u8-vsprintf-tests: New file.
55351         * modules/unistdio/u16-asnprintf-tests: New file.
55352         * modules/unistdio/u16-vasnprintf-tests: New file.
55353         * modules/unistdio/u16-vasprintf-tests: New file.
55354         * modules/unistdio/u16-vsnprintf-tests: New file.
55355         * modules/unistdio/u16-vsprintf-tests: New file.
55356         * modules/unistdio/u32-asnprintf-tests: New file.
55357         * modules/unistdio/u32-vasnprintf-tests: New file.
55358         * modules/unistdio/u32-vasprintf-tests: New file.
55359         * modules/unistdio/u32-vsnprintf-tests: New file.
55360         * modules/unistdio/u32-vsprintf-tests: New file.
55361         * MODULES.html.sh (Unicode string functions): Add the new modules.
55362
55363 2007-07-01  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/sprintf.c (sprintf): Limit the available length estimation,
55366         to avoid address wraparound.
55367         * lib/vsprintf.c (vsprintf): Likewise.
55368         * modules/sprintf-posix (Dependencies): Add stdint.
55369         * modules/vsprintf-posix (Dependencies): Likewise.
55370
55371 2007-07-01  Bruno Haible  <bruno@clisp.org>
55372
55373         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55374         Windows PATH as well. Conservative double-quoting. Comments.
55375
55376 2007-07-01  Bruno Haible  <bruno@clisp.org>
55377             Eric Blake  <ebb9@byu.net>
55378             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55379
55380         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55381         empty components in $PATH, denoting '.'.
55382
55383 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55384
55385         * gnulib-tool: Fix indentation.
55386         (func_create_megatestdir): Likewise.
55387         Report by Bruno Haible.
55388
55389 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55390
55391         Sync from Automake.
55392         * build-aux/gnupload: Fix shell portability issues with for loops.
55393         Report by Karl Berry.
55394
55395 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55396
55397         * build-aux/maint.mk (POURL): Use translationproject.org.
55398
55399 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55400             Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55403         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55404         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55405         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55406         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55407
55408 2007-06-27  Bruno Haible  <bruno@clisp.org>
55409
55410         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55411         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55412
55413 2007-06-26  Karl Berry  <karl@gnu.org>
55414
55415         * MODULES.html.sh: remove xreadlink-with-size.
55416
55417 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55418
55419         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55420         method that I hope also handles the double-include problem noted
55421         by Bruno Haible in
55422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55423
55424 2007-06-23  Bruno Haible  <bruno@clisp.org>
55425
55426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55427         Don't let the 'mostlyclean' target fail if the last subdirectory could
55428         not be removed.
55429         Reported by Karl Berry.
55430
55431 2007-06-23  Bruno Haible  <bruno@clisp.org>
55432
55433         * gnulib-tool (echo): Add a speedier workaround for ksh.
55434         * tests/test-echo.sh: Likewise.
55435
55436 2007-06-23  Bruno Haible  <bruno@clisp.org>
55437
55438         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55439         * tests/test-echo.sh: Likewise.
55440
55441 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55442
55443         * gnulib-tool (IFS): Initialize early, so we don't set it to
55444         empty later.
55445         (self_abspathname): Rewrite algorithm to set it, reindent.
55446         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55447         (func_create_megatestdir): Merge some sed scripts.
55448
55449 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55452         exposed by Sun Studio 11 cc on Solaris 8.
55453
55454 2007-06-22  Bruno Haible  <bruno@clisp.org>
55455
55456         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55457         backslashes.
55458         * tests/test-echo.sh: New file.
55459
55460 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55461
55462         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55463         simplify `sed_replace_build_aux' scripts, they are portable but
55464         echoing them with `echo' is not.
55465         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55466
55467 2007-06-21  Karl Berry  <karl@gnu.org>
55468
55469         * config/srclist.txt: guess we can't handle the licenses via
55470         srclist at the moment.
55471
55472 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         * MODULES.html.sh: Add include_next.
55475         * modules/include_next: New file.
55476
55477 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55478
55479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55480         INCLUDE_NEXT.
55481         (gl_CHECK_NEXT_HEADERS): New macro.
55482         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55483         the obsolescent gl_ABSOLUTE_HEADER.
55484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55485         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55486         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55487         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55488         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55489         * m4/math_h.m4 (gl_MATH_H): Likewise.
55490         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55491         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55492         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55493         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55494         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55495         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55496         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55500         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55501         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55502         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55503         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55504         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55505         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55506         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55507         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55508         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55509         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55510         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55511         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55512         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55513         * lib/float_.h: Likewise.
55514         * lib/inttypes_.h: Likewise.
55515         * lib/math_.h: Likewise.
55516         * lib/search_.h: Likewise.
55517         * lib/signal_.h: Likewise.
55518         * lib/stdint_.h: Likewise.
55519         * lib/stdio_.h: Likewise.
55520         * lib/stdlib_.h: Likewise.
55521         * lib/string_.h: Likewise.
55522         * lib/sys_stat_.h: Likewise.
55523         * lib/sys_time_.h: Likewise.
55524         * lib/time_.h: Likewise.
55525         * lib/unistd_.h: Likewise.
55526         * lib/wchar_.h: Likewise.
55527         * lib/wctype_.h: Likewise.
55528         * lib/dirent_.h: Likewise.
55529         * lib/iconv_.h: Likewise.
55530         * lib/locale_.h: Likewise.
55531         * lib/netinet_in_.h: Likewise.
55532         * lib/sys_select_.h: Likewise.
55533         * lib/sys_socket_.h: Likewise.
55534         * lib/sysexits_.h: Likewise.
55535         * modules/fcntl (Depends-on): Depend on include_next, not
55536         absolute_header.
55537         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55538         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55539         * modules/fchdir: Likewise.
55540         * modules/float: Likewise.
55541         * modules/iconv_open: Likewise.
55542         * modules/inttypes: Likewise.
55543         * modules/locale: Likewise.
55544         * modules/math: Likewise.
55545         * modules/netinet_in: Likewise.
55546         * modules/search: Likewise.
55547         * modules/signal: Likewise.
55548         * modules/stdint: Likewise.
55549         * modules/stdio: Likewise.
55550         * modules/stdlib: Likewise.
55551         * modules/string: Likewise.
55552         * modules/sys_select: Likewise.
55553         * modules/sys_socket: Likewise.
55554         * modules/sys_stat: Likewise.
55555         * modules/sys_time: Likewise.
55556         * modules/sysexits: Likewise.
55557         * modules/time: Likewise.
55558         * modules/unistd: Likewise.
55559         * modules/wchar: Likewise.
55560         * modules/wctype: Likewise.
55561         * modules/sys_stat: Change maintainer to "all".
55562         * modules/unistd: Likewise.
55563
55564 2007-06-20  Karl Berry  <karl@gnu.org>
55565
55566         * config/srclist.txt: track www changes in license files.
55567
55568 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55569
55570         * build-aux/bootstrap: Remove stray dot.
55571         Make sure build_aux settings are honored when linking
55572         gnulib_extra_files.
55573
55574 2007-06-19  Eric Blake  <ebb9@byu.net>
55575
55576         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55577         Allow compilation on cygwin.
55578
55579 2007-06-19  Jim Meyering  <jim@meyering.net>
55580
55581         xreadlink-with-size: Remove module.  No longer used.
55582         Ex-callers now use xreadlink or mreadlink-with-size.
55583         * modules/xreadlink-with-size: Remove module.
55584         * lib/xreadlink-with-size.c: Remove file.
55585         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55586         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55587         just before the function definition *is* accurate.
55588
55589         Eliminate one way canonicalize_filename_mode could exit.
55590         * lib/canonicalize.c (canonicalize_filename_mode):
55591         Use mreadlink_with_size, not xreadlink_with_size.
55592
55593 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         Detect porting problems to FreeBSD/arm, which has time_t wider than
55596         long int.  Original problem reported for GNU diff by Xin Li in
55597         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55598         * modules/getdate (Depends-on): Add intprops, verify.
55599         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55600         is an integer type no wider than long int.
55601
55602 2007-06-18  Jim Meyering  <jim@meyering.net>
55603
55604         New module: mreadlink-with-size.
55605         * MODULES.html.sh: Add mreadlink-with-size.
55606         * modules/mreadlink-with-size: New module
55607         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55608         not xreadlink-with-size.
55609         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55610
55611 2007-06-16  Bruno Haible  <bruno@clisp.org>
55612
55613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55614         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55615         Reported by Gary V. Vaughan <gary@gnu.org>.
55616
55617 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55618
55619         Revamp lchown so that it lives in unistd.h where it belongs.
55620         * lib/lchown.h: Remove.
55621         * lib/dirchownmod.c: Don't include lib/lchown.h.
55622         * lib/fchownat.c: Likewise.
55623         * lib/openat.c: Likewise.
55624         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55625         does not follow symlinks.
55626         (EOPNOTSUPP): Define if not defined.
55627         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55628         is defined to 0.
55629         (lchown): New decl.
55630         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55631         Do not check for lchown decl.
55632         Set REPLACE_LCHOWN.
55633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55634         REPLACE_LCHOWN.
55635         * modules/chown: Make it clear it follows symlinks.
55636         * modules/lchown: Make it clear it doesn't follow symlinks.
55637         (Files): Remove lib/lchown.h
55638         (Depends-on): Add unistd.
55639         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55640         (Include): Include <unistd.h>, not "lchown.h".
55641         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55642         REPLACE_LCHOWN.
55643
55644 2007-06-15  Jim Meyering  <jim@meyering.net>
55645
55646         Change license (GPL to LGPL) of fsusage and dependents.
55647         * modules/fsusage (License): Change to LGPL.
55648         * modules/full-read (License): Likewise.
55649         * modules/full-write (License): Likewise.
55650         * modules/safe-read (License): Likewise.
55651         * modules/safe-write (License): Likewise.
55652
55653 2007-06-14  Ben Pfaff  <blp@gnu.org>
55654
55655         Missing part of allocsa -> malloca transition.
55656         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55657         gl_MALLOCA.
55658
55659 2007-06-12  Bruno Haible  <bruno@clisp.org>
55660
55661         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55662         to ia64, x86_64, i386.
55663         Reported by Eric Blake.
55664
55665 2007-06-12  Bruno Haible  <bruno@clisp.org>
55666
55667         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55668         cross-compiling to x86_64.
55669
55670 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55673         glitch reported by Ralf Wildenhues in
55674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55675
55676         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55677         Vin Shelton.
55678
55679 2007-06-11  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55682         replacement string.
55683         Reported by Eric Blake.
55684
55685 2007-06-10  Bruno Haible  <bruno@clisp.org>
55686
55687         Prepare vasnprintf code for use with Unicode strings.
55688         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55689         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55690         TYPE_U32_STRING.
55691         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55692         a_u32_string variants.
55693         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55694         * lib/printf-args.c: Don't include config.h and the specification
55695         header if PRINTF_FETCHARGS is already defined.
55696         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55697         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55698         TYPE_U16_STRING, TYPE_U32_STRING.
55699         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55700         u16_directive, u16_directives, u32_directive, u32_directives): New
55701         types.
55702         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55703         New declarations.
55704         * lib/printf-parse.c: Don't include config.h and the specification
55705         header if PRINTF_PARSE is already defined. Eliminate the set of
55706         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55707         them now. Include c-ctype.h.
55708         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55709         directive and CHAR_T_ONLY_ASCII.
55710         * lib/vasnprintf.c: Don't include config.h and the specification header
55711         if VASNPRINTF is already defined.
55712         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55713         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55714         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55715         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55716         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55717         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55718         code accordingly.
55719         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55720         pad_ourselves also in this case, with the 'c' and 's' directives, and
55721         with a different notion of "width".
55722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55723
55724 2007-06-10  Bruno Haible  <bruno@clisp.org>
55725
55726         * modules/unistr/u32-mbsnlen: New file.
55727         * lib/unistr/u32-mbsnlen.c: New file.
55728
55729         * modules/unistr/u16-mbsnlen: New file.
55730         * lib/unistr/u16-mbsnlen.c: New file.
55731
55732         * modules/unistr/u8-mbsnlen: New file.
55733         * lib/unistr/u8-mbsnlen.c: New file.
55734
55735         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55736         declarations.
55737
55738 2007-06-10  Bruno Haible  <bruno@clisp.org>
55739
55740         * lib/string_.h (mbsnlen): New declaration.
55741         * lib/mbsnlen.c: New file.
55742         * m4/mbsnlen.m4: New file.
55743         * modules/mbsnlen: New file.
55744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55745         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55746         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55747
55748 2007-06-10  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55751
55752 2007-06-10  Bruno Haible  <bruno@clisp.org>
55753
55754         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55755         * lib/mbuiter.h: Likewise.
55756
55757 2007-06-10  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55760         declaration.
55761
55762 2007-06-10  Karl Berry  <karl@gnu.org>
55763
55764         * config/srclist.txt: remove gettext entries, Bruno prefers
55765         to update individually.
55766
55767 2007-06-10  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55770         'maxlen'. Ensure only length + width bytes are allocated, not
55771         length + 1 + width.
55772
55773 2007-06-09  Bruno Haible  <bruno@clisp.org>
55774
55775         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55776         (CHAR_T): Remove macro.
55777         (VASNPRINTF): Update.
55778
55779 2007-06-09  Bruno Haible  <bruno@clisp.org>
55780
55781         * MODULES.html.sh (Unicode string functions): Add the new modules.
55782
55783         * modules/uniconv/u32-conv-to-enc: New file.
55784         * lib/uniconv/u32-conv-to-enc.c: New file.
55785         * modules/uniconv/u32-conv-to-enc-tests: New file.
55786         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55787
55788         * modules/uniconv/u16-conv-to-enc: New file.
55789         * lib/uniconv/u16-conv-to-enc.c: New file.
55790         * lib/uniconv/u-conv-to-enc.h: New file.
55791         * modules/uniconv/u16-conv-to-enc-tests: New file.
55792         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55793
55794         * modules/uniconv/u8-conv-to-enc: New file.
55795         * lib/uniconv/u8-conv-to-enc.c: New file.
55796         * modules/uniconv/u8-conv-to-enc-tests: New file.
55797         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55798
55799         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55800         u32_conv_to_encoding): New declarations.
55801
55802 2007-06-09  Bruno Haible  <bruno@clisp.org>
55803
55804         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55805
55806 2007-06-09  Bruno Haible  <bruno@clisp.org>
55807
55808         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55809         * modules/malloca: Renamed from modules/allocsa, updated.
55810         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55811         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55812         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55813         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55814         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55815         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55816         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55817         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55818         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55819         * modules/c-strcasestr (Depends-on): Update.
55820         * lib/c-strcasestr.c: Update.
55821         * modules/c-strstr (Depends-on): Update.
55822         * lib/c-strstr.c: Update.
55823         * modules/canonicalize-lgpl (Depends-on): Update.
55824         * lib/canonicalize-lgpl.c: Update.
55825         * modules/clean-temp (Depends-on): Update.
55826         * lib/clean-temp.c: Update.
55827         * modules/csharpcomp (Depends-on): Update.
55828         * lib/csharpcomp.c: Update.
55829         * modules/csharpexec (Depends-on): Update.
55830         * lib/csharpexec.c: Update.
55831         * modules/javacomp (Depends-on): Update.
55832         * lib/javacomp.c: Update.
55833         * modules/javaexec (Depends-on): Update.
55834         * lib/javaexec.c: Update.
55835         * modules/mbscasestr (Depends-on): Update.
55836         * lib/mbscasestr.c: Update.
55837         * modules/mbsstr (Depends-on): Update.
55838         * lib/mbsstr.c: Update.
55839         * modules/setenv (Depends-on): Update.
55840         * lib/setenv.c: Update.
55841         * modules/strcasestr (Depends-on): Update.
55842         * lib/strcasestr.c: Update.
55843         * modules/striconveha (Depends-on): Update.
55844         * lib/striconveha.c: Update.
55845         * modules/relocatable-prog-wrapper (Files): Update.
55846         * lib/relocwrapper.c: Update.
55847         * build-aux/install-reloc: Update.
55848         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55849
55850 2007-06-08  Bruno Haible  <bruno@clisp.org>
55851
55852         Port to uClibc.
55853         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55854         * lib/fpurge.c (fpurge): Likewise.
55855         * lib/freading.c (freading): Likewise.
55856         * lib/fseeko.c (rpl_fseeko): Likewise.
55857         * lib/fseterr.c (fseterr): Likewise.
55858         * lib/fwriting.c (fwriting): Likewise.
55859         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55860
55861 2007-06-08  Bruno Haible  <bruno@clisp.org>
55862
55863         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55864         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55865         * modules/gettext (Files): Add m4/intlmacosx.m4.
55866
55867 2007-06-07  Bruno Haible  <bruno@clisp.org>
55868
55869         * modules/localename-tests: New file.
55870         * tests/test-localename.c: New file.
55871
55872         New module 'localename'.
55873         * lib/localename.h: New file.
55874         * lib/localename.c: New file, from GNU gettext.
55875         * m4/localename.m4: New file.
55876         * modules/localename: New file.
55877
55878 2007-06-07  Bruno Haible  <bruno@clisp.org>
55879
55880         Work around the lack of <wchar.h> on some builds of uClibc.
55881         * doc/headers/wchar.texi: Update.
55882         * lib/wchar_.h: Include <wchar.h> only if it exists.
55883         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55884         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55885         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55886         doesn't exist.
55887         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55888         * modules/mbfile (Depends-on): Add wchar.
55889         * modules/mbiter (Depends-on): Likewise.
55890         * modules/mbuiter (Depends-on): Likewise.
55891         Reported by Simon Josefsson.
55892
55893 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55894
55895         Work around problem reported by Steven M. Schweda in
55896         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55897         Tru64 5.1B with the Compaq compiler environment installed declares
55898         an 'isblank' function but does not define it in the C library.
55899         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55900         * lib/regex_internal.h (isblank): Likewise.
55901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55902         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55903
55904 2007-06-05  Bruno Haible  <bruno@clisp.org>
55905
55906         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55907         ia64.
55908         * modules/printf-safe: New file.
55909         * modules/fprintf-posix (Depends-on): Add printf-safe.
55910         * modules/printf-posix (Depends-on): Likewise.
55911         * modules/snprintf-posix (Depends-on): Likewise.
55912         * modules/sprintf-posix (Depends-on): Likewise.
55913         * modules/vasnprintf-posix (Depends-on): Likewise.
55914         * modules/vasprintf-posix (Depends-on): Likewise.
55915         * modules/vfprintf-posix (Depends-on): Likewise.
55916         * modules/vprintf-posix (Depends-on): Likewise.
55917         * modules/vsnprintf-posix (Depends-on): Likewise.
55918         * modules/vsprintf-posix (Depends-on): Likewise.
55919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55920         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55921         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55922         "no" on i386, x86_64, ia64.
55923         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55924         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55925         on i386, x86_64, ia64.
55926         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55927         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55928         on i386, x86_64, ia64.
55929         * tests/test-vasnprintf-posix.c: Include float.h.
55930         (LDBL80_WORDS): New macro.
55931         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55932         on i386, x86_64, ia64.
55933         * tests/test-vasprintf-posix.c: Include float.h.
55934         (LDBL80_WORDS): New macro.
55935         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55936         on i386, x86_64, ia64.
55937         * tests/test-snprintf-posix.c: Include float.h.
55938         * tests/test-sprintf-posix.c: Likewise.
55939         * tests/test-vsnprintf-posix.c: Likewise.
55940         * tests/test-vsprintf-posix.c: Likewise.
55941
55942 2007-06-05  Bruno Haible  <bruno@clisp.org>
55943
55944         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55945         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55946         non-IEEE numbers on i386, x86_64, ia64.
55947         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55948         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55949         * tests/test-isnanl.h: Include float.h.
55950         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55951
55952 2007-06-05  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55955         also the %a / %A. Handle the %a / %A code before this extra handling.
55956
55957 2007-06-05  Bruno Haible  <bruno@clisp.org>
55958
55959         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55960         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55961
55962 2007-06-05  Bruno Haible  <bruno@clisp.org>
55963
55964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55965         typo in variable name.
55966
55967 2007-06-05  Eric Blake  <ebb9@byu.net>
55968
55969         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55970         Reported by Simon Josefsson.
55971
55972 2007-06-04  Bruno Haible  <bruno@clisp.org>
55973
55974         Avoid test failures on some PowerPC platforms.
55975         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55976         Define differently for PowerPC.
55977         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55978         Reported by Gary V. Vaughan <gary@gnu.org>.
55979
55980 2007-06-02  Bruno Haible  <bruno@clisp.org>
55981
55982         Fix test-stdint failure on FreeBSD/ia64.
55983         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55984         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55985         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55986         * doc/headers/stdint.texi: Update.
55987
55988 2007-06-01  Bruno Haible  <bruno@clisp.org>
55989
55990         * tests/test-binary-io.c (main): Pass a third argument to open().
55991         Reported by Gary V. Vaughan <gary@gnu.org>.
55992
55993 2007-06-01  Bruno Haible  <bruno@clisp.org>
55994
55995         * doc/functions/frexpl.texi: Update for mingw.
55996
55997 2007-06-01  Bruno Haible  <bruno@clisp.org>
55998
55999         * tests/test-lseek.c (main): Disable test of errno for invalid third
56000         argument.
56001         * doc/functions/lseek.texi: Update.
56002         Reported by Gary V. Vaughan <gary@gnu.org>.
56003
56004 2007-05-28  Bruno Haible  <bruno@clisp.org>
56005
56006         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56007
56008 2007-05-31  Eric Blake  <ebb9@byu.net>
56009
56010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56011         cross compiling.
56012
56013 2007-05-30  Eric Blake  <ebb9@byu.net>
56014         and Bruno Haible  <bruno@clisp.org>
56015
56016         Work around mingw test failures exposed by m4-1.4.9b.
56017         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56018         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56019         moment.
56020
56021 2007-05-30  Bruno Haible  <bruno@clisp.org>
56022
56023         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56024         assuming that they are closed. Needed on HP-UX 11.
56025
56026 2007-05-29  Bruno Haible  <bruno@clisp.org>
56027
56028         Fix a problem with #include_next.
56029         * lib/dirent_.h: Split the double-inclusion guard.
56030         * lib/fcntl_.h: Likewise.
56031         * lib/float_.h: Likewise.
56032         * lib/iconv_.h: Likewise.
56033         * lib/inttypes_.h: Likewise.
56034         * lib/locale_.h: Likewise.
56035         * lib/math_.h: Likewise.
56036         * lib/netinet_in_.h: Likewise.
56037         * lib/search_.h: Likewise.
56038         * lib/signal_.h: Likewise.
56039         * lib/stdint_.h: Likewise.
56040         * lib/stdio_.h: Likewise.
56041         * lib/stdlib_.h: Likewise.
56042         * lib/string_.h: Likewise.
56043         * lib/sys_select_.h: Likewise.
56044         * lib/sys_socket_.h: Likewise.
56045         * lib/sys_stat_.h: Likewise.
56046         * lib/sys_time_.h: Likewise.
56047         * lib/sysexits_.h: Likewise.
56048         * lib/time_.h: Likewise.
56049         * lib/unistd_.h: Likewise.
56050         * lib/wchar_.h: Likewise.
56051         * lib/wctype_.h: Likewise.
56052
56053 2007-05-29  Bruno Haible  <bruno@clisp.org>
56054
56055         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56056         for the moment.
56057
56058 2007-05-29  Bruno Haible  <bruno@clisp.org>
56059
56060         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56061         invocation.
56062         Reported by Eric Blake.
56063
56064 2007-05-29  Bruno Haible  <bruno@clisp.org>
56065
56066         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56067         compiling case.
56068
56069 2007-05-29  Eric Blake  <ebb9@byu.net>
56070             Bruno Haible  <bruno@clisp.org>
56071
56072         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56073         cross compiles.
56074
56075 2007-05-28  Eric Blake  <ebb9@byu.net>
56076
56077         * modules/closein-tests (test_closein_LDADD): Support test on
56078         cygwin with libtool.
56079
56080 2007-05-28  Bruno Haible  <bruno@clisp.org>
56081
56082         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56083         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56084         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56085         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56086         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56087         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56088         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56089         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56090         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56091
56092 2007-05-28  Eric Blake  <ebb9@byu.net>
56093
56094         Unconditionally include <config.h> in unit tests.
56095         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56096         * tests/test-allocsa.c, tests/test-arcfour.c,
56097         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56098         tests/test-array_list.c, tests/test-array_oset.c,
56099         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56100         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56101         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56102         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56103         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56104         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56105         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56106         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56107         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56108         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56109         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56110         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56111         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56112         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56113         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56114         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56115         test-md5.c, test-memmem.c, test-printf-posix.c,
56116         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56117         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56118         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56119         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56120         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56121         test-vasnprintf-posix2.c, test-vasnprintf.c,
56122         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56123         test-vfprintf-posix.c, test-vprintf-posix.c,
56124         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56125         test-xvasprintf.c: Likewise.
56126
56127 2007-05-28  Bruno Haible  <bruno@clisp.org>
56128
56129         * gnulib-tool (func_import): Remember the --with-tests command-line
56130         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56131         Reported by Eric Blake.
56132
56133 2007-05-28  Bruno Haible  <bruno@clisp.org>
56134
56135         * modules/ftell-tests: New file.
56136         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56137         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56138
56139         * lib/ftell.c: New file.
56140         * modules/ftell: New file.
56141         * m4/ftell.m4: New file.
56142         * doc/functions/ftell.texi: Update.
56143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56144         REPLACE_FTELL.
56145         * lib/stdio_.h (rpl_ftell): New declaration.
56146         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56147         REPLACE_FTELL.
56148
56149 2007-05-28  Eric Blake  <ebb9@byu.net>
56150
56151         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56152
56153 2007-05-28  Bruno Haible  <bruno@clisp.org>
56154
56155         * modules/fseek-tests: New file.
56156         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56157         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56158
56159         * lib/fseek.c: New file.
56160         * modules/fseek: New file.
56161         * m4/fseek.m4: New file.
56162         * doc/functions/fseek.texi: Update.
56163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56164         REPLACE_FSEEK.
56165         * lib/stdio_.h (rpl_fseek): New declaration.
56166         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56167         REPLACE_FSEEK.
56168
56169 2007-05-28  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/stdio_.h (fflush): More comments.
56172
56173 2007-05-28  Bruno Haible  <bruno@clisp.org>
56174
56175         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56176         runtime test.
56177
56178 2007-05-28  Eric Blake  <ebb9@byu.net>
56179
56180         Improve lseek module.
56181         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56182         * lib/unistd_.h (lseek): Scale back link warning message.
56183         * tests/test-lseek.c: Beef up test.
56184         * tests/test-lseek.sh: Exercise more facets of lseek.
56185         Reported by Bruno Haible.
56186
56187 2007-05-28  Bruno Haible  <bruno@clisp.org>
56188
56189         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56190         to define.
56191
56192 2007-05-27  Bruno Haible  <bruno@clisp.org>
56193
56194         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56195
56196 2007-05-27  Bruno Haible  <bruno@clisp.org>
56197
56198         * modules/openmp: New file.
56199         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56200         Noah Misch.
56201
56202 2007-05-26  Bruno Haible  <bruno@clisp.org>
56203
56204         * modules/chdir-long (Depends-on): Add fchdir.
56205         * modules/chdir-safer (Depends-on): Likewise.
56206         * modules/fts (Depends-on): Likewise.
56207         * modules/fts-lgpl (Depends-on): Likewise.
56208         * modules/openat (Depends-on): Likewise.
56209         * modules/savewd (Depends-on): Likewise.
56210
56211 2007-05-24  Eric Blake  <ebb9@byu.net>
56212
56213         Fix lseek on mingw.
56214         * modules/lseek: New module.
56215         * m4/lseek.m4: New file.
56216         * lib/lseek.c: New file.
56217         * modules/lseek-tests: New file.
56218         * tests/test-lseek.c: New file.
56219         * tests/test-lseek.sh: New file.
56220         * MODULES.html.sh: Document lseek module.
56221         * modules/fflush (Depends-on): Add lseek, fseeko.
56222         * modules/fseeko (Depends-on): Likewise.
56223         * modules/ftello (Depends-on): Likewise.
56224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56225         broken.
56226         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56227         broken.
56228         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56229         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56230         * lib/ftello.c (rpl_ftello): Likewise.
56231         * tests/test-fseeko.c (main): Test this.
56232         * tests/test-fseeko.sh: Likewise.
56233         * tests/test-ftello.c (main): Likewise.
56234         * tests/test-ftello.sh: Likewise.
56235         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56236         implies replacing fseek.
56237         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56238         HAVE_FTELLO.
56239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56240         * modules/unistd (Makefile.am): Likewise.
56241         * lib/unistd_.h (lseek): Declare a replacement.
56242         * doc/functions/lseek.texi (lseek): Document this fix.
56243         * doc/functions/fseek.texi (fseek): Likewise.
56244         * doc/functions/ftell.texi (ftell): Likewise.
56245
56246 2007-05-24  Bruno Haible  <bruno@clisp.org>
56247
56248         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56249         in the printed representation of a 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         Reported by Eric Blake.
56254
56255 2007-05-23  Eric Blake  <ebb9@byu.net>
56256
56257         Fix fseeko/ftello on cygwin 1.5.24.
56258         * doc/functions/fseeko.texi (fseeko): Document the fix.
56259         * doc/functions/ftello.texi (ftello): Document the fix.
56260         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56261         * doc/functions/stdout.text (stdout): New file.
56262         * doc/functions/stderr.text (stderr): New file.
56263         * doc/gnulib.texi (Function Substitutes): Use new files.
56264         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56265         prior to 1.7.0.
56266         * tests/test-ftello.c (main): Likewise for ftello.
56267         * tests/test-fseeko.sh: New file.
56268         * tests/test-ftello.sh: New file.
56269         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56270         with seekable stdin.
56271         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56273         (gl_REPLACE_FSEEKO): New macro.
56274         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56275         * modules/fseeko (Files): Distribute fseeko.c.
56276         * modules/ftello (Files): Distribute ftello.c.
56277         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56278         mode.
56279         * lib/ftello.c (rpl_ftello): New file.
56280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56281         fseeko, ftello.
56282         (gl_STDIN_LARGE_OFFSET): New macro.
56283         * modules/stdio (Makefile.am): Perform the replacement.
56284         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56285
56286 2007-05-23  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56289         GNULIB_POSIXCHECK is defined.
56290
56291 2007-05-21  Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56294         Check also the output for NaN arguments. When cross-compiling, guess
56295         no on IRIX.
56296         * lib/vasnprintf.c: Update comments.
56297         * tests/test-vasnprintf-posix.c (strisnan): New function.
56298         (test_function): Use it.
56299         * tests/test-vasprintf-posix.c (strisnan): New function.
56300         (test_function): Use it.
56301         * tests/test-snprintf-posix.h (strisnan): New function.
56302         (test_function): Use it.
56303         * tests/test-sprintf-posix.h (strisnan): New function.
56304         (test_function): Use it.
56305         Reported by Eric Blake.
56306
56307 2007-05-20  Bruno Haible  <bruno@clisp.org>
56308
56309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56310         numbers that fails on BeOS.
56311         * doc/functions/frexpl.texi: Update.
56312
56313 2007-05-20  Jim Meyering  <jim@meyering.net>
56314
56315         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56316         forced upon us by glibc-2.6.
56317
56318 2007-05-20  Bruno Haible  <bruno@clisp.org>
56319
56320         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56321         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56322         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56323         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56324         NEED_PRINTF_INFINITE.
56325         (is_infinitel): New function.
56326         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56328         gl_PREREQ_VASNPRINTF_INFINITE.
56329         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56331         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56332         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56333         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56334         gl_PREREQ_VASNPRINTF_INFINITE.
56335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56342         * doc/functions/fprintf.texi: Update.
56343         * doc/functions/printf.texi: Update.
56344         * doc/functions/snprintf.texi: Update.
56345         * doc/functions/sprintf.texi: Update.
56346         * doc/functions/vfprintf.texi: Update.
56347         * doc/functions/vprintf.texi: Update.
56348         * doc/functions/vsnprintf.texi: Update.
56349         * doc/functions/vsprintf.texi: Update.
56350
56351 2007-05-20  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56354         was not found in libc.
56355         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56356
56357 2007-05-20  Bruno Haible  <bruno@clisp.org>
56358
56359         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56360         printed as "-nan" instead of "nan".
56361         * tests/test-vasprintf-posix.c (test_function): Likewise.
56362         * tests/test-snprintf-posix.h (test_function): Likewise.
56363         * tests/test-sprintf-posix.h (test_function): Likewise.
56364         Needed for HP-UX 11.
56365
56366 2007-05-20  Jim Meyering  <jim@meyering.net>
56367
56368         Fix buggy test for the fchownat-deref bug.
56369         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56370         symlink required for the run-test.  Without it, this test would
56371         always declare that fchownat doesn't work, and client code would
56372         unnecessarily use the replacement function with fixed libc.
56373         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56374         Reported by Greg Schafer.
56375
56376 2007-05-19  Bruno Haible  <bruno@clisp.org>
56377
56378         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56379         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56380         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56381         Needed for IRIX 6.5 and Solaris 2.5.1.
56382
56383 2007-05-19  Bruno Haible  <bruno@clisp.org>
56384
56385         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56386         (test_function): Skip tests involving -0.0 on platforms where
56387         -0.0 = 0.0.
56388         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56389         (test_function): Skip tests involving -0.0 on platforms where
56390         -0.0 = 0.0.
56391         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56392         (test_function): Skip tests involving -0.0 on platforms where
56393         -0.0 = 0.0.
56394         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56395         (test_function): Skip tests involving -0.0 on platforms where
56396         -0.0 = 0.0.
56397         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56398         tests.
56399         * tests/test-printf-posix.h (test_function): Likewise.
56400         * tests/test-printf-posix.output: Remove all -0.0 related results.
56401         Needed for IRIX 6.5.
56402
56403 2007-05-19  Bruno Haible  <bruno@clisp.org>
56404
56405         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56406         printed as "nan0x7fffffff" instead of "nan".
56407         * tests/test-vasprintf-posix.c (test_function): Likewise.
56408         * tests/test-snprintf-posix.h (test_function): Likewise.
56409         * tests/test-sprintf-posix.h (test_function): Likewise.
56410         * tests/test-fprintf-posix.h (NaN): Remove macro.
56411         (test_function): Remove all NaN related tests.
56412         * tests/test-printf-posix.h (NaN): Remove macro.
56413         (test_function): Remove all NaN related tests.
56414         * tests/test-printf-posix.output: Remove all NaN related results.
56415         Needed for IRIX 6.5.
56416
56417 2007-05-19  Bruno Haible  <bruno@clisp.org>
56418
56419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56421
56422 2007-05-19  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/float_.h: New file.
56425         * m4/float_h.m4: New file.
56426         * modules/float: New file.
56427         * modules/isnanl (Dependencies): Add float.
56428         * modules/isnanl-nolibm (Dependencies): Likewise.
56429         * modules/mathl (Dependencies): Likewise.
56430         * modules/printf-frexpl (Dependencies): Likewise.
56431         * modules/signbit (Dependencies): Likewise.
56432         * modules/vasnprintf (Dependencies): Likewise.
56433         * doc/headers/float.texi: Update.
56434
56435 2007-05-19  Jim Meyering  <jim@meyering.net>
56436
56437         * lib/utimens.c (gl_futimens): Rename from futimens,
56438         now that glibc-2.6 declares futimens.
56439         * lib/utimens.h: Likewise.
56440
56441 2007-05-19  Bruno Haible  <bruno@clisp.org>
56442
56443         Avoid test failures on mingw.
56444         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56445         * tests/test-printf-posix.sh: Likewise.
56446         * tests/test-vfprintf-posix.sh: Likewise.
56447         * tests/test-vprintf-posix.sh: Likewise.
56448
56449 2007-05-19  Bruno Haible  <bruno@clisp.org>
56450
56451         Fix *printf result for NaN, Inf, -0.0 on mingw.
56452         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56453         * lib/vasnprintf.c: Include math.h and isnan.h.
56454         (is_infinite_or_zero): New function.
56455         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56456         values in the %f, %F, %e, %E, %g, %G directives.
56457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56459         gl_PRINTF_INFINITE and test its result. Invoke
56460         gl_PREREQ_VASNPRINTF_INFINITE.
56461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56468         * doc/functions/fprintf.texi: Update.
56469         * doc/functions/printf.texi: Update.
56470         * doc/functions/snprintf.texi: Update.
56471         * doc/functions/sprintf.texi: Update.
56472         * doc/functions/vfprintf.texi: Update.
56473         * doc/functions/vprintf.texi: Update.
56474         * doc/functions/vsnprintf.texi: Update.
56475         * doc/functions/vsprintf.texi: Update.
56476
56477 2007-05-19  Bruno Haible  <bruno@clisp.org>
56478
56479         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56480         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56481         Instead of multiplying with 10^k, set extra_zeroes to k.
56482         (scale10_round_long_double): Remove function.
56483
56484 2007-05-18  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56487         introduced on 2007-05-06.
56488
56489 2007-05-18  Bruno Haible  <bruno@clisp.org>
56490
56491         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56492         %g directives.
56493         * tests/test-vasprintf-posix.c (test_function): Likewise.
56494         * tests/test-snprintf-posix.h (test_function): Likewise.
56495         * tests/test-sprintf-posix.h (test_function): Likewise.
56496
56497 2007-05-18  Bruno Haible  <bruno@clisp.org>
56498
56499         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56500         (strmatch): New function.
56501         (test_function): Test the %f directive on numbers of various exponents.
56502         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56503         (strmatch): New function.
56504         (test_function): Test the %f directive on numbers of various exponents.
56505         * tests/test-snprintf-posix.h (strmatch): New function.
56506         (test_function): Test the %f directive on numbers of various exponents.
56507         * tests/test-sprintf-posix.h (strmatch): New function.
56508         (test_function): Test the %f directive on numbers of various exponents.
56509         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56510         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56511         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56512         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56513
56514 2007-05-18  Bruno Haible  <bruno@clisp.org>
56515
56516         Add support for 'long double' number output.
56517         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56518         * lib/vasnprintf.c: Include math.h and float+.h.
56519         (mp_limb_t): New type.
56520         (GMP_LIMB_BITS): New macro.
56521         (mp_twolimb_t): New type.
56522         (GMP_TWOLIMB_BITS): New macro.
56523         (mpn_t): New type.
56524         (multiply, divide, convert_to_decimal, decode_long_double,
56525         scale10_round_long_double, scale10_round_decimal_long_double,
56526         floorlog10l): New functions.
56527         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56528         for the %f, %F, %e, %E, %g, %G directives.
56529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56531         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56532         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56540         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56541         * modules/snprintf-posix (Depends-on): Likewise.
56542         * modules/sprintf-posix (Depends-on): Likewise.
56543         * modules/vasnprintf-posix (Depends-on): Likewise.
56544         * modules/vasprintf-posix (Depends-on): Likewise.
56545         * modules/vfprintf-posix (Depends-on): Likewise.
56546         * modules/vsnprintf-posix (Depends-on): Likewise.
56547         * modules/vsprintf-posix (Depends-on): Likewise.
56548         * modules/vasnprintf (Files): Add lib/float+.h.
56549         * doc/functions/fprintf.texi: Update.
56550         * doc/functions/printf.texi: Update.
56551         * doc/functions/snprintf.texi: Update.
56552         * doc/functions/sprintf.texi: Update.
56553         * doc/functions/vfprintf.texi: Update.
56554         * doc/functions/vprintf.texi: Update.
56555         * doc/functions/vsnprintf.texi: Update.
56556         * doc/functions/vsprintf.texi: Update.
56557
56558 2007-05-18  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56561
56562 2007-05-18  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56565         for printing 64-bit integers. Needed for mingw.
56566
56567 2007-05-18  Bruno Haible  <bruno@clisp.org>
56568
56569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56570         gl_FUNC_FREXPL_WORKS.
56571         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56572
56573 2007-05-18  Bruno Haible  <bruno@clisp.org>
56574
56575         * modules/frexpl-nolibm-tests: New file.
56576
56577         * modules/frexpl-nolibm: New file.
56578         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56579
56580 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56583         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56584         GCC 4.2, which otherwise issues a lot of warnings.
56585         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56586         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56587         Likewise.
56588         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56589         * modules/iconv_open (iconv.h): Likewise.
56590         * modules/locale (locale.h): Likewise.
56591         * modules/netinet_in (netinet/in.h): Likewise.
56592         * modules/sys_select (sys_select.h): Likewise.
56593         * modules/sys_socket (sys/socket.h): Likewise.
56594         * modules/sys_stat (sys/stat.h): Likewise.
56595         * modules/sysexits (sysexits.h): Likewise.
56596         * modules/unistd (unistd.h): Likewise.
56597
56598 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56599
56600         * modules/closein-tests (Makefile.am): Distribute
56601         `test-closein.sh'.
56602
56603 2007-05-17  Bruno Haible  <bruno@clisp.org>
56604
56605         * tests/test-printf-posix.output: Renamed from
56606         tests/test-fprintf-posix.out.
56607         * modules/fprintf-posix-tests: Update.
56608         * modules/printf-posix-tests: Update.
56609         * modules/vfprintf-posix-tests: Update.
56610         * modules/vprintf-posix-tests: Update.
56611         * tests/test-fprintf-posix.sh: Update.
56612         * tests/test-printf-posix.sh: Update.
56613         * tests/test-vfprintf-posix.sh: Update.
56614         * tests/test-vprintf-posix.sh: Update.
56615         Reported by Ralf Wildenhues.
56616
56617 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56620         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56621         GCC 4.2, which otherwise issues a lot of warnings.
56622         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56623         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56624         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56625         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56626         it should no longer be needed.
56627         * lib/string_.h: Likewise.
56628         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56629         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56630         * modules/inttypes (inttypes.h): Likewise.
56631         * modules/math (math.h): Likewise.
56632         * modules/search (search.h): Likewise.
56633         * modules/signal (signal.h): Likewise.
56634         * modules/stdint (stdint.h): Likewise.
56635         * modules/stdio (stdio.h): Likewise.
56636         * modules/stdlib (stdlib.h): Likewise.
56637         * modules/string (string.h): Likewise.
56638         * modules/sys_time (sys/time.h): Likewise.
56639         * modules/time (time.h): Likewise.
56640         * modules/wchar (wchar.h): Likewise.
56641         * modules/wctype (wtype.h): Likewise.
56642
56643 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56644
56645         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56646
56647 2007-05-13  Bruno Haible  <bruno@clisp.org>
56648
56649         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56650         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56651         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56652         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56653         (gl_PREREQ_STRTOK_R): Don't require it here.
56654
56655 2007-05-13  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56658         when used in C++ mode.
56659
56660 2007-05-12  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/linebuffer.h: Tweak doc.
56663         * lib/linebuffer.c: Likewise.
56664
56665 2007-05-12  James Youngman  <jay@gnu.org>
56666
56667         * lib/linebuffer.c (readlinebuffer_delim): New function,
56668         like readlinebuffer, but use a caller-specified delimiter.
56669         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56670         as the delimiter.
56671         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56672
56673 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56674
56675         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56676         * modules/openat (Files): Remove openat-die.c.
56677         (Depends-on): Add openat-die.
56678         * modules/openat-die: New module.
56679
56680 2007-05-06  Bruno Haible  <bruno@clisp.org>
56681
56682         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56683         Update with info about Cygwin.
56684         * doc/functions/fprintf.texi: Update.
56685         * doc/functions/printf.texi: Update.
56686         * doc/functions/snprintf.texi: Update.
56687         * doc/functions/sprintf.texi: Update.
56688         * doc/functions/vfprintf.texi: Update.
56689         * doc/functions/vprintf.texi: Update.
56690         * doc/functions/vsnprintf.texi: Update.
56691         * doc/functions/vsprintf.texi: Update.
56692         Reported by Eric Blake.
56693
56694 2007-05-06  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56697         padding ourselves for the floating-point directives.
56698         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56701         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56702         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56707         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56709         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56710         * tests/test-snprintf-posix.h (test_function): Also check the width
56711         and some flags in the %f directive.
56712         * tests/test-sprintf-posix.h (test_function): Likewise.
56713         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56714         * tests/test-vasprintf-posix.c (test_function): Likewise.
56715         * doc/functions/fprintf.texi: Update.
56716         * doc/functions/printf.texi: Update.
56717         * doc/functions/snprintf.texi: Update.
56718         * doc/functions/sprintf.texi: Update.
56719         * doc/functions/vfprintf.texi: Update.
56720         * doc/functions/vprintf.texi: Update.
56721         * doc/functions/vsnprintf.texi: Update.
56722         * doc/functions/vsprintf.texi: Update.
56723
56724 2007-05-06  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56727         pass the ' flag character to sprintf or snprintf.
56728         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56731         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56732         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56736         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56737         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56739         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56740         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56741         flag.
56742         * tests/test-sprintf-posix.h (test_function): Likewise.
56743         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56744         * tests/test-vasprintf-posix.c (test_function): Likewise.
56745         * doc/functions/fprintf.texi: Update.
56746         * doc/functions/printf.texi: Update.
56747         * doc/functions/snprintf.texi: Update.
56748         * doc/functions/sprintf.texi: Update.
56749         * doc/functions/vfprintf.texi: Update.
56750         * doc/functions/vprintf.texi: Update.
56751         * doc/functions/vsnprintf.texi: Update.
56752         * doc/functions/vsprintf.texi: Update.
56753
56754 2007-05-01  Bruno Haible  <bruno@clisp.org>
56755
56756         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56757
56758 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56759
56760         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56761         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56762
56763 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56764
56765         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56766         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56768
56769 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56770
56771         * lib/argp-help.c (struct hol_entry): New member `ord'.
56772         (HOL_ENTRY_PTRCMP): Use ord for comparison
56773         (hol_sort): Initialize ord.
56774
56775 2007-05-01  Bruno Haible  <bruno@clisp.org>
56776
56777         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56778         Reported by Eric Blake.
56779         * doc/gnulib.texi (Function Substitutes): Update.
56780
56781 2007-05-01  Bruno Haible  <bruno@clisp.org>
56782
56783         * doc/functions.texi: Remove file, now redundant through
56784         doc/functions/*.texi.
56785
56786 2007-05-01  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/argp (Depends-on): Add sleep.
56789
56790 2007-05-01  Bruno Haible  <bruno@clisp.org>
56791
56792         * modules/sleep-tests: New file.
56793         * tests/test-sleep.c: New file.
56794
56795         * modules/sleep: New file.
56796         * lib/sleep.c: New file.
56797         * m4/sleep.m4: New file.
56798         * lib/unistd_.h (sleep): New declaration.
56799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56800         HAVE_SLEEP.
56801         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56802         * doc/functions/sleep.texi: Document the sleep module.
56803
56804 2007-05-01  Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/sigprocmask.h: Remove file.
56807         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56808         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56809         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56810         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56811         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56812         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56813         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56814         HAVE_SIGSET_T as a shell variable.
56815         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56816         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56817         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56818         (Depends-on): Add signal. Remove verify.
56819         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56820         (Include): Mention <signal.h> instead of sigprocmask.h.
56821         * NEWS: Mention the change.
56822         * lib/fatal-signal.c: Don't include sigprocmask.h.
56823
56824 2007-05-01  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/signal: New file.
56827         * lib/signal_.h: New file.
56828         * m4/signal_h.m4: New file.
56829
56830 2007-05-01  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56833         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56834         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56835         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56836
56837 2007-05-01  Bruno Haible  <bruno@clisp.org>
56838
56839         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56840         configure time.
56841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56842         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56843         * modules/sys_stat (Makefile.am): Substitute their values into
56844         sys/stat.h.
56845
56846 2007-05-01  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56849         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56850         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56851
56852 2007-05-01  Bruno Haible  <bruno@clisp.org>
56853
56854         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56855         'assert' module here.
56856
56857 2007-05-01  Bruno Haible  <bruno@clisp.org>
56858
56859         * doc/functions/*.texi: New files.
56860         * doc/functions/google-ranking.txt: New file.
56861         * doc/gnulib.texi (Function Substitutes): New chapter.
56862         (ctime, inet_ntoa): Remove sections.
56863         * doc/ctime.texi: Remove file.
56864         * doc/inet_ntoa.texi: Remove file.
56865         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56866         dependencies.
56867         (%.info): New rule, specifying a --reference-limit.
56868
56869 2007-05-01  Bruno Haible  <bruno@clisp.org>
56870
56871         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56872
56873 2007-05-01  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56876         the portability of 'mkdir' to mingw systems.
56877
56878 2007-05-01  Bruno Haible  <bruno@clisp.org>
56879
56880         * doc/headers/google-ranking.txt: New file.
56881
56882 2007-04-30  Eric Blake  <ebb9@byu.net>
56883
56884         Prefer fseeko to fseek.
56885         * modules/getpass (Depends-on): Add fseeko.
56886         * lib/getpass.c (getpass): Use fseeko, not fseek.
56887
56888 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56889
56890         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56891         assumes the sorting is stable, while most qsort implementations
56892         are not.  Use argument addresses to ensure they never compare as
56893         equal.
56894
56895         * tests/test-argp-2.sh (usage-indent test): Fix output
56896         (func_compare): Restore diff options
56897         * tests/test-argp.c: Restore #include "progname.h"
56898
56899 2007-04-29  Bruno Haible  <bruno@clisp.org>
56900
56901         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56902         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56903         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56905         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56906         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56907         (TESTS, check_PROGRAMS): Add test-snprintf.
56908         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56909         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56910         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56911         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56912         assertions that fail on HP-UX, OSF/1, or IRIX.
56913         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56914
56915 2007-04-29  Bruno Haible  <bruno@clisp.org>
56916
56917         * MODULES.html.sh (posix_functions): Remove 'contents'.
56918
56919 2007-04-29  Karl Berry  <karl@gnu.org>
56920
56921         * config/srclist.txt (gendocs_template_min): new entry.
56922
56923 2007-04-29  Bruno Haible  <bruno@clisp.org>
56924
56925         Work around fpurge bug on BSD systems.
56926         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56927         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56928         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56929         fpurge to rpl_fpurge if the system already has this function.
56930         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56931         the case where the system already has this function. Correct invariants
56932         on BSD systems.
56933         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56934         BSD systems.
56935
56936 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56937
56938         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56939         proposed by Sven Verdoolaege.
56940
56941         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56942         options.
56943         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56944         (usage and help tests): Update
56945
56946 2007-04-29  Bruno Haible  <bruno@clisp.org>
56947
56948         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56949         Print more information in case of failure. Disable a test on BeOS.
56950
56951 2007-04-29  Bruno Haible  <bruno@clisp.org>
56952
56953         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56954         This helps debugging on systems on which no gdb is available.
56955
56956 2007-04-29  Bruno Haible  <bruno@clisp.org>
56957
56958         * lib/freading.h: Improve comments.
56959         * lib/fwriting.h: Likewise.
56960         * tests/test-freading.c (main): Don't check freading immediately after
56961         repositioning. Needed for glibc.
56962
56963 2007-04-29  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/freading.c (freading): Trivial simplification.
56966
56967 2007-04-28  Bruno Haible  <bruno@clisp.org>
56968
56969         * tests/test-fwriting.c (main): Also test the interaction between
56970         fflush and fwriting.
56971         * modules/fwriting-tests (Depends-on): Add fflush.
56972
56973         * tests/test-freading.c (main): Also test the interaction between
56974         fflush and freading.
56975         * modules/freading-tests (Depends-on): Add fflush.
56976
56977 2007-04-28  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56980         fseeko and ftello.
56981         Suggested by Eric Blake.
56982
56983 2007-04-28  Jim Meyering  <jim@meyering.net>
56984
56985         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56986         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56987         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56988
56989 2007-04-27  Eric Blake  <ebb9@byu.net>
56990
56991         * doc/headers/assert.texi (assert.h): Document assert module use.
56992
56993 2007-04-27  Bruno Haible  <bruno@clisp.org>
56994
56995         * doc/headers/*.texi: New files.
56996         * doc/gnulib.texi (Header File Substitutes): New chapter.
56997         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56998         dependencies.
56999         (standards.info ,standards.html, standards.dvi): Update dependencies.
57000         (mostlyclean, clean): New targets.
57001
57002 2007-04-27  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57005         * modules/sysexits (Files, Makefile.am): Update.
57006
57007         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57008         * modules/sys_socket (Files, Makefile.am): Update.
57009
57010         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57011         * modules/sys_stat (Files, Makefile.am): Update.
57012
57013 2007-04-27  Eric Blake  <ebb9@byu.net>
57014
57015         * lib/freading.h: Improve comments.
57016         * lib/fwriting.h: Likewise.
57017         * lib/fflush.c: Likewise.
57018
57019         Fix closein for mingw.
57020         * modules/closein-tests: Add tests for closein.
57021         * tests/test-closein.c: New file.
57022         * tests/test-closein.sh: Likewise.
57023         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57024         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57025
57026 2007-04-27  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57029         version is < 6.
57030         * lib/math_.h [__DECC]: Likewise.
57031         * lib/stdio_.h [__DECC]: Likewise.
57032         * lib/stdlib_.h [__DECC]: Likewise.
57033         * lib/string_.h [__DECC]: Likewise.
57034         * lib/time_.h [__DECC]: Likewise.
57035         * lib/wchar_.h [__DECC]: Likewise.
57036         * lib/wctype_.h [__DECC]: Likewise.
57037
57038 2007-04-27  Bruno Haible  <bruno@clisp.org>
57039
57040         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57041
57042 2007-04-27  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/fflush.c: Add comments.
57045         * modules/fpurge-tests (Depends-on): Add fflush.
57046         * modules/freadable-tests (Depends-on): Likewise.
57047         * modules/fwritable-tests (Depends-on): Likewise.
57048
57049 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57050
57051         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57052         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57053         Report by Bruno Haible <bruno@clisp.org>.
57054
57055 2007-04-26  Eric Blake  <ebb9@byu.net>
57056
57057         Fix fflush on mingw.
57058         * modules/fflush (Depends-on): Add freading.
57059         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57060         but unread data.
57061
57062 2007-04-26  Eric Blake  <ebb9@byu.net>
57063         and Bruno Haible  <bruno@clisp.org>
57064
57065         Implement freading and fwriting.
57066         * lib/freading.c: New file.
57067         * lib/freading.h: Likewise.
57068         * m4/freading.m4: Likewise.
57069         * modules/freading: Likewise.
57070         * modules/freading-tests: Likewise.
57071         * tests/test-freading.c: Likewise.
57072         * lib/fwriting.c: New file.
57073         * lib/fwriting.h: Likewise.
57074         * m4/fwriting.m4: Likewise.
57075         * modules/fwriting: Likewise.
57076         * modules/fwriting-tests: Likewise.
57077         * tests/test-fwriting.c: Likewise.
57078         * MODULES.html.sh (File stream based Input/Output): Mention them.
57079
57080 2007-04-26  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57083         'long' when we assume it.
57084         Suggested by Eric Blake.
57085
57086 2007-04-26  Bruno Haible  <bruno@clisp.org>
57087
57088         Ensure fseeko, ftello are declared on glibc systems.
57089         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57090         * modules/fseeko (configure.ac-early): Likewise.
57091         * modules/ftello (configure.ac-early): Likewise.
57092         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57093         AC_FUNC_FSEEKO for this.
57094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57095         (gl_CHECK_FSEEKO): Remove macro.
57096
57097 2007-04-26  Bruno Haible  <bruno@clisp.org>
57098
57099         * tests/test-fflush.c (main): Also check the ftell result after
57100         fflush and fseek/fseeko.
57101         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57102         file descriptor position cache in the stream.
57103         * lib/fseeko.c (rpl_fseeko): Likewise.
57104
57105 2007-04-26  Bruno Haible  <bruno@clisp.org>
57106
57107         * modules/fflush-tests (Depends-on): Add fseeko.
57108
57109 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57110             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57111
57112         * lib/argz_.h: ensure error_t definition is obtained in same
57113         mechanism system argz.h would have.
57114         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57115         argz facilities are known bad.  Err on the side of caution if
57116         cross-compiling.
57117
57118 2007-04-25  Eric Blake  <ebb9@byu.net>
57119
57120         * lib/fpurge.c (includes): Use stdlib.h for free.
57121         * tests/test-fflush.c (main): Also test fflush-fseeko.
57122
57123 2007-04-25  Bruno Haible  <bruno@clisp.org>
57124
57125         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57126         * lib/fseeko.c: New file.
57127         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57128         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57129         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57130         gl_FUNC_FSEEKO.
57131         (gl_FUNC_FSEEKO): Invoke it.
57132         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57133         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57134         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57135
57136 2007-04-25  Bruno Haible  <bruno@clisp.org>
57137
57138         * modules/fflush (Depends-on): Add ftello.
57139
57140 2007-04-25  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/ftello-tests: New file.
57143         * tests/test-ftello.c: New file.
57144
57145         * modules/ftello: New file.
57146         * m4/ftello.m4: New file.
57147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57148         HAVE_FTELLO.
57149         * lib/stdio_.h (ftello): New declaration.
57150         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57151         HAVE_FTELLO.
57152
57153 2007-04-25  Bruno Haible  <bruno@clisp.org>
57154
57155         * modules/fseeko-tests: New file.
57156         * tests/test-fseeko.c: New file.
57157
57158         * modules/fseeko: New file.
57159         * m4/fseeko.m4: New file.
57160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57161         HAVE_FSEEKO.
57162         * lib/stdio_.h (fseeko): New declaration.
57163         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57164         HAVE_FSEEKO.
57165
57166 2007-04-25  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57169
57170 2007-04-25  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57173         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57174         * tests/test-unistd.c: Likewise.
57175         * tests/test-fcntl.c: Likewise.
57176
57177 2007-04-23  Eric Blake  <ebb9@byu.net>
57178
57179         * lib/fflush.c: Fix missing include.
57180         Reported by Bruno Haible.
57181
57182 2007-04-23  Bruno Haible  <bruno@clisp.org>
57183
57184         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57185         Reported by Eric Blake.
57186
57187 2007-04-23  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57190
57191 2007-04-23  Bruno Haible  <bruno@clisp.org>
57192
57193         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57194
57195 2007-04-23  Bruno Haible  <bruno@clisp.org>
57196
57197         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57198         Needed on HP-UX 11.
57199
57200 2007-04-16  Eric Blake  <ebb9@byu.net>
57201
57202         Make fflush rely on fpurge.
57203         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57204         open coding all variants.
57205         * modules/fflush (Depends-on): Add fpurge and unistd.
57206         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57207         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57208
57209         Fix --with-tests compilation on cygwin.
57210         * modules/argmatch-tests (Makefile.am): List gnulib library first
57211         in LDADD.
57212         * modules/argp-tests (Makefile.am): Likewise.
57213         * modules/array-list-tests (Makefile.am): Likewise.
57214         * modules/array-oset-tests (Makefile.am): Likewise.
57215         * modules/avltree-list-tests (Makefile.am): Likewise.
57216         * modules/avltree-oset-tests (Makefile.am): Likewise.
57217         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57218         * modules/carray-list-tests (Makefile.am): Likewise.
57219         * modules/dirname-tests (Makefile.am): Likewise.
57220         * modules/frexp-tests (Makefile.am): Likewise.
57221         * modules/isnanl-tests (Makefile.am): Likewise.
57222         * modules/linked-list-tests (Makefile.am): Likewise.
57223         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57224         * modules/lock-tests (Makefile.am): Likewise.
57225         * modules/rbtree-list-tests (Makefile.am): Likewise.
57226         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57227         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57228         * modules/tls-tests (Makefile.am): Likewise.
57229         * modules/tsearch-tests (Makefile.am): Likewise.
57230         * modules/xvasprintf-tests (Makefile.am): Likewise.
57231
57232         Fix fpurge for cygwin.
57233         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57234         value.
57235         * modules/fpurge-tests (Depends-on): Clean up trash.
57236
57237 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57238
57239         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57240
57241         * m4/autobuild.m4: Re-indent.
57242
57243 2007-04-13  Bruno Haible  <bruno@clisp.org>
57244
57245         * modules/fpurge-tests: New file.
57246         * tests/test-fpurge.c: New file.
57247
57248         * modules/fpurge: New file.
57249         * lib/fpurge.h: New file.
57250         * lib/fpurge.c: New file.
57251         * m4/fpurge.m4: New file.
57252
57253 2007-04-13  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/fbufmode-tests: New file.
57256         * tests/test-fbufmode.c: New file.
57257
57258         * modules/fbufmode: New file.
57259         * lib/fbufmode.h: New file.
57260         * lib/fbufmode.c: New file.
57261         * m4/fbufmode.m4: New file.
57262
57263 2007-04-13  Bruno Haible  <bruno@clisp.org>
57264
57265         * modules/fwritable-tests: New file.
57266         * tests/test-fwritable.c: New file.
57267
57268         * modules/fwritable: New file.
57269         * lib/fwritable.h: New file.
57270         * lib/fwritable.c: New file.
57271         * m4/fwritable.m4: New file.
57272
57273 2007-04-13  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/freadable-tests: New file.
57276         * tests/test-freadable.c: New file.
57277
57278         * modules/freadable: New file.
57279         * lib/freadable.h: New file.
57280         * lib/freadable.c: New file.
57281         * m4/freadable.m4: New file.
57282
57283 2007-04-13  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57286         MOSTLYCLEANFILES.
57287
57288 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57289
57290         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57291         gzip bootstrap.conf to avoid dragging in i18n machinery.
57292         (gnulib_tool_option): Use it.
57293
57294 2007-04-13  Bruno Haible  <bruno@clisp.org>
57295
57296         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57297         %F directives.
57298         * tests/test-vasprintf-posix.c (test_function): Likewise.
57299         * tests/test-snprintf-posix.h (test_function): Likewise.
57300         * tests/test-sprintf-posix.h (test_function): Likewise.
57301         * tests/test-fprintf-posix.h (test_function): Likewise.
57302         * tests/test-printf-posix.h (test_function): Likewise.
57303         * tests/test-fprintf-posix.out: Likewise.
57304
57305 2007-04-13  Bruno Haible  <bruno@clisp.org>
57306
57307         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57308         * modules/tls-tests (configure.ac): Likewise.
57309         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57310
57311 2007-04-13  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/tls.c (glthread_tls_get): Fix return type.
57314         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57315
57316 2007-04-12  Eric Blake  <ebb9@byu.net>
57317
57318         * modules/gettime (Depends-on): Remove gettime.
57319         Reported by Dmitry V. Levin.
57320
57321 2007-04-12  Bruno Haible  <bruno@clisp.org>
57322
57323         * modules/fflush (Include): Mention <stdio.h>.
57324         * modules/strtoimax (Include): Mention <inttypes.h>.
57325         * modules/strtoumax (Include): Likewise.
57326
57327 2007-04-12  Eric Blake  <ebb9@byu.net>
57328
57329         * .cvsignore: New file.
57330         * .gitignore: Likewise.
57331
57332 2007-04-12  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57335         not before, since $(LDADD) often contains libgnu.a.
57336         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57337         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57338         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57339         Needed on Cygwin.
57340
57341 2007-04-12  Eric Blake  <ebb9@byu.net>
57342
57343         Work around glibc's failure to flush stdin on fclose.
57344         * lib/closein.c (close_stdin): Flush stdin before closing.
57345
57346         Work around glibc's failure to reset seekable stdin on exit.
57347         * modules/closein: New module.
57348         * lib/closein.c: New file.
57349         * lib/closein.h: Likewise.
57350         * m4/closein.m4: Likewise.
57351         * MODULES.html.sh (File stream based Input/Output): Document it.
57352
57353 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57354
57355         * gnulib-tool: Rename generated 'autobuild' script to
57356         'do-autobuild' in --create-megatestdir output.
57357
57358         * doc/gnulib.texi (Build robot for gnulib): Fix.
57359
57360 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57361
57362         * modules/sysexits (Depends-on): Add absolute-header.
57363
57364 2007-04-12  Eric Blake  <ebb9@byu.net>
57365
57366         No need to preserve errno on success.
57367         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57368         Reported by Bruno Haible.
57369
57370 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57371
57372         * MODULES.html.sh (Support for maintaining and releasing
57373         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57374
57375 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57376
57377         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57378
57379 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57380
57381         * modules/autobuild: New module.
57382
57383         * m4/autobuild.m4: New file.
57384
57385 2007-04-11  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57388         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57391         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57392         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57393         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57395         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57396         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57398         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57399         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57401         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57402         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57413         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57414         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57415         Reported by Eric Blake.
57416
57417 2007-04-11  Bruno Haible  <bruno@clisp.org>
57418
57419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57420
57421 2007-04-10  Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57424         for NaN and Infinity. Needed on FreeBSD 6.1.
57425         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57426         regarding results for "%010a" of Infinity and NaN.
57427         * tests/test-vasprintf-posix.c (test_function): Likewise.
57428         * tests/test-snprintf-posix.h (test_function): Likewise.
57429         * tests/test-sprintf-posix.h (test_function): Likewise.
57430         * tests/test-fprintf-posix.h (test_function): Likewise.
57431         * tests/test-printf-posix.h (test_function): Likewise.
57432         * tests/test-fprintf-posix.out: Likewise.
57433
57434 2007-04-10  Bruno Haible  <bruno@clisp.org>
57435
57436         * modules/locale-tests: New file.
57437         * tests/test-locale.c: New file.
57438
57439         * modules/locale: New file.
57440         * lib/locale_.h: New file.
57441         * m4/locale_h.m4: New file.
57442
57443 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57444             Bruno Haible  <bruno@clisp.org>
57445
57446         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57447         be determined, test for availability of the copysignf, copysign,
57448         copysignl functions.
57449         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57450         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57451         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57452
57453 2007-04-09  Eric Blake  <ebb9@byu.net>
57454
57455         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57456         * modules/stdio (Makefile.am): Support fflush.
57457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57458         * modules/fflush: New file.
57459         * lib/fflush.c: Likewise.
57460         * m4/fflush.m4: Likewise.
57461         * modules/fflush-tests: New test.
57462         * tests/test-fflush.c: Likewise.
57463         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57464
57465 2007-04-06  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57468         (VASNPRINTF): Use signbit for faster determination whether to print a
57469         minus sign.
57470         * modules/vasnprintf (Files): Remove lib/float+.h.
57471         * modules/fprintf-posix (Depends-on): Add signbit.
57472         * modules/snprintf-posix (Depends-on): Likewise.
57473         * modules/sprintf-posix (Depends-on): Likewise.
57474         * modules/vasnprintf-posix (Depends-on): Likewise.
57475         * modules/vasprintf-posix (Depends-on): Likewise.
57476         * modules/vfprintf-posix (Depends-on): Likewise.
57477         * modules/vsnprintf-posix (Depends-on): Likewise.
57478         * modules/vsprintf-posix (Depends-on): Likewise.
57479
57480 2007-04-06  Bruno Haible  <bruno@clisp.org>
57481
57482         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57483         * tests/test-frexpl.c (main): Likewise.
57484         * tests/test-ldexpl.c (main): Likewise.
57485         * modules/frexp-tests (Depends-on): Add signbit.
57486         * modules/frexpl-tests (Depdends-on): Likewise.
57487         * modules/ldexpl-tests (Depdends-on): Likewise.
57488
57489 2007-04-06  Bruno Haible  <bruno@clisp.org>
57490
57491         * modules/signbit-tests: New file.
57492         * tests/test-signbit.c: New file.
57493
57494         * modules/signbit: New file.
57495         * lib/signbitf.c: New file.
57496         * lib/signbitd.c: New file.
57497         * lib/signbitl.c: New file.
57498         * m4/signbit.m4: New file.
57499         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57500         (signbit): New macro.
57501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57502         REPLACE_SIGNBIT.
57503         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57504         REPLACE_FREXPL into math.h.
57505
57506 2007-04-06  Bruno Haible  <bruno@clisp.org>
57507
57508         * modules/isnanf-nolibm-tests: New file.
57509         * tests/test-isnanf.c: New file.
57510
57511         * modules/isnanf-nolibm: New file.
57512         * lib/isnanf.h: New file.
57513         * lib/isnanf.c: New file.
57514         * lib/isnan.c: Consider the USE_FLOAT macro.
57515         * m4/isnanf.m4: New file.
57516
57517 2007-04-06  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57520         (Link): New section.
57521
57522         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57523
57524 2007-04-06  Bruno Haible  <bruno@clisp.org>
57525
57526         Assume the 'long double' type.
57527         * m4/longdouble.m4: Remove file.
57528         * config/srclist.txt: Don't mention longdouble.m4.
57529         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57530         * lib/float+.h: Likewise.
57531         * lib/frexp.c: Likewise.
57532         * lib/printf-args.h: Likewise.
57533         * lib/printf-args.c: Likewise.
57534         * lib/printf-frexp.c: Likewise.
57535         * lib/printf-parse.c: Likewise.
57536         * lib/vasnprintf.c: Likewise.
57537         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57538         * m4/intl.m4: Likewise.
57539         * m4/isnanl.m4: Likewise.
57540         * m4/printf.m4: Likewise.
57541         * m4/printf-frexpl.m4: Likewise.
57542         * m4/vasnprintf.m4: Likewise.
57543         * modules/allocsa (Files): Remove m4/longdouble.m4.
57544         * modules/gettext (Files): Likewise.
57545         * modules/relocatable-prog-wrapper (Files): Likewise.
57546         * modules/vasnprintf (Files): Likewise.
57547         * modules/isnanl (Files): Likewise.
57548         (Include): Simplify.
57549         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57550         (Include): Simplify.
57551         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57552         (Include): Simplify.
57553         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57554         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57555         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57556         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57557         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57558         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57559         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57560         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57561         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57562         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57563         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57564         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57565         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57566         * tests/test-isnanl.c: Likewise.
57567         * tests/test-snprintf-posix.h: Likewise.
57568         * tests/test-sprintf-posix.h: Likewise.
57569         * tests/test-vasnprintf-posix.c: Likewise.
57570         * tests/test-vasnprintf-posix2.c: Likewise.
57571         * tests/test-vasprintf-posix.c: Likewise.
57572
57573 2007-04-06  Bruno Haible  <bruno@clisp.org>
57574
57575         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57576         * lib/math_.h [__DECC]: Include the overridden include file through
57577         #include_next, outside the double-inclusion guard.
57578         * lib/stdio_.h [__DECC]: Likewise.
57579         * lib/stdlib_.h [__DECC]: Likewise.
57580         * lib/string_.h [__DECC]: Likewise.
57581         * lib/time_.h [__DECC]: Likewise.
57582         * lib/wchar_.h [__DECC]: Likewise.
57583         * lib/wctype_.h [__DECC]: Likewise.
57584         * lib/inttypes_.h [__DECC]: Likewise.
57585         Reported by Albert Chin <china@thewrittenword.com> in
57586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57587
57588 2007-04-04  Eric Blake  <ebb9@byu.net>
57589
57590         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57591         1.5.x.
57592
57593 2007-04-04  Bruno Haible  <bruno@clisp.org>
57594
57595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57596         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57597
57598 2007-04-04  Bruno Haible  <bruno@clisp.org>
57599
57600         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57601         results for "%010a" of Infinity and NaN.
57602         * tests/test-vasprintf-posix.c (test_function): Likewise.
57603         * tests/test-snprintf-posix.h (test_function): Likewise.
57604         * tests/test-sprintf-posix.h (test_function): Likewise.
57605         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57606         * tests/test-printf-posix.h (test_function): Likewise.
57607         * tests/test-fprintf-posix.out: Update.
57608         Needed for FreeBSD 6.1.
57609
57610 2007-04-04  Bruno Haible  <bruno@clisp.org>
57611
57612         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57613         directly used by the gnulib modules nor by gnulib-tool.
57614
57615 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * DEPENDENCIES: Give overall description of version dependency
57618         desirability.  Use more-typical names for apps.
57619         Add shell, coreutils, diffutils, grep, tar, gzip.
57620
57621 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57622
57623         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57624
57625 2007-04-04  Karl Berry  <karl@gnu.org>
57626
57627         * MODULES.html.sh (func_module): missing '.
57628
57629 2007-04-03  Bruno Haible  <bruno@clisp.org>
57630
57631         * modules/argmatch-tests (Makefile.am): New variable
57632         test_argmatch_LDADD.
57633         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57634         * modules/array-list-tests (Makefile.am): New variable
57635         test_array_list_LDADD.
57636         * modules/array-oset-tests (Makefile.am): New variable
57637         test_array_oset_LDADD.
57638         * modules/avltree-list-tests (Makefile.am): New variable
57639         test_avltree_list_LDADD.
57640         * modules/avltree-oset-tests (Makefile.am): New variable
57641         test_avltree_oset_LDADD.
57642         * modules/avltreehash-list-tests (Makefile.am): New variable
57643         test_avltreehash_list_LDADD.
57644         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57645         test_canonicalize_lgpl_LDADD.
57646         * modules/carray-list-tests (Makefile.am): New variable
57647         test_carray_list_LDADD.
57648         * modules/dirname-tests (Makefile.am): New variable
57649         test_dirname_LDADD.
57650         * modules/linked-list-tests (Makefile.am): New variable
57651         test_linked_list_LDADD.
57652         * modules/linkedhash-list-tests (Makefile.am): New variable
57653         test_linkedhash_list_LDADD.
57654         * modules/rbtree-list-tests (Makefile.am): New variable
57655         test_rbtree_list_LDADD.
57656         * modules/rbtree-oset-tests (Makefile.am): New variable
57657         test_rbtree_oset_LDADD.
57658         * modules/rbtreehash-list-tests (Makefile.am): New variable
57659         test_rbtreehash_list_LDADD.
57660         * modules/xvasprintf-tests (Makefile.am): New variable
57661         test_xvasprintf_LDADD.
57662         Reported by Eric Blake.
57663
57664 2007-04-03  Eric Blake  <ebb9@byu.net>
57665
57666         * DEPENDENCIES: Weaken m4 requirements.
57667
57668 2007-04-03  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57671         * modules/isnanl-tests (configure.ac): Likewise.
57672
57673 2007-04-03  Ben Pfaff  <blp@gnu.org>
57674
57675         * modules/iconv_open: Add $(srcdir)/ to source directory
57676         references in Makefile fragments that call gperf, to fix VPATH
57677         builds.
57678
57679 2007-04-03  Bruno Haible  <bruno@clisp.org>
57680
57681         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57682         * lib/ldexpl.c: Undo last change.
57683
57684 2007-04-03  Bruno Haible  <bruno@clisp.org>
57685
57686         * modules/printf-frexpl (Depends-on): Undo last change.
57687         (Files): Add m4/ldexpl.m4.
57688
57689 2007-04-03  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57692         * modules/isnanl (Link): New section.
57693
57694         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57695         * modules/frexp (Link): New section.
57696
57697         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57698         * modules/frexpl (Link): New section.
57699
57700         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57701         * modules/ldexpl (Link): New section.
57702
57703 2007-04-03  Bruno Haible  <bruno@clisp.org>
57704
57705         * modules/TEMPLATE-EXTENDED: New file.
57706         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57707
57708 2007-04-03  Bruno Haible  <bruno@clisp.org>
57709
57710         * DEPENDENCIES: New file.
57711         Suggested by Simon Josefsson.
57712
57713 2007-04-03  Bruno Haible  <bruno@clisp.org>
57714
57715         * doc/gnulib.texi: Escape @.
57716
57717 2007-04-03  James Youngman  <jay@gnu.org>
57718         and Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57721         birthtime on all systems that have birthtime, not just those which
57722         use st_birthtimensec rather than st_birthtim.  Putting zero in
57723         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57724         that the birth time is not available for files on an NFS mount.
57725
57726 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57727
57728         * modules/memxor: Move back from crypto/, suggested by Bruno.
57729         * modules/crypto/hmac-sha1: Fix memxor dependency.
57730
57731         * modules/crypto/gc: Moved from ../.
57732
57733 2007-04-02  Eric Blake  <ebb9@byu.net>
57734
57735         * lib/ldexpl.c (includes): Avoid libm.
57736
57737         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57738
57739 2007-04-02  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57742         on IRIX.
57743
57744 2007-04-02  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57747         x86 or x86_64 platforms running MacOS X.
57748         Reported by Ryan Schmidt <@ryandesign.com>.
57749
57750 2007-04-02  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57753         i386.
57754
57755 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57756
57757         * modules/crypto/arcfour: Moved from ../.
57758         * modules/crypto/arcfour-tests: Moved from ../.
57759         * modules/crypto/arctwo: Moved from ../.
57760         * modules/crypto/arctwo-tests: Moved from ../.
57761         * modules/crypto/des: Moved from ../.
57762         * modules/crypto/des-tests: Moved from ../.
57763         * modules/crypto/gc-arcfour: Moved from ../.
57764         * modules/crypto/gc-arcfour-tests: Moved from ../.
57765         * modules/crypto/gc-arctwo: Moved from ../.
57766         * modules/crypto/gc-arctwo-tests: Moved from ../.
57767         * modules/crypto/gc-des: Moved from ../.
57768         * modules/crypto/gc-des-tests: Moved from ../.
57769         * modules/crypto/gc-hmac-md5: Moved from ../.
57770         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57771         * modules/crypto/gc-hmac-sha1: Moved from ../.
57772         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57773         * modules/crypto/gc-md2: Moved from ../.
57774         * modules/crypto/gc-md2-tests: Moved from ../.
57775         * modules/crypto/gc-md4: Moved from ../.
57776         * modules/crypto/gc-md4-tests: Moved from ../.
57777         * modules/crypto/gc-md5: Moved from ../.
57778         * modules/crypto/gc-md5-tests: Moved from ../.
57779         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57780         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57781         * modules/crypto/gc-random: Moved from ../.
57782         * modules/crypto/gc-rijndael: Moved from ../.
57783         * modules/crypto/gc-rijndael-tests: Moved from ../.
57784         * modules/crypto/gc-sha1: Moved from ../.
57785         * modules/crypto/gc-sha1-tests: Moved from ../.
57786         * modules/crypto/gc-tests: Moved from ../.
57787         * modules/crypto/hmac-md5: Moved from ../.
57788         * modules/crypto/hmac-md5-tests: Moved from ../.
57789         * modules/crypto/hmac-sha1: Moved from ../.
57790         * modules/crypto/hmac-sha1-tests: Moved from ../.
57791         * modules/crypto/md2: Moved from ../.
57792         * modules/crypto/md2-tests: Moved from ../.
57793         * modules/crypto/md4: Moved from ../.
57794         * modules/crypto/md4-tests: Moved from ../.
57795         * modules/crypto/md5: Moved from ../.
57796         * modules/crypto/md5-tests: Moved from ../.
57797         * modules/crypto/memxor: Moved from ../.
57798         * modules/crypto/rijndael: Moved from ../.
57799         * modules/crypto/rijndael-tests: Moved from ../.
57800         * modules/crypto/sha1: Moved from ../.
57801
57802 2007-03-30  James Youngman  <jay@gnu.org>
57803
57804         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57805         rename() to change the ctime of a file (because ctime is unaffected
57806         by rename on jfs2 on AIX 5.1).
57807         (main): Start by doing cleanup, in case a previous run failed leaving
57808         test files behind.
57809
57810 2007-03-31  Bruno Haible  <bruno@clisp.org>
57811
57812         Support old proprietary implementations of iconv.
57813         * modules/iconv_open: New file.
57814         * lib/iconv_.h: New file.
57815         * m4/iconv_h.m4: New file.
57816         * lib/iconv_open.c: New file.
57817         * lib/iconv_open-aix.gperf: New file.
57818         * lib/iconv_open-hpux.gperf: New file.
57819         * lib/iconv_open-irix.gperf: New file.
57820         * lib/iconv_open-osf.gperf: New file.
57821         * m4/iconv_open.m4: New file.
57822         * modules/linebreak (Depends-on): Add iconv_open.
57823         * modules/striconv (Depends-on): Likewise.
57824         * modules/striconveh (Depends-on): Likewise.
57825         * modules/unicodeio (Depends-on): Likewise.
57826         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57827         (iconv_t)(-1).
57828         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57829         conversion if cd is (iconv_t)(-1).
57830         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57831         is not possible.
57832
57833 2007-03-31  Bruno Haible  <bruno@clisp.org>
57834
57835         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57836         work on Solaris either. Protect also second use of "autodetect_jp".
57837
57838 2007-03-31  Bruno Haible  <bruno@clisp.org>
57839
57840         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57841         the function is not present.
57842
57843 2007-03-31  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57846         the function is not present.
57847
57848 2007-03-31  Bruno Haible  <bruno@clisp.org>
57849
57850         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57851         a bug in HP-UX iconv_open().
57852
57853 2007-03-31  Bruno Haible  <bruno@clisp.org>
57854
57855         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57856         (Mathematics <math.h>): New section, add fpieee.
57857         (Input/output <stdio.h>): Add fseterr.
57858         (Mathematics <math.h>): New section, add printf-frexp.
57859         (Container data structures): Add sublist.
57860         (Core language properties): Add fpucw, inline.
57861         (Functions for greatest-width integer types <inttypes.h>): Add
57862         imaxabs, imaxdiv, inttypes.
57863         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57864         isnanl-nolibm, ldexp.
57865         (Mathematics <math.h>): New section, add printf-frexpl.
57866         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57867         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57868         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57869         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57870         (Unicode string functions): Add unistr/u*-mbtoucr.
57871         (Java): Add javacomp-script, javaexec-script.
57872         (C#): Add csharpcomp-script, csharpexec-script.
57873         (Support for building libraries and executables): Add havelib,
57874         relocatable-*.
57875         (Support for maintaining and releasing projects): Renamed from
57876         'Support for maintaining and release projects'. Add announce-gen.
57877
57878 2007-03-31  Bruno Haible  <bruno@clisp.org>
57879
57880         * README: Talk primarily about git.
57881         (git and CVS): Renamed from CVS.
57882         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57883         gnulib is available through git.
57884         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57885
57886 2007-03-30  Bruno Haible  <bruno@clisp.org>
57887
57888         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57889         * lib/poll_.h: Likewise.
57890         * lib/stat_.h: Likewise.
57891         * lib/sys_time_.h: Likewise.
57892         * lib/sysexit_.h: Likewise.
57893         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57894         * lib/stdbool_.h: Likewise.
57895         * lib/byteswap_.h: Add double-inclusion guard.
57896
57897 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57898
57899         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57900
57901 2007-03-30  Karl Berry  <karl@gnu.org>
57902
57903         * config/srclist-update: double space after USA in the license
57904         substitution, since that's how it's usually (?) written.
57905
57906 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57907
57908         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57909         reported by Bruno Haible.
57910
57911 2007-03-29  Bruno Haible  <bruno@clisp.org>
57912
57913         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57914         a bug in AIX iconv().
57915
57916 2007-03-29  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/ldexpl-tests: New file.
57919         * tests/test-ldexpl.c: New file.
57920
57921 2007-03-29  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/ldexpl.c: Include fpucw.h.
57924         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57925         multiplication.
57926         * modules/ldexpl (Depends-on): Add fpucw.
57927
57928 2007-03-29  Bruno Haible  <bruno@clisp.org>
57929
57930         * modules/ldexpl: New file.
57931         * m4/ldexpl.m4: New file.
57932         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57933         set.
57934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57935         REPLACE_LDEXPL.
57936         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57937         REPLACE_LDEXPL.
57938         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57939         gl_FUNC_LDEXPL_WORKS.
57940         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57941         * modules/mathl (Files): Remove lib/ldexpl.c.
57942         (Depends-on): Add ldexpl.
57943
57944 2007-03-29  Bruno Haible  <bruno@clisp.org>
57945
57946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57947
57948 2007-03-29  Bruno Haible  <bruno@clisp.org>
57949
57950         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57951         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57952         and possibly also HP-UX.
57953         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57954         work on AIX, IRIX, HP-UX, OSF/1.
57955         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57956         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57957         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57958         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57959         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57960         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57961
57962 2007-03-29  Bruno Haible  <bruno@clisp.org>
57963
57964         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57965
57966 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57969         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57970
57971 2007-03-29  Eric Blake  <ebb9@byu.net>
57972
57973         * lib/acl-internal.h: Remove redundant include.
57974         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57975         Cygwin when a file is locked.
57976
57977 2007-03-29  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57980         file.
57981         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57982
57983 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57986         try to remove a parent directory if the child couldn't be removed
57987         (except for the first rmdir, which could fail because the child
57988         doesn't exist).  Problem reported by Jeff Blaine in
57989         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57990
57991 2007-03-28  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/striconveh.c (utf8conv_carefully): New function.
57994         (mem_cd_iconveh_internal): Invoke it.
57995
57996 2007-03-28  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57999         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58000         input.
58001         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58002         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58003         unistr/u8-uctomb.
58004
58005 2007-03-28  Bruno Haible  <bruno@clisp.org>
58006
58007         * modules/unistr/u8-mbtoucr: New file.
58008         * lib/unistr/u8-mbtoucr.c: New file.
58009         * modules/unistr/u16-mbtoucr: New file.
58010         * lib/unistr/u16-mbtoucr.c: New file.
58011         * modules/unistr/u16-mbtoucr: New file.
58012         * lib/unistr/u16-mbtoucr.c: New file.
58013         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58014
58015 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58016             Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58019         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58020         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58021
58022         * m4/stdio_h.m4: Add stubs for vasprintf too.
58023
58024         * modules/stdio: Support vasprintf in sed command.
58025
58026         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58027         vasprintf.h.  Add stdio module indicator.
58028
58029         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58030         vasprintf.h.
58031
58032         * lib/vasprintf.h: File removed.
58033
58034         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58035         * lib/vasprintf.c: Ditto.
58036         * lib/xvasprintf.c: Ditto.
58037         * tests/test-vasprintf-posix.c: Ditto.
58038         * tests/test-vasprintf.c: Ditto.
58039
58040 2007-03-27  Bruno Haible  <bruno@clisp.org>
58041
58042         Make vasnprintf multithread-safe.
58043         * lib/vasnprintf.c (decimal_point_char): New function.
58044         (VASNPRINTF): Use it.
58045         Suggested by Simon Josefsson.
58046
58047 2007-03-27  Eric Blake  <ebb9@byu.net>
58048
58049         Support sub-second birthtime on cygwin.
58050         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58051         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58052         (get_stat_birthtime): Also work with st_birthtim.
58053
58054 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58057         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58058         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58059         (get_stat_birthtime_ns): Simplify compile-time tests.
58060         (get_stat_birthtime): Change the API to look like
58061         get_stat_mtime etc., except return a negative tv_nsec on error.
58062         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58063         Don't check for "spare" fields.
58064         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58065         or for struct stat.st_birthtime, as these tests aren't used.
58066         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58067
58068 2007-03-27  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/stat-time.h: Include <sys/stat.h>.
58071
58072 2007-03-27  James Youngman  <jay@gnu.org>
58073
58074         * lib/stat-time.h (get_stat_birthtime): New function for
58075           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58076         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58077           and its variants.
58078         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58079         * modules/stat-time-test: New file.
58080         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58081
58082 2007-03-26  Bruno Haible  <bruno@clisp.org>
58083
58084         Better support of signalling NaNs.
58085         * lib/atanl.c: Include isnanl.h.
58086         (atanl): Perform test for NaN at the beginning of the function and
58087         through a call to isnanl.
58088         * lib/cosl.c: Include isnanl.h.
58089         (cosl): Perform test for NaN at the beginning of the function and
58090         through a call to isnanl.
58091         * lib/ldexpl.c: Include isnanl.h.
58092         (ldexpl): Perform test for NaN through a call to isnanl.
58093         * lib/logl.c: Include isnanl.h.
58094         (logl): Perform test for NaN at the beginning of the function and
58095         through a call to isnanl.
58096         * lib/sinl.c: Include isnanl.h.
58097         (sinl): Perform test for NaN at the beginning of the function and
58098         through a call to isnanl.
58099         * lib/sqrtl.c: Include isnanl.h.
58100         (sqrtl): Perform test for NaN at the beginning of the function and
58101         through a call to isnanl.
58102         * lib/tanl.c: Include isnanl.h.
58103         (tanl): Perform test for NaN at the beginning of the function and
58104         through a call to isnanl.
58105         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58106         * modules/mathl (Depends-on): Add isnanl.
58107
58108 2007-03-26  Eric Blake  <ebb9@byu.net>
58109
58110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58111         regression in logic sense of previous patch.
58112
58113 2007-03-26  Bruno Haible  <bruno@clisp.org>
58114
58115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58116         unportable shell command "if ! ...".
58117         Reported by Ralf Wildenhues.
58118
58119 2007-03-25  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58122         <sysexits.h> file, and only add EX_CONFIG.
58123         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58124         absolute file name and whether it is sufficient. Substitute also
58125         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58126         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58127         ABSOLUTE_SYSEXITS_H into sysexits.h.
58128
58129 2007-03-25  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58132         hints is NULL.
58133
58134 2007-03-25  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58137         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58138
58139 2007-03-25  Bruno Haible  <bruno@clisp.org>
58140
58141         * lib/vasnprintf.c: Include langinfo.h.
58142         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58143         multithread-safe.
58144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58153         Reported by Simon Josefsson.
58154
58155 2007-03-25  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58158         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58159         * modules/vasnprintf (Depends-on): Add stdint.
58160
58161 2007-03-25  Bruno Haible  <bruno@clisp.org>
58162
58163         * modules/fpieee: New file.
58164         * m4/fpieee.m4: New file.
58165         * modules/isnan-nolibm (Depends-on): Add fpieee.
58166         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58167         * modules/isnanl (Depends-on): Add fpieee.
58168
58169 2007-03-25  Bruno Haible  <bruno@clisp.org>
58170
58171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58172
58173 2007-03-25  Bruno Haible  <bruno@clisp.org>
58174
58175         Avoid test failures on IRIX 6.5.
58176         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58177         (main): Use it.
58178         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58179         macros.
58180         (main): Use them.
58181
58182 2007-03-25  Bruno Haible  <bruno@clisp.org>
58183
58184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58185         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58186         exists but doesn't work.
58187         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58188         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58190         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58191         math.h.
58192
58193 2007-03-25  Bruno Haible  <bruno@clisp.org>
58194
58195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58196         returns inf. Needed on IRIX 6.5.
58197
58198 2007-03-25  Bruno Haible  <bruno@clisp.org>
58199
58200         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58201         (main): Use isnanl instead of x != x idiom.
58202         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58203
58204         * tests/test-frexp.c: Include isnan.h.
58205         (main): Use isnan instead of x != x idiom.
58206         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58207
58208 2007-03-25  Bruno Haible  <bruno@clisp.org>
58209
58210         * tests/test-frexp.c (NaN): New function/macro.
58211         (main): Use it instead of 0.0 / 0.0.
58212         * tests/test-isnan.c (NaN): New function/macro.
58213         (main): Use it instead of 0.0 / 0.0.
58214         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58215         (test_function): Use it instead of 0.0 / 0.0.
58216         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58217         (test_function): Use it instead of 0.0 / 0.0.
58218         * tests/test-snprintf-posix.h (NaN): New function/macro.
58219         (test_function): Use it instead of 0.0 / 0.0.
58220         * tests/test-sprintf-posix.h (NaN): New function/macro.
58221         (test_function): Use it instead of 0.0 / 0.0.
58222         * tests/test-fprintf-posix.h (NaN): New function/macro.
58223         (test_function): Use it instead of 0.0 / 0.0.
58224         * tests/test-printf-posix.h (NaN): New function/macro.
58225         (test_function): Use it instead of 0.0 / 0.0.
58226
58227         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58228
58229 2007-03-25  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58232
58233 2007-03-25  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/regexec.c (merge_state_with_log): Make static.
58236
58237 2007-03-25  Bruno Haible  <bruno@clisp.org>
58238
58239         * lib/trigl.c (kernel_rem_pio2): Make static.
58240
58241 2007-03-25  Bruno Haible  <bruno@clisp.org>
58242
58243         * lib/sincosl.c (sincosl_table): Make static.
58244
58245 2007-03-25  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58248         if the compiler does not support C99.
58249
58250 2007-03-25  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/time (Makefile.am): Ensure all rule action lines start with a
58253         tab.
58254
58255 2007-03-24  Bruno Haible  <bruno@clisp.org>
58256
58257         * modules/tsearch-tests: New file.
58258         * tests/test-tsearch.sh: New file.
58259         * tests/test-tsearch.c: New file, mostly copied from glibc.
58260
58261         * modules/search-tests: New file.
58262         * tests/test-search.c: New file.
58263
58264         * modules/search: New file.
58265         * lib/search_.h: New file, incorporating lib/tsearch.h.
58266         * m4/search_h.m4: New file.
58267         * lib/tsearch.h: Remove file.
58268         * lib/tsearch.c: Include search.h instead of tsearch.h.
58269         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58270         HAVE_TSEARCH.
58271         * modules/tsearch (Files): Remove lib/tsearch.h.
58272         (Depends-on): Add search.
58273         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58274         (Include): Change tsearch.h into search.h.
58275
58276 2007-03-24  Bruno Haible  <bruno@clisp.org>
58277
58278         * modules/fpucw: New file.
58279         * lib/fpucw.h: New file.
58280         * lib/frexp.c: Include fpucw.h.
58281         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58282         (FUNC): Use them.
58283         * lib/printf-frexp.c: Include fpucw.h.
58284         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58285         (FUNC): Use them.
58286         * lib/vasnprintf.c: Include fpucw.h.
58287         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58288         'long double' calculations.
58289         * tests/test-frexpl.c: Include fpucw.h.
58290         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58291         * tests/test-printf-frexpl.c: Include fpucw.h.
58292         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58293         * modules/frexpl (Depends-on): Add fpucw.
58294         * modules/printf-frexpl (Depends-on): Likewise.
58295         * modules/fprintf-posix (Depends-on): Likewise.
58296         * modules/snprintf-posix (Depends-on): Likewise.
58297         * modules/sprintf-posix (Depends-on): Likewise.
58298         * modules/vasnprintf-posix (Depends-on): Likewise.
58299         * modules/vasprintf-posix (Depends-on): Likewise.
58300         * modules/vfprintf-posix (Depends-on): Likewise.
58301         * modules/vsnprintf-posix (Depends-on): Likewise.
58302         * modules/vsprintf-posix (Depends-on): Likewise.
58303         * modules/frexpl-tests (Depends-on): Likewise.
58304         * modules/printf-frexpl-tests (Depends-on): Likewise.
58305
58306 2007-03-24  Bruno Haible  <bruno@clisp.org>
58307
58308         * lib/float+.h: New file.
58309         * lib/isnan.c: Include float+.h.
58310         (SIZE): New macro.
58311         (FUNC): Compare only SIZE bytes of the value.
58312         * lib/vasnprintf.c: Include float+.h.
58313         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58314         SIZEOF_LDBL or SIZEOF_DBL bytes.
58315         * modules/isnan-nolibm (Files): Add lib/float+.h.
58316         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58317         * modules/isnanl (Files): Add lib/float+.h.
58318         * modules/vasnprintf (Files): Add lib/float+.h.
58319
58320 2007-03-24  Bruno Haible  <bruno@clisp.org>
58321
58322         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58323         include isnanl-nolibm.h.
58324
58325 2007-03-24  Bruno Haible  <bruno@clisp.org>
58326
58327         * tests/test-read-file.c (main): Don't produce spurious output for
58328         expected situations. Make the test fail if it encountered unexpected
58329         results.
58330
58331 2007-03-24  Bruno Haible  <bruno@clisp.org>
58332
58333         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58334         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58335
58336 2007-03-24  Bruno Haible  <bruno@clisp.org>
58337
58338         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58339
58340 2007-03-24  Bruno Haible  <bruno@clisp.org>
58341
58342         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58343         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58344
58345         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58346         * modules/utf8-ucs4: Turn into a symbolic link to module
58347         unistr/u8-mbtouc.
58348
58349         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58350         utf8-ucs4-unsafe.
58351         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58352         unistr/u8-mbtouc-unsafe.
58353
58354         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58355         * modules/utf16-ucs4: Turn into a symbolic link to module
58356         unistr/u16-mbtouc.
58357
58358         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58359         utf16-ucs4-unsafe.
58360         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58361         unistr/u16-mbtouc-unsafe.
58362
58363         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58364         * modules/ucs4-utf8: Turn into a symbolic link to module
58365         unistr/u8-ubtomb.
58366
58367         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58368         * modules/ucs4-utf16: Turn into a symbolic link to module
58369         unistr/u16-ubtomb.
58370
58371 2007-03-24  Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58374         Enable the function only if HAVE_INLINE.
58375         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58376         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58377         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58378         Enable the function only if HAVE_INLINE.
58379         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58380         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58381         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58382         Enable the function only if HAVE_INLINE.
58383         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58384         Enable the function only if HAVE_INLINE.
58385         * modules/utf8-ucs4: Update.
58386         * modules/utf8-ucs4-unsafe: Update.
58387         * modules/utf16-ucs4: Update.
58388         * modules/utf16-ucs4-unsafe: Update.
58389         * modules/ucs4-utf8: Update.
58390         * modules/ucs4-utf16: Update.
58391
58392 2007-03-24  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/utf8-ucs4.h: Remove file.
58395         * lib/utf8-ucs4-unsafe.h: Remove file.
58396         * lib/utf16-ucs4.h: Remove file.
58397         * lib/utf16-ucs4-unsafe.h: Remove file.
58398         * lib/ucs4-utf8.h: Remove file.
58399         * lib/ucs4-utf16.h: Remove file.
58400         * lib/unistr.h: Include their previous contents.
58401         * m4/utf-ucs4.m4: Remove file.
58402         * m4/ucs4-utf.m4: Remove file.
58403         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58404         (Depends-on): Add unistr/base.
58405         (configure.ac): Remove gl_UTF_UCS4.
58406         (Makefile.am): Update.
58407         (Include): Change to unistr.h.
58408         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58409         (Depends-on): Add unistr/base.
58410         (configure.ac): Remove gl_UTF_UCS4.
58411         (Makefile.am): Update.
58412         (Include): Change to unistr.h.
58413         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58414         (Depends-on): Add unistr/base.
58415         (configure.ac): Remove gl_UTF_UCS4.
58416         (Makefile.am): Update.
58417         (Include): Change to unistr.h.
58418         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58419         (Depends-on): Add unistr/base.
58420         (configure.ac): Remove gl_UTF_UCS4.
58421         (Makefile.am): Update.
58422         (Include): Change to unistr.h.
58423         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58424         (Depends-on): Add unistr/base.
58425         (configure.ac): Remove gl_UCS4_UTF.
58426         (Makefile.am): Update.
58427         (Include): Change to unistr.h.
58428         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58429         (Depends-on): Add unistr/base.
58430         (configure.ac): Remove gl_UCS4_UTF.
58431         (Makefile.am): Update.
58432         (Include): Change to unistr.h.
58433         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58434         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58435         utf8-ucs4-unsafe.h.
58436         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58437         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58438         utf16-ucs4-unsafe.h.
58439         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58440         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58441         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58442         * lib/unistr/u8-strchr.c: Likewise.
58443         * lib/unistr/u8-strrchr.c: Likewise.
58444         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58445         * lib/unistr/u16-strchr.c: Likewise.
58446         * lib/unistr/u16-strrchr.c: Likewise.
58447         * lib/striconveh.c: Update.
58448         * lib/linebreak.c: Update.
58449
58450 2007-03-24  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58453         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58454
58455 2007-03-22  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58458
58459 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         * MODULES.html.sh (File system functions): New module write-any-file.
58462         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58463         * m4/write-any-file.m4: New files.
58464
58465 2007-03-23  Eric Blake  <ebb9@byu.net>
58466
58467         * gnulib-tool: Rearrange space-tab sequences, since some editors
58468         like to eat them.
58469
58470 2007-03-23  Eric Blake  <ebb9@byu.net>
58471
58472         * lib/version-etc.c (version_etc_va): Update license wording to
58473         be more concise.  Recommended by Richard Stallman.
58474
58475 2007-03-22  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/poll.c (MSG_PEEK): New fallback definition.
58478
58479 2007-03-22  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58482         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58483         (main): Update.
58484         Fixes a compilation error on BeOS.
58485
58486 2007-03-22  Bruno Haible  <bruno@clisp.org>
58487
58488         * modules/frexpl-tests: New file.
58489         * tests/test-frexpl.c: New file.
58490
58491         * modules/frexpl: New file.
58492         * m4/frexpl.m4: New file.
58493         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58494         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58496         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58497         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58498         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58499
58500 2007-03-22  Bruno Haible  <bruno@clisp.org>
58501
58502         * lib/frexpl.c: Share code with lib/frexp.c.
58503         * modules/mathl (Files): Add lib/frexp.c.
58504         (Depends-on): Add isnanl-nolibm.
58505
58506 2007-03-22  Bruno Haible  <bruno@clisp.org>
58507
58508         * modules/printf-frexp (Files): Add m4/frexp.m4.
58509         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58510         only if the found frexp function actually works.
58511
58512 2007-03-22  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/frexp.c: Remove older implementation that uses divisions.
58515
58516 2007-03-21  Bruno Haible  <bruno@clisp.org>
58517
58518         * modules/frexp-tests: New file.
58519         * tests/test-frexp.c: New file.
58520
58521         * modules/frexp: New file.
58522         * lib/frexp.c: New file.
58523         * m4/frexp.m4: New file.
58524         * lib/math_.h (frexp): New declaration.
58525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58526         REPLACE_FREXP.
58527         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58528
58529 2007-03-21  Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/isnanl-tests: New file.
58532         * tests/test-isnanl.c: New file.
58533
58534         * modules/isnanl: New file.
58535         * lib/isnanl.h: New file.
58536         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58537         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58538         gl_FUNC_ISNANL_WORKS.
58539         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58540         New macros.
58541
58542 2007-03-21  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58545         lib/isnanl.h.
58546         (Include): Update.
58547         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58548         * lib/vasnprintf.c: Update.
58549         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58550         tests/test-isnanl.h, remove tests/test-isnanl.c.
58551         (Makefile.am): Update.
58552         * tests/test-isnanl-nolibm.c: New file.
58553         * tests/test-isnanl.h: New file.
58554         * tests/test-isnanl.c: Remove file.
58555
58556 2007-03-21  Jim Meyering  <jim@meyering.net>
58557
58558         When trying to open ".", treat ESTALE like EACCES.
58559         * lib/savewd.c (savewd_save): Resort to forking not just upon
58560         failure with EACCES, but also when errno is ESTALE.
58561
58562 2007-03-20  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58565         Needed on AIX 5.1. Reported by Matthew Woehlke.
58566
58567 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         Suggestions by Bruno Haible:
58570         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58571         our own.
58572         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58573         * modules/acl (Depends-on): Add gettext.
58574
58575 2007-03-19  Bruno Haible  <bruno@clisp.org>
58576
58577         * modules/iconvme: Remove file.
58578         * lib/iconvme.h: Remove file.
58579         * lib/iconvme.c: Remove file.
58580         * m4/iconvme.m4: Remove file.
58581
58582 2007-03-19  Bruno Haible  <bruno@clisp.org>
58583
58584         * doc/relocatable-maint.texi: Break long shell script line.
58585         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58586
58587 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58590         handle file_has_acl.
58591         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58592         * lib/acl.c: Move header inclusions and related macro defns into
58593         lib/acl-internal.h.
58594         (S_ISLNK): Remove defn, since that's now done for us.
58595         (file_has_acl): Move to lib/file-has-acl.c.
58596         Call acl_trivial if available.  This is the crucial part of the fix.
58597         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58598         shared within the library.  Rewrite a bit, partly to make it compatible
58599         with the GNU coding style.
58600         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58601         Remove unnecessary double-quotes.
58602         Don't test for acl_to_text; the build will catch that.
58603         Replace acl_entries if it doesn't exist and it is needed.
58604         Check for -lsec and acl_trivial (as used on Solaris 10).
58605         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58606         lib/file-has-acl.c.
58607         (Depends-on): Add sys_stat, for S_ISLNK.
58608
58609 2007-03-19  Ben Pfaff  <blp@gnu.org>
58610
58611         * doc/gnulib.texi: Fix typos.
58612         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58613
58614 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58617         If size is zero here, buf must be zero.
58618
58619 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58620
58621         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58622         <bruno@clisp.org>.
58623
58624 2007-03-18  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58627         Suggested by Eric Blake.
58628
58629 2007-03-18  Ben Pfaff  <blp@gnu.org>
58630
58631         * doc/relocatable.texi: Recommend using as prefix a directory
58632         that does not exist and will never be created.  Based on
58633         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58634         and others.
58635
58636 2007-03-17  Bruno Haible  <bruno@clisp.org>
58637
58638         * lib/fchownat.c: Include lchown.h.
58639
58640 2007-03-17  Bruno Haible  <bruno@clisp.org>
58641
58642         Fix endless loop when the given allocated size was > INT_MAX.
58643         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58644         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58645         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58646         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58647         * lib/sprintf.c (sprintf): Likewise.
58648
58649 2007-03-17  Bruno Haible  <bruno@clisp.org>
58650
58651         * tests/test-argp-2.sh (func_compare): Output a context diff.
58652
58653 2007-03-17  Bruno Haible  <bruno@clisp.org>
58654
58655         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58656         locale's decimal-point character.
58657
58658 2007-03-17  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58661         before comparing it. Needed because on some platforms (e.g. x86) a
58662         'long double' occupies less bytes than sizeof (long double).
58663
58664 2007-03-17  Bruno Haible  <bruno@clisp.org>
58665
58666         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58667         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58668         * tests/test-getaddrinfo.c (simple): Likewise.
58669         * tests/test-read-file.c (main): Likewise.
58670
58671 2007-03-17  Bruno Haible  <bruno@clisp.org>
58672
58673         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58674
58675 2007-03-17  Bruno Haible  <bruno@clisp.org>
58676
58677         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58678         unused variable.
58679
58680 2007-03-17  Bruno Haible  <bruno@clisp.org>
58681
58682         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58683         * tests/test-c-strncasecmp.c: Likewise.
58684
58685 2007-03-17  Bruno Haible  <bruno@clisp.org>
58686
58687         * modules/stdlib (Depends-on): Add unistd.
58688         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58689         Needed for MacOS X 10.3.
58690
58691 2007-03-17  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58694
58695 2007-03-17  Bruno Haible  <bruno@clisp.org>
58696
58697         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58698
58699 2007-03-17  Bruno Haible  <bruno@clisp.org>
58700
58701         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58702         to reflect files copied from gnulib (with or without modifications).
58703         Suggested by Jim Meyering.
58704
58705 2007-03-17  Eric Blake  <ebb9@byu.net>
58706
58707         * NEWS: Document stdlib change from 2007-02-18.
58708
58709 2007-03-17  Jim Meyering  <jim@meyering.net>
58710
58711         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58712         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58713         someone uses a name containing shell meta-characters.
58714         Reported by Alfred M. Szmidt.
58715
58716         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58717
58718 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58719
58720         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58721         and copy gettext configuration files only if configure.ac contains
58722         a use of AM_GNU_GETTEXT_VERSION.
58723
58724 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58725
58726         * build-aux/bootstrap (gnulib_name): New variable.
58727         (gnulib_tool_options): Use it.
58728
58729 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58730
58731         * tests/test-des.c: Use new namespace.
58732
58733 2007-03-15  Bruno Haible  <bruno@clisp.org>
58734
58735         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58736         Reported by James Youngman <jay@gnu.org>.
58737
58738 2007-03-15  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58741         declared prototype. Needed with cc on OSF/1 5.1.
58742
58743 2007-03-15  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58746         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58747         (struct gl_list_implementation): Add dispose_fn argument to the
58748         'create_empty', 'create' methods.
58749         (struct gl_list_impl_base): Add field 'dispose_fn'.
58750         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58751         argument.
58752         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58753         dispose_fn argument.
58754         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58755         dispose_fn on the dropped values.
58756         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58757         dispose_fn argument.
58758         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58759         dropped values.
58760         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58761         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58762         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58763         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58764         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58765         argument.
58766         (gl_tree_list_free): Call dispose_fn on the dropped values.
58767         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58768         the dropped values.
58769         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58770         Add dispose_fn argument.
58771         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58772         Call dispose_fn on the dropped values.
58773         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58774         Add dispose_fn argument.
58775         (gl_sublist_create): Initialize the 'dispose_fn' field.
58776         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58777         * tests/test-array_list.c (main): Update.
58778         * tests/test-carray_list.c (main): Update.
58779         * tests/test-avltree_list.c (main): Update.
58780         * tests/test-rbtree_list.c (main): Update.
58781         * tests/test-avltreehash_list.c (main): Update.
58782         * tests/test-rbtreehash_list.c (main): Update.
58783         * tests/test-linked_list.c (main): Update.
58784         * tests/test-linkedhash_list.c (main): Update.
58785         * tests/test-array_oset.c (main): Update.
58786
58787 2007-03-15  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58790         (gl_oset_create_empty): Add dispose_fn argument.
58791         (struct gl_oset_implementation): Add dispose_fn argument to
58792         'create_empty' method.
58793         (struct gl_oset_impl_base): Add dispose_fn field.
58794         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58795         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58796         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58797         values.
58798         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58799         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58800         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58801         dropped value.
58802         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58803         dropped value.
58804         * tests/test-array_oset.c (main): Update.
58805         * tests/test-avltree_oset.c (main): Update.
58806         * tests/test-rbtree_oset.c (main): Update.
58807         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58808
58809 2007-03-13  Bruno Haible  <bruno@clisp.org>
58810
58811         * tests/test-stdbool.c (i): Update after last patch.
58812
58813 2007-03-12  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58816         the iswprint macro. Needed on Solaris 2.5.1.
58817
58818 2007-03-12  Bruno Haible  <bruno@clisp.org>
58819
58820         * tests/test-printf-frexp.c (main): Declare x as volatile.
58821
58822 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58823
58824         * doc/gnulib.texi (Build robot for gnulib): New section.
58825
58826 2007-03-12  Jim Meyering  <jim@meyering.net>
58827
58828         * build-aux/bootstrap: New file.
58829         * build-aux/bootstrap.conf: New file, from coreutils.
58830
58831 2007-03-11  Bruno Haible  <bruno@clisp.org>
58832
58833         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58834
58835 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58836
58837         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58838         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58839         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58840
58841 2007-03-11  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58844         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58845
58846 2007-03-11  Bruno Haible  <bruno@clisp.org>
58847
58848         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58849         formula. Needed for SunPRO C 5.0.
58850
58851 2007-03-11  Bruno Haible  <bruno@clisp.org>
58852
58853         * modules/long-options (Depends-on): Add getopt.
58854
58855 2007-03-11  Bruno Haible  <bruno@clisp.org>
58856
58857         * modules/modechange (Depends-on): Add stdbool.
58858
58859 2007-03-11  Bruno Haible  <bruno@clisp.org>
58860
58861         * modules/i-ring (Depends-on): Add stdbool.
58862
58863 2007-03-11  Bruno Haible  <bruno@clisp.org>
58864
58865         * modules/gc-des (Depends-on): Add stdbool.
58866
58867 2007-03-11  Bruno Haible  <bruno@clisp.org>
58868
58869         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58870
58871 2007-03-11  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58874
58875 2007-03-11  Bruno Haible  <bruno@clisp.org>
58876
58877         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58878
58879 2007-03-11  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/vasnprintf.c (sprintf): Undefine.
58882
58883 2007-03-11  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58886         initializers in SunPRO C and Compaq C compilers.
58887
58888 2007-03-11  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58891         decrementing code ANSI C compliant.
58892
58893 2007-03-11  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58896         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58897
58898 2007-03-11  Bruno Haible  <bruno@clisp.org>
58899
58900         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58901         <stdbool.h> substitute doesn't pass.
58902
58903 2007-03-11  Bruno Haible  <bruno@clisp.org>
58904
58905         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58906
58907 2007-03-11  Bruno Haible  <bruno@clisp.org>
58908
58909         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58910         script, for submission to autobuild.josefsson.org.
58911
58912 2007-03-10  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/canonicalize-lgpl-tests: New file.
58915         * tests/test-canonicalize-lgpl.sh: New file.
58916         * tests/test-canonicalize-lgpl.c: New file.
58917
58918         * modules/c-strcase-tests: New file.
58919         * tests/test-c-strcase.sh: New file.
58920         * tests/test-c-strcasecmp.c: New file.
58921         * tests/test-c-strncasecmp.c: New file.
58922
58923         * modules/atexit-tests: New file.
58924         * tests/test-atexit.sh: New file.
58925         * tests/test-atexit.c: New file.
58926
58927 2007-03-10  Bruno Haible  <bruno@clisp.org>
58928
58929         * tests/test-binary-io.sh: Use temporary filenames that are not so
58930         likely to clash with those of other tests (in a parallel make).
58931         * tests/test-binary-io.c: Likewise.
58932
58933 2007-03-10  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58936         fallback; use #error instead.
58937         Suggested by Simon Josefsson.
58938
58939 2007-03-10  Bruno Haible  <bruno@clisp.org>
58940
58941         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58942         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58943         first and the last.
58944
58945 2007-03-10  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58948
58949 2007-03-10  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58952         "make distcheck".
58953         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58954         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58955         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58956
58957 2007-03-10  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58960         variable.
58961         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58962         variable.
58963
58964 2007-03-09  Eric Blake  <ebb9@byu.net>
58965         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58966
58967         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58968         types are not being provided by gnulib.
58969         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58970         types are supported.
58971
58972 2007-03-10  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/stdio_.h (__attribute__): New macro.
58975         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58976         vsprintf): Specify __attribute__ __format__ for GCC.
58977         Suggested by Eric Blake.
58978
58979 2007-03-09  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/printf-posix-tests: New file.
58982         * tests/test-printf-posix.sh: New file.
58983         * tests/test-printf-posix.c: New file.
58984
58985         * modules/printf-posix: New file.
58986         * lib/printf.c: New file.
58987         * m4/printf-posix-rpl.m4: New file.
58988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58989         REPLACE_PRINTF.
58990         * lib/stdio_.h (printf): New declaration.
58991         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58992         ____strfmon____): New macros.
58993         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58994         REPLACE_PRINTF.
58995
58996 2007-03-09  Bruno Haible  <bruno@clisp.org>
58997
58998         * tests/test-vasnprintf-posix2.sh: New file.
58999         * tests/test-vasnprintf-posix2.c: New file.
59000         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59001         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59002         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59003
59004         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59005         a locale dependent decimal point, rather than always '.'.
59006
59007 2007-03-09  Eric Blake  <ebb9@byu.net>
59008
59009         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59010         spite of platforms like Tandem/NSK that define it to -1.
59011
59012 2007-03-08  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/vprintf-posix-tests: New file.
59015         * tests/test-vprintf-posix.sh: New file.
59016         * tests/test-vprintf-posix.c: New file.
59017         * tests/test-printf-posix.h: New file.
59018
59019         * modules/vprintf-posix: New file.
59020         * lib/vprintf.c: New file.
59021         * m4/vprintf-posix.m4: New file.
59022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59023         REPLACE_VPRINTF.
59024         * lib/stdio_.h (vprintf): New declaration.
59025         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59026         REPLACE_VPRINTF.
59027
59028 2007-03-08  Bruno Haible  <bruno@clisp.org>
59029
59030         * modules/fprintf-posix-tests: New file.
59031         * tests/test-fprintf-posix.sh: New file.
59032         * tests/test-fprintf-posix.c: New file.
59033
59034         * modules/fprintf-posix: New file.
59035         * lib/fprintf.c: New file.
59036         * m4/fprintf-posix.m4: New file.
59037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59038         REPLACE_FPRINTF.
59039         * lib/stdio_.h (fprintf): New declaration.
59040         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59041         REPLACE_FPRINTF.
59042
59043 2007-03-08  Bruno Haible  <bruno@clisp.org>
59044
59045         * modules/vfprintf-posix-tests: New file.
59046         * tests/test-vfprintf-posix.sh: New file.
59047         * tests/test-vfprintf-posix.c: New file.
59048         * tests/test-fprintf-posix.h: New file.
59049         * tests/test-fprintf-posix.out: New file.
59050
59051         * modules/vfprintf-posix: New file.
59052         * lib/vfprintf.c: New file.
59053         * m4/vfprintf-posix.m4: New file.
59054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59055         REPLACE_VFPRINTF.
59056         * lib/stdio_.h (vfprintf): New declaration.
59057         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59058         REPLACE_VFPRINTF.
59059
59060 2007-03-08  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59063
59064 2007-03-08  Bruno Haible  <bruno@clisp.org>
59065
59066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59067         instead of 'expr' invocations.
59068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59073         Suggested by Paul Eggert.
59074
59075 2007-03-08  Bruno Haible  <bruno@clisp.org>
59076
59077         * modules/fseterr-tests: New file.
59078         * tests/test-fseterr.c: New file.
59079
59080         * modules/fseterr: New file.
59081         * lib/fseterr.h: New file.
59082         * lib/fseterr.c: New file.
59083
59084 2007-03-08  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59087         * lib/getopt_.h: Likewise.
59088         * lib/mbswidth.h: Likewise.
59089         * lib/setenv.h: Likewise.
59090         * lib/vasnprintf.h: Likewise.
59091         * lib/vasprintf.h: Likewise.
59092         * lib/verror.h: Likewise.
59093         * lib/xsetenv.h: Likewise.
59094         * lib/xvasprintf.h: Likewise.
59095
59096 2007-03-08  Jim Meyering  <jim@meyering.net>
59097
59098         * users.txt: Add parted.
59099
59100         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59101
59102 2007-03-07  Bruno Haible  <bruno@clisp.org>
59103
59104         * m4/printf.m4: Make the shell script snippets copy&pastable.
59105
59106 2007-03-02  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/netinet_in_.h: New file.
59109         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59110         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59111         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59112         (Depends-on): Add absolute-header.
59113         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59114         into netinet/in.h.
59115
59116 2007-03-03  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/sys_select_.h: New file.
59119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59120         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59121         * modules/sys_select (Files): Add lib/sys_select_.h.
59122         (Depends-on): Add absolute-header.
59123         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59124         into sys/select.h.
59125
59126 2007-03-02  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59129         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59130         values.
59131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59132         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59133         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59134         * modules/sys_socket (Depends-on): Add absolute-header.
59135         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59136         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59137         (Include): Remove requirement of inclusion of <sys/types.h>.
59138
59139 2007-03-02  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/byteswap_.h (bswap_32): Fix formula.
59142
59143 2007-03-06  Bruno Haible  <bruno@clisp.org>
59144
59145         * modules/sprintf-posix-tests: New file.
59146         * tests/test-sprintf-posix.c: New file.
59147
59148         * modules/sprintf-posix: New file.
59149         * lib/sprintf.c: New file.
59150         * m4/sprintf-posix.m4: New file.
59151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59152         REPLACE_SPRINTF.
59153         * lib/stdio_.h (sprintf): New declaration.
59154         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59155         REPLACE_SPRINTF.
59156
59157 2007-03-06  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/vsprintf-posix-tests: New file.
59160         * tests/test-vsprintf-posix.c: New file.
59161         * tests/test-sprintf-posix.h: New file.
59162
59163         * modules/vsprintf-posix: New file.
59164         * lib/vsprintf.c: New file.
59165         * m4/vsprintf-posix.m4: New file.
59166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59167         REPLACE_VSPRINTF.
59168         * lib/stdio_.h (vsprintf): New declaration.
59169         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59170         REPLACE_VSPRINTF.
59171
59172 2007-03-06  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/vsnprintf (Depend-on): Remove minmax.
59175
59176 2007-03-06  Bruno Haible  <bruno@clisp.org>
59177
59178         * modules/snprintf-posix-tests: New file.
59179         * tests/test-snprintf-posix.c: New file.
59180
59181         * modules/snprintf-posix: New file.
59182         * m4/snprintf-posix.m4: New file.
59183         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59184         gl_FUNC_SNPRINTF.
59185         (gl_FUNC_SNPRINTF): Invoke it.
59186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59187         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59188         is set.
59189         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59190
59191 2007-03-06  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/vsnprintf-posix-tests: New file.
59194         * tests/test-vsnprintf-posix.c: New file.
59195         * tests/test-snprintf-posix.h: New file.
59196
59197         * modules/vsnprintf-posix: New file.
59198         * m4/vsnprintf-posix.m4: New file.
59199         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59200         gl_FUNC_VSNPRINTF.
59201         (gl_FUNC_VSNPRINTF): Invoke it.
59202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59203         * lib/stdio_.h (vsnprintf): Define as a replacement if
59204         REPLACE_VSNPRINTF is set.
59205         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59206
59207 2007-03-06  Bruno Haible  <bruno@clisp.org>
59208
59209         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59211
59212 2007-03-06  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59215         (asinl): Declare also if HAVE_DECL_ASINL is set.
59216         (atanl): Declare also if HAVE_DECL_ATANL is set.
59217         (ceill): Declare also if HAVE_DECL_CEILL is set.
59218         (cosl): Declare also if HAVE_DECL_COSL is set.
59219         (expl): Declare also if HAVE_DECL_EXPL is set.
59220         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59221         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59222         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59223         (logl): Declare also if HAVE_DECL_LOGL is set.
59224         (sinl): Declare also if HAVE_DECL_SINL is set.
59225         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59226         (tanl): Declare also if HAVE_DECL_TANL is set.
59227         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59230         declaration of frexpl, ldexpl.
59231         * modules/printf-frexpl (Depends-on): Add math.
59232         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59233
59234 2007-03-05  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59237         frexpl and ldexpl are declared.
59238         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59239
59240 2007-03-05  Bruno Haible  <bruno@clisp.org>
59241
59242         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59243         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59244
59245 2007-03-05  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/stdio_.h: Include <stddef.h>.
59248
59249 2007-03-05  Bruno Haible  <bruno@clisp.org>
59250
59251         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59252
59253 2007-03-05  Bruno Haible  <bruno@clisp.org>
59254
59255         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59256         NetBSD 4, from Ralf Wildenhues.
59257
59258 2007-03-04  Bruno Haible  <bruno@clisp.org>
59259
59260         * lib/vasprintf.h: Update #if logic for the case when the functions
59261         exist but are overridden.
59262
59263 2007-03-04  Bruno Haible  <bruno@clisp.org>
59264
59265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59266         implementations: glibc-2.4 and MacOS X 10.3.
59267         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59268         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59269         * tests/test-vasprintf-posix.c (test_function): Likewise.
59270
59271 2007-03-04  Bruno Haible  <bruno@clisp.org>
59272
59273         * modules/vasprintf-posix-tests: New file.
59274         * tests/test-vasprintf-posix.c: New file.
59275
59276         * modules/vasprintf-posix: New file.
59277         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59278         defined.
59279         * m4/vasprintf-posix.m4: New file.
59280         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59281         gl_FUNC_VASPRINTF.
59282         (gl_FUNC_VASPRINTF): Invoke it.
59283         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59284         here.
59285         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59286
59287 2007-03-04  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59290         REPLACE_GETTIMEOFDAY.
59291         * modules/sys_time (Makefile.am): Likewise.
59292         * m4/sys_time_h.m4: Likewise.
59293         * m4/gettimeofday.m4: Likewise.
59294
59295 2007-03-04  Bruno Haible  <bruno@clisp.org>
59296
59297         * modules/vasnprintf-posix-tests: New file.
59298         * tests/test-vasnprintf-posix.c: New file.
59299
59300         * modules/vasnprintf-posix: New file.
59301         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59302         printf-frexpl.h.
59303         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59304         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59305         REPLACE_VASNPRINTF is defined.
59306         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59307         gl_FUNC_VASNPRINTF.
59308         (gl_FUNC_VASNPRINTF): Invoke it.
59309         * m4/vasnprintf-posix.m4: New file.
59310         * m4/printf.m4: New file.
59311
59312 2007-03-04  Bruno Haible  <bruno@clisp.org>
59313
59314         Compile progreloc.c only if --enable-relocatable is specified.
59315         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59316         if --enable-relocatable was specified.
59317         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59318         lib_SOURCES.
59319
59320 2007-03-04  Jim Meyering  <jim@meyering.net>
59321
59322         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59323         Use it consistently, rather than enumerating errno constants.
59324
59325 2007-03-04  Bruno Haible  <bruno@clisp.org>
59326
59327         * modules/xvasprintf-tests: New file.
59328         * tests/test-xvasprintf.c: New file.
59329
59330         * modules/vasprintf-tests: New file.
59331         * tests/test-vasprintf.c: New file.
59332
59333         * modules/vasnprintf-tests: New file.
59334         * tests/test-vasnprintf.c: New file.
59335
59336         * modules/vsnprintf-tests: New file.
59337         * tests/test-vsnprintf.c: New file.
59338
59339         * modules/snprintf-tests: New file.
59340         * tests/test-snprintf.c: New file.
59341
59342 2007-03-04  Bruno Haible  <bruno@clisp.org>
59343
59344         Compile relocatable.c only if --enable-relocatable is specified.
59345         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59346         gl_RELOCATABLE_LIBRARY.
59347         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59348         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59349         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59350         gl_RELOCATABLE_LIBRARY.
59351         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59352         (Makefile.am): Remove lib_SOURCES.
59353         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59354         gl_RELOCATABLE_LIBRARY.
59355         (Makefile.am): Remove lib_SOURCES.
59356         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59357         always.
59358         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59359         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59360
59361 2007-03-04  Bruno Haible  <bruno@clisp.org>
59362
59363         * modules/argmatch-tests: New file.
59364         * tests/test-argmatch.c: New file.
59365
59366         * tests/test-allocsa.c (main): Halve the number of loop runs.
59367
59368         * modules/alloca-opt-tests: New file.
59369         * tests/test-alloca-opt.c: New file.
59370
59371 2007-03-04  Jim Meyering  <jim@meyering.net>
59372
59373         Work around difference between Linux ACLs and Solaris 10 ZFS.
59374         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59375         for EINVAL.
59376
59377 2007-03-03  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/relocatable-prog (Depends-on): Add back progreloc's
59380         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59381
59382 2007-03-03  Bruno Haible  <bruno@clisp.org>
59383
59384         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59385         * modules/relocatable-lib: New file.
59386
59387 2007-03-03  Bruno Haible  <bruno@clisp.org>
59388
59389         * modules/relocatable-prog: Renamed from modules/relocatable.
59390         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59391
59392 2007-03-03  Bruno Haible  <bruno@clisp.org>
59393
59394         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59395         m4/relocatable-lib.m4.
59396         (Depends-on): Remove 'relocatable'.
59397         (configure.ac): Add gl_RELOCATABLE_NOP.
59398
59399 2007-03-03  Bruno Haible  <bruno@clisp.org>
59400
59401         * modules/relocatable-prog-wrapper: New file.
59402         * modules/relocatable (Depends-on): Add it. Remove all other
59403         dependencies except progname.
59404         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59405
59406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59407         (gl_FUNC_STRERROR): Nop.
59408         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59409
59410         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59411         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59412
59413         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59414         (gl_FUNC_READLINK): Update.
59415
59416         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59417
59418 2007-03-03  Bruno Haible  <bruno@clisp.org>
59419
59420         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59421         * modules/xreadlink (Depends-on): Add unistd.
59422         * modules/xreadlink-with-size (Depends-on): Likewise.
59423
59424 2007-03-03  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59427         extracted from gt_FUNC_SETENV.
59428         (gt_FUNC_SETENV): Remove macro.
59429         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59430         remove gt_FUNC_SETENV.
59431
59432 2007-03-03  Bruno Haible  <bruno@clisp.org>
59433
59434         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59435         ENABLE_RELOCATABLE here.
59436         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59437
59438 2007-03-03  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59441         * tests/test-rbtreehash_list.c: Include progname.h.
59442         (main): Call set_program_name.
59443
59444         * modules/rbtree-oset-tests (Depends-on): Add progname.
59445         * tests/test-rbtree_oset.c: Include progname.h.
59446         (main): Call set_program_name.
59447
59448         * modules/rbtree-list-tests (Depends-on): Add progname.
59449         * tests/test-rbtree_list.c: Include progname.h.
59450         (main): Call set_program_name.
59451
59452         * modules/linked-list-tests (Depends-on): Add progname.
59453         * tests/test-linked_list.c: Include progname.h.
59454         (main): Call set_program_name.
59455
59456 2007-03-03  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59459         All uses of __restrict changed to _Restrict_.
59460         * lib/glob_.h (__restrict): Remove macro.
59461
59462 2007-03-02  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/gettext (configure.ac): Require gettext infrastructure
59465         from version 0.16.1.
59466
59467 2007-03-02  Bruno Haible  <bruno@clisp.org>
59468
59469         * modules/linkedhash-list-tests (Depends-on): Add progname.
59470         * tests/test-linkedhash_list.c: Include progname.h.
59471         (main): Call set_program_name.
59472
59473         * modules/carray-list-tests (Depends-on): Add progname.
59474         * tests/test-carray_list.c: Include progname.h.
59475         (main): Call set_program_name.
59476
59477         * modules/avltreehash-list-tests (Depends-on): Add progname.
59478         * tests/test-avltreehash_list.c: Include progname.h.
59479         (main): Call set_program_name.
59480
59481         * modules/avltree-oset-tests (Depends-on): Add progname.
59482         * tests/test-avltree_oset.c: Include progname.h.
59483         (main): Call set_program_name.
59484
59485         * modules/avltree-list-tests (Depends-on): Add progname.
59486         * tests/test-avltree_list.c: Include progname.h.
59487         (main): Call set_program_name.
59488
59489         * modules/array-oset-tests (Depends-on): Add progname.
59490         * tests/test-array_oset.c: Include progname.h.
59491         (main): Call set_program_name.
59492
59493         * modules/array-list-tests (Depends-on): Add progname.
59494         * tests/test-array_list.c: Include progname.h.
59495         (main): Call set_program_name.
59496
59497         * modules/argp-tests (Depends-on): Add progname.
59498         * tests/test-argp.c: Include argp.h first. Include progname.h.
59499         (main): Call set_program_name.
59500
59501 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * doc/gnulib-tool.texi (Initial import): Reword description of
59504         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59505         limited effect even if defined after the first system include.
59506
59507 2007-03-01  Bruno Haible  <bruno@clisp.org>
59508
59509         * build-aux/config.libpath: Update to libtool-1.5.22.
59510         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59511
59512 2007-03-01  Bruno Haible  <bruno@clisp.org>
59513
59514         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59515         foo_CFLAGS.
59516         Reported by Ralf Wildenhues.
59517
59518 2007-03-01  Bruno Haible  <bruno@clisp.org>
59519
59520         * build-aux/install-reloc: Remove object files left over by some
59521         compilers.
59522         Reported by Ralf Wildenhues.
59523
59524 2007-03-01  Bruno Haible  <bruno@clisp.org>
59525
59526         * build-aux/install-reloc: Break long lines.
59527
59528 2007-03-01  Bruno Haible  <bruno@clisp.org>
59529
59530         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59531         Reported by Ralf Wildenhues.
59532
59533 2007-03-01  Bruno Haible  <bruno@clisp.org>
59534
59535         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59536         include ordering constraints.
59537
59538 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59542         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59543         as another example.
59544         * lib/time_.h: Fix misspelling.
59545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59546         Require gl_HEADER_TIME_H_DEFAULTS.
59547         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59548         * m4/time_r.m4 (gl_TIME_R): Likewise.
59549         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59550
59551 2007-03-01  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59554         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59555
59556 2007-03-01  Jim Meyering  <jim@meyering.net>
59557
59558         * modules/xreadlink (Maintainer): Add my name.
59559         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59560
59561 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59562             Bruno Haible  <bruno@clisp.org>
59563
59564         * build-aux/install-reloc: Compile also c-ctype.c.
59565         * build-aux/relocatable.sh.in: New file.
59566         * doc/relocatable.texi: New file.
59567         * doc/relocatable-maint.texi: New file.
59568         * doc/gnulib.texi: Include relocatable-maint.texi.
59569         * lib/progreloc.c: Include unistd.h unconditionally.
59570         * lib/relocwrapper.c: Include unistd.h unconditionally.
59571         Include c-ctype.h.
59572         (add_dotbin): Use c_tolower.
59573         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59574         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59575         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59576         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59577         to m4/relocatable-lib.m4.
59578         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59579         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59580         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59581         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59582         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59583         * modules/relocatable: New file.
59584         * modules/relocatable-lib: New file.
59585         * modules/relocatable-script: New file.
59586
59587 2007-02-28  Bruno Haible  <bruno@clisp.org>
59588
59589         Import --enable-relocatable infrastructure.
59590         * build-aux/config.libpath: New file, from GNU gettext.
59591         * build-aux/install-reloc: New file, from GNU gettext.
59592         * build-aux/reloc-ldflags: New file, from GNU gettext.
59593         * lib/relocatable.h: New file, from GNU gettext.
59594         * lib/relocatable.c: New file, from GNU gettext.
59595         * lib/relocwrapper.c: New file, from GNU gettext.
59596         * m4/relocatable.m4: New file, from GNU gettext.
59597
59598 2007-02-28  Bruno Haible  <bruno@clisp.org>
59599
59600         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59601
59602         * modules/xreadlink: New file, from GNU gettext with modifications.
59603         * lib/xreadlink.c: New file, from GNU gettext.
59604         * lib/xreadlink.h: Add comments.
59605         (xreadlink): New declaration.
59606
59607         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59608         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59609         lib/xreadlink-with-size.c.
59610         (configure.ac): Remove gl_XREADLINK invocation.
59611         (Makefile.am): Augment lib_SOURCES.
59612         * m4/xreadlink.m4: Remove file.
59613         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59614         (xreadlink_with_size): Renamed from xreadink.
59615         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59616         * modules/canonicalize (Depends-on): Replace xreadlink with
59617         xreadlink-with-size.
59618         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59619
59620 2007-02-25  Jim Meyering  <jim@meyering.net>
59621
59622         * build-aux/announce-gen: When complaining about excess arguments,
59623         list them.
59624
59625 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * README: Document signed integer overflow situation more
59628         accurately.
59629
59630 2007-02-25  Bruno Haible  <bruno@clisp.org>
59631
59632         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59633         'a' or 'A' conversion.
59634
59635 2007-02-25  Bruno Haible  <bruno@clisp.org>
59636
59637         * modules/filename: Renamed from modules/pathname.
59638         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59639         lib/concatpath.c with lib/concat-filename.c.
59640         (Makefile.am): Update.
59641         (Include): Replace pathname.h with filename.h.
59642         * lib/filename.h: Renamed from lib/pathname.h.
59643         (concatenated_filename): Renamed from concatenated_pathname.
59644         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59645         (concatenated_filename): Renamed from concatenated_pathname.
59646         * lib/findprog.c: Include filename.h instead of pathname.h.
59647         (find_in_path): Update.
59648         * lib/javacomp.c: Include filename.h instead of pathname.h.
59649         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59650         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59651         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59652         is_oldgcj_14_13_usable, is_javac_usable): Update.
59653         * lib/javaexec.c: Include filename.h instead of pathname.h.
59654         (execute_java_class): Update.
59655         * modules/findprog: Update.
59656         * modules/javacomp: Update.
59657         * modules/javaexec: Update.
59658         * MODULES.html.sh (File system functions): Add 'filename', remove
59659         'pathname'.
59660
59661 2007-02-25  Bruno Haible  <bruno@clisp.org>
59662
59663         * modules/printf-frexpl-tests: New file.
59664         * tests/test-printf-frexpl.c: New file.
59665
59666         * modules/printf-frexpl: New file.
59667         * lib/printf-frexpl.h: New file.
59668         * lib/printf-frexpl.c: New file.
59669         * m4/printf-frexpl.m4: New file.
59670
59671 2007-02-25  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/printf-frexp-tests: New file.
59674         * tests/test-printf-frexp.c: New file.
59675
59676         * modules/printf-frexp: New file.
59677         * lib/printf-frexp.h: New file.
59678         * lib/printf-frexp.c: New file.
59679         * m4/printf-frexp.m4: New file.
59680
59681 2007-02-25  Bruno Haible  <bruno@clisp.org>
59682
59683         Assume automake >= 1.10 for the tests.
59684         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59685         * modules/arctwo-tests: Likewise.
59686         * modules/argp-tests: Likewise.
59687         * modules/avltree-list-tests: Likewise.
59688         * modules/avltree-oset-tests: Likewise.
59689         * modules/avltreehash-list-tests: Likewise.
59690         * modules/carray-list-tests: Likewise.
59691         * modules/crc-tests: Likewise.
59692         * modules/des-tests: Likewise.
59693         * modules/gc-arcfour-tests: Likewise.
59694         * modules/gc-arctwo-tests: Likewise.
59695         * modules/gc-des-tests: Likewise.
59696         * modules/gc-hmac-md5-tests: Likewise.
59697         * modules/gc-hmac-sha1-tests: Likewise.
59698         * modules/gc-md2-tests: Likewise.
59699         * modules/gc-md4-tests: Likewise.
59700         * modules/gc-md5-tests: Likewise.
59701         * modules/gc-pbkdf2-sha1-tests: Likewise.
59702         * modules/gc-rijndael-tests: Likewise.
59703         * modules/gc-sha1-tests: Likewise.
59704         * modules/gc-tests: Likewise.
59705         * modules/getaddrinfo-tests: Likewise.
59706         * modules/hmac-md5-tests: Likewise.
59707         * modules/hmac-sha1-tests: Likewise.
59708         * modules/linked-list-tests: Likewise.
59709         * modules/linkedhash-list-tests: Likewise.
59710         * modules/lock-tests: Likewise.
59711         * modules/md2-tests: Likewise.
59712         * modules/md4-tests: Likewise.
59713         * modules/md5-tests: Likewise.
59714         * modules/rbtree-list-tests: Likewise.
59715         * modules/rbtree-oset-tests: Likewise.
59716         * modules/rbtreehash-list-tests: Likewise.
59717         * modules/read-file-tests: Likewise.
59718         * modules/rijndael-tests: Likewise.
59719         * modules/stdint-tests: Likewise.
59720         * modules/tls-tests: Likewise.
59721
59722 2007-02-24  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59725         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59726         function; instead check whether isnan with a double argument links.
59727         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59728         function; instead check whether isnan with a 'long double' argument
59729         links.
59730         Reported by Eric Blake <ebb9@byu.net>.
59731
59732 2007-02-24  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59735         defined.
59736         * lib/isnanl.c: Remove all code. Just include isnan.c.
59737         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59738
59739 2007-02-25  Jim Meyering  <jim@meyering.net>
59740
59741         Avoid conflicting types for 'unsetenv' on FreeBSD.
59742         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59743         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59744         in stdlib.h.
59745
59746 2007-02-24  Bruno Haible  <bruno@clisp.org>
59747
59748         * modules/isnanl-nolibm-tests: New file.
59749         * tests/test-isnanl.c: New file.
59750
59751         * modules/isnanl-nolibm: New file.
59752         * lib/isnanl.h: New file.
59753         * lib/isnanl.c: New file.
59754         * m4/isnanl.m4: New file.
59755
59756 2007-02-24  Bruno Haible  <bruno@clisp.org>
59757
59758         * modules/isnan-nolibm-tests: New file.
59759         * tests/test-isnan.c: New file.
59760
59761         * modules/isnan-nolibm: New file.
59762         * lib/isnan.h: New file.
59763         * lib/isnan.c: New file.
59764         * m4/isnan.m4: New file.
59765
59766 2007-02-24  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59769         assume that an exponent fits in 20 bits.
59770
59771 2007-02-24  Jim Meyering  <jim@meyering.net>
59772
59773         * m4/regex.m4: Update the description of the configure-time option,
59774         --without-included-regex, to state accurately what the defaults are,
59775         and perhaps to give people an idea why using this option is risky.
59776
59777 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59780         loops on small arguments.  This attempts to avoid the problem
59781         Bruno Haible reported for AIX 4.3.2 in
59782         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59783
59784 2007-02-23  Bruno Haible  <bruno@clisp.org>
59785
59786         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59787         Needed for help2man.
59788
59789 2007-02-23  Karl Berry  <karl@gnu.org>
59790
59791         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59792         exists, foo.h should be cvs-ignored, not committed.
59793
59794 2007-02-23  Eric Blake  <ebb9@byu.net>
59795
59796         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59797         * lib/stat-time.h (includes): Likewise.
59798         * lib/utimecmp.c (includes): Likewise.
59799         * lib/utimens.h (includes): Likewise.
59800         * lib/getdate.y (includes): Also include "timespec.h" for use
59801         internal to the module.
59802         * modules/utimens (Depends-on): Revert yesterday's patch.
59803         * modules/nanosleep (Depends-on): Add missing dependency.
59804
59805 2007-02-22  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/glob.c: Don't include getlogin_r.h.
59808
59809 2007-02-22  Jim Meyering  <jim@meyering.net>
59810
59811         * modules/utimens (Depends-on): Add timespec, required for
59812         utimens.h's inclusion of timespec.h.
59813
59814 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59817         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59818         Schwab in
59819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59820         I'll try to think of a better way to fix the Solaris problem.
59821
59822         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59823         like glibc; on Solaris 10, it fails with errno == EINVAL.
59824         POSIX says the behavior is unspecified if the first argument is NULL,
59825         so play it safe and never pass NULL to the system getcwd.
59826
59827 2007-02-21  Jim Meyering  <jim@meyering.net>
59828
59829         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59830         of gettimeofday.  It would conflict with the one now always
59831         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59832         an IRIX 6.5 build failure.
59833
59834 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         Minor fixups to port to Solaris 10 with Sun C 5.8.
59837         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59838         * modules/getcwd (Depends-on): Add dirfd.
59839         * lib/putenv.c (putenv): #undef it.
59840         (rpl_putenv): New decl.
59841         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59842
59843 2007-02-20  Bruno Haible  <bruno@clisp.org>
59844
59845         * modules/stdio-tests: New file.
59846         * tests/test-stdio.c: New file.
59847
59848         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59849         (Depends-on): Add stdio.
59850         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59851         (Include): Use <stdio.h> instead of vsnprintf.h.
59852         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59853         HAVE_DECL_VSNPRINTF.
59854         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59855
59856         * modules/snprintf (Files): Remove lib/snprintf.h.
59857         (Depends-on): Add stdio.
59858         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59859         (Include): Use <stdio.h> instead of snprintf.h.
59860         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59861         HAVE_DECL_SNPRINTF.
59862         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59863         * lib/getaddrinfo.c: Likewise.
59864
59865         * modules/stdio: New file.
59866         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59867         * lib/snprintf.h: Remove file.
59868         * lib/vsnprintf.h: Remove file.
59869         * lib/.cppi-disable: Remove snprintf.h.
59870         * m4/stdio_h.m4: New file.
59871         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59872
59873 2007-02-20  Jim Meyering  <jim@meyering.net>
59874
59875         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59876         used by e.g., mingw.  From Bruno Haible.
59877
59878 2007-02-19  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59881         warnings.
59882         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59883
59884 2007-02-19  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59887         from mingw users.
59888
59889 2007-02-19  Bruno Haible  <bruno@clisp.org>
59890
59891         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59892         warnings.
59893         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59894
59895 2007-02-19  Jim Meyering  <jim@meyering.net>
59896
59897         Don't use FD after a successful "fdopendir (fd)".
59898         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59899         Reset it by calling dirfd on the just-obtained DIR*.
59900
59901         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59902         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59903
59904 2007-02-18  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/readlink.c: Include <unistd.h>.
59907         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59908         HAVE_READLINK.
59909         * modules/readlink (Depends-on): Add unistd.
59910         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59911         (Include): Add <unistd.h>.
59912
59913         * lib/getlogin_r.h: Remove file.
59914         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59915         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59916         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59917         HAVE_DECL_GETLOGIN_R.
59918         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59920         (Include): Use <unistd.h> instead of getlogin_r.h.
59921
59922         * lib/getcwd.h: Remove file.
59923         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59924         * lib/xgetcwd.c: Likewise.
59925         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59926         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59927         * modules/getcwd (Files): Remove lib/getcwd.h.
59928         (Depends-on): Add unistd.
59929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59930         (Include): Use <unistd.h> instad of getcwd.h.
59931
59932         * lib/ftruncate.c: Include <unistd.h> first.
59933         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59934         Set HAVE_FTRUNCATE.
59935         * modules/ftruncate (Depends-on): Add unistd.
59936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59937
59938         * lib/fchdir.c: Include <unistd.h> first.
59939         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59941         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59942         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59943         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59944
59945         * lib/dup2.c: Include <unistd.h> first.
59946         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59947         HAVE_DUP2.
59948         * modules/dup2 (Depends-on): Add unistd.
59949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59950
59951         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59952         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59953         REPLACE_CHOWN. Don't define chown as a macro here.
59954         * modules/chown (Depends-on): Add unistd.
59955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59956
59957         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59958         Add definition for GL_LINK_WARNING.
59959         (chown, dup2): New declarations.
59960         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59961         link warning.
59962         (ftruncate): New declaration.
59963         (getcwd): New declaration, taken from old getcwd.h.
59964         (getlogin_r): New declaration, taken from old getlogin_r.h.
59965         (readlink): New declaration.
59966         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59967         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59968         (gl_PREREQ_UNISTD): Remove macro.
59969         (gl_UNISTD_MODULE_INDICATOR): New macro.
59970         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59971         many new variables. Don't set UNISTD_H.
59972         * modules/unistd (Description): Change.
59973         (Depends-on): Add link-warning.
59974         (configure.ac): Update.
59975         (Makefile.am): Create unistd.h always. Substitute many new variables
59976         into it.
59977
59978 2007-02-18  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59981         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59982         HAVE_GETSUBOPT.
59983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59984         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59985         * lib/getsubopt.h: Remove file.
59986         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59987         (Depends-on): Add stdlib.
59988         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59989         (Includes): Use <stdlib.h> instead of getsubopt.h.
59990         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59991         Set HAVE_GETSUBOPT.
59992         * lib/getsubopt.c: Don't include getsubopt.h.
59993
59994 2007-02-18  Bruno Haible  <bruno@clisp.org>
59995
59996         * modules/fchdir (Depends-on): Add dup2.
59997
59998 2007-02-18  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/stdlib_.h: Handle glibc's special invocation convention
60001         specially.
60002
60003 2007-02-18  Bruno Haible  <bruno@clisp.org>
60004
60005         * modules/stdlib-tests: New file.
60006         * tests/test-stdlib.c: New file.
60007
60008         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60009         (Depends-on): Add stdlib.
60010         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60011         (Includes): Use <stdlib.h> instead of mkstemp.h.
60012         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60013         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60014         * lib/mkstemp.c: Don't include mkstemp.h.
60015         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60016         * lib/stdlib--.h: Don't include mkstemp.h.
60017
60018         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60019         (Depends-on): Add stdlib.
60020         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60021         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60022         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60023         HAVE_MKDTEMP.
60024         * lib/mkdtemp.c: Don't include mkdtemp.h.
60025         * lib/clean-temp.c: Don't include mkdtemp.h.
60026
60027         * modules/exit (Files): Remove lib/exit.h.
60028         (Depends-on): Add stdlib.
60029         (Makefile.am): Remove lib_SOURCES.
60030         (Include): Use <stdlib.h> instead of exit.h.
60031         * lib/argmatch.c: Don't include exit.h.
60032         * lib/execute.c: Likewise.
60033         * lib/pagealign_alloc.c: Likewise.
60034         * lib/pipe.c: Likewise.
60035         * lib/wait-process.c: Likewise.
60036         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60037         * lib/exitfail.c: Likewise.
60038         * lib/savewd.c: Likewise.
60039         * lib/xsetenv.c: Likewise.
60040
60041         * modules/stdlib: New file.
60042         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60043         and extra comments about mkstemp().
60044         * lib/exit.h: Remove file.
60045         * lib/mkdtemp.h: Remove file.
60046         * lib/mkstemp.h: Remove file.
60047         * m4/stdlib_h.m4: New file.
60048         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60049
60050 2007-02-18  Bruno Haible  <bruno@clisp.org>
60051
60052         * modules/math-tests: New file.
60053         * tests/test-math.c: New file.
60054
60055         * modules/math: New file.
60056         * modules/mathl (Files): Remove lib/mathl.h.
60057         (Depends-on): Add math.
60058         (Makefile.am): Don't mention mathl.h.
60059         (Include): Use <math.h> instead of mathl.h.
60060         * lib/math_.h: New file.
60061         * lib/mathl.h: Remove file.
60062         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60063         mathl.h.
60064         * lib/asinl.c: Likewise.
60065         * lib/atanl.c: Likewise.
60066         * lib/ceill.c: Likewise.
60067         * lib/cosl.c: Likewise.
60068         * lib/expl.c: Likewise.
60069         * lib/floorl.c: Likewise.
60070         * lib/frexpl.c: Likewise.
60071         * lib/ldexpl.c: Likewise.
60072         * lib/logl.c: Likewise.
60073         * lib/sincosl.c: Likewise.
60074         * lib/sinl.c: Likewise.
60075         * lib/sqrtl.c: Likewise.
60076         * lib/tanl.c: Likewise.
60077         * lib/trigl.c: Likewise.
60078         * m4/math_h.m4: New file.
60079         * MODULES.html.sh (Mathematics): Add math.
60080
60081 2007-02-17  Bruno Haible  <bruno@clisp.org>
60082
60083         * modules/wctype-tests: New file.
60084         * tests/test-wctype.c: New file.
60085
60086         * modules/wchar-tests: New file.
60087         * tests/test-wchar.c: New file.
60088
60089         * modules/unistd-tests: New file.
60090         * tests/test-unistd.c: New file.
60091
60092         * modules/time-tests: New file.
60093         * tests/test-time.c: New file.
60094
60095         * modules/sysexits-tests: New file.
60096         * tests/test-sysexits.c: New file.
60097
60098         * modules/sys_time-tests: New file.
60099         * tests/test-sys_time.c: New file.
60100
60101         * modules/sys_stat-tests: New file.
60102         * tests/test-sys_stat.c: New file.
60103
60104         * modules/sys_socket-tests: New file.
60105         * tests/test-sys_socket.c: New file.
60106
60107         * modules/sys_select-tests: New file.
60108         * tests/test-sys_select.c: New file.
60109
60110         * modules/string-tests: New file.
60111         * tests/test-string.c: New file.
60112
60113         * modules/stdbool-tests: New file.
60114         * tests/test-stdbool.c: New file.
60115
60116         * modules/netinet_in-tests: New file.
60117         * tests/test-netinet_in.c: New file.
60118
60119         * modules/inttypes-tests: New file.
60120         * tests/test-inttypes.c: New file.
60121
60122         * modules/fcntl-tests: New file.
60123         * tests/test-fcntl.c: New file.
60124
60125         * modules/byteswap-tests: New file.
60126         * tests/test-byteswap.c: New file.
60127
60128         * modules/arpa_inet-tests: New file.
60129         * tests/test-arpa_inet.c: New file.
60130
60131 2007-02-17  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60134         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60135         if the corresponding module is not enabled. Emit link warnings if
60136         the function is used nevertheless.
60137         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60138         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60139         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60140         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60141         * modules/inttypes (Depends-on): Add link-warning.
60142         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60143         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60144         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60145         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60146         * modules/imaxdiv (configure.ac): Likewise.
60147         * modules/strtoimax (configure.ac): Likewise.
60148         * modules/strtoumax (configure.ac): Likewise.
60149
60150 2007-02-17  Bruno Haible  <bruno@clisp.org>
60151
60152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60153         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60154         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60155         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60156
60157 2007-02-17  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/link-warning: New file.
60160         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60161         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60162         * modules/string (Depends-on): Add link-warning.
60163         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60164         string.h.
60165         * MODULES.html.sh (Support for building libraries and executables): Add
60166         link-warning.
60167
60168 2007-02-17  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60171         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60172         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60173         long lines.
60174
60175 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60176             Bruno Haible  <bruno@clisp.org>
60177
60178         * modules/tmpfile: New file.
60179         * lib/tmpfile.c: New file.
60180         * m4/tmpfile.m4: New file.
60181         * MODULES.html.sh (func_all_modules): New section "Input/output".
60182
60183 2007-02-15  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60186         (supports_delete_on_close): New function.
60187         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60188
60189 2007-02-14  Bruno Haible  <bruno@clisp.org>
60190
60191         * modules/mbspcasecmp-tests: New file.
60192         * tests/test-mbspcasecmp.sh: New file.
60193         * tests/test-mbspcasecmp.c: New file.
60194
60195         New module mbspcasecmp.
60196         * modules/mbspcasecmp: New file.
60197         * lib/mbspcasecmp.c: New file.
60198         * lib/string_.h (strncasecmp): Change warning message.
60199         (mbspcasecmp): New declaration.
60200         * m4/mbspcasecmp.m4: New file.
60201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60202         GNULIB_MBSPCASECMP.
60203         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60204         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60205
60206 2007-02-14  Bruno Haible  <bruno@clisp.org>
60207
60208         * modules/mbsncasecmp-tests: New file.
60209         * tests/test-mbsncasecmp.sh: New file.
60210         * tests/test-mbsncasecmp.c: New file.
60211
60212         New module mbsncasecmp.
60213         * modules/mbsncasecmp: New file.
60214         * lib/mbsncasecmp.c: New file.
60215         * lib/string_.h (mbsncasecmp): New declaration.
60216         * m4/mbsncasecmp.m4: New file.
60217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60218         GNULIB_MBSNCASECMP.
60219         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60220         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60221
60222 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60225         Verify that it doesn't overlap with our flags.
60226         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60227         do not have the desired effect in multibyte locales; instead, use
60228         mbscasecmp.
60229         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60230         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60231         we don't require GNU fnmatch ourselves (if our users require it, they
60232         should do so explicitly).
60233
60234         Fix regex code so it doesn't rely on strcasecmp.
60235         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60236         Otherwise, include gnulib's langinfo.h.
60237         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60238         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60239         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60240         * modules/regex (FILES): Remove m4/codeset.m4.
60241         (Depends-on): Add localcharset.  Remove strcase.
60242
60243 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60244
60245         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60246         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60247
60248 2007-02-13  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60252
60253 2007-02-12  Bruno Haible  <bruno@clisp.org>
60254
60255         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60256         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60257         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60258         time warning rather than a link error.
60259
60260 2007-02-12  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60263         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60265
60266 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60269         args, not 2.
60270
60271 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         New module 'time', so that apps can include <time.h> as per
60274         POSIX and GNU instead of separate include files like time_r.h
60275         and timegm.h.  This implementation tries out a simpler approach
60276         for replacing decls in standard include files (as compared to
60277         the string module), somewhat as an experiment.
60278
60279         * config/srclist.txt: Comment out mktime.c for now.
60280         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60281         since it doesn't apply any more.  Use generic wording instead.
60282         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60283         'time'.
60284         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60285         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60286         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60287         Don't include <sys/types.h>; no longer needed since we assume C89.
60288         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60289         * lib/strftime.c: Likewise.
60290         * lib/time_r.c: Likewise.
60291         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60292         * lib/nanosleep.c: Include <time.h> first, to check interface.
60293         * lib/strptime.c: Likewise.
60294         * lib/time_r.c: Likewise.
60295         * lib/timegm.c: Likewise.
60296         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60297         needed.
60298         * lib/timegm.c: Don't include timegm.h; no longer needed.
60299         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60300         time.h now handles any problems in that area.
60301         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60302         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60303         that time.h defines struct timespec.
60304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60305         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60306         handles that.
60307         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60308         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60309         needed.  Set REPLACE_LOCALTIME.
60310         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60311         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60312         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60313         nanosleep; time_h.m4 now does that.  Don't require
60314         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60315         module handles this now.
60316         * modules/getdate (Depends-on): Remove timespec.  Add time.
60317         * modules/nanosleep (Depends-on): Likewise.
60318         * modules/stat-time (Depends-on): Likewise.
60319         * modules/nanosleep (Include): Include time.h, not timespec.h.
60320         * modules/strptime (Files): Remove lib/strptime.h.
60321         (Depends-on): Add extensions, time.
60322         (Include): Include time.h, not strptime.h.
60323         * modules/time_r (Files): Remove lib/time_r.h.
60324         (Depends-on): Add time.
60325         (Include): Include time.h, not time_r.h.
60326         * modules/timegm: Likewise.
60327         * modules/timespec (Description): Now does timespec-related decls
60328         of our own, instead of struct timespec itself.
60329         (Depends-on): Add time; remove extensions.
60330         (Maintainer): Add self.
60331         * modules/utimecmp (Depends-on): Add time; remove timespec.
60332         * modules/utimens (Depends-on): Likewise.
60333         * modules/xnanosleep (Depends-on): Likewise.
60334
60335 2007-02-11  Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/c-strstr.c: Include allocsa.h.
60338         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60339         * lib/c-strcasestr.c: Include allocsa.h.
60340         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60341         * lib/strcasestr.c: Include allocsa.h.
60342         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60343         * lib/mbsstr.c: Include allocsa.h.
60344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60345         allocsa/freesa instead of malloc/free.
60346         * lib/mbscasestr.c: Include allocsa.h.
60347         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60348         allocsa/freesa instead of malloc/free.
60349         * modules/c-strstr (Depends-on): Add allocsa.
60350         * modules/c-strcasestr (Depends-on): Likewise.
60351         * modules/strcasestr (Depends-on): Likewise.
60352         * modules/mbsstr (Depends-on): Likewise.
60353         * modules/mbscasestr (Depends-on): Likewise.
60354
60355 2007-02-11  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60358
60359         * modules/mbsspn-tests: New file.
60360         * tests/test-mbsspn.sh: New file.
60361         * tests/test-mbsspn.c: New file.
60362
60363 2007-02-11  Bruno Haible  <bruno@clisp.org>
60364
60365         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60366
60367         * modules/mbspbrk-tests: New file.
60368         * tests/test-mbspbrk.sh: New file.
60369         * tests/test-mbspbrk.c: New file.
60370
60371 2007-02-11  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60374         unneeded cast.
60375
60376         * modules/mbscspn-tests: New file.
60377         * tests/test-mbscspn.sh: New file.
60378         * tests/test-mbscspn.c: New file.
60379
60380 2007-02-11  Bruno Haible  <bruno@clisp.org>
60381
60382         * modules/mbscasecmp-tests: New file.
60383         * tests/test-mbscasecmp.sh: New file.
60384         * tests/test-mbscasecmp.c: New file.
60385
60386 2007-02-11  Bruno Haible  <bruno@clisp.org>
60387
60388         Ensure O(n) worst-case complexity of mbscasestr.
60389         * lib/mbscasestr.c: Include stdbool.h.
60390         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60391         functions.
60392         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60393         the bookkeeping indicates that it's worth it.
60394         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60395
60396         * modules/mbscasestr-tests: New file.
60397         * tests/test-mbscasestr1.c: New file.
60398         * tests/test-mbscasestr2.sh: New file.
60399         * tests/test-mbscasestr2.c: New file.
60400         * tests/test-mbscasestr3.sh: New file.
60401         * tests/test-mbscasestr3.c: New file.
60402         * tests/test-mbscasestr4.sh: New file.
60403         * tests/test-mbscasestr4.c: New file.
60404         * m4/locale-tr.m4: New file.
60405
60406 2007-02-11  Bruno Haible  <bruno@clisp.org>
60407
60408         Ensure O(n) worst-case complexity of mbsstr.
60409         * lib/mbsstr.c: Include stdbool.h.
60410         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60411         functions.
60412         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60413         bookkeeping indicates that it's worth it.
60414         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60415
60416         * modules/mbsstr-tests: New file.
60417         * tests/test-mbsstr1.c: New file.
60418         * tests/test-mbsstr2.sh: New file.
60419         * tests/test-mbsstr2.c: New file.
60420         * tests/test-mbsstr3.sh: New file.
60421         * tests/test-mbsstr3.c: New file.
60422         * m4/locale-fr.m4: New file.
60423
60424 2007-02-11  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/mbsrchr.c (mbsrchr): Fix bug.
60427
60428         * modules/mbsrchr-tests: New file.
60429         * tests/test-mbsrchr.sh: New file.
60430         * tests/test-mbsrchr.c: New file.
60431
60432 2007-02-11  Bruno Haible  <bruno@clisp.org>
60433
60434         * lib/mbschr.c (mbschr): Fix bug.
60435
60436         * modules/mbschr-tests: New file.
60437         * tests/test-mbschr.sh: New file.
60438         * tests/test-mbschr.c: New file.
60439         * m4/locale-zh.m4: New file.
60440
60441 2007-02-11  Bruno Haible  <bruno@clisp.org>
60442
60443         Support for copying multibyte string iterators.
60444         * lib/mbiter.h: Include <string.h>.
60445         (mbiter_multi_copy): New function.
60446         (mbi_copy): New macro.
60447         * lib/mbuiter.h: Include <string.h>.
60448         (mbuiter_multi_copy): New function.
60449         (mbui_copy): New macro.
60450
60451 2007-02-11  Bruno Haible  <bruno@clisp.org>
60452
60453         New module mbslen.
60454         * modules/mbslen: New file.
60455         * lib/mbslen.c: New file.
60456         * lib/string_.h (mbslen): New declaration.
60457         * m4/mbslen.m4: New file.
60458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60459         GNULIB_MBSLEN.
60460         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60461         * MODULES.html.sh (Internationalization functions): Add mbslen.
60462
60463 2007-02-11  Bruno Haible  <bruno@clisp.org>
60464
60465         Ensure O(n) worst-case complexity of strcasestr substitute.
60466         * lib/strcasestr.c: Include stdbool.h.
60467         (knuth_morris_pratt): New function.
60468         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60469         bookkeeping indicates that it's worth it.
60470         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60471
60472         * modules/strcasestr-tests: New file.
60473         * tests/test-strcasestr.c: New file.
60474
60475 2007-02-11  Bruno Haible  <bruno@clisp.org>
60476
60477         Ensure O(n) worst-case complexity of c_strcasestr.
60478         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60479         (knuth_morris_pratt): New function.
60480         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60481         the bookkeeping indicates that it's worth it.
60482         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60483
60484         * modules/c-strcasestr-tests: New file.
60485         * tests/test-c-strcasestr.c: New file.
60486
60487 2007-02-11  Bruno Haible  <bruno@clisp.org>
60488
60489         Ensure O(n) worst-case complexity of c_strstr.
60490         * lib/c-strstr.c: Include stdbool.h, string.h.
60491         (knuth_morris_pratt): New function.
60492         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60493         bookkeeping indicates that it's worth it.
60494         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60495
60496         * lib/c-strstr.c: Complete rewrite for maintainability.
60497
60498         * modules/c-strstr-tests: New file.
60499         * tests/test-c-strstr.c: New file.
60500
60501 2007-02-11  Bruno Haible  <bruno@clisp.org>
60502
60503         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60504         5.2.1 and earlier, whereby \055 was treated just like the range
60505         delimiter '-'.
60506         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60507
60508 2007-02-08  Bruno Haible  <bruno@clisp.org>
60509
60510         * modules/regex (Depends-on): Add stdbool.
60511         Reported by Dalibor Topic <robilad@kaffe.org>.
60512
60513 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60516         Prefer returning from main to exiting from it.
60517         Remove unnecessary parens after sizeof.
60518
60519 2007-02-05  Bruno Haible  <bruno@clisp.org>
60520
60521         New module mbssep.
60522         * modules/mbssep: New file.
60523         * lib/mbssep.c: New file.
60524         * lib/string_.h (strsep): Add a conditional link warning.
60525         (mbssep): New declaration.
60526         * m4/mbssep.m4: New file.
60527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60528         GNULIB_MBSSEP.
60529         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60530         * MODULES.html.sh (Internationalization functions): Add mbssep.
60531
60532 2007-02-05  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60535         Optimize search in case of 1 delimiter.
60536
60537 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60538
60539         * lib/acl.h: Include sys/types.h before sys/acl.h.
60540
60541 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60542
60543         Merge upstream fix for glibc bugzilla #3957:
60544
60545         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60546
60547         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60548         bit for RE_HAT_LISTS_NOT_NEWLINE.
60549         (build_charclass_op): Remove bogus comment.
60550
60551 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60552
60553         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60554
60555 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60558         * lib/memmem.c [!defined _LIBC]: Include config.h.
60559
60560 2007-02-04  Bruno Haible  <bruno@clisp.org>
60561
60562         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60563         warning message.
60564
60565 2007-02-04  Bruno Haible  <bruno@clisp.org>
60566
60567         New module mbstok_r.
60568         * modules/mbstok_r: New file.
60569         * lib/mbstok_r.c: New file.
60570         * lib/string_.h (strtok_r): Change argument names to match the
60571         comments. Add a conditional link warning.
60572         (mbstok_r): New declaration.
60573         * m4/mbstok_r.m4: New file.
60574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60575         GNULIB_MBSTOK_R.
60576         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60577         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60578
60579 2007-02-04  Bruno Haible  <bruno@clisp.org>
60580
60581         New module mbsspn.
60582         * modules/mbsspn: New file.
60583         * lib/mbsspn.c: New file.
60584         * lib/string_.h (strspn): Add a conditional link warning.
60585         (mbsspn): New declaration.
60586         * m4/mbsspn.m4: New file.
60587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60588         GNULIB_MBSSPN.
60589         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60590         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60591
60592 2007-02-04  Bruno Haible  <bruno@clisp.org>
60593
60594         New module mbspbrk.
60595         * modules/mbspbrk: New file.
60596         * lib/mbspbrk.c: New file.
60597         * lib/string_.h (strpbrk): Add a conditional link warning.
60598         (mbspbrk): New declaration.
60599         * m4/mbspbrk.m4: New file.
60600         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60601         GNULIB_MBSPBRK.
60602         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60603         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60604
60605 2007-02-04  Bruno Haible  <bruno@clisp.org>
60606
60607         New module mbscspn.
60608         * modules/mbscspn: New file.
60609         * lib/mbscspn.c: New file.
60610         * lib/string_.h (strcspn): Add a conditional link warning.
60611         (mbscspn): New declaration.
60612         * m4/mbscspn.m4: New file.
60613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60614         GNULIB_MBSCSPN.
60615         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60616         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60617
60618 2007-02-04  Bruno Haible  <bruno@clisp.org>
60619
60620         New module mbscasestr, reduced goal of strcasestr.
60621         * modules/mbscasestr: New file.
60622         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60623         (mbscasestr): Renamed from strcasestr.
60624         * lib/strcasestr.c: Don't include mbuiter.h.
60625         (strcasestr): Remove support for multibyte locales.
60626         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60627         Change the conditional link warning.
60628         (mbscasestr): New declaration.
60629         * m4/mbscasestr.m4: New file.
60630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60631         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60632         REPLACE_STRCASESTR.
60633         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60635         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60636         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60637         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60638         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60639         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60640         (Depends-on): Remove mbuiter.
60641         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60642
60643 2007-02-04  Bruno Haible  <bruno@clisp.org>
60644
60645         Simplify handling of strncasecmp.
60646         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60647         the conditional link warning.
60648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60649         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60650         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60651         * modules/strcase (configure.ac): Don't invoke
60652         gl_STRING_MODULE_INDICATOR.
60653         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60654
60655 2007-02-04  Bruno Haible  <bruno@clisp.org>
60656
60657         New module mbscasecmp, reduced goal of strcasecmp.
60658         * modules/mbscasecmp: New file.
60659         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60660         (mbscasecmp): Renamed from strcasecmp.
60661         * lib/strcasecmp.c: Don't include mbuiter.h.
60662         (strcasecmp): Remove support for multibyte locales.
60663         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60664         Change the conditional link warning.
60665         (mbscasecmp): New declaration.
60666         * m4/mbscasecmp.m4: New file.
60667         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60668         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60669         REPLACE_STRCASECMP.
60670         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60672         GNULIB_MBSCASECMP.
60673         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60674         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60675         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60676         (Depends-on): Remove mbuiter.
60677         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60678
60679 2007-02-04  Bruno Haible  <bruno@clisp.org>
60680
60681         New module mbsstr. Remove module strstr.
60682         * modules/mbsstr: New file.
60683         * modules/strstr: Remove file.
60684         * lib/mbsstr.c: Renamed from lib/strstr.c.
60685         (mbsstr): Renamed from strstr.
60686         * lib/string_.h (strstr): Remove declaration. Change the conditional
60687         link warning.
60688         (mbsstr): New declaration.
60689         * m4/mbsstr.m4: New file.
60690         * m4/strstr.m4: Remove file.
60691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60692         REPLACE_STRSTR.
60693         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60694         Don't initialize GNULIB_STRSTR.
60695         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60696         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60697         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60698         (Support for systems lacking ANSI C 89): Remove strstr.
60699
60700 2007-02-04  Bruno Haible  <bruno@clisp.org>
60701
60702         New module mbsrchr.
60703         * modules/mbsrchr: New file.
60704         * lib/mbsrchr.c: New file.
60705         * lib/string_.h (strrchr): Add a conditional link warning.
60706         (mbsrchr): New declaration.
60707         * m4/mbsrchr.m4: New file.
60708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60709         GNULIB_MBSRCHR.
60710         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60711         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60712
60713 2007-02-04  Bruno Haible  <bruno@clisp.org>
60714
60715         New module mbschr.
60716         * modules/mbschr: New file.
60717         * lib/mbschr.c: New file.
60718         * lib/string_.h (strchr): Add a conditional link warning.
60719         (mbschr): New declaration.
60720         * m4/mbschr.m4: New file.
60721         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60722         GNULIB_MBSCHR.
60723         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60724         * MODULES.html.sh (Internationalization functions): Add mbschr.
60725
60726 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60729
60730         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60731
60732 2007-02-04  Bruno Haible  <bruno@clisp.org>
60733
60734         New module description section 'configure.ac-early'.
60735         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60736         (func_get_autoconf_early_snippet): New function.
60737         (func_import, func_create_testdir): Use it. Remove special cases for
60738         modules 'extensions' and 'lock'.
60739         * modules/extensions (configure.ac-early): Require
60740         gl_USE_SYSTEM_EXTENSIONS.
60741         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60742
60743 2007-02-04  Bruno Haible  <bruno@clisp.org>
60744
60745         Make use of gcj-4.3's -fsource and -ftarget option.
60746         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60747         and if so try the options -fsource and -ftarget.
60748         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60749         source_version, ftarget_option, target_version arguments.
60750         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60751         (is_envjavac_oldgcj_14_14_usable): Renamed from
60752         is_envjavac_gcj_14_14_usable.
60753         (is_envjavac_oldgcj_14_13_usable): Renamed from
60754         is_envjavac_gcj_14_13_usable.
60755         (is_gcj_present): Update.
60756         (is_gcj_43, is_gcj43_usable): New functions.
60757         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60758         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60759         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60760         try the options -fsource and -ftarget.
60761
60762 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60763
60764         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60765         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60766         larger value.
60767
60768 2007-02-03  Jim Meyering  <jim@meyering.net>
60769
60770         Give tools a better chance to allocate space for very large buffers.
60771         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60772
60773         Make pwd and readlink work also when run with an unreadable parent dir
60774         on systems with openat support.
60775         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60776         provided getcwd function, even when we have openat support.
60777         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60778
60779 2007-02-02  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60782         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60783         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60784         portability problems if one of these functions is only used on specific
60785         platforms.
60786         Reported by Paul Eggert.
60787
60788 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60791         is causing more trouble than it's curing.
60792         * lib/regex_internal.h (__mempcpy): Remove.
60793         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60794         (and make the code a tad smaller to boot).
60795         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60796
60797 2007-02-02  Jim Meyering  <jim@meyering.net>
60798
60799         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60800         section, not in the Makefile.am: one.
60801
60802 2007-02-02  Eric Blake  <ebb9@byu.net>
60803
60804         * lib/strchrnul.c: Always include config.h first.
60805
60806         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60807         gnulib strstr is not necessary here.
60808
60809 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60810
60811         * m4/socklen.m4: Fix typo.
60812
60813 2007-02-02  Eric Blake  <ebb9@byu.net>
60814
60815         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60816         * modules/netinet_in (Makefile.am): Likewise.
60817
60818 2007-02-01  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/string_.h (GL_LINK_WARNING): New macro.
60821         (strcasecmp, strstr, strcasestr): If provided by the system,
60822         conditionally define as a macro that leads to a warning instead of to
60823         an error.
60824         (strncasecmp): Conditionally define as a macro that leads to a warning.
60825
60826 2007-02-01  Karl Berry  <karl@gnu.org>
60827
60828         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60829
60830 2007-02-01  Bruno Haible  <bruno@clisp.org>
60831
60832         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60833         renamings.
60834
60835 2007-02-01  Eric Blake  <ebb9@byu.net>
60836
60837         * modules/regex (Depends-on): Revert dependence on mempcpy.
60838         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60839         module's definition of mempcpy.
60840         Reported by Paul Eggert.
60841
60842 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60845         the symbol XYZ before redefining it.  This fixes a problem with
60846         programs that don't use XYZ, when compiled on systems that define
60847         XYZ to something else.
60848
60849 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60852         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60853         writeable to group or other and (2) is intended to have a special
60854         mode bit that is set or cleared.  In such a case, the directory
60855         should be neither group- nor other-writeable until the special
60856         mode bits are right.
60857
60858 2007-01-31  Eric Blake  <ebb9@byu.net>
60859
60860         * modules/mountlist (Depends-on): Add strstr.
60861
60862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60863         bug.
60864         * modules/string (Makefile.am): Remove redundant replacement.
60865         * modules/regex (Depends-on): Add mempcpy.
60866
60867 2007-01-31  Bruno Haible  <bruno@clisp.org>
60868
60869         New module description field 'Link'.
60870         * gnulib-tool (func_usage): Document --extract-link-directive.
60871         (sed_extract_prog): Recognize 'Link' directive.
60872         (func_get_link_directive): New function.
60873         (func_import): Show summary of link directives.
60874         Handle --extract-link-directive option.
60875         * modules/acl (Link): New section.
60876         * modules/clock-time (Link): New section.
60877         * modules/euidaccess (Link): New section.
60878         * modules/gettext (Link): New section.
60879         * modules/iconv (Link): New section.
60880         * modules/lock (Link): New section.
60881         * modules/nanosleep (Link): New section.
60882         * modules/readline (Link): New section.
60883
60884 2007-01-27  Bruno Haible  <bruno@clisp.org>
60885
60886         Enforce the use of gnulib modules for unportable <string.h> functions.
60887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60888         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60889         (gl_HEADER_STRING_H_BODY): Require it.
60890         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60891         the symbol XYZ to one that gives a link error.
60892         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60893         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60894         * modules/mempcpy (configure.ac): Likewise.
60895         * modules/memrchr (configure.ac): Likewise.
60896         * modules/stpcpy (configure.ac): Likewise.
60897         * modules/stpncpy (configure.ac): Likewise.
60898         * modules/strcase (configure.ac): Likewise.
60899         * modules/strcasestr (configure.ac): Likewise.
60900         * modules/strchrnul (configure.ac): Likewise.
60901         * modules/strdup (configure.ac): Likewise.
60902         * modules/strndup (configure.ac): Likewise.
60903         * modules/strnlen (configure.ac): Likewise.
60904         * modules/strpbrk (configure.ac): Likewise.
60905         * modules/strsep (configure.ac): Likewise.
60906         * modules/strstr (configure.ac): Likewise.
60907         * modules/strtok_r (configure.ac): Likewise.
60908
60909 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60910
60911         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60912
60913 2007-01-30  Jim Meyering  <jim@meyering.net>
60914
60915         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60916
60917 2007-01-29  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60920         * lib/execute.c: Likewise.
60921         * lib/pipe.c: Likewise.
60922         * lib/printf-args.h: Likewise.
60923         * lib/printf-args.c: Likewise.
60924         * lib/printf-parse.c: Likewise.
60925         * lib/vasnprintf.c: Likewise.
60926
60927 2007-01-29  Eric Blake  <ebb9@byu.net>
60928
60929         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60930         declaration.
60931
60932 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * lib/strptime.h (strptime): Use 'restrict' for args where
60935         POSIX requires this.
60936         * lib/strptime.c (strptime): Likewise.
60937         Change license notice from LGPL to GPL, since gnulib-tool will
60938         change this as needed.
60939         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60940         defined.
60941         Include "strptime.h" first, to check interface.
60942         Do not #undef _LIBC and _NL_CURRENT.
60943         Do not include <stdlib.h>; no longer needed.
60944         Include "time_r.h" and declare ptime_locale_status
60945         only if _LIBC is not defined.
60946         (__P): Remove unused macro.
60947         (match_string): Bring back glibc version, but use it only if _LIBC
60948         is defined.
60949         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60950         Remove unnecessary assertion and abort() call.
60951         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60952         * m4/strptime.m4: Fix serial number comment.
60953         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60954         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60955         (Depends-on): Add time_r.
60956
60957 2007-01-29  Bruno Haible  <bruno@clisp.org>
60958
60959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60960         strptime.
60961         * modules/strptime (Depends-on): Add stdbool.
60962         * lib/strptime.h: Include <time.h> always. Add comments.
60963
60964 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60965
60966         * modules/strptime: New file.
60967         * lib/strptime.h: New file.
60968         * lib/strptime.c: New file.
60969         * m4/strptime.m4: New file.
60970
60971 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * MODULES.html.sh: New module mpsort.
60974         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60975
60976         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60977         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60979         All uses changed.
60980         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60981         All uses changed.
60982         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60983         to _Restrict_.
60984         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60985         the parameter matches the prototype.
60986
60987 2007-01-28  Jim Meyering  <jim@meyering.net>
60988
60989         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60990         sys/time.h here, reverting that part of the previous patch:
60991         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60992
60993 2007-01-28  Bruno Haible  <bruno@clisp.org>
60994
60995         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60996         value of $(SYS_TIME_H).
60997         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60998         remove it conditionally, too. [added by Jim Meyering]
60999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61001         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61002         GETTIMEOFDAY_REPLACEMENT to 1.
61003
61004 2007-01-28  Bruno Haible  <bruno@clisp.org>
61005
61006         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61007         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61009         Set UNISTD_H instead of UNISTD_H2.
61010         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61011
61012 2007-01-28  Bruno Haible  <bruno@clisp.org>
61013
61014         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61015         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61016
61017 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61018
61019         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61020         (func_create_testdir): Ensure C locale for `grep' and `tr'
61021         character ranges.
61022         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61023         ACLOCAL_AMFLAGS parsing state machine.
61024
61025 2007-01-27  Bruno Haible  <bruno@clisp.org>
61026
61027         * modules/unistr/base: Update.
61028
61029 2007-01-27  Bruno Haible  <bruno@clisp.org>
61030
61031         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61032         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61033         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61034         modules/unistr/u32-mbtouc.
61035         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61036         * lib/unistr.h: Update.
61037         * lib/linebreak.c: Update.
61038         * modules/unistr/u32-mbtouc: Renamed from
61039         modules/unistr/u32-mbtouc-safe.
61040         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61041         * lib/unistr.h: Update.
61042         * lib/unistr/u32-to-u8.c: Update.
61043         * lib/unistr/u32-to-u16.c: Update.
61044
61045 2007-01-27  Bruno Haible  <bruno@clisp.org>
61046
61047         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61048         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61049         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61050         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61051         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61052         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61053         modules/unistr/u16-mbtouc.
61054         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61055         * lib/unistr.h: Update.
61056         * lib/linebreak.c: Update.
61057         * modules/linebreak: Update.
61058         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61059         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61060         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61061         * modules/unistr/u16-mbtouc: Renamed from
61062         modules/unistr/u16-mbtouc-safe.
61063         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61064         * lib/unistr.h: Update.
61065         * lib/unistr/u16-to-u8.c: Update.
61066         * modules/unistr/u16-to-u8: Update.
61067         * lib/unistr/u16-to-u32.c: Update.
61068         * modules/unistr/u16-to-u32: Update.
61069
61070 2007-01-27  Bruno Haible  <bruno@clisp.org>
61071
61072         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61073         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61074         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61075         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61076         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61077         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61078         modules/unistr/u8-mbtouc.
61079         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61080         * lib/unistr.h: Update.
61081         * lib/striconveh.c: Update.
61082         * modules/striconveh: Update.
61083         * lib/linebreak.c: Update.
61084         * modules/linebreak: Update.
61085         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61086         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61087         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61088         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61089         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61090         * lib/unistr.h: Update.
61091         * lib/striconveh.c: Update.
61092         * modules/striconveh: Update.
61093         * lib/unistr/u8-to-u16.c: Update.
61094         * modules/unistr/u8-to-u16: Update.
61095         * lib/unistr/u8-to-u32.c: Update.
61096         * modules/unistr/u8-to-u32: Update.
61097
61098 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61099
61100         Sync from Libtool.
61101         * lib/argz.c: Do not include strings.h nor memory.h, include
61102         string.h unconditionally.  Patch by Simon Josefsson.
61103
61104 2007-01-27  Bruno Haible  <bruno@clisp.org>
61105
61106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61107         from gl_HEADER_STRING_H_BODY.
61108         (gl_HEADER_STRING_H_BODY): Require it.
61109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61111         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61112         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61113         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61114         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61117         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61118         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61119         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61120         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61121         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61122         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61124
61125 2007-01-27  Bruno Haible  <bruno@clisp.org>
61126
61127         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61128         check_PROGRAMS into noinst_PROGRAMS.
61129         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61130         check_PROGRAMS in this case.
61131         (func_import): Set for_test to false.
61132         (func_create_testdir): Set for_test to true.
61133
61134 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61135             Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61138         (Depends-on): Add string.
61139         (Includes): Use <string.h> instead of strcasestr.h.
61140         * modules/string (Makefile.am): Also substitute the value of
61141         REPLACE_STRCASESTR.
61142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61143         assume strcasestr is declared in <string.h> not <strings.h>. Also
61144         set REPLACE_STRCASESTR.
61145         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61146         REPLACE_STRCASESTR.
61147         * lib/strcasestr.h: Remove file.
61148         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61149         * lib/string_.h (strcasestr): New declaration.
61150
61151 2007-01-27  Bruno Haible  <bruno@clisp.org>
61152
61153         * lib/string_.h: Use 'extern'.
61154
61155 2007-01-27  Jim Meyering  <jim@meyering.net>
61156
61157         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61158         of set-but-not-used local, "q".
61159
61160         * lib/mempcpy.c: Include <config.h> before <string.h>.
61161         This fixes a compilation error on HP-UX, due to the system's
61162         "restrict"-using mempcpy prototype.
61163
61164 2007-01-26  Bruno Haible  <bruno@clisp.org>
61165
61166         Small optimization.
61167         * lib/javacomp.c: Include c-strstr.h.
61168          (is_envjavac_gcj): Use c_strstr instead of strstr.
61169         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61170
61171 2007-01-26  Bruno Haible  <bruno@clisp.org>
61172
61173         * MODULES.html.sh (Unicode string functions): Add the new modules.
61174
61175         * modules/uniconv/u32-strconv-to-locale: New file.
61176         * lib/uniconv/u32-strconv-to-locale.c: New file.
61177
61178         * modules/uniconv/u16-strconv-to-locale: New file.
61179         * lib/uniconv/u16-strconv-to-locale.c: New file.
61180
61181         * modules/uniconv/u8-strconv-to-locale: New file.
61182         * lib/uniconv/u8-strconv-to-locale.c: New file.
61183
61184         * modules/uniconv/u32-strconv-from-locale: New file.
61185         * lib/uniconv/u32-strconv-from-locale.c: New file.
61186
61187         * modules/uniconv/u16-strconv-from-locale: New file.
61188         * lib/uniconv/u16-strconv-from-locale.c: New file.
61189
61190         * modules/uniconv/u8-strconv-from-locale: New file.
61191         * lib/uniconv/u8-strconv-from-locale.c: New file.
61192
61193         * modules/uniconv/u32-strconv-to-enc: New file.
61194         * lib/uniconv/u32-strconv-to-enc.c: New file.
61195         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61196         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61197
61198         * modules/uniconv/u16-strconv-to-enc: New file.
61199         * lib/uniconv/u16-strconv-to-enc.c: New file.
61200         * lib/uniconv/u-strconv-to-enc.h: New file.
61201         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61202         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61203
61204         * modules/uniconv/u8-strconv-to-enc: New file.
61205         * lib/uniconv/u8-strconv-to-enc.c: New file.
61206         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61207         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61208
61209         * modules/uniconv/u32-strconv-from-enc: New file.
61210         * lib/uniconv/u32-strconv-from-enc.c: New file.
61211         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61212         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61213
61214         * modules/uniconv/u16-strconv-from-enc: New file.
61215         * lib/uniconv/u16-strconv-from-enc.c: New file.
61216         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61217         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61218
61219         * modules/uniconv/u8-strconv-from-enc: New file.
61220         * lib/uniconv/u8-strconv-from-enc.c: New file.
61221         * lib/uniconv/u-strconv-from-enc.h: New file.
61222         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61223         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61224
61225         * modules/uniconv/u32-conv-from-enc: New file.
61226         * lib/uniconv/u32-conv-from-enc.c: New file.
61227         * modules/uniconv/u32-conv-from-enc-tests: New file.
61228         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61229
61230         * modules/uniconv/u16-conv-from-enc: New file.
61231         * lib/uniconv/u16-conv-from-enc.c: New file.
61232         * lib/uniconv/u-conv-from-enc.h: New file.
61233         * modules/uniconv/u16-conv-from-enc-tests: New file.
61234         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61235
61236         * modules/uniconv/u8-conv-from-enc: New file.
61237         * lib/uniconv/u8-conv-from-enc.c: New file.
61238         * modules/uniconv/u8-conv-from-enc-tests: New file.
61239         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61240
61241         * modules/uniconv/base: New file.
61242         * lib/uniconv.h: New file.
61243
61244 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * doc/gnulib-tool.texi (Initial import): Update to match current
61247         behavior with strdup module.
61248         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61249         * lib/memmem.h: Remove; all uses removed.  This is now done
61250         by <string.h>.
61251         * lib/mempcpy.h: Likewise.
61252         * lib/memrchr.h: Likewise.
61253         * lib/stpcpy.h: Likewise.
61254         * lib/stpncpy.h: Likewise.
61255         * lib/strcase.h: Likewise.
61256         * lib/strchrnul.h: Likewise.
61257         * lib/strdup.h: Likewise.
61258         * lib/strndup.h: Likewise.
61259         * lib/strnlen.h: Likewise.
61260         * lib/strpbrk.h: Likewise.
61261         * lib/strsep.h: Likewise.
61262         * lib/strstr.h: Likewise.
61263         * lib/strtok_r.h: Likewise.
61264         * lib/string_.h: New file.
61265         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61266         Rely on <string.h> instead.
61267         * lib/canon-host.c: Likewise.
61268         * lib/chdir-long.c: Likewise.
61269         * lib/concatpath.c: Likewise.
61270         * lib/exclude.c: Likewise.
61271         * lib/fchdir.c: Likewise.
61272         * lib/getaddrinfo.c: Likewise.
61273         * lib/getcwd.c: Likewise.
61274         * lib/getsubopt.c: Likewise.
61275         * lib/glob.c: Likewise.
61276         * lib/hard-locale.c: Likewise.
61277         * lib/iconvme.c: Likewise.
61278         * lib/javacomp.c: Likewise.
61279         * lib/mempcpy.c: Likewise.
61280         * lib/memrchr.c: Likewise.
61281         * lib/regex_internal.h: Likewise.
61282         * lib/stpncpy.c: Likewise.
61283         * lib/strcasecmp.c: Likewise.
61284         * lib/strchrnul.c: Likewise.
61285         * lib/strdup.c: Likewise.
61286         * lib/striconv.c: Likewise.
61287         * lib/striconveh.c: Likewise.
61288         * lib/striconveha.c: Likewise.
61289         * lib/strncasecmp.c: Likewise.
61290         * lib/strndup.c: Likewise.
61291         * lib/strnlen.c: Likewise.
61292         * lib/strsep.c: Likewise.
61293         * lib/strstr.c: Likewise.
61294         * lib/strtok_r.c: Likewise.
61295         * lib/userspec.c: Likewise.
61296         * lib/w32spawn.h: Likewise.
61297         * lib/xstrndup.c: Likewise.
61298         * lib/mountlist.c (strstr): Remove decl.
61299         * m4/string_h.m4: New file.
61300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61301         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61302         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61303         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61304         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61305         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61306         Set REPLACE_STRCASECMP if necessary.
61307         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61308         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61309         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61310         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61311         HAVE_DECL_STRDUP if necessary.
61312         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61313         since gl_FUNC_STRNDUP does that now.
61314         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61315         Check for decl here...
61316         (gl_PREREQ_STRNLEN): ... not here.
61317         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61318         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61319         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61321         necessary.
61322         * modules/string: New file.
61323         * modules/memmem (Files): Remove special-purpose include file.
61324         (Depends-on): Add string.
61325         (Include): Include <string.h>, not the removed file.
61326         * modules/mempcpy: Likewise.
61327         * modules/memrchr: Likewise.
61328         * modules/stpcpy: Likewise.
61329         * modules/stpncpy: Likewise.
61330         * modules/strcase: Likewise.
61331         * modules/strchrnul: Likewise.
61332         * modules/strdup: Likewise.
61333         * modules/strndup: Likewise.
61334         * modules/strnlen: Likewise.
61335         * modules/strpbrk: Likewise.
61336         * modules/strsep: Likewise.
61337         * modules/strstr: Likewise.
61338         * modules/strtok_r: Likewise.
61339         * tests/test-dirname.c: Don't include "strdup.h", since
61340         <string.h> now suffices.
61341         * tests/test-memmem.c: Don't include "memmem.h", since
61342         <string.h> now suffices.
61343
61344 2007-01-25  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61347         *resultp is 0.
61348
61349         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61350         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61351         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61352         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61353
61354         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61355         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61356         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61357         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61358         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61359         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61360
61361 2007-01-24  Bruno Haible  <bruno@clisp.org>
61362
61363         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61365         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61366         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61367         gl_FUNC_FTS_CORE.
61368         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61369         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61370         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61371         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61372         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61373         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61374         gl_FUNC_FCHOWNAT.
61375         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61376         gl_FUNC_STRFTIME.
61377         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61378         Reported by Ralf Wildenhues.
61379
61380 2007-01-24  Bruno Haible  <bruno@clisp.org>
61381
61382         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61383         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61384         gl_GETADDRINFO.
61385         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61386         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61387         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61388
61389 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61392         Don't use 'exit'; just return from 'main'.
61393         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61394
61395         * lib/fnmatch_.h: Readjust white space and comments to match
61396         glibc, to avoid spurious diffs.
61397
61398 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61399
61400         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61401         2004-12-01 change by Jakub Jelinek, since this code won't compile
61402         if !LIBC.  Problem reported by Bob Proulx.
61403
61404 2007-01-23  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/striconveh.c: Include c-strcaseeq.h.
61407         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61408         * modules/striconveh (Depends-on): Add c-strcaseeq.
61409
61410 2007-01-23  Bruno Haible  <bruno@clisp.org>
61411
61412         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61413
61414         * modules/c-strcaseeq: New file.
61415         * lib/c-strcaseeq.h: New file.
61416
61417         * modules/streq: New file.
61418         * lib/streq.h: New file.
61419
61420 2007-01-23  Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/striconveha-tests: New file.
61423         * tests/test-striconveha.c: New file.
61424
61425         * lib/striconveha.h: Include <stdbool.h>.
61426         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61427         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61428         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61429         (mem_iconveha): New function.
61430         (str_iconveha_notranslit): Renamed from str_iconveha.
61431         (str_iconveha): New function.
61432         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61433         c-strcase.
61434
61435 2007-01-23  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61438         encodings without forgiving before trying any encoding with handler.
61439         (str_iconveha): Try all encodings without forgiving before trying any
61440         encoding with handler.
61441
61442 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         Import the following changes from libc.
61445
61446         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61447
61448         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61449
61450         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61451
61452         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61453         normal_bracket label.
61454
61455         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61456
61457         [BZ #361]
61458         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61459         to normal_bracket after fetching the next character.
61460
61461 2007-01-22  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61464         argument.
61465         * lib/striconveh.c (iconv_carefully_1): New function.
61466         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61467         argument.
61468         (str_cd_iconveh): Update.
61469         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61470         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61471         * tests/test-striconveh.c (MAGIC): New macro.
61472         (new_offsets): New function.
61473         (main): Test call with and without offsets.
61474
61475 2007-01-22  Bruno Haible  <bruno@clisp.org>
61476
61477         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61478         * modules/sys_select (Makefile.am): Likewise.
61479         * modules/sys_socket (Makefile.am): Likewise.
61480         * modules/sys_time (Makefile.am): Likewise.
61481
61482 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61483
61484         * modules/gettimeofday (License): Change from GPL to LGPL, since
61485         gettimeofday is a library function.
61486
61487 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61488
61489         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61490
61491 2007-01-21  Bruno Haible  <bruno@clisp.org>
61492
61493         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61494
61495 2007-01-21  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/striconveha: New file.
61498         * lib/striconveha.h: New file.
61499         * lib/striconveha.c: New file.
61500         * MODULES.html.sh (Internationalization functions): Add striconveha.
61501         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61502         string.
61503         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61504
61505 2007-01-21  Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61508         * lib/striconveh.c (str_iconveh): Likewise.
61509
61510 2007-01-21  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/striconveh.h (mem_iconveh): New declaration.
61513         * lib/striconveh.c (mem_iconveh): New function.
61514         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61515
61516 2007-01-21  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61519
61520         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61521         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61522         original result buffer.
61523         (str_cd_iconveh): Update.
61524         * tests/test-striconveh.c (main): Update.
61525
61526         * lib/striconv.h (mem_cd_iconv): Change specification.
61527         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61528         result buffer.
61529         (str_cd_iconv): Update.
61530         * tests/test-striconv.c (main): Update.
61531
61532 2007-01-21  Bruno Haible  <bruno@clisp.org>
61533
61534         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61535
61536 2007-01-20  Jim Meyering  <jim@meyering.net>
61537
61538         * lib/userspec.c (parse_with_separator): If a user or group string
61539         starts with "+", skip the corresponding name-to-ID look-up, since
61540         such a look-up must fail: user and group names may not include "+".
61541
61542 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61545         since we now assume the sys_time module.
61546         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61547         check for sys/time.h; no longer needed.
61548         * modules/poll (Depends-on): Depend on sys_time.
61549
61550 2007-01-18  Bruno Haible  <bruno@clisp.org>
61551
61552         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61553         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61554
61555         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61556         gettimeofday.
61557
61558         * tests/test-gettimeofday.c: Include <time.h>.
61559         (dummy): Remove variable.
61560
61561         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61562         gl_HEADER_SYS_TIME_H.
61563         (gl_HEADER_SYS_TIME_H): New macro.
61564
61565         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61566         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61568         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61569         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61570         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61571         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61572         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61573         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61574         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61575         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61576
61577         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61578         last change; it caused a compilation error when cross-compiling to
61579         Cygwin.
61580
61581 2007-01-18  Jim Meyering  <jim@meyering.net>
61582
61583         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61584         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61585         than the race-prone "test -d sys || mkdir sys".
61586         (configure.ac): Use AC_PROG_MKDIR_P.
61587         * modules/sys_select: Likewise.
61588         * modules/sys_socket: Likewise.
61589         * modules/sys_time: Likewise.
61590
61591 2007-01-18  Eric Blake  <ebb9@byu.net>
61592
61593         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61594         replace gettimeofday.
61595         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61596         name, to avoid infinite recursion.
61597
61598 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61601         module sys_time.
61602         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61603         assume timespec.h defines struct timeval.
61604         * lib/settime.c: Likewise.
61605         * lib/utimens.c: Likewise.
61606         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61607         since we now assume the gettimeofday module.
61608         * lib/tempname.c (__gen_tempname): Likewise.
61609         * lib/gettimeofday.h: Remove.
61610         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61611         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61612         Include <time.h>, for 'time()'.
61613         (localtime_buffer_addr): Also use this workaround if
61614         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61615         to simplify the uses.  All uses changed.
61616         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61617         that #undef is inside {}, and 'const' follows type name consistently.
61618         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61619         (gettimeofday): Do not use the maximum possible value for
61620         tv->tv_usec, since that might break usages other than ls.c.
61621         Instead, we'll leave ls.c alone.  This undoes today's patch
61622         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61623         we've never observed the problem but might as well keep the
61624         canary.
61625         * lib/nanosleep.c: Include timespec.h first, for interface check.
61626         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61627         now assume the sys_time module.
61628         * lib/tempname.c: Likewise.
61629         * lib/timespec.h: Likewise.
61630         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61631         needed.
61632         * lib/strftime.c: Likewise.
61633         * lib/timespec.h: Likewise.
61634         * lib/posixtm.c: Include posixtm.h first, for interface check.
61635         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61636         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61637         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61638         * lib/sys_time_.h: New file.
61639         * lib/timespec.h (struct timespec): Use long int, not long.
61640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61641         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61642         Remove obsolescent call to AC_HEADER_TIME.
61643         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61645         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61646         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61647         Likewise.
61648         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61649         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61651         into the sys_time module.  Check for gettimeofday just once.
61652         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61653         for gettimeofday signature to just check the signature.  Merely
61654         compile it, since linking doesn't test signature.  Improve test for
61655         whether gettimeofday.o is actually needed.
61656         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61657         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61658         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61659         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61660         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61661         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61662         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61663         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61664         than worrying about sys/time.h.
61665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61666         Don't bother worrying about TIME_WITH_SYS_TIME.
61667         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61668         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61669         * m4/sys_time_h.m4: New file.
61670         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61671         Don't include sys/time.h.  Return from main rather than exiting.
61672         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61673         all uses changed.
61674         * modules/gethrxtime (Depends-on): Add sys_time.
61675         * modules/gettime (Depends-on): Likewise.
61676         * modules/gettimeofday (Depends-on): Likewise.
61677         * modules/nanosleep (Depends-on): Likewise.
61678         * modules/settime (Depends-on): Likewise.
61679         * modules/tempname (Depends-on): Likewise.
61680         * modules/utimens (Depends-on): Likewise.
61681         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61682         (Include): Change back to <sys/time.h>.
61683         (Maintainer): Add self.
61684         * modules/sys_time: New file.
61685         * modules/tempname (Depends-on): Add gettimeofday.
61686         * tests/test-gettimeofday.c: Include <sys/time.h>
61687         rather than gettimeofday.h.
61688
61689 2007-01-17  Bruno Haible  <bruno@clisp.org>
61690
61691         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61692         the license default to GPL.
61693         (func_create_testdir): Don't complain if a module is LGPL and its
61694         tests module depends on GPLed modules.
61695
61696 2007-01-17  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/gettimeofday.c (gettimeofday): Add code for the case
61699         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61700         maximum possible value for tv->tv_usec, rather than the minimum one.
61701
61702 2005-10-08  Martin Lambers  <marlam@marlam.de>
61703 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61704 2007-01-16  Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61707         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61708         gl_FUNC_GETTIMEOFDAY.
61709         (Include): Add gettimeofday.h.
61710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61711         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61712         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61713         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61714         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61715         * lib/gettimeofday.h: New file.
61716         * lib/gettimeofday.c: Include <sys/timeb.h>.
61717         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61718         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61719         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61720         fall back on time().
61721
61722         * tests/test-gettimeofday.c: New file.
61723         * modules/gettimeofday-tests: New file.
61724
61725 2007-01-16  Eric Blake  <ebb9@byu.net>
61726
61727         * modules/fnmatch (Depends-on): Depend on wchar.
61728         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61729         * m4/fnmatch.m4: Likewise.
61730         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61731         * m4/mbchar.m4: Likewise.
61732         * modules/mbswidth (Depends-on): Depend on wchar.
61733         * lib/mbswidth.c: Assume <wchar.h>.
61734         * m4/mbswidth.m4: Likewise.
61735         * modules/quotearg (Depends-on): Depend on wchar.
61736         * lib/quotearg.c: Assume <wchar.h>.
61737         * m4/quotearg.m4: Likewise.
61738         * modules/regex (Depends-on): Depend on wchar.
61739         * lib/regex_internal.h: Assume <wchar.h>.
61740         * m4/regex.m4: Likewise.
61741         * modules/stdint (Depends-on): Depend on wchar.
61742         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61743         * m4/stdint.m4: Likewise.
61744         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61745         * modules/strftime (Depends-on): Depend on wchar.
61746         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61747         * modules/strtol (Depends-on): Depend on wchar.
61748         * lib/strtol.c: Assume <wchar.h>.
61749         * modules/wcwidth (Depends-on): Depend on wchar.
61750         * lib/wcwidth.h: Assume <wchar.h>.
61751         * m4/wcwidth.m4: Likewise.
61752
61753 2007-01-16  Bruno Haible  <bruno@clisp.org>
61754
61755         * modules/csharpexec-script: New, created from...
61756         * modules/csharpexec: ... this.
61757
61758 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61759
61760         * modules/javaexec-script: New, created from...
61761         * modules/javaexec: ... this.
61762
61763 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61764
61765         * modules/poll (Dependencies): Add sys_select.
61766
61767 2007-01-15  Jim Meyering  <jim@meyering.net>
61768
61769         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61770         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61771         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61772         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61773
61774 2007-01-15  Bruno Haible  <bruno@clisp.org>
61775
61776         * modules/striconveh: New file.
61777         * lib/striconveh.h: New file.
61778         * lib/striconveh.c: New file.
61779         * MODULES.html.sh (Internationalization functions): Add striconveh.
61780
61781         * modules/striconveh-tests: New file.
61782         * tests/test-striconveh.c: New file.
61783
61784 2007-01-15  Bruno Haible  <bruno@clisp.org>
61785
61786         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61787         not from GNU libiconv or GNU libc.
61788
61789 2007-01-15  Bruno Haible  <bruno@clisp.org>
61790
61791         * doc/gnulib-intro.texi (Copyright): Explain the different license
61792         terms for module descriptions, autoconf macros, tests, documentation.
61793
61794 2007-01-14  Bruno Haible  <bruno@clisp.org>
61795
61796         * modules/striconv-tests: New file.
61797         * tests/test-striconv.c: New file.
61798
61799 2007-01-14  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/iconv-tests: New file.
61802         * tests/test-iconv.c: New file.
61803
61804 2007-01-14  Bruno Haible  <bruno@clisp.org>
61805
61806         * gnulib-tool (func_get_license): For test modules, use the license of
61807         the main module.
61808
61809 2007-01-14  Bruno Haible  <bruno@clisp.org>
61810
61811         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61812         if iconv is found to exist.
61813
61814 2007-01-14  Bruno Haible  <bruno@clisp.org>
61815
61816         * modules/c-ctype-tests: New file.
61817         * tests/test-c-ctype.c: New file.
61818
61819 2007-01-14  Bruno Haible  <bruno@clisp.org>
61820
61821         * modules/binary-io-tests: New file.
61822         * tests/test-binary-io.sh: New file.
61823         * tests/test-binary-io.c: New file.
61824
61825 2007-01-14  Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/array-oset-tests: New file.
61828         * tests/test-array_oset.c: New file.
61829
61830 2007-01-14  Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/array-list-tests: New file.
61833         * tests/test-array_list.c: New file.
61834
61835 2007-01-14  Bruno Haible  <bruno@clisp.org>
61836
61837         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61838         and make.
61839         Reported by Simon Josefsson in
61840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61841
61842 2007-01-14  Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/allocsa-tests: New file.
61845         * tests/test-allocsa.c: New file.
61846
61847 2007-01-14  Bruno Haible  <bruno@clisp.org>
61848
61849         * modules/fchdir (Depends-on): Add absolute-header.
61850         * modules/unistd (Depends-on): Likewise.
61851
61852 2006-12-30  Bruno Haible  <bruno@clisp.org>
61853
61854         * modules/fchdir: New file.
61855         * modules/unistd (Files): Add lib/unistd_.h.
61856         (Makefile.am): Generate unistd.h from unistd_.h.
61857         * lib/fchdir.c: New file.
61858         * lib/dirent_.h: New file.
61859         * lib/unistd_.h: New file.
61860         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61861         * m4/fchdir.m4: New file.
61862         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61863         (gl_HEADER_UNISTD): Invoke it.
61864         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61865         function.
61866         * lib/backupfile.c (opendir, closedir): Undefine.
61867         * lib/chown.c (open, close): Undefine.
61868         * lib/clean-temp.c (open, close): Undefine.
61869         * lib/copy-file.c (open, close): Undefine.
61870         * lib/execute.c (open, close): Undefine.
61871         * lib/fsusage.c (open, close): Undefine.
61872         * lib/gc-gnulib.c (open, close): Undefine.
61873         * lib/getcwd.c (opendir, closedir): Undefine.
61874         * lib/glob.c (opendir, closedir): Undefine.
61875         * lib/javacomp.c (open, close): Undefine.
61876         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61877         * lib/openat-proc.c (open, close): Undefine.
61878         * lib/pagealign_alloc.c (open, close): Undefine.
61879         * lib/pipe.c (open, close): Undefine.
61880         * lib/progreloc.c (open, close): Undefine.
61881         * lib/savedir.c (opendir, closedir): Undefine.
61882         * lib/utime.c (open, close): Undefine.
61883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61884
61885 2007-01-10  Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61888
61889 2007-01-12  Eric Blake  <ebb9@byu.net>
61890
61891         Provide a robust <wchar.h>.  Further simplifications are now
61892         possible in other modules, but not included here.
61893         * modules/wchar: New module.
61894         * m4/wchar.m4: New file.
61895         * lib/wchar_.h: Likewise.
61896         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61897         of the new module.
61898         * MODULES.html.sh (Extended multibyte and wide character utilities):
61899         New section.
61900
61901 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61904         to a reasonable default for memory allocation.
61905         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61906         file system that reports garbage st_size values for symlinks.
61907         Problem reported by Liyang Hu.
61908
61909 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61910
61911         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61912         Emacs .#* auto-save files).
61913
61914 2007-01-11  Bruno Haible  <bruno@clisp.org>
61915
61916         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61917         directory.
61918
61919 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         Use @...@ consistently in lib/wctype_.h.
61922         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61923         on it being set to 1 or 0.
61924         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61925         go back to AC_SUBSTing it.
61926         * modules/wctype (Makefile.am): Undo previous change.
61927
61928 2007-01-10  Eric Blake  <ebb9@byu.net>
61929
61930         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61931         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61932         * modules/wctype (Makefile.am): Likewise.
61933         Reported by Chris McGuire.
61934
61935 2007-01-10  Jim Meyering  <jim@meyering.net>
61936
61937         fts.c: a small readability/maintainability improvement
61938         * lib/fts.c (fts_read): Make this code slightly more readable and
61939         maintainable by hoisting the "sp->fts_cur = p" assignments to
61940         immediately follow the statements that set P.  Derived from
61941         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61942
61943 2007-01-10  Eric Blake  <ebb9@byu.net>
61944
61945         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61946         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61948         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61949         Reported by Chris McGuire.
61950
61951 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61952
61953         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61954         in sed script.
61955
61956 2007-01-09  Bruno Haible  <bruno@clisp.org>
61957
61958         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61959         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61960         variables.
61961         (func_module): Use them.
61962
61963 2007-01-09  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/unistr/base: New file.
61966         * lib/unistr.h: New file.
61967
61968         * modules/unistr/u8-to-u16: New file.
61969         * lib/unistr/u8-to-u16.c: New file.
61970
61971         * modules/unistr/u8-to-u32: New file.
61972         * lib/unistr/u8-to-u32.c: New file.
61973
61974         * modules/unistr/u16-to-u8: New file.
61975         * lib/unistr/u16-to-u8.c: New file.
61976
61977         * modules/unistr/u16-to-u32: New file.
61978         * lib/unistr/u16-to-u32.c: New file.
61979
61980         * modules/unistr/u32-to-u8: New file.
61981         * lib/unistr/u32-to-u8.c: New file.
61982
61983         * modules/unistr/u32-to-u16: New file.
61984         * lib/unistr/u32-to-u16.c: New file.
61985
61986         * modules/unistr/u8-check: New file.
61987         * modules/unistr/u16-check: New file.
61988         * modules/unistr/u32-check: New file.
61989         * lib/unistr/u8-check.c: New file.
61990         * lib/unistr/u16-check.c: New file.
61991         * lib/unistr/u32-check.c: New file.
61992
61993         * modules/unistr/u8-chr: New file.
61994         * modules/unistr/u16-chr: New file.
61995         * modules/unistr/u32-chr: New file.
61996         * lib/unistr/u8-chr.c: New file.
61997         * lib/unistr/u16-chr.c: New file.
61998         * lib/unistr/u32-chr.c: New file.
61999
62000         * modules/unistr/u8-cmp: New file.
62001         * modules/unistr/u16-cmp: New file.
62002         * modules/unistr/u32-cmp: New file.
62003         * lib/unistr/u8-cmp.c: New file.
62004         * lib/unistr/u16-cmp.c: New file.
62005         * lib/unistr/u32-cmp.c: New file.
62006
62007         * modules/unistr/u8-cpy: New file.
62008         * modules/unistr/u16-cpy: New file.
62009         * modules/unistr/u32-cpy: New file.
62010         * lib/unistr/u8-cpy.c: New file.
62011         * lib/unistr/u16-cpy.c: New file.
62012         * lib/unistr/u32-cpy.c: New file.
62013         * lib/unistr/u-cpy.h: New file.
62014
62015         * modules/unistr/u8-cpy-alloc: New file.
62016         * modules/unistr/u16-cpy-alloc: New file.
62017         * modules/unistr/u32-cpy-alloc: New file.
62018         * lib/unistr/u8-cpy-alloc.c: New file.
62019         * lib/unistr/u16-cpy-alloc.c: New file.
62020         * lib/unistr/u32-cpy-alloc.c: New file.
62021         * lib/unistr/u-cpy-alloc.h: New file.
62022
62023         * modules/unistr/u8-endswith: New file.
62024         * modules/unistr/u16-endswith: New file.
62025         * modules/unistr/u32-endswith: New file.
62026         * lib/unistr/u8-endswith.c: New file.
62027         * lib/unistr/u16-endswith.c: New file.
62028         * lib/unistr/u32-endswith.c: New file.
62029         * lib/unistr/u-endswith.h: New file.
62030
62031         * modules/unistr/u8-mblen: New file.
62032         * modules/unistr/u16-mblen: New file.
62033         * modules/unistr/u32-mblen: New file.
62034         * lib/unistr/u8-mblen.c: New file.
62035         * lib/unistr/u16-mblen.c: New file.
62036         * lib/unistr/u32-mblen.c: New file.
62037
62038         * modules/unistr/u8-mbtouc: New file.
62039         * modules/unistr/u16-mbtouc: New file.
62040         * modules/unistr/u32-mbtouc: New file.
62041         * lib/unistr/u8-mbtouc.c: New file.
62042         * lib/unistr/u16-mbtouc.c: New file.
62043         * lib/unistr/u32-mbtouc.c: New file.
62044
62045         * modules/unistr/u8-mbtouc-safe: New file.
62046         * modules/unistr/u16-mbtouc-safe: New file.
62047         * modules/unistr/u32-mbtouc-safe: New file.
62048         * lib/unistr/u8-mbtouc-safe.c: New file.
62049         * lib/unistr/u16-mbtouc-safe.c: New file.
62050         * lib/unistr/u32-mbtouc-safe.c: New file.
62051
62052         * modules/unistr/u8-move: New file.
62053         * modules/unistr/u16-move: New file.
62054         * modules/unistr/u32-move: New file.
62055         * lib/unistr/u8-move.c: New file.
62056         * lib/unistr/u16-move.c: New file.
62057         * lib/unistr/u32-move.c: New file.
62058         * lib/unistr/u-move.h: New file.
62059
62060         * modules/unistr/u8-next: New file.
62061         * modules/unistr/u16-next: New file.
62062         * modules/unistr/u32-next: New file.
62063         * lib/unistr/u8-next.c: New file.
62064         * lib/unistr/u16-next.c: New file.
62065         * lib/unistr/u32-next.c: New file.
62066
62067         * modules/unistr/u8-prev: New file.
62068         * modules/unistr/u16-prev: New file.
62069         * modules/unistr/u32-prev: New file.
62070         * lib/unistr/u8-prev.c: New file.
62071         * lib/unistr/u16-prev.c: New file.
62072         * lib/unistr/u32-prev.c: New file.
62073
62074         * modules/unistr/u8-set: New file.
62075         * modules/unistr/u16-set: New file.
62076         * modules/unistr/u32-set: New file.
62077         * lib/unistr/u8-set.c: New file.
62078         * lib/unistr/u16-set.c: New file.
62079         * lib/unistr/u32-set.c: New file.
62080         * lib/unistr/u-set.h: New file.
62081
62082         * modules/unistr/u8-startswith: New file.
62083         * modules/unistr/u16-startswith: New file.
62084         * modules/unistr/u32-startswith: New file.
62085         * lib/unistr/u8-startswith.c: New file.
62086         * lib/unistr/u16-startswith.c: New file.
62087         * lib/unistr/u32-startswith.c: New file.
62088         * lib/unistr/u-startswith.h: New file.
62089
62090         * modules/unistr/u8-stpcpy: New file.
62091         * modules/unistr/u16-stpcpy: New file.
62092         * modules/unistr/u32-stpcpy: New file.
62093         * lib/unistr/u8-stpcpy.c: New file.
62094         * lib/unistr/u16-stpcpy.c: New file.
62095         * lib/unistr/u32-stpcpy.c: New file.
62096         * lib/unistr/u-stpcpy.h: New file.
62097
62098         * modules/unistr/u8-stpncpy: New file.
62099         * modules/unistr/u16-stpncpy: New file.
62100         * modules/unistr/u32-stpncpy: New file.
62101         * lib/unistr/u8-stpncpy.c: New file.
62102         * lib/unistr/u16-stpncpy.c: New file.
62103         * lib/unistr/u32-stpncpy.c: New file.
62104         * lib/unistr/u-stpncpy.h: New file.
62105
62106         * modules/unistr/u8-strcat: New file.
62107         * modules/unistr/u16-strcat: New file.
62108         * modules/unistr/u32-strcat: New file.
62109         * lib/unistr/u8-strcat.c: New file.
62110         * lib/unistr/u16-strcat.c: New file.
62111         * lib/unistr/u32-strcat.c: New file.
62112         * lib/unistr/u-strcat.h: New file.
62113
62114         * modules/unistr/u8-strchr: New file.
62115         * modules/unistr/u16-strchr: New file.
62116         * modules/unistr/u32-strchr: New file.
62117         * lib/unistr/u8-strchr.c: New file.
62118         * lib/unistr/u16-strchr.c: New file.
62119         * lib/unistr/u32-strchr.c: New file.
62120
62121         * modules/unistr/u8-strcmp: New file.
62122         * modules/unistr/u16-strcmp: New file.
62123         * modules/unistr/u32-strcmp: New file.
62124         * lib/unistr/u8-strcmp.c: New file.
62125         * lib/unistr/u16-strcmp.c: New file.
62126         * lib/unistr/u32-strcmp.c: New file.
62127
62128         * modules/unistr/u8-strcpy: New file.
62129         * modules/unistr/u16-strcpy: New file.
62130         * modules/unistr/u32-strcpy: New file.
62131         * lib/unistr/u8-strcpy.c: New file.
62132         * lib/unistr/u16-strcpy.c: New file.
62133         * lib/unistr/u32-strcpy.c: New file.
62134         * lib/unistr/u-strcpy.h: New file.
62135
62136         * modules/unistr/u8-strcspn: New file.
62137         * modules/unistr/u16-strcspn: New file.
62138         * modules/unistr/u32-strcspn: New file.
62139         * lib/unistr/u8-strcspn.c: New file.
62140         * lib/unistr/u16-strcspn.c: New file.
62141         * lib/unistr/u32-strcspn.c: New file.
62142         * lib/unistr/u-strcspn.h: New file.
62143
62144         * modules/unistr/u8-strdup: New file.
62145         * modules/unistr/u16-strdup: New file.
62146         * modules/unistr/u32-strdup: New file.
62147         * lib/unistr/u8-strdup.c: New file.
62148         * lib/unistr/u16-strdup.c: New file.
62149         * lib/unistr/u32-strdup.c: New file.
62150         * lib/unistr/u-strdup.h: New file.
62151
62152         * modules/unistr/u8-strlen: New file.
62153         * modules/unistr/u16-strlen: New file.
62154         * modules/unistr/u32-strlen: New file.
62155         * lib/unistr/u8-strlen.c: New file.
62156         * lib/unistr/u16-strlen.c: New file.
62157         * lib/unistr/u32-strlen.c: New file.
62158         * lib/unistr/u-strlen.h: New file.
62159
62160         * modules/unistr/u8-strmblen: New file.
62161         * modules/unistr/u16-strmblen: New file.
62162         * modules/unistr/u32-strmblen: New file.
62163         * lib/unistr/u8-strmblen.c: New file.
62164         * lib/unistr/u16-strmblen.c: New file.
62165         * lib/unistr/u32-strmblen.c: New file.
62166
62167         * modules/unistr/u8-strmbtouc: New file.
62168         * modules/unistr/u16-strmbtouc: New file.
62169         * modules/unistr/u32-strmbtouc: New file.
62170         * lib/unistr/u8-strmbtouc.c: New file.
62171         * lib/unistr/u16-strmbtouc.c: New file.
62172         * lib/unistr/u32-strmbtouc.c: New file.
62173
62174         * modules/unistr/u8-strncat: New file.
62175         * modules/unistr/u16-strncat: New file.
62176         * modules/unistr/u32-strncat: New file.
62177         * lib/unistr/u8-strncat.c: New file.
62178         * lib/unistr/u16-strncat.c: New file.
62179         * lib/unistr/u32-strncat.c: New file.
62180         * lib/unistr/u-strncat.h: New file.
62181
62182         * modules/unistr/u8-strncmp: New file.
62183         * modules/unistr/u16-strncmp: New file.
62184         * modules/unistr/u32-strncmp: New file.
62185         * lib/unistr/u8-strncmp.c: New file.
62186         * lib/unistr/u16-strncmp.c: New file.
62187         * lib/unistr/u32-strncmp.c: New file.
62188
62189         * modules/unistr/u8-strncpy: New file.
62190         * modules/unistr/u16-strncpy: New file.
62191         * modules/unistr/u32-strncpy: New file.
62192         * lib/unistr/u8-strncpy.c: New file.
62193         * lib/unistr/u16-strncpy.c: New file.
62194         * lib/unistr/u32-strncpy.c: New file.
62195         * lib/unistr/u-strncpy.h: New file.
62196
62197         * modules/unistr/u8-strnlen: New file.
62198         * modules/unistr/u16-strnlen: New file.
62199         * modules/unistr/u32-strnlen: New file.
62200         * lib/unistr/u8-strnlen.c: New file.
62201         * lib/unistr/u16-strnlen.c: New file.
62202         * lib/unistr/u32-strnlen.c: New file.
62203         * lib/unistr/u-strnlen.h: New file.
62204
62205         * modules/unistr/u8-strpbrk: New file.
62206         * modules/unistr/u16-strpbrk: New file.
62207         * modules/unistr/u32-strpbrk: New file.
62208         * lib/unistr/u8-strpbrk.c: New file.
62209         * lib/unistr/u16-strpbrk.c: New file.
62210         * lib/unistr/u32-strpbrk.c: New file.
62211         * lib/unistr/u-strpbrk.h: New file.
62212
62213         * modules/unistr/u8-strrchr: New file.
62214         * modules/unistr/u16-strrchr: New file.
62215         * modules/unistr/u32-strrchr: New file.
62216         * lib/unistr/u8-strrchr.c: New file.
62217         * lib/unistr/u16-strrchr.c: New file.
62218         * lib/unistr/u32-strrchr.c: New file.
62219
62220         * modules/unistr/u8-strspn: New file.
62221         * modules/unistr/u16-strspn: New file.
62222         * modules/unistr/u32-strspn: New file.
62223         * lib/unistr/u8-strspn.c: New file.
62224         * lib/unistr/u16-strspn.c: New file.
62225         * lib/unistr/u32-strspn.c: New file.
62226         * lib/unistr/u-strspn.h: New file.
62227
62228         * modules/unistr/u8-strstr: New file.
62229         * modules/unistr/u16-strstr: New file.
62230         * modules/unistr/u32-strstr: New file.
62231         * lib/unistr/u8-strstr.c: New file.
62232         * lib/unistr/u16-strstr.c: New file.
62233         * lib/unistr/u32-strstr.c: New file.
62234         * lib/unistr/u-strstr.h: New file.
62235
62236         * modules/unistr/u8-strtok: New file.
62237         * modules/unistr/u16-strtok: New file.
62238         * modules/unistr/u32-strtok: New file.
62239         * lib/unistr/u8-strtok.c: New file.
62240         * lib/unistr/u16-strtok.c: New file.
62241         * lib/unistr/u32-strtok.c: New file.
62242         * lib/unistr/u-strtok.h: New file.
62243
62244         * modules/unistr/u8-uctomb: New file.
62245         * modules/unistr/u16-uctomb: New file.
62246         * modules/unistr/u32-uctomb: New file.
62247         * lib/unistr/u8-uctomb.c: New file.
62248         * lib/unistr/u16-uctomb.c: New file.
62249         * lib/unistr/u32-uctomb.c: New file.
62250
62251         * MODULES.html.sh (Unicode string functions): Add the new modules.
62252
62253 2007-01-08  Bruno Haible  <bruno@clisp.org>
62254
62255         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62256         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62257         subdirectories.
62258
62259 2007-01-08  Karl Berry  <karl@gnu.org>
62260
62261         * doc/error.texi: mention that main() fns must set program_name
62262         when progname is used.
62263
62264 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62267         WCTYPE_H is empty, for the benefit of builds from non-distclean
62268         directories.  Problem reported by Eric Blake in
62269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62270
62271 2007-01-08  Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62274         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62275         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62276         PROVIDE_CANONICALIZE_FILENAME_MODE.
62277         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62278
62279 2007-01-08  Bruno Haible  <bruno@clisp.org>
62280
62281         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62282         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62283         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62284         * lib/fts.c: Likewise.
62285         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62286
62287 2006-12-25  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/utf8-ucs4-safe: New file.
62290         * lib/utf8-ucs4-safe.h: New file.
62291         * lib/unistr/utf8-ucs4-safe.c: New file.
62292
62293         * modules/utf16-ucs4-safe: New file.
62294         * lib/utf16-ucs4-safe.h: New file.
62295         * lib/unistr/utf16-ucs4-safe.c: New file.
62296
62297         * MODULES.html.sh (Unicode string functions): Add the new modules.
62298
62299 2007-01-08  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62302         (Depends-on): Add unitypes.
62303         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62304         (u8_mbtouc_aux): Move out to separate file.
62305         (u8_mbtouc): Use ucs4_t, uint8_t types.
62306         * lib/unistr/utf8-ucs4.c: New file.
62307
62308         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62309         (Depends-on): Add unitypes.
62310         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62311         (u16_mbtouc_aux): Move out to separate file.
62312         (u16_mbtouc): Use ucs4_t, uint16_t types.
62313         * lib/unistr/utf16-ucs4.c: New file.
62314
62315         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62316         (Depends-on): Add unitypes.
62317         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62318         (u8_uctomb_aux): Move out to separate file.
62319         (u8_uctomb): Use ucs4_t, uint8_t types.
62320         * lib/unistr/ucs4-utf8.c: New file.
62321
62322         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62323         (Depends-on): Add unitypes.
62324         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62325         (u16_uctomb_aux): Move out to separate file.
62326         (u16_uctomb): Use ucs4_t, uint16_t types.
62327         * lib/unistr/ucs4-utf16.c: New file.
62328
62329 2006-12-25  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/unitypes: New file.
62332         * lib/unitypes.h: New file.
62333         * MODULES.html.sh (func_all_modules): New section "Unicode string
62334         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62335         this section. Add unitypes.
62336
62337 2007-01-08  Bruno Haible  <bruno@clisp.org>
62338
62339         Avoid variable names that conflict with those from libtool.
62340         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62341         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62342         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62343         library_names_spec to acl_library_names_spec, hardcode_* to
62344         acl_hardcode_*.
62345         Reported by Ralf Wildenhues.
62346
62347 2007-01-08  Bruno Haible  <bruno@clisp.org>
62348
62349         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62350         definition.
62351         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62352         definition.
62353         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62354         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62355         definition.
62356         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62357         definition.
62358         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62359         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62360         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62361         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62362         definition.
62363         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62364         definition.
62365         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62366         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62367         GC_USE_<algorithm>.
62368         * lib/gc-libgcrypt.c: Likewise.
62369         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62370         * modules/gc-arctwo (configure.ac): Likewise.
62371         * modules/gc-des (configure.ac): Likewise.
62372         * modules/gc-hmac-md5 (configure.ac): Likewise.
62373         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62374         * modules/gc-md2 (configure.ac): Likewise.
62375         * modules/gc-md4 (configure.ac): Likewise.
62376         * modules/gc-md5 (configure.ac): Likewise.
62377         * modules/gc-random (configure.ac): Likewise.
62378         * modules/gc-rijndael (configure.ac): Likewise.
62379         * modules/gc-sha1 (configure.ac): Likewise.
62380
62381 2007-01-08  Bruno Haible  <bruno@clisp.org>
62382
62383         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62384         macro definition.
62385         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62386         definition.
62387         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62388         definition.
62389         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62390         * modules/fcntl-safer (configure.ac): Likewise.
62391         * modules/fopen-safer (configure.ac): Likewise.
62392         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62393         GNULIB_FWRITEERROR macro definition.
62394
62395 2007-01-08  Bruno Haible  <bruno@clisp.org>
62396
62397         * m4/gnulib-common.m4: New file.
62398         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62399         (func_get_filelist): Add m4/gnulib-common.m4.
62400
62401 2007-01-08  Bruno Haible  <bruno@clisp.org>
62402
62403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62404         command.
62405
62406 2007-01-08  Jim Meyering  <jim@meyering.net>
62407
62408         Use a more robust test for a "can't happen" condition.
62409         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62410         narrowed the st_size value.  Presuming the "can't happen" condition
62411         is true, that narrowing could conceivably convert an invalid st_size
62412         value into a valid one.  Instead, use a change based on Matthew
62413         Woehlke's original patch.
62414
62415         Slight readability improvement: use an assert-like macro
62416         in place of literal "abort ()" uses.
62417         * lib/fts.c (fts_assert): Define.
62418         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62419         Use this macro instead of a bare 'abort'.
62420
62421 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62424         simply work around them.
62425         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62426         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62427         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62428         declaring.
62429         Don't bother to define as macros, since the standard doesn't require it.
62430         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62431         longer worry about IRIX 5.3.
62432         (HAVE_WCTYPE_CTMP_BUG): Remove.
62433
62434 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62437         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62438         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62439         Problems reported by Georg Schwarz for IRIX 5.3.
62440
62441         * gnulib-tool (autoconf_minversion): Take the maximum version number
62442         found, not the minimum.  Problem reported by James Youngman.
62443
62444 2007-01-03  Karl Berry  <karl@gnu.org>
62445
62446         * doc/error.texi: new file, explaining interaction with progname.
62447         * doc/gnulib.texi: include it.  Update copyright.
62448
62449 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62450
62451         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62452         AC_CANONICAL_HOST, to improve autobuild outputs.
62453
62454 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62455             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62456
62457         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62458         sockets, server sockets, and other file descriptors.  Count errors
62459         to compute the return value.  Reorder the code a bit to be easier
62460         to follow.  Don't set event bits that were not requested (except
62461         POLLERR and POLLHUP).
62462
62463 2007-01-01  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62466
62467 2007-01-03  Jim Meyering  <jim@meyering.net>
62468
62469         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62470
62471 2007-01-02  Bruno Haible  <bruno@clisp.org>
62472
62473         * modules/settime (Include): Require timespec.h.
62474         * modules/nanosleep (Include): Likewise.
62475
62476 2007-01-01  Bruno Haible  <bruno@clisp.org>
62477
62478         * gnulib-tool (func_emit_copyright_notice): Bump year.
62479         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62480
62481 2007-01-01  Bruno Haible  <bruno@clisp.org>
62482
62483         Improve support for OpenBSD.
62484         * build-aux/config.rpath (libname_spec): Export.
62485         (library_names_spec): New variable. Export.
62486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62487         library_names_spec from the config.rpath output. Locate shared library
62488         through the name pattern in library_names_spec.
62489
62490 2007-01-01  Eric Blake  <ebb9@byu.net>
62491
62492         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62493
62494 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62497         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62498         assume the C locale, and avoid an "eval" that could cause trouble.
62499         Problem with SORT reported by Bob Proulx.
62500
62501         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62502         Define.  Trivial patch from Henning Nielsen Lund, originally
62503         sent to bug-grep@gnu.org today.
62504
62505 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62508         struct stat.  Problem reported by Henning Nielsen Lund.
62509         * lib/acl.c: Include acl.h first, to check interface.  Don't
62510         bother to include sys/types.h and sys/stat.h again.
62511
62512 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         Import the following change from libc; problem reported by
62515         Sven Verdoolaege.
62516
62517         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62518
62519         [BZ #1373]
62520         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62521
62522 2006-12-28  Jim Meyering  <jim@meyering.net>
62523
62524         * build-aux/announce-gen: Do not assume that the package
62525         builds any of tar.gz, tar.bz2, and .xdelta files.
62526         Suggestion from Simon Josefsson.
62527
62528 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62529
62530         * modules/announce-gen: New file.
62531
62532 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62535         handles its gotchas now.
62536         * lib/mbswidth.c: Likewise.
62537         * lib/wcwidth.h: Likewise.
62538         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62539         and iswcntrl; the wctype module does this stuff now.
62540         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62542         * modules/mbchar (Depends-on): Add wctype.
62543         * modules/mbswidth (Depends-on): Likewise.
62544         * modules/wcwidth (Depends-on): Likewise.
62545
62546 2006-12-27  Eric Blake  <ebb9@byu.net>
62547
62548         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62549         module uses more than what <wctype.h> is required to provide.
62550
62551 2006-12-26  Eric Blake  <ebb9@byu.net>
62552
62553         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62554
62555 2006-12-26  Eric Blake  <ebb9@byu.net>
62556
62557         * modules/absolute-header: New module.
62558         * modules/fcntl (Depends-on): Depend on it.
62559         * modules/inttypes (Depends-on): Likewise.
62560         * modules/stdint (Depends-on): Likewise.
62561         * modules/sys_stat (Depends-on): Likewise.
62562         * modules/wctype (Depends-on): Likewise.
62563         * MODULES.html.sh (Support for building libraries and
62564         executables): Document it.
62565
62566 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * gnulib-tool (SED): Remove, undoing previous change.
62569         The problem was that it broke coreutils on Solaris, because
62570         "sed --posix" leaked into a makefile.
62571         (sed): New alias, if 'alias' and GNU sed.
62572
62573 2006-12-24  Jim Meyering  <jim@meyering.net>
62574
62575         Work around an fchownat bug in glibc-2.4:
62576         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62577         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62578         in spite of the -P option.
62579         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62580         New macros.
62581         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62582         * modules/openat (Files): Add lib/fchownat.c.
62583         * lib/openat.c (fchownat): Don't define here.  Move to...
62584         * lib/fchownat.c: ...this new file.
62585
62586 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62587
62588         Fix bug reported by Bruno Haible in
62589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62590         where quotearg.c didn't compile on Mac OS X 10.2 because it
62591         lacks <wchar.h> and wint_t.
62592         * lib/wctype_.h (__wctype_wint_t): New type.
62593         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62594         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62595         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62596         Arg is now of type __wctype_wint_t, not wint_t.
62597         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62598         substitute HAVE_WINT_T.
62599         * modules/wctype (Files): Add m4/wint_t.m4.
62600         (wctype.h): Substitute HAVE_WINT_T.
62601
62602 2006-12-23  Bruno Haible  <bruno@clisp.org>
62603
62604         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62605
62606 2006-12-23  Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62609         S_ISLNK.
62610         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62611         mingw.
62612
62613 2006-12-22  Bruno Haible  <bruno@clisp.org>
62614
62615         * lib/copy-file.c: Include acl.h.
62616         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62617         Close the file descriptors only after being done with copy_acl.
62618         * modules/copy-file (Depends-on): Add acl.
62619
62620 2006-12-22  Bruno Haible  <bruno@clisp.org>
62621
62622         * gnulib-tool (SED): New variable.
62623         Use $SED instead of sed everywhere.
62624
62625 2006-12-22  Bruno Haible  <bruno@clisp.org>
62626
62627         * modules/no-c++: New file.
62628         * m4/no-c++.m4: New file.
62629         * MODULES.html.sh (Support for building libraries and executables):
62630         Add no-c++.
62631
62632 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62633
62634         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62635         Include <limits.h>, and use its INT_MAX to rewrite the
62636         j loop so that it does not overflow 'int'.  Problem reported by
62637         Ralf Wildenhues in
62638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62639         Play it safe by shifting left by 1 rather than multiplying by 2,
62640         as GCC is less likely to optimize this away when the value
62641         is signed (when it assumes overflow leads to undefined behavior).
62642         Also, don't assume time_t uses two's complement.
62643
62644 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * MODULES.html.sh: New module wctype.
62647         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62648         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62649         <wctype.h>, since the new wctype module should fix this.
62650         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62651         the wctype module should arrange for it.
62652         * lib/regex_internal.h: Likewise.
62653         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62654         since the wctype module should handle this now.
62655         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62656         * modules/fnmatch (Depends-on): Add wctype.
62657         * modules/quotearg (Depends-on): Likewise.
62658         * modules/regex (Depends-on): Likewise.
62659
62660 2006-12-19  Bruno Haible  <bruno@clisp.org>
62661
62662         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62663         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62664
62665 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62666
62667         * modules/savewd (Depends-on): Fix dependency on fcntl.
62668
62669 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62672         conforms to C99, rather than relying on the user's environment
62673         setting of STDINT_H.
62674
62675 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62676         and Eric Blake  <ebb9@byu.net>
62677
62678         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62679         This is more consistent with the other defines here.
62680         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62681         Port to z/OS.  Problem reported by Paul Gilmartin.
62682         Change local vars to use gl_ prefix rather than ac_.
62683         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62684         with other defines.
62685         * modules/double-slash-root: New module.
62686         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62687         (Depends-on): Add double-slash-root.
62688         * MODULES.html.sh (File system functions): Mention new module.
62689
62690 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62691
62692         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62693         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62694         This is for the benefit of gzip, which doesn't do i18n.
62695
62696 2006-12-12  Jim Meyering  <jim@meyering.net>
62697
62698         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62699         Reported by Andreas Schwab <schwab@suse.de>.
62700
62701 2006-12-12  Bruno Haible  <bruno@clisp.org>
62702
62703         Merge these changes.
62704         2006-09-05  Bruno Haible  <bruno@clisp.org>
62705         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62706         iconv_alloc succeeded.
62707         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62708         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62709         test for " && dest " at the end - dest is always != NULL there. Call
62710         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62711         with 2xNULL arguments, also to flush the state storage. Handle the
62712         IRIX iconv behaviour. Realloc the final result, to throw away unused
62713         memory.
62714
62715 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62718         and fchmodat unconditionally, since glibc 2.4 has them.
62719         Problem reported by Arkadiusz Miskiewicz.
62720
62721 2006-12-10  Bruno Haible  <bruno@clisp.org>
62722
62723         * gnulib-tool (func_import): Show the include files only for those
62724         modules that are copied and specified.
62725         Reported by Karl Berry.
62726
62727 2006-12-08  Jim Meyering  <jim@meyering.net>
62728
62729         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62730         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62731
62732         * build-aux/announce-gen: Add two new options, both optional:
62733         --bootstrap-tools=TOOL_LIST
62734               a comma-separated list of tools, e.g.,
62735               autoconf,automake,bison,gnulib
62736         --gnulib-snapshot-date=DATE
62737               if gnulib is in the bootstrap tool list,
62738               then report this as the snapshot date.
62739               If not specified, use the current date/time.
62740               If you specify a date here, be sure it's UTC.
62741
62742 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62743
62744         * tests/test-argp-2.sh: Fix test to match actual output.
62745         (func_compare): Fix sed script to be portable.
62746
62747 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62750         workaround for this case.  It is not autoconfigured now; offhand
62751         it's hard to see how to autoconfigure it.
62752
62753 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62754
62755         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62756         a directory that is about to be chowned.  Such a directory's
62757         initial file permissions should permit the owner only and this
62758         should not be changed until after the chown, since the group and
62759         other bits would be incorrect if they granted permission before
62760         the chown.
62761
62762         Fix porting problem for iswctype reported by Georg Schwarz in:
62763         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62764         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62765         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62767         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62768
62769 2006-12-03  Jim Meyering  <jim@meyering.net>
62770
62771         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62772         p->fts_statp may not yet be defined.
62773         (fts_read): Instead, set it in the caller, once p->fts_statp is
62774         sure to be defined, and corresponds to a top-level directory.
62775         This bug made du -x fail.  Here's the coreutils test case:
62776         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62777         Reported by Mike Frysinger.
62778
62779 2006-12-01  Jim Meyering  <jim@meyering.net>
62780
62781         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62782         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62783         Reported by Simon Josefsson.
62784
62785 2006-11-30  Jim Meyering  <jim@meyering.net>
62786
62787         * m4/warning.m4: Use the all-permissive copyright notice
62788         recommended by RMS (rather than LGPL).
62789         * m4/vararrays.m4: Likewise.
62790         * m4/flexmember.m4: Likewise.
62791
62792 2006-11-29  Bruno Haible  <bruno@clisp.org>
62793
62794         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62795         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62796         using +=.
62797         Reported by Simon Josefsson <simon@josefsson.org>.
62798
62799 2006-11-28  James Youngman <jay@gnu.org>
62800
62801         * README: Advise users that they might find the bug-gnulib@gnu.org
62802         and autotools-announce@gnu.org mailing lists useful.
62803
62804 2006-11-28  Bruno Haible  <bruno@clisp.org>
62805
62806         * m4/ptrdiff_max.m4: Remove file.
62807
62808 2006-11-21  Bruno Haible  <bruno@clisp.org>
62809
62810         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62811         _AC_COMPUTE_INT.
62812         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62813         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62814         _AC_COMPUTE_INT.
62815         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62816         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62817         _AC_COMPUTE_INT.
62818         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62819
62820 2006-11-28  Jim Meyering  <jim@meyering.net>
62821
62822         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62823         warning from "gcc -Wshadow" about shadowing the builtin.
62824
62825 2006-11-27  Bruno Haible  <bruno@clisp.org>
62826
62827         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62828         _AC_COMPUTE_INT.
62829         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62830
62831 2006-11-27  Bruno Haible  <bruno@clisp.org>
62832             Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62835
62836 2006-11-26  Bruno Haible  <bruno@clisp.org>
62837
62838         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62839         noinst_LTLIBRARIES.
62840
62841 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62842             Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62845         if compiling with "gcc -ansi".
62846
62847 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         Fix some incompatibilities with gcc -ansi -pedantic.
62850         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62851         if compiling pedantically with GCC, unless it's C99 or later.
62852         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62853         it mishandles gcc -ansi -pedantic as well.
62854         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62855         if gcc -pedantic.
62856         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62857         initializers for struct if -pedantic, unless it's C99 or later.
62858
62859 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62860
62861         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62862         Don't close an fd more than once. Identical atimes indicate
62863         success, not failure.
62864
62865 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62866
62867         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62868
62869 2006-11-23  Jim Meyering  <jim@meyering.net>
62870
62871         * build-aux/announce-gen: New file.  From coreutils.
62872
62873 2006-11-22  Jim Meyering  <jim@meyering.net>
62874
62875         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62876         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62877         (fts_read): Use a temporary to narrow the overused st_size member
62878         before using it in a switch statement.  Reported by Matthew Woehlke.
62879
62880         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62882
62883 2006-11-20  Bruno Haible  <bruno@clisp.org>
62884
62885         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62886         changequote instead of pairs of brackets.
62887         Reported by Andreas Schwab <schwab@suse.de>.
62888
62889 2006-11-21  Jim Meyering  <jim@meyering.net>
62890
62891         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62892         so as to remain compatible with older compilers.
62893         Patch from Michael Deutschmann.
62894
62895 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62896
62897         * MODULES.html.sh (File system functions): Add openat.
62898
62899         * lib/openat.h (rpl_fstatat): New macro, if
62900         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62901         (fstatat): Define to rpl_fstatat under the same conditions,
62902         unless COMPILING_FSTATAT.
62903         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62904         seems to have the bug.
62905         * lib/fstatat.c: New file.
62906         * modules/openat (Files): Add it.
62907
62908 2006-11-20  Bruno Haible  <bruno@clisp.org>
62909
62910         * Makefile: New file.
62911
62912 2006-11-20  Jim Meyering  <jim@meyering.net>
62913
62914         The beginnings of syntax-related checks for gnulib.
62915         * lib/Makefile: New file.
62916         * lib/t-idcache: New script.  Ensure that the two halves of
62917         idcache.c stay in sync.
62918
62919         * lib/idcache.c: Adjust comments in user- and group- portions to
62920         be more accurate, and to be consistent with one another.
62921
62922 2006-11-20  Jim Meyering  <jim@meyering.net>
62923
62924         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62925         continue using the flexible array member (thus, this module performs
62926         half as many malloc calls), with the addition that...
62927         (getgroup, getuser): Consistently record a non-match via an empty
62928         "name" string, and map an empty string match to a NULL return value.
62929         * modules/idcache (Depends-on): Re-add flexmember.
62930
62931         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62932         (getuidbyname, getgroup, getgidbyname): Likewise.
62933
62934         Use cleaner syntax: NULL rather than 0.
62935         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62936
62937 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62940         It mishandled the case where the group was missing.
62941         Problem reported by Greg Schafer.
62942         * modules/idcache: Likewise.
62943
62944 2006-11-18  Jim Meyering  <jim@meyering.net>
62945
62946         * check-module (%exempt_header): Add exception for some
62947         conditionally-included headers.
62948
62949         * modules/i-ring (Depends-on): Add verify.
62950         (License): Change to LGPL.
62951
62952 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62955         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62956         and inttostr.h.  Use snprintf rather than uinttostr, so that
62957         LGPLed code doesn't depend on GPLed.
62958
62959 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * modules/inline (License): Change from GPL to LGPL.
62962
62963 2006-11-17  Jim Meyering  <jim@meyering.net>
62964
62965         * modules/d-type (License): Switch to LGPL.
62966
62967 2006-11-15  Bruno Haible  <bruno@clisp.org>
62968
62969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62970
62971 2006-11-15  Eric Blake  <ebb9@byu.net>
62972
62973         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62974         the module dependency.
62975
62976 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62977             Bruno Haible  <bruno@clisp.org>
62978
62979         * gnulib-tool (func_create_testdir): Add license consistency check.
62980
62981 2006-11-15  Eric Blake  <ebb9@byu.net>
62982
62983         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62984         random "(cached)" in configure output.
62985
62986 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62987
62988         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62989         test for conforming inttypes.h is both announced and cached.
62990
62991         * MODULES.html.sh (seen_modules, seen_files): New variables.
62992         (func_module): Rewrite to use a few less gnulib-tool and sed
62993         invocations.  Avoid a couple of quadratic algorithms for ...
62994         (missed_modules, missed_files): ... these, with ...
62995         (func_append, func_tmpdir): ... these new functions, from
62996         gnulib-tool.  Analogously, install traps for cleanup.
62997
62998         * tests/test-gc.c (main): Remove unused variables.
62999         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63000
63001 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63002
63003         * modules/inttostr (License): Change to LGPL.
63004
63005 2006-11-14  Eric Blake  <ebb9@byu.net>
63006
63007         * modules/tempname (License): Change to LGPL.
63008
63009 2006-11-14  Eric Blake  <ebb9@byu.net>
63010
63011         * doc/functions.texi (Function Portability): *printf functions on
63012         Cygwin now understand all POSIX size specifiers.
63013
63014 2006-11-14  Bruno Haible  <bruno@clisp.org>
63015
63016         * modules/c-ctype (License): Change to LGPL.
63017
63018 2006-11-12  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63021         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63022         for GNOME libraries, for which the include files are installed in
63023         subdirectories of $prefix/include.
63024
63025 2006-11-12  Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/lib-link.m4: Require at least autoconf-2.54.
63028         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63029         name to underscores for the --with option.
63030
63031 2006-11-13  Bruno Haible  <bruno@clisp.org>
63032
63033         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63034         the tests directory.
63035         Reported by Ralf Wildenhues.
63036
63037 2006-11-13  Bruno Haible  <bruno@clisp.org>
63038
63039         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63040         (func_emit_initmacro_end): Undo the override here.
63041         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63042         Works around the famous automake error in coreutils.
63043
63044 2006-11-13  Eric Blake  <ebb9@byu.net>
63045
63046         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63047         element, not its node.
63048
63049 2006-11-12  Bruno Haible  <bruno@clisp.org>
63050
63051         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63052         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63053
63054 2006-11-12  Bruno Haible  <bruno@clisp.org>
63055
63056         * gnulib-tool: New option --local-symlink.
63057         (func_usage): Document it.
63058         (lsymbolic): New variable.
63059         (func_import, func_create_testdir): If --symlink was not specified,
63060         test whether --local-symlink was specified and the file comes from
63061         the local_gnulib_dir.
63062
63063 2006-11-12  Bruno Haible  <bruno@clisp.org>
63064
63065         * gnulib-tool (func_ln): New function.
63066         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63067
63068 2006-11-12  Bruno Haible  <bruno@clisp.org>
63069
63070         Finish support for source files in subdirectories.
63071         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63072         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63073         AUTOMAKE_OPTIONS.
63074         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63075
63076 2006-11-12  Bruno Haible  <bruno@clisp.org>
63077
63078         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63079         EXTRA_lib_SOURCES augmentation.
63080         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63081
63082 2006-11-12  Jim Meyering  <jim@meyering.net>
63083
63084         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63085         file descriptors.  This also averts a failure on systems with
63086         native openat support when a traversed directory lacks "x" access.
63087         * lib/fts_.h: Include "i-ring.h"
63088         (struct FTS) [fts_fd_ring]: New member.
63089         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63090         (FCHDIR): Add parentheses.
63091         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63092         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63093         When descending, rather than simply closing the previous
63094         fts_cwd_fd value, push that file descriptor onto the ring.
63095         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63096         (fts_open): Initialize the new fd_ring member.
63097         (fts_close): Clear the ring.
63098         (fts_safe_changedir): When possible, use our new fd_ring to skip
63099         the diropen and fstat and dev/ino comparison that would normally
63100         accompany a virtual `chdir ("..")'.
63101
63102         * modules/fts (Depends-on): Add i-ring.
63103         * modules/i-ring: New module.
63104         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63105         * m4/i-ring.m4: New file.
63106
63107 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63108
63109         * gnulib-tool (func_create_testdir): Fix replacement of
63110         `build-aux' in configure.ac.  Run autotools in gltests
63111         subdirectory.
63112         (func_create_testdir, func_create_megatestdir, test): There is
63113         no need for '--force' in most autotool invocations in a new
63114         tree.  Actually fail the whole test if any of the tools, or the
63115         configure or make stages fail.
63116
63117         Sync from Automake.
63118         * build-aux/gnupload: Revert last change.  Add pointer to upload
63119         instructions of the GNU Maintenance Instructions.
63120         Suggestion by Karl Berry.
63121
63122 2006-11-10  Jim Meyering  <jim@meyering.net>
63123
63124         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63125
63126 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63129         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63130         (bind_textdomain_codeset) [! ENABLE_NLS]:
63131         Evaluate all the arguments.  That way, callers get compatible behavior
63132         if the arguments have side effects.  Also, it avoids some GCC
63133         diagnostics in some cases; Joel E. Denny reported problems when Bison
63134         was configured with --enable-gcc-warnigs.
63135
63136 2006-11-10  Jim Meyering  <jim@meyering.net>
63137
63138         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63139         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63140         account.
63141
63142 2006-11-10  Jim Meyering  <jim@meyering.net>
63143
63144         * modules/inline: New file/module.
63145         * modules/xalloc (Files): Remove m4/inline.m4.
63146         (Depends-on): Add inline, instead.
63147         * modules/oset: Likewise.
63148         * modules/list: Likewise.
63149
63150 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63153         Problem reported by Matthew Woehlke.
63154
63155 2006-11-09  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/tempname.c (gen_tempname): Remove variant that invokes
63158         __gen_tempname.
63159         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63160         __gen_tempname.
63161
63162 2006-11-08  Bruno Haible  <bruno@clisp.org>
63163
63164         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63165         to 'yes' instead of 'cross-compiling'.
63166
63167 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         * lib/quotearg.h (quotearg_free): New decl.
63170         * lib/quotearg.c (quotearg_free): New function.
63171         (slot0, nslots, slotvec0, slotvec):
63172         Now file-scope so that quotearg_free can get at them.
63173
63174 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63175
63176         Sync from Automake.
63177         * build-aux/gnupload: Add missing 'gnu' to example URL.
63178         Report by Karl Berry.
63179
63180 2006-11-08  Bruno Haible  <bruno@clisp.org>
63181
63182         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63183         Suggested by Paul Eggert.
63184
63185 2006-11-08  Jim Meyering  <jim@meyering.net>
63186
63187         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63188         It's already included if !_LIBC.
63189         (fts_safe_changedir): Add a comment.
63190
63191 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63194         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63195         Matthew Woehlke.
63196
63197         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63198         definitions up, to avoid colliding with change below.
63199         (static_inline) [HAVE_INLINE]: New macro.
63200         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63201         Provide extern decls when !HAVE_INLINE.  Do not define unless
63202         static_inline is defined, either by us or by xmalloc.c.  Use
63203         static_inline rather than static inline.
63204         (XCALLOC): Optimize sizeof(T) = 1 case.
63205         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63206
63207 2006-11-07  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63210         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63211         AC_C_INLINE.
63212         * modules/xalloc (Files): Add m4/inline.m4.
63213
63214 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63215
63216         * README: Fix typo.
63217         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63218         (Miscellanous Notes): ...from this.
63219
63220 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63223         Mention that offsetof should be used instead of sizeof.
63224         From Bruno Haible.
63225
63226 2006-11-07  Bruno Haible  <bruno@clisp.org>
63227
63228         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63229
63230 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63233         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63234         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63235         (gl_tree_add_before, gl_tree_add_after):
63236         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63237         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63238         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63239         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63240         (gl_linked_add_after, gl_linked_add_at): Likewise.
63241         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63242         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63243         (gl_tree_add_before, gl_tree_add_after): Likewise.
63244         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63245         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63246         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63247
63248 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63249
63250         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63251
63252 2006-11-06  Bruno Haible  <bruno@clisp.org>
63253
63254         * m4/inline.m4: New file.
63255         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63256         * modules/list (Files): Add m4/inline.m4.
63257         * modules/oset (Files): Likewise.
63258
63259 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63260
63261         * lib/idcache.c: Include <stddef.h>, for offsetof.
63262         (struct userid.name): Change from char * to a flexible array member.
63263         All uses changed.
63264         * modules/idcache (Depends-on): Add flexmember.
63265
63266         * MODULES.html.sh (Core language properties): New module flexmember.
63267         * modules/flexmember, m4/flexmember.m4: New files.
63268
63269         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63270         inline functions that are identical with the old xnmalloc_inline,
63271         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63272         that we can avoid some unnecessary integer multiplications and
63273         divisions in the common case where the element size is known at
63274         compile time.
63275         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63276         needed.
63277         (xnboundedmalloc): Remove.
63278         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63279         arguments, for consistency with rest of this header.
63280         (xcharalloc): Rewrite using XNMALLOC.
63281         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63282         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63283         versions have been moved to lib/xalloc.h and renamed to be the
63284         non-*_inline versions.
63285         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63286         and xnrealloc functions, since those functions are now inline and
63287         now call us.
63288         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63289         renaming described above.
63290         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63291         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63292         captures the dependency in AC_C_INLINE.
63293
63294         New module canonicalize-lgpl, proposed by Charles Wilson in
63295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63296         with a few small changes afterwards.
63297         * MODULES.html.sh (File system functions): New module
63298         canonicalize-lgpl.
63299         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63300         and canonicalize_file_name.
63301         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63302         * modules/canonicalize-lgpl: New files.
63303
63304 2006-11-05  Bruno Haible  <bruno@clisp.org>
63305
63306         * gnulib-tool (func_import, func_create_testdir): Create directories
63307         also for files in subdirectories of lib/.
63308
63309 2006-11-05  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63312         ANSI C compliant.
63313
63314 2006-11-03  Bruno Haible  <bruno@clisp.org>
63315
63316         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63317         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63318         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63319         (xnboundedmalloc): New inline function.
63320         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63321         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63322         xmalloc.
63323         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63324         xmalloc.
63325         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63326         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63327         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63328         xmalloc.
63329         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63330         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63331         xmalloc.
63332         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63333         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63334         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63335         xmalloc.
63336         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63337         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63338         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63339         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63340         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63341         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63342         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63343
63344 2006-11-03  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/c-ctype.h [C++]: Define functions without name mangling.
63347         * lib/fwriteerror.h [C++]: Likewise.
63348         * lib/gcd.h [C++]: Likewise.
63349         * lib/linebreak.h [C++]: Likewise.
63350
63351 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63352
63353         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63354         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63355         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63356         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63357         Check for functions and headers just once.
63358         Check for declaration of canonicalize_file_name.
63359         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63360
63361 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63362
63363         * gnulib-tool (func_import): Fix typo in actioncmd.
63364
63365 2006-11-02  Bruno Haible  <bruno@clisp.org>
63366
63367         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63368         newline sequence in the Makefile.am snippet as a space, like "make"
63369         does.
63370         Reported by Roger Persson <perrog@gmail.com>.
63371
63372 2006-11-01  Bruno Haible  <bruno@clisp.org>
63373
63374         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63375         already declared in <string.h>.
63376         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63377
63378 2006-11-01  Bruno Haible  <bruno@clisp.org>
63379
63380         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63381         * lib/strcase.h: Include <string.h>.
63382         (strcasecmp): Define to rpl_strcasecmp here.
63383
63384 2006-11-01  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63387
63388 2006-11-01  Eric Blake  <ebb9@byu.net>
63389
63390         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63391
63392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63393
63394 2006-10-29  Bruno Haible  <bruno@clisp.org>
63395
63396         Make it compile in C++ mode.
63397         * lib/full-write.c (full_rw): Add a cast.
63398
63399 2006-11-01  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63402         be POSIX compliant.
63403         Reported by Roger Persson <perrog@gmail.com>.
63404
63405 2006-11-01  Eric Blake  <ebb9@byu.net>
63406
63407         * lib/getopt_.h: Fix comments.
63408
63409 2006-10-31  Eric Blake  <ebb9@byu.net>
63410
63411         * modules/tmpdir (Depends-on): Add sys_stat.
63412         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63413         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63414         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63415         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63416         tempname.
63417
63418 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Avoid some C++ diagnostics reported by Bruno Haible.
63421         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63422         xmalloc.
63423         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63424         (struct slotvec): Move to top level.
63425         (quotearg_n_options): Rewrite to avoid xmalloc.
63426         * lib/xalloc.h (xcharalloc): New function.
63427         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63428         [defined __cplusplus]: Add function template that provides result
63429         type propagation.  This part of the change is from Bruno Haible.
63430
63431 2006-10-29  Bruno Haible  <bruno@clisp.org>
63432
63433         Make it compile in C++ mode.
63434         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63435         * lib/strnlen1.c (strnlen1): Cast memchr result.
63436         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63437         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63438         (create_temp_dir): Rename local variable 'template'.
63439         (compile_csharp_using_sscli): Add cast.
63440         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63441         * lib/findprog.c (find_in_path): Likewise.
63442         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63443         * lib/wait-process.c (register_slave_subprocess): Likewise.
63444
63445 2006-10-22  Bruno Haible  <bruno@clisp.org>
63446
63447         * modules/tsearch: New file.
63448         * lib/tsearch.h: New file.
63449         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63450         * m4/tsearch.m4: New file.
63451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63452
63453 2006-10-29  Eric Blake  <ebb9@byu.net>
63454
63455         * lib/arcfour.c: Assume config.h.
63456         * lib/arctwo.c: Likewise.
63457         * lib/base64.c: Likewise.
63458         * lib/check-version.c: Likewise.
63459         * lib/crc.c: Likewise.
63460         * lib/des.c: Likewise.
63461         * lib/gc-gnulib.c: Likewise.
63462         * lib/gc-libgcrypt.c: Likewise.
63463         * lib/gc-pbkdf2-sha1.c: Likewise.
63464         * lib/getaddrinfo.c: Likewise.
63465         * lib/getdelim.c: Likewise.
63466         * lib/getline.c: Likewise.
63467         * lib/hmac-md5.c: Likewise.
63468         * lib/hmac-sha1.c: Likewise.
63469         * lib/iconvme.c: Likewise.
63470         * lib/md2.c: Likewise.
63471         * lib/md4.c: Likewise.
63472         * lib/memxor.c: Likewise.
63473         * lib/read-file.c: Likewise.
63474         * lib/readline.c: Likewise.
63475         * lib/rijndael-alg-fst.c: Likewise.
63476         * lib/rijndael-api-fst.c: Likewise.
63477         * lib/xgetdomainname.c: Likewise.
63478
63479 2006-10-28  Eric Blake  <ebb9@byu.net>
63480
63481         * lib/xstrndup.c: Assume config.h.
63482
63483 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63484
63485         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63486         stat-macros.h is now for our own macros, whereas stat_h is for
63487         macros in the <sys/stat.h> name space.
63488         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63489         (STAT_MACROS_H): Remove.
63490         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63491         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63492         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63493         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63494         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63495         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63496         Move these macros to ...
63497         * lib/stat_.h: here.  Don't include stat-macros.h.
63498         * lib/canonicalize.c: Don't include stat-macros.h.
63499         * lib/chown.c: Likewise.
63500         * lib/euidaccess.c: Likewise.
63501         * lib/file-type.c: Likewise.
63502         * lib/filemode.c: Likewise.
63503         * lib/glob.c: Likewise.
63504         * lib/isapipe.c: Likewise.
63505         * lib/lchown.c: Likewise.
63506         * lib/lstat.c: Likewise.
63507         * lib/mkdir-p.c: Likewise.
63508         * lib/rmdir.c: Likewise.
63509         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63510         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63511         unless mkdir isn't declared, to speed up 'configure'.
63512         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63513         would define all the S_* symbols.
63514         * modules/canonicalize (Depends-on):
63515         Depend on sys_stat, not stat-macros.
63516         * modules/chown: Likewise.
63517         * modules/euidaccess: Likewise.
63518         * modules/filemode: Likewise.
63519         * modules/file-type: Likewise.
63520         * modules/glob: Likewise.
63521         * modules/isapipe: Likewise.
63522         * modules/lchown: Likewise.
63523         * modules/lstat: Likewise.
63524         * modules/mkancesdirs: Likewise.
63525         * modules/rmdir: Likewise.
63526         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63527         * modules/modechange: Likewise.
63528         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63529         (configure.ac): Remove gl_STAT_MACROS.
63530         * modules/sys_stat (Depends-on): Remove stat-macros.
63531
63532 2006-10-27  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/signed.m4: Remove file.
63535         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63536         invocation.
63537         * modules/vasnprintf (Files): Remove m4/signed.m4.
63538
63539 2006-10-27  Bruno Haible  <bruno@clisp.org>
63540
63541         Update to GNU gettext 0.16.
63542         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63543         m4/inttypes-h.m4, m4/signed.m4.
63544         * m4/gettext.m4: Update to GNU gettext 0.16.
63545         * m4/intl.m4: New file, from GNU gettext.
63546         * m4/intldir.m4: New file, from GNU gettext.
63547         * config/srclist.txt: Update
63548
63549 2006-10-27  Eric Blake  <ebb9@byu.net>
63550
63551         * MODULES.html.sh: Document tempname.
63552         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63553         dependencies.
63554         (Files): Move lib/tempname.c...
63555         * modules/tempname: ...to this new module.
63556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63557         (gl_PREREQ_TEMPNAME): Move...
63558         * m4/tempname.m4: ...to this new file.
63559         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63560         * modules/sys_stat (Depends-on): Add stat-macros.
63561         * lib/stat_.h (includes): Pick up stat macros.
63562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63563         if stat macros are broken.
63564         * lib/tempname.c (includes): No need to include "stat-macros.h".
63565         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63566         (direxists, __path_search) [!_LIBC]: Don't compile these in
63567         gnulib; the tmpdir module covers that.
63568         * lib/tempname.h: New file.
63569
63570 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         * COPYING: Explain how gnulib-tool converts licence headers.
63573         Almost all wording by Eric Blake.
63574
63575 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63576
63577         * lib/mbchar.h (is_basic_table): Make read-only.
63578         * lib/mbchar.c (is_basic_table): Likewise.
63579         Reported by John Darrington.
63580
63581 2006-10-25  Bruno Haible  <bruno@clisp.org>
63582
63583         * lib/progname.h (set_program_name): Undefine before defining.
63584
63585 2006-10-25  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63588         false for non-gcc C++ compilers.
63589         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63590
63591 2006-10-24  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63594         iconv implementations like Irix iconv.
63595
63596 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * modules/vararrays: New file.
63599         * m4/vararrays.m4: New file, taken from diffutils.
63600         * MODULES.html.sh: New module vararrays.
63601
63602 2006-10-24  Karl Berry  <karl@gnu.org>
63603
63604         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63605         Don't call GNU Unix.
63606
63607 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63608
63609         * users.txt: Add Libtool.
63610
63611         Sync from Libtool:
63612
63613         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63616         to gnulib's policy of including config.h unconditionally.
63617
63618 2006-10-24  Bruno Haible  <bruno@clisp.org>
63619
63620         * modules/wcwidth (Files): Add m4/wint_t.m4.
63621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63622         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63623
63624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63627         to pacify GCC with some -W flags enabled.  Problem reported by
63628         Bruno Haible.
63629
63630 2006-10-24  Jim Meyering  <jim@meyering.net>
63631
63632         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63633         Reported by Karl Berry.
63634
63635 2006-10-23  Bruno Haible  <bruno@clisp.org>
63636
63637         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63638
63639 2006-10-24  Bruno Haible  <bruno@clisp.org>
63640
63641         * lib/gl_list.h: Use C comment style, not C++ comment style.
63642
63643 2006-10-23  Eric Blake  <ebb9@byu.net>
63644
63645         * lib/getaddrinfo.c (includes): Add missing include.
63646
63647 2006-10-23  Bruno Haible  <bruno@clisp.org>
63648             Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         Ability to rename obstack_free.
63651         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63652         obstack_free.
63653         (obstack_free): Invoke the __obstack_free macro.
63654         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63655
63656 2006-10-23  Bruno Haible  <bruno@clisp.org>
63657             Paul Eggert  <eggert@cs.ucla.edu>
63658
63659         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63660         __argc, __argv from the declaration. (They are defined as macros on
63661         mingw.)
63662
63663 2006-10-22  Bruno Haible  <bruno@clisp.org>
63664
63665         * doc/gnulib-intro.texi: New file.
63666         * doc/gnulib.texi: Include it.
63667
63668 2006-10-21  Bruno Haible  <bruno@clisp.org>
63669
63670         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63671         "Introduction", "Miscellanous Notes", "Particular Modules".
63672
63673 2006-10-21  Bruno Haible  <bruno@clisp.org>
63674
63675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63676         Change mostlyclean-local rule to avoid sh syntax error from bash
63677         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63678
63679 2006-10-23  Jim Meyering  <jim@meyering.net>
63680
63681         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63682         in place of snprintf.
63683
63684         * modules/inttostr (Files): Add lib/uinttostr.c.
63685         * lib/uinttostr.c (inttostr): New file/function.
63686         * lib/inttostr.h (uinttostr): Declare.
63687         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63688         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63689         Add uinttostr.
63690         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63691
63692 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * lib/canonicalize.c (ELOOP): Define if not already defined.
63695         Problem reported by Bruno Haible in
63696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63697
63698 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63701         Problem reported by Perry Smith and Ville Laurikari.
63702
63703         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63704         uses.
63705
63706 2006-10-19  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63709         for mingw.
63710
63711 2006-10-19  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63714         Needed for mingw.
63715
63716 2006-10-19  Bruno Haible  <bruno@clisp.org>
63717
63718         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63719
63720 2006-10-19  Bruno Haible  <bruno@clisp.org>
63721
63722         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63723         it.
63724
63725 2006-10-19  Bruno Haible  <bruno@clisp.org>
63726
63727         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63728         invocation.
63729
63730 2006-10-19  Bruno Haible  <bruno@clisp.org>
63731
63732         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63733         mountlist by default.
63734
63735 2006-10-16  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/c-strstr.c: Include c-strstr.h.
63738
63739 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63740
63741         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63742         in a slash.
63743
63744 2006-10-18  Bruno Haible  <bruno@clisp.org>
63745
63746         * lib/lock.h [C++]: Wrap definitions in extern "C".
63747
63748 2006-10-18  Bruno Haible  <bruno@clisp.org>
63749
63750         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63751         gl_LIBOBJS list.
63752
63753 2006-10-18  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63756
63757 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * lib/xstrtol.h: Include gettext.h.
63760         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63761         Problem reported by Eric Blake.
63762         * modules/xstrtol (Depends-on): Add gettext-h.
63763
63764 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63765
63766         * lib/strftime.c (advance): New macro.
63767         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63768         incomplete type, so you can't add 0 to it.  Problem and patch
63769         reported by Eelco Dolstra for dietlibc.
63770
63771 2006-10-18  Jim Meyering  <jim@meyering.net>
63772
63773         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63774         type for a local, and rename it: s/up/user_proc/.
63775
63776 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63777
63778         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63779         READ_UTMP_USER_PROCESS.
63780         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63781
63782 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63785         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63786
63787 2006-10-17  Eric Blake  <ebb9@byu.net>
63788
63789         * lib/sigprocmask.c (sigprocmask): Fix typo.
63790
63791         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63792
63793         * modules/clean-temp (Makefile.am): Don't add to make output...
63794         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63795         config.h.
63796
63797 2006-10-17  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63800         differently if DEFAULT_TEXT_DOMAIN is set.
63801
63802 2006-10-16  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/clean-temp.c: Include fwriteerror.h.
63805
63806 2006-10-16  Bruno Haible  <bruno@clisp.org>
63807
63808         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63809
63810 2006-10-16  Bruno Haible  <bruno@clisp.org>
63811
63812         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63813         * lib/sigprocmask.h: Include <sys/types.h>.
63814         (sigset_t): Use the system's definition if present.
63815
63816 2006-10-17  Eric Blake  <ebb9@byu.net>
63817
63818         * lib/xvasprintf.c (includes): Assume config.h.
63819         * lib/xasprintf.c (includes): Likewise.
63820
63821 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63824         at least as wide as intmax_t.
63825
63826 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63827
63828         (Imported from Automake.)
63829         * build-aux/gnupload: Update to version 1.1 of directive file.
63830
63831 2006-10-16  Eric Blake  <ebb9@byu.net>
63832
63833         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63834         match Automake 1.10a.
63835
63836 2006-10-14  Bruno Haible  <bruno@clisp.org>
63837
63838         * modules/sigprocmask: New file.
63839         * lib/sigprocmask.h: New file.
63840         * lib/sigprocmask.c: New file.
63841         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63842         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63843         request sigprocmask.o.
63844         (gl_PREREQ_SIGPROCMASK): New macro.
63845         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63846         (Depends-on): Add sigprocmask.
63847         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63848         gt_SIGNALBLOCKING. Test for 'raise' only once.
63849         * lib/fatal-signal.c: Include sigprocmask.h.
63850         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63851         unblock_fatal_signals): Define always.
63852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63853         sigprocmask.
63854
63855 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         Sync from Automake.
63858         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63859         which incorrectly sets the mode of an existing destination
63860         directory.  In some cases the unpatched install-sh could do the
63861         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63862         system.  We hope this is rare in practice, but it's clearly worth
63863         fixing.  Problem reported by Alex Unleashed in
63864         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63865         Also, don't bother to check for -m bugs unless we're using -m;
63866         suggested by Stepan Kasal.
63867
63868 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63869
63870         Sync from Automake.
63871         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63872         `-c' flag, so they appear at the same position as in %FASTDEP%
63873         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63874         which ignores unknown options only after the first non-option.
63875         Bug report against M4 by Nelson H. F. Beebe.
63876
63877 2006-10-13  Jim Meyering  <jim@meyering.net>
63878
63879         Fix a bug in yesterday's change.
63880         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63881         p->fts_statp->st_dev would be used uninitialized.
63882         Ensures that we always call fts_stat on the very first entry.
63883         Miklos Szeredi reported that find -xdev stopped working.
63884
63885 2006-10-12  Bruno Haible  <bruno@clisp.org>
63886
63887         * gnulib-tool (func_get_automake_snippet): Append an automatically
63888         computed EXTRA_DIST augmentation.
63889         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63890         * modules/alloca-opt (Makefile.am): Likewise.
63891         * modules/allocsa (Makefile.am): Likewise.
63892         * modules/arcfour (Makefile.am): Likewise.
63893         * modules/arctwo (Makefile.am): Likewise.
63894         * modules/argmatch (Makefile.am): Likewise.
63895         * modules/argz (Makefile.am): Likewise.
63896         * modules/atexit (Makefile.am): Likewise.
63897         * modules/backupfile (Makefile.am): Likewise.
63898         * modules/byteswap (Makefile.am): Likewise.
63899         * modules/c-strtod (Makefile.am): Likewise.
63900         * modules/c-strtold (Makefile.am): Likewise.
63901         * modules/calloc (Makefile.am): Likewise.
63902         * modules/canon-host (Makefile.am): Likewise.
63903         * modules/canonicalize (Makefile.am): Likewise.
63904         * modules/chdir-long (Makefile.am): Likewise.
63905         * modules/chdir-safer (Makefile.am): Likewise.
63906         * modules/check-version (Makefile.am): Likewise.
63907         * modules/chown (Makefile.am): Likewise.
63908         * modules/cloexec (Makefile.am): Likewise.
63909         * modules/close-stream (Makefile.am): Likewise.
63910         * modules/closeout (Makefile.am): Likewise.
63911         * modules/crc (Makefile.am): Likewise.
63912         * modules/csharpexec (Makefile.am): Likewise.
63913         * modules/cycle-check (Makefile.am): Likewise.
63914         * modules/des (Makefile.am): Likewise.
63915         * modules/dev-ino (Makefile.am): Likewise.
63916         * modules/dirfd (Makefile.am): Likewise.
63917         * modules/dirname (Makefile.am): Likewise.
63918         * modules/dup2 (Makefile.am): Likewise.
63919         * modules/eealloc (Makefile.am): Likewise.
63920         * modules/error (Makefile.am): Likewise.
63921         * modules/euidaccess (Makefile.am): Likewise.
63922         * modules/exclude (Makefile.am): Likewise.
63923         * modules/exitfail (Makefile.am): Likewise.
63924         * modules/fcntl-safer (Makefile.am): Likewise.
63925         * modules/fcntl (Makefile.am): Likewise.
63926         * modules/file-type (Makefile.am): Likewise.
63927         * modules/fileblocks (Makefile.am): Likewise.
63928         * modules/filemode (Makefile.am): Likewise.
63929         * modules/filenamecat (Makefile.am): Likewise.
63930         * modules/fnmatch (Makefile.am): Likewise.
63931         * modules/fopen-safer (Makefile.am): Likewise.
63932         * modules/fpending (Makefile.am): Likewise.
63933         * modules/fprintftime (Makefile.am): Likewise.
63934         * modules/free (Makefile.am): Likewise.
63935         * modules/fsusage (Makefile.am): Likewise.
63936         * modules/ftruncate (Makefile.am): Likewise.
63937         * modules/fts (Makefile.am): Likewise.
63938         * modules/gc-arcfour (Makefile.am): Likewise.
63939         * modules/gc-des (Makefile.am): Likewise.
63940         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63941         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63942         * modules/gc-md4 (Makefile.am): Likewise.
63943         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63944         * modules/gc-sha1 (Makefile.am): Likewise.
63945         * modules/gc (Makefile.am): Likewise.
63946         * modules/getaddrinfo (Makefile.am): Likewise.
63947         * modules/getcwd (Makefile.am): Likewise.
63948         * modules/getdelim (Makefile.am): Likewise.
63949         * modules/getdomainname (Makefile.am): Likewise.
63950         * modules/getgroups (Makefile.am): Likewise.
63951         * modules/gethostname (Makefile.am): Likewise.
63952         * modules/gethrxtime (Makefile.am): Likewise.
63953         * modules/getline (Makefile.am): Likewise.
63954         * modules/getloadavg (Makefile.am): Likewise.
63955         * modules/getlogin_r (Makefile.am): Likewise.
63956         * modules/getndelim2 (Makefile.am): Likewise.
63957         * modules/getopt (Makefile.am): Likewise.
63958         * modules/getpagesize (Makefile.am): Likewise.
63959         * modules/getpass-gnu (Makefile.am): Likewise.
63960         * modules/getpass (Makefile.am): Likewise.
63961         * modules/getsubopt (Makefile.am): Likewise.
63962         * modules/gettime (Makefile.am): Likewise.
63963         * modules/gettimeofday (Makefile.am): Likewise.
63964         * modules/getugroups (Makefile.am): Likewise.
63965         * modules/getusershell (Makefile.am): Likewise.
63966         * modules/glob (Makefile.am): Likewise.
63967         * modules/group-member (Makefile.am): Likewise.
63968         * modules/hard-locale (Makefile.am): Likewise.
63969         * modules/hash (Makefile.am): Likewise.
63970         * modules/hmac-md5 (Makefile.am): Likewise.
63971         * modules/hmac-sha1 (Makefile.am): Likewise.
63972         * modules/human (Makefile.am): Likewise.
63973         * modules/idcache (Makefile.am): Likewise.
63974         * modules/imaxabs (Makefile.am): Likewise.
63975         * modules/imaxdiv (Makefile.am): Likewise.
63976         * modules/inet_ntop (Makefile.am): Likewise.
63977         * modules/inet_pton (Makefile.am): Likewise.
63978         * modules/intprops (Makefile.am): Likewise.
63979         * modules/inttostr (Makefile.am): Likewise.
63980         * modules/inttypes (Makefile.am): Likewise.
63981         * modules/isapipe (Makefile.am): Likewise.
63982         * modules/javaversion (Makefile.am): Likewise.
63983         * modules/lchmod (Makefile.am): Likewise.
63984         * modules/lchown (Makefile.am): Likewise.
63985         * modules/localcharset (Makefile.am): Likewise.
63986         * modules/long-options (Makefile.am): Likewise.
63987         * modules/lstat (Makefile.am): Likewise.
63988         * modules/malloc (Makefile.am): Likewise.
63989         * modules/mathl (Makefile.am): Likewise.
63990         * modules/mbchar (Makefile.am): Likewise.
63991         * modules/md2 (Makefile.am): Likewise.
63992         * modules/md4 (Makefile.am): Likewise.
63993         * modules/md5 (Makefile.am): Likewise.
63994         * modules/memcasecmp (Makefile.am): Likewise.
63995         * modules/memchr (Makefile.am): Likewise.
63996         * modules/memcmp (Makefile.am): Likewise.
63997         * modules/memcoll (Makefile.am): Likewise.
63998         * modules/memcpy (Makefile.am): Likewise.
63999         * modules/memmem (Makefile.am): Likewise.
64000         * modules/memmove (Makefile.am): Likewise.
64001         * modules/mempcpy (Makefile.am): Likewise.
64002         * modules/memrchr (Makefile.am): Likewise.
64003         * modules/memset (Makefile.am): Likewise.
64004         * modules/memxor (Makefile.am): Likewise.
64005         * modules/mkancesdirs (Makefile.am): Likewise.
64006         * modules/mkdir-p (Makefile.am): Likewise.
64007         * modules/mkdir (Makefile.am): Likewise.
64008         * modules/mkdtemp (Makefile.am): Likewise.
64009         * modules/mkstemp (Makefile.am): Likewise.
64010         * modules/mktime (Makefile.am): Likewise.
64011         * modules/modechange (Makefile.am): Likewise.
64012         * modules/mountlist (Makefile.am): Likewise.
64013         * modules/nanosleep (Makefile.am): Likewise.
64014         * modules/obstack (Makefile.am): Likewise.
64015         * modules/openat (Makefile.am): Likewise.
64016         * modules/pagealign_alloc (Makefile.am): Likewise.
64017         * modules/pathmax (Makefile.am): Likewise.
64018         * modules/physmem (Makefile.am): Likewise.
64019         * modules/poll (Makefile.am): Likewise.
64020         * modules/posixtm (Makefile.am): Likewise.
64021         * modules/posixver (Makefile.am): Likewise.
64022         * modules/putenv (Makefile.am): Likewise.
64023         * modules/quote (Makefile.am): Likewise.
64024         * modules/quotearg (Makefile.am): Likewise.
64025         * modules/raise (Makefile.am): Likewise.
64026         * modules/read-file (Makefile.am): Likewise.
64027         * modules/readline (Makefile.am): Likewise.
64028         * modules/readlink (Makefile.am): Likewise.
64029         * modules/readtokens (Makefile.am): Likewise.
64030         * modules/readutmp (Makefile.am): Likewise.
64031         * modules/realloc (Makefile.am): Likewise.
64032         * modules/regex (Makefile.am): Likewise.
64033         * modules/rename-dest-slash (Makefile.am): Likewise.
64034         * modules/rename (Makefile.am): Likewise.
64035         * modules/rijndael (Makefile.am): Likewise.
64036         * modules/rmdir (Makefile.am): Likewise.
64037         * modules/rpmatch (Makefile.am): Likewise.
64038         * modules/safe-read (Makefile.am): Likewise.
64039         * modules/safe-write (Makefile.am): Likewise.
64040         * modules/same-inode (Makefile.am): Likewise.
64041         * modules/same (Makefile.am): Likewise.
64042         * modules/save-cwd (Makefile.am): Likewise.
64043         * modules/savedir (Makefile.am): Likewise.
64044         * modules/setenv (Makefile.am): Likewise.
64045         * modules/settime (Makefile.am): Likewise.
64046         * modules/sha1 (Makefile.am): Likewise.
64047         * modules/sig2str (Makefile.am): Likewise.
64048         * modules/snprintf (Makefile.am): Likewise.
64049         * modules/stat-macros (Makefile.am): Likewise.
64050         * modules/stat-time (Makefile.am): Likewise.
64051         * modules/stdbool (Makefile.am): Likewise.
64052         * modules/stdint (Makefile.am): Likewise.
64053         * modules/stdlib-safer (Makefile.am): Likewise.
64054         * modules/stpcpy (Makefile.am): Likewise.
64055         * modules/stpncpy (Makefile.am): Likewise.
64056         * modules/strcase (Makefile.am): Likewise.
64057         * modules/strcasestr (Makefile.am): Likewise.
64058         * modules/strchrnul (Makefile.am): Likewise.
64059         * modules/strcspn (Makefile.am): Likewise.
64060         * modules/strdup (Makefile.am): Likewise.
64061         * modules/strerror (Makefile.am): Likewise.
64062         * modules/strftime (Makefile.am): Likewise.
64063         * modules/strndup (Makefile.am): Likewise.
64064         * modules/strnlen (Makefile.am): Likewise.
64065         * modules/strpbrk (Makefile.am): Likewise.
64066         * modules/strsep (Makefile.am): Likewise.
64067         * modules/strstr (Makefile.am): Likewise.
64068         * modules/strtod (Makefile.am): Likewise.
64069         * modules/strtoimax (Makefile.am): Likewise.
64070         * modules/strtok_r (Makefile.am): Likewise.
64071         * modules/strtol (Makefile.am): Likewise.
64072         * modules/strtoll (Makefile.am): Likewise.
64073         * modules/strtoul (Makefile.am): Likewise.
64074         * modules/strtoull (Makefile.am): Likewise.
64075         * modules/strtoumax (Makefile.am): Likewise.
64076         * modules/strverscmp (Makefile.am): Likewise.
64077         * modules/sys_socket (Makefile.am): Likewise.
64078         * modules/sys_stat (Makefile.am): Likewise.
64079         * modules/sysexits (Makefile.am): Likewise.
64080         * modules/time_r (Makefile.am): Likewise.
64081         * modules/timegm (Makefile.am): Likewise.
64082         * modules/timespec (Makefile.am): Likewise.
64083         * modules/tmpfile-safer (Makefile.am): Likewise.
64084         * modules/trim (Makefile.am): Likewise.
64085         * modules/unistd-safer (Makefile.am): Likewise.
64086         * modules/unlinkdir (Makefile.am): Likewise.
64087         * modules/unlocked-io (Makefile.am): Likewise.
64088         * modules/userspec (Makefile.am): Likewise.
64089         * modules/utime (Makefile.am): Likewise.
64090         * modules/utimecmp (Makefile.am): Likewise.
64091         * modules/utimens (Makefile.am): Likewise.
64092         * modules/vasnprintf (Makefile.am): Likewise.
64093         * modules/vasprintf (Makefile.am): Likewise.
64094         * modules/vsnprintf (Makefile.am): Likewise.
64095         * modules/xalloc (Makefile.am): Likewise.
64096         * modules/xgetcwd (Makefile.am): Likewise.
64097         * modules/xnanosleep (Makefile.am): Likewise.
64098         * modules/xreadlink (Makefile.am): Likewise.
64099         * modules/xstrtod (Makefile.am): Likewise.
64100         * modules/xstrtol (Makefile.am): Likewise.
64101         * modules/xstrtold (Makefile.am): Likewise.
64102         * modules/yesno (Makefile.am): Likewise.
64103         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64104
64105 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * modules/error (Makefile.am): Distribute files through
64108         EXTRA_DIST, not lib_SOURCES.
64109
64110 2006-10-12  Eric Blake  <ebb9@byu.net>
64111
64112         * modules/error (Makefile.am): Distribute files in /lib.
64113         * modules/obstack (Makefile.am): Likewise.
64114
64115 2006-10-12  Bruno Haible  <bruno@clisp.org>
64116
64117         * modules/acl (Makefile.am): Distribute all files in lib/ through
64118         EXTRA_DIST.
64119         * modules/arcfour (Makefile.am): Likewise.
64120         * modules/arctwo (Makefile.am): Likewise.
64121         * modules/argmatch (Makefile.am): Likewise.
64122         * modules/argz (Makefile.am): Likewise.
64123         * modules/atexit (Makefile.am): Likewise.
64124         * modules/backupfile (Makefile.am): Likewise.
64125         * modules/c-strtod (Makefile.am): Likewise.
64126         * modules/c-strtold (Makefile.am): Likewise.
64127         * modules/calloc (Makefile.am): Likewise.
64128         * modules/canon-host (Makefile.am): Likewise.
64129         * modules/canonicalize (Makefile.am): Likewise.
64130         * modules/chdir-long (Makefile.am): Likewise.
64131         * modules/chdir-safer (Makefile.am): Likewise.
64132         * modules/check-version (Makefile.am): Likewise.
64133         * modules/chown (Makefile.am): Likewise.
64134         * modules/cloexec (Makefile.am): Likewise.
64135         * modules/close-stream (Makefile.am): Likewise.
64136         * modules/closeout (Makefile.am): Likewise.
64137         * modules/crc (Makefile.am): Likewise.
64138         * modules/cycle-check (Makefile.am): Likewise.
64139         * modules/des (Makefile.am): Likewise.
64140         * modules/dirfd (Makefile.am): Likewise.
64141         * modules/dirname (Makefile.am): Likewise.
64142         * modules/dup2 (Makefile.am): Likewise.
64143         * modules/euidaccess (Makefile.am): Likewise.
64144         * modules/exclude (Makefile.am): Likewise.
64145         * modules/exitfail (Makefile.am): Likewise.
64146         * modules/fcntl-safer (Makefile.am): Likewise.
64147         * modules/file-type (Makefile.am): Likewise.
64148         * modules/fileblocks (Makefile.am): Likewise.
64149         * modules/filemode (Makefile.am): Likewise.
64150         * modules/filenamecat (Makefile.am): Likewise.
64151         * modules/fnmatch (Makefile.am): Likewise.
64152         * modules/fopen-safer (Makefile.am): Likewise.
64153         * modules/fpending (Makefile.am): Likewise.
64154         * modules/fprintftime (Makefile.am): Likewise.
64155         * modules/free (Makefile.am): Likewise.
64156         * modules/fsusage (Makefile.am): Likewise.
64157         * modules/ftruncate (Makefile.am): Likewise.
64158         * modules/fts (Makefile.am): Likewise.
64159         * modules/gc (Makefile.am): Likewise.
64160         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64161         * modules/getaddrinfo (Makefile.am): Likewise.
64162         * modules/getcwd (Makefile.am): Likewise.
64163         * modules/getdelim (Makefile.am): Likewise.
64164         * modules/getdomainname (Makefile.am): Likewise.
64165         * modules/getgroups (Makefile.am): Likewise.
64166         * modules/gethostname (Makefile.am): Likewise.
64167         * modules/gethrxtime (Makefile.am): Likewise.
64168         * modules/getline (Makefile.am): Likewise.
64169         * modules/getloadavg (Makefile.am): Likewise.
64170         * modules/getlogin_r (Makefile.am): Likewise.
64171         * modules/getopt (Makefile.am): Likewise.
64172         * modules/getpass (Makefile.am): Likewise.
64173         * modules/getpass-gnu (Makefile.am): Likewise.
64174         * modules/getsubopt (Makefile.am): Likewise.
64175         * modules/gettime (Makefile.am): Likewise.
64176         * modules/gettimeofday (Makefile.am): Likewise.
64177         * modules/getugroups (Makefile.am): Likewise.
64178         * modules/getusershell (Makefile.am): Likewise.
64179         * modules/glob (Makefile.am): Likewise.
64180         * modules/group-member (Makefile.am): Likewise.
64181         * modules/hard-locale (Makefile.am): Likewise.
64182         * modules/hash (Makefile.am): Likewise.
64183         * modules/hmac-md5 (Makefile.am): Likewise.
64184         * modules/hmac-sha1 (Makefile.am): Likewise.
64185         * modules/human (Makefile.am): Likewise.
64186         * modules/idcache (Makefile.am): Likewise.
64187         * modules/imaxabs (Makefile.am): Likewise.
64188         * modules/imaxdiv (Makefile.am): Likewise.
64189         * modules/inet_ntop (Makefile.am): Likewise.
64190         * modules/inet_pton (Makefile.am): Likewise.
64191         * modules/inttostr (Makefile.am): Likewise.
64192         * modules/isapipe (Makefile.am): Likewise.
64193         * modules/lchown (Makefile.am): Likewise.
64194         * modules/long-options (Makefile.am): Likewise.
64195         * modules/lstat (Makefile.am): Likewise.
64196         * modules/malloc (Makefile.am): Likewise.
64197         * modules/mathl (Makefile.am): Likewise.
64198         * modules/mbchar (Makefile.am): Likewise.
64199         * modules/md2 (Makefile.am): Likewise.
64200         * modules/md4 (Makefile.am): Likewise.
64201         * modules/md5 (Makefile.am): Likewise.
64202         * modules/memcasecmp (Makefile.am): Likewise.
64203         * modules/memchr (Makefile.am): Likewise.
64204         * modules/memcmp (Makefile.am): Likewise.
64205         * modules/memcoll (Makefile.am): Likewise.
64206         * modules/memcpy (Makefile.am): Likewise.
64207         * modules/memmem (Makefile.am): Likewise.
64208         * modules/memmove (Makefile.am): Likewise.
64209         * modules/mempcpy (Makefile.am): Likewise.
64210         * modules/memrchr (Makefile.am): Likewise.
64211         * modules/memset (Makefile.am): Likewise.
64212         * modules/memxor (Makefile.am): Likewise.
64213         * modules/mkancesdirs (Makefile.am): Likewise.
64214         * modules/mkdir (Makefile.am): Likewise.
64215         * modules/mkdir-p (Makefile.am): Likewise.
64216         * modules/mkdtemp (Makefile.am): Likewise.
64217         * modules/mkstemp (Makefile.am): Likewise.
64218         * modules/mktime (Makefile.am): Likewise.
64219         * modules/modechange (Makefile.am): Likewise.
64220         * modules/mountlist (Makefile.am): Likewise.
64221         * modules/nanosleep (Makefile.am): Likewise.
64222         * modules/openat (Makefile.am): Likewise.
64223         * modules/pagealign_alloc (Makefile.am): Likewise.
64224         * modules/physmem (Makefile.am): Likewise.
64225         * modules/poll (Makefile.am): Likewise.
64226         * modules/posixtm (Makefile.am): Likewise.
64227         * modules/posixver (Makefile.am): Likewise.
64228         * modules/putenv (Makefile.am): Likewise.
64229         * modules/quote (Makefile.am): Likewise.
64230         * modules/quotearg (Makefile.am): Likewise.
64231         * modules/raise (Makefile.am): Likewise.
64232         * modules/read-file (Makefile.am): Likewise.
64233         * modules/readline (Makefile.am): Likewise.
64234         * modules/readlink (Makefile.am): Likewise.
64235         * modules/readtokens (Makefile.am): Likewise.
64236         * modules/readutmp (Makefile.am): Likewise.
64237         * modules/realloc (Makefile.am): Likewise.
64238         * modules/regex (Makefile.am): Likewise.
64239         * modules/rename (Makefile.am): Likewise.
64240         * modules/rename-dest-slash (Makefile.am): Likewise.
64241         * modules/rijndael (Makefile.am): Likewise.
64242         * modules/rmdir (Makefile.am): Likewise.
64243         * modules/rpmatch (Makefile.am): Likewise.
64244         * modules/safe-read (Makefile.am): Likewise.
64245         * modules/safe-write (Makefile.am): Likewise.
64246         * modules/same (Makefile.am): Likewise.
64247         * modules/save-cwd (Makefile.am): Likewise.
64248         * modules/savedir (Makefile.am): Likewise.
64249         * modules/setenv (Makefile.am): Likewise.
64250         * modules/settime (Makefile.am): Likewise.
64251         * modules/sha1 (Makefile.am): Likewise.
64252         * modules/sig2str (Makefile.am): Likewise.
64253         * modules/snprintf (Makefile.am): Likewise.
64254         * modules/stdlib-safer (Makefile.am): Likewise.
64255         * modules/stpcpy (Makefile.am): Likewise.
64256         * modules/stpncpy (Makefile.am): Likewise.
64257         * modules/strcase (Makefile.am): Likewise.
64258         * modules/strcasestr (Makefile.am): Likewise.
64259         * modules/strchrnul (Makefile.am): Likewise.
64260         * modules/strcspn (Makefile.am): Likewise.
64261         * modules/strdup (Makefile.am): Likewise.
64262         * modules/strerror (Makefile.am): Likewise.
64263         * modules/strftime (Makefile.am): Likewise.
64264         * modules/strndup (Makefile.am): Likewise.
64265         * modules/strnlen (Makefile.am): Likewise.
64266         * modules/strpbrk (Makefile.am): Likewise.
64267         * modules/strsep (Makefile.am): Likewise.
64268         * modules/strstr (Makefile.am): Likewise.
64269         * modules/strtod (Makefile.am): Likewise.
64270         * modules/strtoimax (Makefile.am): Likewise.
64271         * modules/strtok_r (Makefile.am): Likewise.
64272         * modules/strtol (Makefile.am): Likewise.
64273         * modules/strtoll (Makefile.am): Likewise.
64274         * modules/strtoul (Makefile.am): Likewise.
64275         * modules/strtoull (Makefile.am): Likewise.
64276         * modules/strtoumax (Makefile.am): Likewise.
64277         * modules/strverscmp (Makefile.am): Likewise.
64278         * modules/time_r (Makefile.am): Likewise.
64279         * modules/timegm (Makefile.am): Likewise.
64280         * modules/tmpfile-safer (Makefile.am): Likewise.
64281         * modules/unistd-safer (Makefile.am): Likewise.
64282         * modules/unlinkdir (Makefile.am): Likewise.
64283         * modules/userspec (Makefile.am): Likewise.
64284         * modules/utime (Makefile.am): Likewise.
64285         * modules/utimecmp (Makefile.am): Likewise.
64286         * modules/utimens (Makefile.am): Likewise.
64287         * modules/vasnprintf (Makefile.am): Likewise.
64288         * modules/vasprintf (Makefile.am): Likewise.
64289         * modules/vsnprintf (Makefile.am): Likewise.
64290         * modules/xalloc (Makefile.am): Likewise.
64291         * modules/xgetcwd (Makefile.am): Likewise.
64292         * modules/xnanosleep (Makefile.am): Likewise.
64293         * modules/xreadlink (Makefile.am): Likewise.
64294         * modules/xstrtod (Makefile.am): Likewise.
64295         * modules/xstrtol (Makefile.am): Likewise.
64296         * modules/xstrtold (Makefile.am): Likewise.
64297         * modules/yesno (Makefile.am): Likewise.
64298
64299 2006-10-12  Jim Meyering  <jim@meyering.net>
64300
64301         * m4/getloadavg.m4: Revert the change below.
64302
64303         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64304         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64305         fail with a symlink, which is what coreutils' ./bootstrap now
64306         creates by default.
64307
64308 2006-10-12  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64311         mingw.
64312         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64313         MSVC and mingw explicitly.
64314
64315 2006-10-11  Simon Josefsson  <jas@extundo.com>
64316             Bruno Haible  <bruno@clisp.org>
64317
64318         Add support for multiple gnulib-tool invocations in the scope of a
64319         single configure.ac file.
64320         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64321         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64322         with the same contents as the _LIBADD variable.
64323         (func_emit_initmacro_start, func_emit_initmacro_end,
64324         func_emit_initmacro_done): New functions.
64325         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64326         gl_LIBOBJS and gl_LTLIBOBJS.
64327
64328 2006-10-11  Bruno Haible  <bruno@clisp.org>
64329
64330         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64331         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64332         autoreconf. Instead, invoke autopoint explicitly but move back the
64333         *.m4 files from gnulib.
64334
64335 2006-10-11  Bruno Haible  <bruno@clisp.org>
64336
64337         * gnulib-tool (func_usage): Make module names after --create-testdir
64338         optional.
64339         (func_create_testdir): If no module was specified, use nearly all
64340         modules.
64341
64342 2006-10-12  Jim Meyering  <jim@meyering.net>
64343
64344         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64345         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64346         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64347         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64348         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64349         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64350         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64351         (fts_set_stat_required): New function.
64352         (fts_open): Defer the calls to fts_stat, if possible or requested.
64353         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64354         into fts_stat itself.
64355         (fts_read): Perform any required (deferred) fts_stat call.
64356         (fts_build): Likewise, for the directory we're about to open and read.
64357         In the readdir loop, carefully decide whether each entry will require
64358         an eventual call to fts_stat, using dirent.d_type info if available.
64359         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64360         a command line argument into this function.  Update all callers.
64361         Map a return value of FTS_DOT to FTS_D for a command line argument.
64362         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64363         Thanks to Miklos Szeredi for his tenacity and for the initial
64364         bug report about "find" failing on a FUSE-based file system.
64365
64366         * lib/fts.c (fts_open): Use consistent indentation.
64367
64368 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64371         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64372         reported by Jim Meyering.  All uses of cache variables renamed
64373         to match Autoconf's.
64374         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64375         the other one.
64376
64377         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64378         Fix misspelling in diagnostic.
64379
64380 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64381
64382         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64383         defined.  Problem reported by Matthew Woehlke.
64384
64385         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64386         Add support for Tandem NonStop R series.
64387         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64388         Use new macro.
64389
64390         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64391         (has_trailing_slash): Omit size arg; all callers changed.
64392         Omit 'inline', since it doesn't help performance and we'd
64393         need to configure it.
64394         Don't count //, ///, etc. as having a trailing slash.
64395         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64396         (rpl_rename_dest_slash): On failure, use rename's errno rather
64397         than (in some cases) an incorrect or junk errno.
64398         Simplify code by removing need to compute length; this does
64399         cause it to make two passes instead of one over the file name,
64400         but it's worth it.
64401
64402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64403         change, since Autoconf's version may no longer be appropriate now
64404         that we are using CVS Autoconf's version.  Add support for Tandem.
64405
64406 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64407             Bruno Haible  <bruno@clisp.org>
64408
64409         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64410         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64411         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64412         gl_AC_TYPE_LONG_LONG.
64413
64414         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64415         instead of HAVE_LONG_LONG.
64416         * lib/printf-args.c (printf_fetchargs): Likewise.
64417         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64418         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64420         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64421         gl_AC_TYPE_LONG_LONG.
64422
64423 2006-10-11  Bruno Haible  <bruno@clisp.org>
64424
64425         * m4/longlong.m4: Add comments.
64426         * m4/ulonglong.m4: Likewise.
64427
64428 2006-10-10  Bruno Haible  <bruno@clisp.org>
64429
64430         Make it possible to #define stpcpy, strdup to aliases.
64431         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64432         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64433
64434 2006-10-10  Bruno Haible  <bruno@clisp.org>
64435
64436         Make it possible to #define gcd to an alias.
64437         * lib/gcd.c: Include config.h.
64438
64439 2006-10-10  Bruno Haible  <bruno@clisp.org>
64440
64441         Make it possible to #define c_isascii to an alias.
64442         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64443         defined. Undefine the macros before defining them, to avoid gcc
64444         warnings.
64445         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64446         define NO_C_CTYPE_MACROS early.
64447
64448 2006-10-10  Bruno Haible  <bruno@clisp.org>
64449
64450         Make it possible to #define set_program_name to an alias.
64451         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64452         ENABLE_RELOCATABLE early.
64453
64454 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64455
64456         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64457         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64458         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64459         More generally, don't assume that 64-bit signed int is available
64460         if unsigned int is, and vice versa.
64461         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64462         unsigned symbols, not on their signed counterparts.
64463         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64464         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64465         (UINT64_C, UINTMAX_C):
64466         Likewise.
64467         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64468         unsigned counterparts.
64469         (Have_long_long, Unsigned): New macros.
64470         (Int): Renamed from INT.
64471         (strtoimax): Use the new macros.
64472         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64473         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64474         * modules/inttypes (inttypes.h): Substitute
64475         HAVE_UNSIGNED_LONG_LONG_INT.
64476         * modules/stdint (stdint.h): Likewise.
64477         (Files): Add m4/ulonglong.m4.
64478
64479 2006-10-10  Bruno Haible  <bruno@clisp.org>
64480
64481         Fix a gcc -Wshadow warning.
64482         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64483         to 'bucket'.
64484         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64485         gl_linked_indexof_from_to): Likewise.
64486         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64487         Likewise.
64488         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64489         Likewise.
64490         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64491         Reported by Eric Blake.
64492
64493 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64494
64495         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64496         for NetBSD.  Problem reported by Bruno Haible.
64497
64498 2006-10-09  Jim Meyering  <jim@meyering.net>
64499
64500         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64501         Patch from Bruno Haible.
64502
64503 2006-10-09  Jim Meyering  <jim@meyering.net>
64504
64505         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64506         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64507         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64508
64509 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64510
64511         Don't include <config.h> twice; this doesn't work in some cases,
64512         e.g., when config.h has "#define intmax_t long long int" and
64513         we include <config.h>, <inttypes.h>, <config.h> in that order.
64514         Problem reported by Matthew Woehlke in:
64515         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64516         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64517         * lib/fts-cycle.c: Don't include config.h.
64518         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64519         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64520         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64521         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64522         inttypes.h.
64523         * lib/xstrtoumax.c: Likewise.
64524         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64525         __strtol and the like, so that this module is more like its siblings.
64526         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64527         Remove; no longer needed now that we assume gnulib inttypes.h.
64528
64529 2006-10-08  Bruno Haible  <bruno@clisp.org>
64530
64531         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64532         option.
64533
64534 2006-10-07  Jim Meyering  <jim@meyering.net>
64535
64536         * modules/inttypes (inttypes.h): Revert what seems to have been
64537         an inadvertent part of today's change: use "|", not "/" in the
64538         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64539
64540 2006-10-07  Bruno Haible  <bruno@clisp.org>
64541
64542         * modules/sublist: New file.
64543
64544 2006-10-07  Bruno Haible  <bruno@clisp.org>
64545
64546         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64547         * modules/argz (argz.h): Likewise.
64548         * modules/arpa_inet (arpa/inet.h): Likewise.
64549         * modules/byteswap (byteswap.h): Likewise.
64550         * modules/configmake (configmake.h): Likewise.
64551         * modules/fcntl (fcntl.h): Likewise.
64552         * modules/fnmatch (fnmatch.h): Likewise.
64553         * modules/getopt (getopt.h): Likewise.
64554         * modules/glob (glob.h): Likewise.
64555         * modules/inttypes (inttypes.h): Likewise.
64556         * modules/netinet_in (netinet/in.h): Likewise.
64557         * modules/poll (poll.h): Likewise.
64558         * modules/stdbool (stdbool.h): Likewise.
64559         * modules/stdint (stdint.h): Likewise.
64560         * modules/sys_select (sys/select.h): Likewise.
64561         * modules/sys_socket (sys/socket.h): Likewise.
64562         * modules/sys_stat (sys/stat.h): Likewise.
64563         * modules/sysexits (sysexits.h): Likewise.
64564         * modules/unistd (unistd.h): Likewise.
64565         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64566         Add a "DO NOT EDIT" comment to the generated file.
64567         (func_import): Likewise for gnulib-comp.m4.
64568
64569 2006-10-07  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/gl_sublist.h: New file.
64572         * lib/gl_sublist.c: New file.
64573
64574 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64577         name (relative to the original working directory) and the file
64578         name component (relative to the temporary working directory).  All
64579         callers changed.
64580         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64581         * lib/mkdir-p.c (make_dir_parents): Likewise.
64582         * lib/mkdir-p.h (make_dir_parents): Likewise.
64583
64584 2006-10-06  Eric Blake  <ebb9@byu.net>
64585
64586         Define several macros for use by the clean-temp module.
64587         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64588         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64589         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64590
64591         * lib/clean-temp.h (close_stream_temp): New declaration.
64592         * lib/clean-temp.c (includes): Pull in headers according to what
64593         other modules are in use.
64594         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64595
64596 2006-10-06  Bruno Haible  <bruno@clisp.org>
64597
64598         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64599         instead of fopen, fwriteerror.
64600
64601 2006-10-06  Bruno Haible  <bruno@clisp.org>
64602
64603         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64604         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64605         int.
64606         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64607         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64608         Return an error indicator.
64609         Suggested by Eric Blake.
64610
64611 2006-10-06  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64614         Reported by Eric Blake.
64615
64616 2006-10-06  Bruno Haible  <bruno@clisp.org>
64617
64618         * modules/closeout (Description): Mention stderr too.
64619
64620 2006-10-06  Bruno Haible  <bruno@clisp.org>
64621         and Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * lib/closeout.c (close_stdout): Also close stderr.
64624         * lib/closeout.h: Update comment.
64625
64626 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64629         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64630         * lib/dirchownmod.c: Include lchown.h.
64631         * lib/lchown.c: Don't include files that lchown.h now includes.
64632         Don't declare chown, since lchown.h now does that.
64633         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64634         (lchown): Define to rpl_chown if lchown is declared but
64635         does not exist.  Declare using a prototype if lchown is not
64636         declared.  Add a copyright notice.
64637         * lib/mkstemp.h: Include <unistd.h>.
64638         * lib/openat.c: Include lchown.h.
64639
64640         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64641         we now test for that separately.
64642         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64643         rather than O_NOFOLLOW, when testing whether it's possible to
64644         avoid a race condition reliably.
64645         * lib/savewd.c (savewd_chdir): Likewise.
64646
64647         Remove macros that are no longer needed now that stdint.h is
64648         reliable.
64649         * lib/fsusage.c (UINTMAX_MAX): Remove.
64650         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64651         * lib/utimecmp.c (SIZE_MAX): Remove.
64652
64653         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64654
64655         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64656         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64657         O_NOATIME works.
64658
64659 2006-10-05  Bruno Haible  <bruno@clisp.org>
64660
64661         * lib/gl_list.h (gl_sortedlist_search_from_to,
64662         gl_sortedlist_indexof_from_to): New declarations.
64663         (gl_list_implementation): New fields sortedlist_search_from_to,
64664         sortedlist_indexof_from_to.
64665         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64666         inline functions.
64667         * lib/gl_list.c (gl_sortedlist_search_from_to,
64668         gl_sortedlist_indexof_from_to): New functions.
64669         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64670         function.
64671         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64672         (gl_array_sortedlist_search_from_to): New function.
64673         (gl_array_list_implementation): Update.
64674         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64675         function.
64676         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64677         (gl_carray_sortedlist_search_from_to): New function.
64678         (gl_carray_list_implementation): Update.
64679         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64680         gl_linked_sortedlist_indexof_from_to): New functions.
64681         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64682         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64683         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64684         gl_tree_sortedlist_indexof_from_to): New functions.
64685         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64686         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64687         Update.
64688         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64689         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64690         Update.
64691
64692 2006-10-05  Bruno Haible  <bruno@clisp.org>
64693
64694         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64695         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64696         (struct gl_list_implementation): Add fields search_from_to,
64697         indexof_from_to. Remove fields search, indexof.
64698         (gl_list_search): Use the search_from_to method.
64699         (gl_list_search_from, gl_list_search_from_to): New functions.
64700         (gl_list_indexof): Use the indexof_from_to method.
64701         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64702         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64703         (gl_list_search_from, gl_list_search_from_to): New functions.
64704         (gl_list_indexof): Use the indexof_from_to method.
64705         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64706         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64707         gl_array_indexof. Add start_index, end_index arguments.
64708         (gl_array_search_from_to): Renamed from gl_array_search. Add
64709         start_index, end_index arguments.
64710         (gl_array_remove, gl_array_list_implementation): Update.
64711         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64712         gl_carray_indexof. Add start_index, end_index arguments.
64713         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64714         start_index, end_index arguments.
64715         (gl_carray_remove, gl_carray_list_implementation): Update.
64716         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64717         gl_linked_search. Add start_index, end_index arguments.
64718         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64719         start_index, end_index arguments.
64720         (gl_linked_remove): Update.
64721         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64722         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64723         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64724         field to 'size_t'.
64725         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64726         gl_tree_search. Add start_index, end_index arguments.
64727         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64728         start_index, end_index arguments.
64729         (gl_tree_remove): Update.
64730         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64731         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64732         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64733         function.
64734         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64735         gl_tree_search. Add start_index, end_index arguments.
64736         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64737         start_index, end_index arguments.
64738         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64739         Update.
64740         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64741
64742 2006-10-05  Bruno Haible  <bruno@clisp.org>
64743
64744         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64745
64746         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64747         fwriteerror_temp): New declarations.
64748         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64749         (descriptors): New variable.
64750         (cleanup): First, close the descriptors.
64751         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64752         fclose_temp, fwriteerror_temp): New functions.
64753
64754 2006-10-04  Jim Meyering  <jim@meyering.net>
64755
64756         * lib/fts.c (fts_open): Tiny comment change.
64757
64758 2006-10-04  Bruno Haible  <bruno@clisp.org>
64759
64760         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64761         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64762         gl_LOCK_BODY.
64763         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64764         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64765         gl_LOCK_EARLY_BODY.
64766         (gl_LOCK): Require gl_LOCK_BODY.
64767
64768 2006-10-04  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64771         (gl_oset_search_atleast): New declaration.
64772         (struct gl_oset_implementation): Add field 'search_atleast'.
64773         (gl_oset_search_atleast): New inline function.
64774         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64775         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64776         (gl_array_oset_implementation): Update.
64777         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64778         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64779         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64780
64781 2006-10-04  Bruno Haible  <bruno@clisp.org>
64782
64783         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64784
64785 2006-10-03  Bruno Haible  <bruno@clisp.org>
64786
64787         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64788         from gl_avltreehash_list_implementation.
64789
64790 2006-10-03  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/gl_oset.c (gl_oset_add): Fix return type.
64793
64794 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64795
64796         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64797
64798 2006-10-02  Eric Blake  <ebb9@byu.net>
64799
64800         * modules/strnlen (Depends-on): Add extensions.
64801
64802 2006-10-02  Eric Blake  <ebb9@byu.net>
64803
64804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64805         definition in 2.60+.
64806
64807 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64808
64809         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64810         checks.
64811
64812 2006-10-02  Bruno Haible  <bruno@clisp.org>
64813
64814         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64815         to the AUTOMAKE_OPTIONS.
64816         Reported by Jim Meyering.
64817
64818 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         Work around bug in Solaris 10 /proc file system:
64821         /proc/self/fd/NNN/.. isn't the parent directory of
64822         the directory whose file descriptor is NNN.  This needs to
64823         be worked around at run time, not compile time, since a
64824         program might be built on Solaris 8, where things work, and
64825         run on Solaris 10.
64826         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64827         to use the following interface instead:
64828         (OPENAT_BUFFER_SIZE): New macro.
64829         (openat_proc_name): New function.
64830         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64831         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64832         Likewise.
64833         * lib/openat-proc.c: New file.
64834         * modules/openat (Files): Add lib/openat-proc.c.
64835         (Depends-on): Add same-inode, stdbool.
64836         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64837
64838 2006-09-29  Bruno Haible  <bruno@clisp.org>
64839
64840         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64841         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64842         argument. Set stdout_closed before testing for ferror, not after.
64843         (fwriteerror, fwriteerror_no_ebadf): New functions.
64844
64845 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64846
64847         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64848
64849 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64850
64851         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64852         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64853
64854 2006-09-28  Jim Meyering  <jim@meyering.net>
64855
64856         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64857         Include <unistd.h>.
64858
64859 2006-09-28  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64862         * modules/linkedhash-list (Depends-on): Likewise.
64863         * modules/rbtreehash-list (Depends-on): Likewise.
64864
64865 2006-09-28  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/strndup.h: Simplify the redefinition of strndup.
64868         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64870
64871 2006-09-28  Bruno Haible  <bruno@clisp.org>
64872
64873         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64874         * lib/gl_linkedhash_list.c: Likewise.
64875         * lib/gl_rbtreehash_list.c: Likewise.
64876
64877 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64880         getaddrinfo.
64881
64882         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64883         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64884         it causes <stdio_ext.h> to cause a compile-time error.
64885         Problem reported by Nelson H. F. Beebe.
64886         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64887         of HAVE_DECL___PENDING.
64888
64889         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64890         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64891         declaration.
64892
64893 2006-09-27  Jim Meyering  <jim@meyering.net>
64894
64895         This file could end up with a definition for a function
64896         named __strndup, rather than rpl_strndup on a system with
64897         incomplete weak_alias support.
64898         * lib/strndup.c (strndup): Rename from __strndup.
64899         Remove #defines that used to map __strndup to strndup.
64900         Don't use K&R prototypes.
64901         Remove LIBC-related code, since this file is not sync'd with glibc.
64902         * lib/strndup.h: Revamp, accordingly.
64903         * m4/strndup.m4: Modernize.
64904
64905 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64906
64907         * modules/savewd (Depends-on): Add 'raise'.
64908         * lib/savewd.c: Include <signal.h>, for 'raise'.
64909
64910 2006-09-26  Jim Meyering  <jim@meyering.net>
64911
64912         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64913         when we detect Darwin 8.7.0's acl_get_file bug.
64914         Rearrange to perform the new (below) run-test while $LIBS
64915         contains any acl-related library.  Set USE_ACL at the end.
64916         (gl_ACL_GET_FILE): New function.
64917
64918 2006-09-26  Eric Blake  <ebb9@byu.net>
64919
64920         * lib/verror.c: Include <config.h> unconditionally.
64921
64922 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * modules/clock-time (Maintainer): Add self.
64925         * modules/getlogin_r (Depends-on): Add extensions.
64926
64927 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64928
64929         * modules/clock-time: New module.
64930         * modules/nanosleep (Depends-on): Add clock-time.
64931         * modules/gethrxtime (Depends-on): Likewise.
64932         * modules/gettime (Depends-on): Likewise.
64933         * modules/settime (Depends-on): Likewise.
64934
64935         * modules/fts-lgpl: Depend on openat.
64936         * modules/mkancesdirs: Depend on savewd.
64937         * modules/mkdir-p: Likewise.
64938
64939 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64940
64941         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64942
64943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64944         `gl_have_arbitrary_file_name_length_limit' to
64945         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64946         actually works between configure runs.
64947
64948 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64949             Bruno Haible  <bruno@clisp.org>
64950
64951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64952
64953 2006-09-25  Jim Meyering  <jim@meyering.net>
64954
64955         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64956         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64957
64958 2006-09-25  Eric Blake  <ebb9@byu.net>
64959
64960         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64961         exec's in 2006-09-18 patch when shuffling fds.
64962
64963 2006-09-25  Bruno Haible  <bruno@clisp.org>
64964
64965         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64966         Reported by Jim Meyering.
64967
64968 2006-09-24  Jim Meyering  <jim@meyering.net>
64969
64970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64971         compare a pointer against a literal "0".  That caused failures with
64972         at least HP-UX's hpcc.
64973
64974 2006-09-22  Simon Josefsson  <jas@extundo.com>
64975
64976         * modules/gc-sha1:
64977         * modules/gc-md4:
64978         * modules/gc-hmac-sha1:
64979         * modules/gc-hmac-md5:
64980         * modules/gc-des:
64981         * modules/gc-arcfour: Distribute more files.
64982
64983 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64984
64985         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64986         (gl_linked_iterator_from_to): Initialize struct completely.
64987         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64988         (gl_tree_iterator_from_to): Likewise
64989         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64990         * lib/gl_array_list.c [lint] (gl_array_iterator)
64991         (gl_array_iterator_from_to): Likewise.
64992         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64993         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64994         (gl_carray_iterator_from_to): Likewise.
64995
64996         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64997         * lib/md4.c (md4_process_block): Remove unused variable.
64998         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64999         parentheses for clarity.
65000
65001 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65002
65003         * modules/bison-i18n (Depends-on): Add gettext.
65004
65005 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65006
65007         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65008         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65009         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65010         also add missing comma that caused broken test.
65011         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65012         stdlib.h, for `abort'.
65013         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65014         variables.
65015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65016         include unistd.h if present, for `rmdir'.
65017         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65018         variables.
65019         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65020         in the process include standard headers for prototypes.
65021         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65022         gets declared on GNU/Linux.
65023         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65024         unistd.h, for `rmdir'.
65025         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65026
65027         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65028         always true.
65029         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65030
65031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65032
65033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65034
65035         * gnulib-tool (func_version): Create output all at once.  This
65036         may help avoid triggering unnecessary SIGPIPEs, and at any
65037         rate it doesn't hurt.
65038
65039 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65040             Bruno Haible  <bruno@clisp.org>
65041
65042         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65043         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65044         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65045
65046         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65047         (gl_FUNC_VASPRINTF): Invoke it.
65048
65049 2006-09-22  Bruno Haible  <bruno@clisp.org>
65050
65051         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65052         getloadavg.c as first argument.
65053
65054 2006-09-22  Bruno Haible  <bruno@clisp.org>
65055
65056         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65057         at the beginning of the gl_INIT macro.
65058         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65059         gl_GETLOADAVG.
65060
65061 2006-09-22  Bruno Haible  <bruno@clisp.org>
65062
65063         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65064         module.
65065         Suggested by Ralf Wildenhues.
65066
65067 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         Import this patch from libc:
65070
65071         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65072
65073         * lib/regex_internal.c (re_string_reconstruct): Handle
65074         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65075         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65076         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65077         re_string_context_at.
65078
65079         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65080         now requires it.
65081         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65082         gl_REGEX now does it for us.
65083         (gl_REGEX): Add test taken from
65084         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65085
65086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65087         Check that large offsets work.  Modernize Autoconf usages.
65088         Prefer "yes" to mean a good thing rather than a bad.
65089         Don't put "#define mkstemp" in config.h, as this might interfere
65090         with standard system headers that "#define mkstemp mkstemp64".
65091
65092         * modules/mkstemp (Depends-on): Add extensions, so that
65093         mkstemp is visible on some platforms.
65094         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65095         (Include): Change to "mkstemp.h" from <stdlib.h>.
65096         (Files): Add mkstemp.h.
65097
65098         * lib/mkstemp.h: New file, since some standard headers
65099         #define mkstemp.
65100         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65101         Include "mkstemp.h".
65102         Make the _LIBC code resemble glibc original more,
65103         e.g., use K&R style.
65104         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65105         (mkstemp): Remove, since mkstemp.h does this for us.
65106         * lib/stdlib--.h: Include mkstemp.h.
65107
65108         Import this patch from libc:
65109
65110         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65111
65112         * lib/tempname.c (__gen_tempname): Change attempts_min
65113         into a macro.  Use preprocessor to decide how to initialize
65114         attempts [Coverity CID 67].
65115
65116 2006-09-20  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/mkdtemp.c: Import from libc.
65119         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65120                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65121                 attempts_min into a macro.  Use preprocessor to decide how to
65122                 initialize attempts [Coverity CID 67].
65123         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65124                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65125                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65126
65127 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65128
65129         * gnulib-tool (func_exit): New function, to allow to pass the
65130         exit status portably through the trap.  Use everywhere.
65131         (--help, --version): Signal a write error.
65132         (trap): catch SIGPIPE, for write errors.
65133         Exit at the end of the trap, with the correct exit status.
65134
65135 2006-09-19  Karl Berry  <karl@gnu.org>
65136
65137         * doc/gnulib.texi: note about the license texinfo files.
65138
65139 2006-09-19  Eric Blake  <ebb9@byu.net>
65140
65141         * gnulib-tool: Avoid space-tab.
65142
65143 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65146         that prevented coreutils 6.1 from building.  Problem reported
65147         by Petter Reinholdtsen.
65148
65149 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         * gnulib-tool (avoidlist): Fix typo that broke options like
65152         --avoid=lock that are used by coreutils bootstrap.
65153
65154 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65155
65156         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65157         more systematically.
65158
65159 2006-09-18  Jim Meyering  <jim@meyering.net>
65160
65161         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65162
65163 2006-09-18  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65166
65167 2006-09-18  Bruno Haible  <bruno@clisp.org>
65168
65169         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65170         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65171         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65172         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65173         * m4/gettext.m4: Require autoconf >= 2.52.
65174         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65175         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65176         of gl_cv_header_inttypes_h.
65177
65178 2006-09-18  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/javaversion.c: Include configmake.h.
65181
65182 2006-09-18  Bruno Haible  <bruno@clisp.org>
65183
65184         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65185         avoid that the while loops be executed in a subshell.
65186
65187 2006-09-18  Bruno Haible  <bruno@clisp.org>
65188
65189         * MODULES.html.sh (func_module): Break long lines.
65190         Suggested by Bruce Korb <bkorb@gnu.org>.
65191
65192 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65193
65194         Speed up by a factor of 1.12.
65195         * gnulib-tool (nl): New variable.
65196         (func_import): Rewrite include directive extraction to only read each
65197         directive once.
65198
65199 2006-09-17  Bruno Haible  <bruno@clisp.org>
65200
65201         * modules/javaversion (Makefile.am): Remove DEFS setting.
65202         (Depends-on): Add configmake, for PKGDATADIR definition.
65203
65204 2006-09-17  Bruno Haible  <bruno@clisp.org>
65205
65206         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65207
65208 2006-09-17  Bruno Haible  <bruno@clisp.org>
65209
65210         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65211         (func_modules_transitive_closure, func_modules_add_dummy,
65212         func_modules_to_filelist, func_import, func_create_testdir,
65213         func_create_megatestdir, ...): Use it wherever possible.
65214         Suggested by Ralf Wildenhues.
65215
65216 2006-09-16  Karl Berry  <karl@gnu.org>
65217
65218         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65219         to avoid sectioning errors.
65220         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65221         [ifinfo]: blank line after @center-ed titles.
65222         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65223         Spell FSF address consistently with others.
65224         (These changes approved by rms.)
65225
65226 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65227
65228         Speed up by a factor of 1.61.
65229         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65230         already checked module names again.
65231
65232 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65233
65234         Speed up by a factor of 1.13.
65235         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65236         for new_files, and the input to func_add_or_update.
65237
65238 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65239
65240         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65241         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65242
65243 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * modules/mkancesdirs (Depends-on): Add fcntl.
65246         * modules/savewd: New file.
65247         * MODULES.html.sh (File system functions): Add savewd.
65248
65249         * modules/configmake (Makefile.am): Add support for the
65250         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65251
65252 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65253
65254         * m4/savewd.m4: New file.
65255
65256 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65259         (dirchownmod): New arg FD.  All callers changed.
65260         Use FD rather than opening the directory ourself, as opening is
65261         now the caller's responsibility.
65262         * lib/dirchownmod.h: Likewise.
65263         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65264         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65265         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65266         (test_dir): Remove.
65267         (mkancesdirs): Return length of prefix of FILE that has already
65268         been made, or -2 if there is a child doing the work.  Redo
65269         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65270         ".", and treat ".." specially since it might stray back into
65271         already-created areas.  Use a subprocess if necessary.  New arg
65272         WD; all users changed.  MAKE_DIR function should now return 1
65273         if it creates a directory that is not readable.  Return -2 if
65274         a child process is spun off.
65275         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65276         Adjust signature to match code.
65277         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65278         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65279         all users changed.
65280         * lib/savewd.c, lib/savewd.h: New files.
65281
65282 2006-09-15  Jim Meyering  <jim@meyering.net>
65283
65284         * modules/rename-dest-slash: New module.
65285         * MODULES.html.sh (posix_compat): Add it here.
65286
65287         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65288
65289 2006-09-15  Jim Meyering  <jim@meyering.net>
65290
65291         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65292         file.
65293
65294         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65295
65296 2006-09-15  Jim Meyering  <jim@meyering.net>
65297
65298         * lib/rename-dest-slash.c (has_trailing_slash): Use
65299         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65300         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65301         test before testing whether SRC is a directory.
65302         Suggestions from Bruno Haible.
65303
65304         Avoid a warning about an unused variable.
65305         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65306         into the #ifdef block where it's used.
65307
65308         * lib/rename-dest-slash.c: New file.
65309
65310 2006-09-14  Bruno Haible  <bruno@clisp.org>
65311
65312         * lib/allocsa.c: Include <config.h> unconditionally.
65313         * lib/asnprintf.c: Likewise.
65314         * lib/asprintf.c: Likewise.
65315         * lib/c-strcasecmp.c: Likewise.
65316         * lib/c-strcasestr.c: Likewise.
65317         * lib/c-strncasecmp.c: Likewise.
65318         * lib/c-strstr.c: Likewise.
65319         * lib/classpath.c: Likewise.
65320         * lib/clean-temp.c: Likewise.
65321         * lib/concatpath.c: Likewise.
65322         * lib/copy-file.c: Likewise.
65323         * lib/csharpcomp.c: Likewise.
65324         * lib/csharpexec.c: Likewise.
65325         * lib/execute.c: Likewise.
65326         * lib/fatal-signal.c: Likewise.
65327         * lib/findprog.c: Likewise.
65328         * lib/fwriteerror.c: Likewise.
65329         * lib/gl_array_list.c: Likewise.
65330         * lib/gl_array_oset.c: Likewise.
65331         * lib/gl_avltree_list.c: Likewise.
65332         * lib/gl_avltree_oset.c: Likewise.
65333         * lib/gl_avltreehash_list.c: Likewise.
65334         * lib/gl_carray_list.c: Likewise.
65335         * lib/gl_linked_list.c: Likewise.
65336         * lib/gl_linkedhash_list.c: Likewise.
65337         * lib/gl_list.c: Likewise.
65338         * lib/gl_oset.c: Likewise.
65339         * lib/gl_rbtree_list.c: Likewise.
65340         * lib/gl_rbtree_oset.c: Likewise.
65341         * lib/gl_rbtreehash_list.c: Likewise.
65342         * lib/imaxabs.c: Likewise.
65343         * lib/imaxdiv.c: Likewise.
65344         * lib/javacomp.c: Likewise.
65345         * lib/javaexec.c: Likewise.
65346         * lib/javaversion.c: Likewise.
65347         * lib/linebreak.c: Likewise.
65348         * lib/localcharset.c: Likewise.
65349         * lib/lock.c: Likewise.
65350         * lib/mbchar.c: Likewise.
65351         * lib/mbswidth.c: Likewise.
65352         * lib/mkdtemp.c: Likewise.
65353         * lib/pipe.c: Likewise.
65354         * lib/printf-args.c: Likewise.
65355         * lib/printf-parse.c: Likewise.
65356         * lib/progname.c: Likewise.
65357         * lib/progreloc.c: Likewise.
65358         * lib/readlink.c: Likewise.
65359         * lib/sh-quote.c: Likewise.
65360         * lib/stpcpy.c: Likewise.
65361         * lib/stpncpy.c: Likewise.
65362         * lib/strcasecmp.c: Likewise.
65363         * lib/strcasestr.c: Likewise.
65364         * lib/strcspn.c: Likewise.
65365         * lib/striconv.c: Likewise.
65366         * lib/strncasecmp.c: Likewise.
65367         * lib/strnlen1.c: Likewise.
65368         * lib/strstr.c: Likewise.
65369         * lib/strtok_r.c: Likewise.
65370         * lib/tls.c: Likewise.
65371         * lib/tmpdir.c: Likewise.
65372         * lib/unicodeio.c: Likewise.
65373         * lib/unsetenv.c: Likewise.
65374         * lib/vasnprintf.c: Likewise.
65375         * lib/vasprintf.c: Likewise.
65376         * lib/wait-process.c: Likewise.
65377         * lib/xallocsa.c: Likewise.
65378         * lib/xsetenv.c: Likewise.
65379         * lib/xstriconv.c: Likewise.
65380
65381 2006-09-13  Simon Josefsson  <jas@extundo.com>
65382
65383         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65384         that internally, suggested by Ralf Wildenhues
65385         <Ralf.Wildenhues@gmx.de>.
65386
65387 2006-09-13  Simon Josefsson  <jas@extundo.com>
65388
65389         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65390         @LIBOBJS@.
65391         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65392
65393 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65396         longer worry about uses that don't define HAVE_CONFIG_H.
65397         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65398         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65399         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65400         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65401         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65402         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65403         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65404         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65405         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65406         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65407         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65408         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65409         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65410         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65411         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65412         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65413         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65414         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65415         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65416         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65417         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65418         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65419         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65420         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65421         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65422         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65423         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65424         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65425         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65426         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65427         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65428         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65429         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65430         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65431         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65432         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65433         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65434         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65435         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65436         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65437         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65438         Likewise.
65439
65440 2006-09-13  Eric Blake  <ebb9@byu.net>
65441
65442         * lib/getopt.c: Fix typo in last commit.
65443
65444 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65445
65446         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65447         dgettext.
65448
65449 2006-09-12  Jim Meyering  <jim@meyering.net>
65450
65451         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65452         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65453         Reported by Nelson H. F. Beebe.
65454
65455 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65456
65457         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65458         program_invocation_name and program_invocation_short_name are
65459         initialized.
65460         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65461         and program_invocation_short_name to argp.h, so they are visible
65462         to user programs.
65463         * lib/argp.h: Likewise
65464
65465 2006-09-10  Bruno Haible  <bruno@clisp.org>
65466
65467         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65468         m4/inttypes_h.m4, m4/uintmax_t.m4.
65469
65470 2006-09-10  Bruno Haible  <bruno@clisp.org>
65471
65472         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65473         gl_AC_TYPE_UINTMAX_T.
65474
65475 2006-09-10  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65478
65479 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65480
65481         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65482         convention.  Text proposed by Bruno Haible.
65483         (struct argp_option): Document the use of N_() wrappers.
65484
65485         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65486         '\v', and translate the two parts separately, instead of feeding
65487         the whole string to gettext.  This allows to exclude
65488         '\v' from the strings visible to the translator by writing doc
65489         strings as N_("..") "\v" N_("..").
65490
65491 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         * config/srclist.txt: Undo latest change; the bug was fixed.
65494
65495 2006-09-09  Bruno Haible  <bruno@clisp.org>
65496
65497         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65498         assignments if building a library without libtool.
65499         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65500         in func_emit_lib_Makefile_am.
65501         (func_import): When building a static library libfoo.a, arrange to
65502         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65503         (func_create_testdir): Likewise.
65504         * modules/gc (configure.ac, Makefile.am): If building statically,
65505         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65506         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65507         * modules/striconv (configure.ac, Makefile.am): Likewise.
65508         Based on a suggestion by Ralf Wildenhues.
65509
65510 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65513         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65514         Also:
65515
65516         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65517         Add year_2050_test to catch glibc bug 2821
65518         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65519
65520         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65521         Prefer #ifdef to #if.
65522
65523         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65524         Return from 'main' instead of calling 'exit'.
65525
65526 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65529         returned the maximum time_t value rather than (time_t) -1.
65530         Problem originally reported by William Bardwell
65531         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65532
65533         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65534         Moved to here ...
65535         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65536         ... from here.
65537
65538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65541         2821 is fixed.
65542
65543 2006-09-08  Jim Meyering  <jim@meyering.net>
65544
65545         Don't make generated files read-only.  That would bother too many
65546         people.  However, do retain the ability to work when targets are
65547         read-only: remove the destination and temporary files before writing
65548         them (when generated via sed or echo), or by using the -f option for
65549         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65550         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65551         * modules/byteswap, modules/configmake, modules/fcntl:
65552         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65553         * modules/localcharset, modules/netinet_in, modules/poll:
65554         * modules/stdbool, modules/stdint, modules/sys_select:
65555         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65556
65557 2006-09-08  Jim Meyering  <jim@meyering.net>
65558
65559         Avoid new build failure on FreeBSD 6.0.
65560         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65561         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65562         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65563
65564 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65565
65566         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65567
65568 2006-09-07  Jim Meyering  <jim@meyering.net>
65569
65570         Fix global typo in last change: use chmod u-w, not chmod u-x.
65571         Spotted by Paul Eggert and Bruce Korb.
65572         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65573         * modules/byteswap, modules/configmake, modules/fcntl:
65574         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65575         * modules/localcharset, modules/netinet_in, modules/poll:
65576         * modules/stdbool, modules/stdint, modules/sys_select:
65577         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65578
65579 2006-09-06  Jim Meyering  <jim@meyering.net>
65580
65581         Make generated files be read-only.
65582         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65583         Ensure that each generated file is now read-only.
65584         * modules/argz: Likewise.
65585         * modules/arpa_inet: Likewise.
65586         * modules/byteswap: Likewise.
65587         * modules/configmake: Likewise.
65588         * modules/fcntl: Likewise.
65589         * modules/fnmatch: Likewise.
65590         * modules/getopt: Likewise.
65591         * modules/glob: Likewise.
65592         * modules/inttypes: Likewise.
65593         * modules/netinet_in: Likewise.
65594         * modules/poll: Likewise.
65595         * modules/stdbool: Likewise.
65596         * modules/stdint: Likewise.
65597         * modules/sys_select: Likewise.
65598         * modules/sys_socket: Likewise.
65599         * modules/sys_stat: Likewise.
65600         * modules/sysexits: Likewise.
65601         * modules/localcharset: Same as above, but continue using temporary
65602         file named "t-$@" (why different?) rather than the "$@-t" used
65603         everywhere else.
65604
65605         * modules/sysexits (Makefile.am): Replace literal occurrences
65606         of "sysexit.h" more readable, and more consistent, "$@".
65607
65608 2006-09-06  Bruno Haible  <bruno@clisp.org>
65609
65610         * modules/striconv: New file.
65611         * modules/xstriconv: New file.
65612         * MODULES.html.sh (Internationalization functions): Add striconv,
65613         xstriconv.
65614
65615 2006-09-06  Bruno Haible  <bruno@clisp.org>
65616
65617         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65618         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65619         not using libtool correctly.
65620
65621 2006-09-06  Bruno Haible  <bruno@clisp.org>
65622
65623         * lib/striconv.h: New file.
65624         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65625         iconvstring.c.
65626         * lib/xstriconv.h: New file.
65627         * lib/xstriconv.c: New file.
65628
65629 2006-09-06  Bruno Haible  <bruno@clisp.org>
65630
65631         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65632         lib_..._LDFLAGS.
65633
65634 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65635
65636         * lib/argz_.h: Sync from Libtool.
65637
65638         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65639                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65640
65641         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65642
65643 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65644
65645         * modules/trim: New file.
65646
65647 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65648
65649         * lib/trim.h: New file.
65650         * lib/trim.c: New file.
65651
65652 2006-09-05  Bruno Haible  <bruno@clisp.org>
65653
65654         * MODULES.html.sh (String handling): Add trim.
65655
65656 2006-09-04  Karl Berry  <karl@gnu.org>
65657
65658         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65659         until next release.
65660
65661 2006-09-03  Bruno Haible  <bruno@clisp.org>
65662
65663         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65664         correctly.
65665
65666 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65669         not gl_GETLOADAVG.  Omit unneeded semicolons.
65670         Problems reported by Ralf Wildenhues in
65671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65672         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65673         at the end, which is the usual gnulib style.
65674
65675         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65676         of doing all the work ourselves.
65677         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65678         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65679
65680 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65683         Problem reported by Ralf Wildenhues in
65684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65685
65686         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65687         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65688
65689 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65692         yesterday's patch by changing test -n to test -z.
65693
65694 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65697         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65698         the former is now obsolescent.
65699
65700         * modules/chdir-long (Depends-on): Add fcntl.
65701
65702 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65705         obsolescent, and programs should use gnulib instead.
65706         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65707         but with prefixes changed.
65708
65709 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65712         or stdbool.h, because they might not exist while configuring.
65713
65714         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65715         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65716         does that for us.
65717         (O_DIRECTORY): Remove.
65718
65719 2006-08-31  Eric Blake  <ebb9@byu.net>
65720
65721         * gnulib-tool: Don't let emacs change spaces to TAB.
65722
65723 2006-08-31  Bruno Haible  <bruno@clisp.org>
65724
65725         * gnulib-tool: When calling func_import more than once, do it in a
65726         subshell.
65727         Reported by Eric Blake <ebb9@byu.net>.
65728
65729 2006-08-31  Bruno Haible  <bruno@clisp.org>
65730
65731         * gnulib-tool (nl): Remove variable.
65732         (sed_transform_lib_file): Use more robust test for config-h module.
65733         (func_import): Fix typo in 2006-08-25 patch.
65734
65735 2006-08-31  Bruno Haible  <bruno@clisp.org>
65736
65737         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65738         specified, augment Makefile.am variables instead of assigning them.
65739
65740 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65741
65742         Work around a bug in both the Linux and SunOS 64-bit kernels:
65743         nanosleep mishandles sleeps for longer than 2**31 seconds.
65744         Problem reported by Frank v Waveren in
65745         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65747         Check for nanosleep bug.
65748         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65749
65750 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         Work around a bug in both the Linux and SunOS 64-bit kernels:
65753         nanosleep mishandles sleeps for longer than 2**31 seconds.
65754         Problem reported by Frank v Waveren in
65755         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65756         * lib/nanosleep.c (BILLION): New constant.
65757         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65758         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65759         implementation.
65760
65761 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * modules/nanosleep (Depends-on): Add gettime.
65764
65765 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65766         and Simon Josefsson  <jas@extundo.com>
65767         and Oskar Liljeblad  <oskar@osk.mine.nu>
65768
65769         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65770         * gnulib-tool (func_import): New license type 'unmodifiable license
65771         text'.
65772         * modules/fdl: Use it.  Longer description.
65773         * module/gpl, module/lgpl: New files.
65774
65775 2006-08-30  Jim Meyering  <jim@meyering.net>
65776
65777         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65778         shadowing the parameter.
65779
65780 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65781
65782         Sync from Libtool:
65783
65784         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65785
65786         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65787         sharing with gnulib.  Report by Eric Blake.
65788
65789 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         * modules/isapipe: New file.
65792         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65793
65794 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65795
65796         * modules/configmake (Makefile.am): Add a comment, and omit
65797         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65798         by Bruno Haible.
65799
65800 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         * m4/isapipe.m4: New file.
65803
65804 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * lib/isapipe.c, lib/isapipe.h: New files.
65807
65808 2006-08-29  Jim Meyering  <jim@meyering.net>
65809
65810         * modules/configmake (Makefile.am): Make configmake.h depend on
65811         Makefile.  Otherwise, a stale configmake.h could hang around.
65812
65813 2006-08-29  Eric Blake  <ebb9@byu.net>
65814
65815         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65816         resolution of upstream bug 3044.
65817
65818 2006-08-29  Bruno Haible  <bruno@clisp.org>
65819
65820         * modules/localcharset (Depends-on): Add configmake.
65821         (Makefile.am): Remove setting of LIBDIR through DEFS.
65822
65823 2006-08-29  Bruno Haible  <bruno@clisp.org>
65824
65825         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65826         defined.
65827
65828 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * modules/fcntl: New file.
65831         * modules/chdir-safer (Depends-on): Add fcntl.
65832         * modules/fts: Likewise.
65833         * modules/mkdir-p: Likewise.
65834
65835         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65836         This undoes the most recent change, since we're now addressing the
65837         problem in a different way.
65838
65839         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65840         into output, since the output might be called Makefile.am even
65841         if $makefile_name is something different.
65842         (func_import): Use $makefile_am rather than
65843         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65844         empty.
65845
65846         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65847
65848 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65849
65850         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65851         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65852         recent change to stdint.m4, since we're now addressing the problem in a
65853         different way.
65854
65855 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * m4/fcntl_h.m4: New file.
65858
65859 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * lib/fcntl_.h: New file.
65862         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65863         the fcntl module.
65864         * lib/dirchownmod.c: Likewise.
65865         * lib/fts.c: Likewise.
65866
65867         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65868         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65869         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65870         just before including <inttypes.h>, to avoid circular inclusion.
65871
65872 2006-08-28  Jim Meyering  <jim@meyering.net>
65873
65874         * doc/visibility.texi: Actually read and correct the grammar of the
65875         sentence affected by yesterday's change.
65876
65877 2006-08-28  Eric Blake  <ebb9@byu.net>
65878
65879         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65880         needs wrapper.
65881
65882 2006-08-28  Eric Blake  <ebb9@byu.net>
65883
65884         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65885
65886 2006-08-28  Eric Blake  <ebb9@byu.net>
65887
65888         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65889
65890 2006-08-28  Bruno Haible  <bruno@clisp.org>
65891
65892         * modules/c-strstr: New file, from GNU gettext.
65893         * MODULES.html.sh (String handling): Add c-strstr.
65894
65895 2006-08-28  Bruno Haible  <bruno@clisp.org>
65896
65897         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65898         macros.
65899         Reported by Eric Blake.
65900
65901 2006-08-28  Bruno Haible  <bruno@clisp.org>
65902
65903         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65904         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65905         * lib/vasprintf.c: Include errno.h, limits.h.
65906         (EOVERFLOW): New fallback definition.
65907         (vasprintf): Test here whether the string length is > INT_MAX.
65908         * lib/vsnprintf.c: Include errno.h, limits.h.
65909         (EOVERFLOW): New fallback definition.
65910         (vsnprintf): Fix bug when generated string was too long for the buffer.
65911         Test here whether the string length is > INT_MAX.
65912
65913 2006-08-28  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/inttypes_.h (SCNX*): Remove definitions.
65916         Reported by Eric Blake.
65917
65918 2006-08-28  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/c-strstr.h: New file, from GNU gettext.
65921         * lib/c-strstr.c: New file, from GNU gettext.
65922
65923 2006-08-28  Bruno Haible  <bruno@clisp.org>
65924
65925         * gnulib-tool: Reorder some statements.
65926
65927 2006-08-28  Bruno Haible  <bruno@clisp.org>
65928
65929         * gnulib-tool: New option --makefile-name.
65930         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65931         $makefile_name.
65932         (func_import): Write $makefile_name to the cache file, and read it from
65933         there unless explicitly specified. Use $makefile_name as file name
65934         instead of Makefile.am. Adjust the recommendations accordingly.
65935
65936 2006-08-28  Bruno Haible  <bruno@clisp.org>
65937
65938         * gnulib-tool (func_verify_module): Check against misapplying patch.
65939
65940 2006-08-28  Bruno Haible  <bruno@clisp.org>
65941
65942         * gnulib-tool (func_relativize, func_relconcat): New functions.
65943         Give an error if --local-dir is given with --update.
65944         Remove trailing slashes from $local_gnulib_dir.
65945         (func_import): Store the relativized $local_gnulib_dir in
65946         gnulib-cache.m4, and read it from there if not specified explicitly.
65947
65948 2006-08-28  Bruno Haible  <bruno@clisp.org>
65949
65950         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65951         is the current directory. Respect also $local_gnulib_dir.
65952
65953 2006-08-28  Bruno Haible  <bruno@clisp.org>
65954             Simon Josefsson  <jas@extundo.com>
65955
65956         BeOS portability.
65957         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65958
65959 2006-08-27  Jim Meyering  <jim@meyering.net>
65960
65961         * doc/visibility.texi: Remove duplicate word: "pointer".
65962
65963 2006-08-26  Bruno Haible  <bruno@clisp.org>
65964
65965         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65966         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65967         (Makefile.am): Create inttypes.h from inttypes_.h.
65968         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65969
65970         * modules/imaxabs: New file.
65971
65972         * modules/imaxdiv: New file.
65973
65974 2006-08-26  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/inttypes.m4: New file.
65977         * m4/_inttypes_h.m4: Remove file.
65978         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65979         PRI_MACROS_BROKEN.
65980         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65981
65982         * m4/imaxabs.m4: New file.
65983
65984         * m4/imaxdiv.m4: New file.
65985
65986 2006-08-26  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/inttypes_.h: New file.
65989         * lib/inttypes.h: Remove file.
65990         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65991
65992         * lib/imaxabs.c: New file.
65993
65994         * lib/imaxdiv.c: New file.
65995
65996 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         New config-h module, so that "make" output needn't be cluttered
65999         by -DHAVE_CONFIG_H.
66000         * MODULES.html.sh (Support for building libraries and executables):
66001         Add config-h.
66002         * modules/config-h: New file.
66003         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66004         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66005         the config-h module is used.
66006
66007         New configmake module, so that "make" output needn't be cluttered
66008         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66009         * MODULES.html.sh (Support for building libraries and executables):
66010         Add configmake.
66011         * modules/configmake: New file.
66012
66013 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66014
66015         * m4/config-h.m4: New file.
66016
66017 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66018
66019         * config/srclist.txt: Add elisp-comp.
66020
66021 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         * MODULES.html.sh (Support for building libraries and executables):
66024         Add elisp-comp.
66025         * build-aux/elisp-comp: New file.
66026         * modules/elisp-comp: New file.
66027
66028 2006-08-24  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_create_testdir): Use non-default values of
66031         sourcebase and m4base.
66032
66033 2006-08-24  Bruno Haible  <bruno@clisp.org>
66034
66035         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66036         HTML structure.
66037
66038 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * modules/openat (Depends-on): Add lchown.
66041
66042 2006-08-23  Bruno Haible  <bruno@clisp.org>
66043
66044         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66045         of gl_LOCK_EARLY instead of gl_LOCK.
66046
66047 2006-08-23  Bruno Haible  <bruno@clisp.org>
66048
66049         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66050         on OSF/1 to no.
66051         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66052
66053 2006-08-23  Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66056         as unusable.
66057
66058         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66059         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66060         (gl_LOCK): New macro.
66061
66062 2006-08-22  Simon Josefsson  <jas@extundo.com>
66063
66064         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66065         to md5 module.
66066
66067 2006-08-22  Simon Josefsson  <jas@extundo.com>
66068
66069         * MODULES.html.sh: Add "Support for maintaining and release
66070         projects".
66071
66072         * build-aux/gnupload: New file, from coreutils.
66073
66074 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         Avoid the need for AC_LIBSOURCES in m4 macros.
66077         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66078         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66079         * modules/check-version (EXTRA_DIST): Add check-version.h.
66080         * modules/crc (EXTRA_DIST): Add crc.h.
66081         * modules/des (EXTRA_DIST): Add des.h.
66082         * modules/gc (EXTRA_DIST): Add gc.h.
66083         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66084         * modules/getline (EXTRA_DIST): Add getline.h.
66085         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66086         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66087         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66088         * modules/md2 (EXTRA_DIST): Add md2.h.
66089         * modules/md4 (EXTRA_DIST): Add md4.h.
66090         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66091         * modules/read-file (EXTRA_DIST): Add read-file.h.
66092         * modules/readline (EXTRA_DIST): Add readline.h.
66093         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66094         rijndael-api-fst.h.
66095
66096 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * m4/rijndael.m4 (gl_ARCFOUR):
66099         * m4/arctwo.m4 (gl_ARCTWO):
66100         * m4/check-version.m4 (gl_CHECK_VERSION):
66101         * m4/crc.m4 (gl_CRC):
66102         * m4/des.m4 (gl_DES):
66103         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66104         * m4/gc.m4 (gl_GC):
66105         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66106         * m4/getline.m4 (gl_FUNC_GETLINE):
66107         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66108         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66109         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66110         * m4/md2.m4 (gl_MD2):
66111         * m4/md4.m4 (gl_MD4):
66112         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66113         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66114         * m4/readline.m4 (gl_FUNC_READLINE):
66115         * m4/rijndael.m4 (gl_RIJNDAEL):
66116         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66117         to get the necessary .h files and whatnot.
66118
66119 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66120
66121         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66122         gnulib rather than the other way around.
66123         * config/srclistvars.sh (COREUTILS): Remove.
66124
66125 2006-08-22  Jim Meyering  <jim@meyering.net>
66126
66127         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66128
66129         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66130
66131 2006-08-22  Eric Blake  <ebb9@byu.net>
66132
66133         * modules/regexprops-generic: New file.
66134         * MODULES.html.sh (Support for building documentation): List it.
66135
66136 2006-08-22  Eric Blake  <ebb9@byu.net>
66137
66138         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66139         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66140         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66141         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66142
66143 2006-08-22  Bruno Haible  <bruno@clisp.org>
66144
66145         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66146         and lib_LTLIBRARIES like the other lib_* variables.
66147
66148 2006-08-22  Bruno Haible  <bruno@clisp.org>
66149
66150         * build-aux/x-to-1.in: New file, from GNU gettext.
66151
66152 2006-08-22  Bruno Haible  <bruno@clisp.org>
66153
66154         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66155         <utmpx.h> exists.
66156
66157 2006-08-22  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66160         <utmpx.h> exists.
66161
66162 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         BeOS portability.
66165         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66166         exist.
66167         Problem reported by Bruno Haible.
66168
66169 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         Avoid the need for AC_LIBSOURCES in m4 macros.
66172         * modules/acl (EXTRA_DIST): Add acl.h.
66173         * modules/argmatch (Files): Add m4/argmatch.m4.
66174         (configure.ac): Add gl_ARGMATCH.
66175         (EXTRA_DIST): Renamed from lib_SOURCES, for
66176         consistency with the other modules.  Remove argmatch.c.
66177         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66178         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66179         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66180         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66181         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66182         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66183         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66184         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66185         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66186         * modules/closeout (EXTRA_DIST): Add closeout.h.
66187         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66188         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66189         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66190         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66191         dirname.h; remove basename.c and stripslash.c.
66192         * modules/exclude (EXTRA_DIST): Add exclude.h.
66193         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66194         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66195         * modules/file-type (EXTRA_DIST): Add file-type.h.
66196         * modules/filemode (EXTRA_DIST): Add filemode.h.
66197         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66198         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66199         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66200         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66201         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66202         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66203         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66204         * modules/getdate (EXTRA_DIST): Add getdate.c.
66205         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66206         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66207         * modules/getpass (EXTRA_DIST): Add getpass.h.
66208         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66209         * modules/group-member (EXTRA_DIST): Add group-member.h.
66210         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66211         * modules/hash (EXTRA_DIST): Add hash.h.
66212         * modules/human (EXTRA_DIST): Add human.h.
66213         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66214         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66215         * modules/lchown (EXTRA_DIST): Add lchown.h.
66216         * modules/long-options (EXTRA_DIST): Add long-options.h.
66217         * modules/lstat (EXTRA_DIST): Add lstat.h.
66218         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66219         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66220         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66221         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66222         * modules/memxor (EXTRA_DIST): Add memxor.h.
66223         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66224         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66225         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66226         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66227         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66228         * modules/physmem (EXTRA_DIST): Add physmem.h.
66229         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66230         * modules/posixver (EXTRA_DIST): Add posixver.h.
66231         * modules/quote (EXTRA_DIST): Add quote.h.
66232         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66233         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66234         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66235         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66236         regex_internal.h regexec.c.
66237         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66238         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66239         * modules/same (EXTRA_DIST): Add same.h.
66240         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66241         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66242         * modules/savedir (EXTRA_DIST): Add savedir.h.
66243         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66244         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66245         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66246         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66247         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66248         * modules/strdup (EXTRA_DIST): Add strdup.h.
66249         * modules/strftime (EXTRA_DIST): Add strftime.h.
66250         * modules/strndup (EXTRA_DIST): Add strndup.h.
66251         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66252         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66253         * modules/time_r (EXTRA_DIST): Add time_r.h.
66254         * modules/timespec (EXTRA_DIST): Add timespec.h.
66255         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66256         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66257         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66258         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66259         * modules/userspec (EXTRA_DIST): Add userspec.h.
66260         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66261         * modules/utimens (EXTRA_DIST): Add utimens.h.
66262         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66263         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66264         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66265         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66266         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66267         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66268         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66269         * modules/yesno (EXTRA_DIST): Add yesno.h.
66270
66271 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66272
66273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66274
66275         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66276         * m4/dev-ino.m4, same-inode.m4: Remove.
66277
66278         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66279         * m4/acl.m4 (AC_FUNC_ACL):
66280         * m4/backupfile.m4 (gl_BACKUPFILE):
66281         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66282         * m4/canon-host.m4 (gl_CANON_HOST):
66283         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66285         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66286         * m4/cloexec.m4 (gl_CLOEXEC):
66287         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66288         * m4/closeout.m4 (gl_CLOSEOUT):
66289         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66290         * m4/dirname.m4 (gl_DIRNAME):
66291         * m4/exclude.m4 (gl_EXCLUDE):
66292         * m4/exitfail.m4 (gl_EXITFAIL):
66293         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66294         * m4/file-type.m4 (gl_FILE_TYPE):
66295         * m4/filemode.m4 (gl_FILEMODE):
66296         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66297         * m4/fpending.m4 (gl_FUNC_FPENDING):
66298         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66299         * m4/fts.m4 (gl_FUNC_FTS):
66300         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66301         * m4/getdate.m4 (gl_GETDATE):
66302         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66303         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66304         * m4/getpass.m4 (gl_FUNC_GETPASS):
66305         * m4/gettime.m4 (gl_GETTIME):
66306         * m4/getugroups.m4 (gl_GETUGROUPS):
66307         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66308         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66309         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66310         * m4/hash.m4 (gl_HASH):
66311         * m4/idcache.m4 (gl_IDCACHE):
66312         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66313         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66314         * m4/long-options.m4 (gl_LONG_OPTIONS):
66315         * m4/lstat.m4 (gl_FUNC_LSTAT):
66316         * m4/md5.m4 (gl_MD5):
66317         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66318         * m4/memcoll.m4 (gl_MEMCOLL):
66319         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66321         * m4/memxor.m4 (gl_MEMXOR):
66322         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66323         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66324         * m4/modechange.m4 (gl_MODECHANGE):
66325         * m4/mountlist.m4 (gl_MOUNTLIST):
66326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66327         * m4/openat.m4 (gl_FUNC_OPENAT):
66328         * m4/pathmax.m4 (gl_PATHMAX):
66329         * m4/physmem.m4 (gl_PHYSMEM):
66330         * m4/posixtm.m4 (gl_POSIXTM):
66331         * m4/posixver.m4 (gl_POSIXVER):
66332         * m4/quote.m4 (gl_QUOTE):
66333         * m4/quotearg.m4 (gl_QUOTEARG):
66334         * m4/readtokens.m4 (gl_READTOKENS):
66335         * m4/readutmp.m4 (gl_READUTMP):
66336         * m4/regex.m4 (gl_REGEX):
66337         * m4/safe-read.m4 (gl_SAFE_READ):
66338         * m4/safe-write.m4 (gl_SAFE_WRITE):
66339         * m4/same.m4 (gl_SAME):
66340         * m4/save-cwd.m4 (gl_SAVE_CWD):
66341         * m4/savedir.m4 (gl_SAVEDIR):
66342         * m4/settime.m4 (gl_SETTIME):
66343         * m4/sha1.m4 (gl_SHA1):
66344         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66345         * m4/stat-macros.m4 (gl_STAT_MACROS):
66346         * m4/stat-time.m4 (gl_STAT_TIME):
66347         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66348         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66349         * m4/strdup.m4 (gl_FUNC_STRDUP):
66350         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66351         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66352         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66353         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66354         * m4/time_r.m4 (gl_TIME_R):
66355         * m4/timespec.m4 (gl_TIMESPEC):
66356         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66357         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66358         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66359         * m4/userspec.m4 (gl_USERSPEC):
66360         * m4/utimecmp.m4 (gl_UTIMECMP):
66361         * m4/utimens.m4 (gl_UTIMENS):
66362         * m4/xalloc.m4 (gl_XALLOC):
66363         * m4/xgetcwd.m4 (gl_XGETCWD):
66364         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66365         * m4/xreadlink.m4 (gl_XREADLINK):
66366         * m4/xstrtod.m4 (gl_XSTRTOD):
66367         * m4/yesno.m4 (gl_YESNO):
66368         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66369         to get the necessary .h files and whatnot.
66370
66371 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66372             Bruno Haible  <bruno@clisp.org>
66373
66374         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66375         /bin/sh understanding of '!' conditional negation.
66376
66377 2006-08-21  Jim Meyering  <jim@meyering.net>
66378
66379         * modules/openat (Depends-on): Really alphabetize.
66380
66381         * modules/acl (Depends-on): Add error and quote.
66382
66383         * check-module (find_included_lib_files): Add at-func.c to the
66384         ok-to-include-more-than-once white list.
66385
66386         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66387
66388 2006-08-21  Bruno Haible  <bruno@clisp.org>
66389
66390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66391         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66392         Reported by Martin Lambers <marlam@marlam.de>.
66393
66394 2006-08-21  Bruno Haible  <bruno@clisp.org>
66395
66396         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66397         specify an installation location, don't emit a noinst_LIBRARIES or
66398         noinst_LTLIBRARIES assignment.
66399
66400 2006-08-21  Bruno Haible  <bruno@clisp.org>
66401
66402         BeOS portability.
66403         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66404         BeOS has mbrtowc() but no <wctype.h>.
66405
66406 2006-08-21  Bruno Haible  <bruno@clisp.org>
66407
66408         BeOS portability.
66409         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66410         exist.
66411
66412 2006-08-21  Bruno Haible  <bruno@clisp.org>
66413
66414         BeOS portability.
66415         * lib/mbchar.h: Include <wctype.h> only if it exists.
66416
66417 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         Remove files that are no longer needed by their respective modules.
66420         * m4/obstack.m4: Remove.
66421         * m4/strerror_r.m4: Remove.
66422         * m4/uint32_t.m4: Remove.
66423         * m4/uintptr_t.m4: Remove.
66424         * m4/ullong_max.m4: Remove.
66425         * m4/xstrtoimax.m4: Remove.
66426         * m4/xstrtoumax.m4: Remove.
66427
66428         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66429         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66430         dependencies now capture this.
66431
66432         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66433         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66434         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66435         * m4/human.m4 (gl_HUMAN): Likewise.
66436         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66437         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66438
66439         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66440
66441         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66442         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66443         stdint.
66444         * m4/human.m4 (gl_HUMAN): Likewise.
66445         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66446         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66447         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66448         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66449         * m4/xstrtol (gl_XSTRTOL): Likewise.
66450
66451         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66452         AC_TYPE_LONG_LONG_INT.
66453         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66454         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66455         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66456         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66457
66458         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66459         on stdbool.
66460
66461         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66462         (gl_PREREQ_XSTRTOUL): Remove.
66463
66464         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66465
66466         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66467         mode.
66468
66469 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         Add and change modules to make it easier for coreutils to use
66472         gnulib-tool.
66473         * modules/backupfile (Files): Remove m4/d-ino.m4.
66474         (Depends-on): Add d-ino.
66475         * modules/cycle-check (Depends-on): Add stdint.
66476         (lib_SOURCES): Add cycle-check.h.
66477         * modules/d-ino: New module.
66478         * modules/d-type: New module.
66479         * modules/error (Files): Remove m4/strerror_r.m4.
66480         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66481         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66482         m4/inttypes_h.m4, m4/uintmax_t.m4.
66483         (Depends-on): Add stdint.
66484         (lib_SOURCES): Add fsusage.h.
66485         * modules/getcwd (Files): Remove d-ino.m4.
66486         (Depends-on): Add d-ino.
66487         * modules/getndelim2 (Depends-on): Add stdint.
66488         * modules/glob (Files): Remove m4/d-type.m4.
66489         (Depends-on): Add d-type.
66490         * modules/host-os: New module.
66491         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66492         m4/inttypes_h.m4, m4/uintmax_t.m4.
66493         * Depends-on: Add stdint.
66494         (lib_SOURCES): Add human.h.
66495         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66496         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66497         m4/uintmax_t.m4, m4/ulonglong.m4.
66498         (Depends-on): Add stdint.
66499         (EXTRA_DIST): Add inttostr.h.
66500         * modules/lchmod: New module.
66501         * modules/link-follow: New module.
66502         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66503         (Depends-on): Add lchmod.
66504         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66505         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66506         (Depends-on): Add stdint.
66507         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66508         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66509         (Depends-on): Add stdint.
66510         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66511         * modules/perl: New module.
66512         * modules/regex (Depends-on): Add stdint.
66513         * modules/rmdir-errno: New module.
66514         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66515         m4/intmax_t.m4.
66516         (Depends-on): Add stdint.
66517         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66518         m4/uintmax_t.m4.
66519         (Depends-on): Add stdint.
66520         * modules/unlink-busy: New module.
66521         * modules/utimecmp (Depends-on): Add stdint.
66522         * modules/uptime: New module.
66523         * modules/winsz-ioctl: New module.
66524         * modules/winsz-termios: New module.
66525         * modules/xnanosleep (Depends-on): Add nanosleep.
66526         * modules/ullong_max: Remove.
66527         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66528         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66529         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66530         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66531         (Depends-on): Add inttypes.
66532         (lib_SOURCES): Add xstrtol.h.
66533         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66534         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66535         * MODULES.html.sh: Move 'assert' into the assert section.
66536         Move 'dummy' into the linking section.
66537         Remove ullong_max.
66538         Add section for compatibility checks for POSIX:2001 functions,
66539         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66540         winsz-ioctl, and winsz-termios into it.
66541         Add lchmod.
66542         Add top-level Misc section and put host-os, perl, and uptime
66543         into it.
66544
66545 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66546
66547         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66548         now assume the stdint module.  Do not include inttypes.h.
66549         * lib/fsusage.h: Likewise.
66550         * lib/getndelim2.c: Likewise.
66551         * lib/human.h: Likewise.
66552         * lib/inttostr.h: Likewise.
66553         * lib/obstack.c: Likewise.
66554         * lib/regex_internal.h: Likewise.
66555         * lib/tempname.c: Likewise.
66556         * lib/utimecmp.c: Likewise.
66557         * lib/xstrtol.h: Likewise.
66558
66559         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66560
66561         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66562         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66563         * lib/xtime.h: Likewise.
66564
66565 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * modules/openat (Files): Add lib/fchmodat.c.
66568         Fixes problem reported by Jay Youngman.
66569
66570 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66573         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66574
66575 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66576             Bruno Haible  <bruno@clisp.org>
66577
66578         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66579         and is a script that invokes bison. Tighten the code. Add comments.
66580
66581 2006-08-18  Jim Meyering  <jim@meyering.net>
66582
66583         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66584         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66585         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66586         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66587
66588 2006-08-18  Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/bison-i18n: New file.
66591         * MODULES.html.sh (Internationalization functions): Add it.
66592
66593 2006-08-18  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66596         sys/statvfs.h. When getmntinfo was found, check its declaration and
66597         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66598
66599 2006-08-18  Bruno Haible  <bruno@clisp.org>
66600
66601         * m4/bison-i18n.m4: New file, from bison.
66602
66603 2006-08-18  Bruno Haible  <bruno@clisp.org>
66604
66605         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66606         (ME_DUMMY): Treat "kernfs" as a dummy.
66607         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66608
66609 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         Update from coreutils.
66612
66613         2006-08-15  Jim Meyering  <jim@meyering.net>
66614
66615         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66616
66617         2006-01-17  Jim Meyering  <jim@meyering.net>
66618
66619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66620
66621         2006-01-11  Jim Meyering  <jim@meyering.net>
66622
66623         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66624         Check for the lchmod function.
66625
66626 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         Update from coreutils.
66629
66630         * lib/__fpending.h: Add copyright notice.
66631         * lib/fprintftime.h: Likewise.
66632         * lib/savedir.c: Use (C) in copyright notice.
66633         * lib/savedir.h: Likewise.
66634
66635         2006-08-15  Jim Meyering  <jim@meyering.net>
66636
66637         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66638         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66639         in support of the EXPECTED_ERRNO macro.
66640         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66641         definitions.  Instead, define the appropriate symbols and include
66642         "at-func.c".
66643         * lib/mkdirat.c (mkdirat): Likewise.
66644         * lib/fchmodat.c (fchmodat): Likewise.
66645         (ENOSYS): Remove definition.
66646         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66647         it.  Don't include "unistd--.h" -- it wasn't ever used.
66648
66649         2006-01-17  Jim Meyering  <jim@meyering.net>
66650
66651         Rewrite fts.c not to change the current working directory,
66652         by using openat, fstatat, fdopendir, etc..
66653
66654         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66655         (HAVE_OPENAT_SUPPORT): Define.
66656         [_LIBC] (fchdir): Don't undef or define; no longer used.
66657         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66658         Now, this `function' always succeeds, and consumes its file descriptor
66659         parameter -- so callers must not close such FDs.  Update callers.
66660         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66661         (diropen): Add parameter, SP.  Adjust all callers.
66662         Implement using diropen_fd, rather than open.
66663         (fts_open): Initialize new member, fts_cwd_fd.
66664         Remove fts_rft-setting code.
66665         (fts_close): Close fts_cwd_fd, if necessary.
66666         (__opendir2): Define in terms of opendir or opendirat,
66667         depending on whether the FST_NOCHDIR flag is set.
66668         (fts_build): Since fts_safe_changedir consumes its FD, and since
66669         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66670         and close the dup'd file descriptor upon failure.
66671         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66672         (fts_safe_changedir): Tweak semantics to reflect that this function
66673         now calls cwd_advance_fd and hence consumes its FD argument.
66674         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66675         [struct FTS] (fts_rft): Remove now-unused member.
66676         [struct FTS] (fts_cycle.state): Improve comment.
66677
66678         * lib/openat.c (openat_needs_fchdir): New function.
66679         * lib/openat.h (openat_needs_fchdir): Declare it.
66680
66681 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66684         Problem and fix reported by Pádraig Brady in
66685         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66686
66687 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66688
66689         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66690
66691 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66692
66693         * lib/memcoll.c (memcoll): Optimize for the common case where the
66694         arguments are bytewise equal.
66695
66696 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * doc/regexprops-generic.texi: Add a copyright notice.
66699
66700 2006-08-15  Bruno Haible  <bruno@clisp.org>
66701
66702         * modules/tmpdir (License): Change to LGPL.
66703
66704 2006-08-15  Bruno Haible  <bruno@clisp.org>
66705
66706         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66707         module.
66708
66709 2006-08-14  Simon Josefsson  <jas@extundo.com>
66710
66711         * config/srclist.txt: Add gnupload.
66712
66713 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         Change copyright notice from LGPL 2 to GPL 2, since that's the
66716         standard form used in the gnulib repository.
66717         * tests/test-lock.c: Likewise.
66718         * tests/test-stdint.c: Likewise.
66719         * tests/test-tls.c: Likewise.
66720
66721         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66722         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66723         Add copyright notice.
66724
66725         * check-module: Add copyright notice.  Output a copyright
66726         notice if "--version" is specified.
66727         * modules/COPYING: New file.
66728         * tests/test-getaddrinfo.c: Add copyright notice.
66729         * tests/test-verify.c: Likewise.
66730
66731 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         Change copyright notice from LGPL 2 to GPL 2, since that's the
66734         standard form used in the gnulib repository.
66735         * lib/lock.c: LGPL -> GPL.
66736         * lib/lock.h: Likewise.
66737         * lib/strnlen1.c: Likewise.
66738         * lib/strnlen1.h: Likewise.
66739         * lib/tls.c: Likewise.
66740         * lib/tls.h: Likewise.
66741         * lib/tmpdir.c: Likewise.
66742
66743         * lib/TODO: Remove; this belongs only in coreutils.
66744
66745 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         Add copyright notices to long-enough files that lack them, since
66748         otherwise the files aren't clearly free.  Use the same notice that
66749         getdate.texi already uses.
66750         * doc/alloca-opt.texi: Add copyright notice.
66751         * doc/alloca.texi: Likewise.
66752         * doc/ctime.texi: Likewise.
66753         * doc/functions.texi: Likewise.
66754         * doc/gcd.texi: Likewise.
66755         * doc/gnulib-tool.texi: Likewise.
66756         * doc/inet_ntoa.texi: Likewise.
66757         * doc/visibility.texi: Likewise.
66758
66759         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66760         * doc/quote.texi: Add copyright notice.
66761
66762         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66763         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66764         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66765         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66766         is now obsolete, and give a pointer to the Sun list.
66767         Add copyright notice.
66768
66769 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * config/srclistvars.sh: Add copyright notice.
66772
66773 2006-08-14  Eric Blake  <ebb9@byu.net>
66774
66775         Import the following change from libc:
66776
66777         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66778
66779         Upstream bug 2997.
66780         * lib/misc/error.c: Add space between program name and message if file
66781         name is missing.
66782
66783 2006-08-12  Karl Berry  <karl@gnu.org>
66784
66785         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66786         remove, these originate in gnulib now.
66787
66788 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66789
66790         * doc/Makefile (standards.info standards.html standards.dvi):
66791         Also depend on make-stds.texi.
66792
66793 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66796         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66797
66798         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66799         in wchar_t.  Problem reported by Eric Blake.
66800
66801         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66802         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66803         Also, help the compiler to keep LEN in a register.
66804
66805 2006-08-11  Eric Blake  <ebb9@byu.net>
66806
66807         * users.txt: Sort.  Add tar.
66808
66809 2006-08-11  Bruno Haible  <bruno@clisp.org>
66810
66811         * users.txt: New file.
66812
66813 2006-08-11  Bruno Haible  <bruno@clisp.org>
66814
66815         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66816         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66817
66818 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * modules/snprintf (Depends-on): Remove minmax.
66821         (Maintainer): Add self and Bruno.
66822
66823 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66826         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66827         (EOVERFLOW): Define if the system does not.
66828         Do not include "minmax.h"; it wasn't used.
66829         (snprintf): Don't assume size_t promotes to an unsigned type.
66830         Fix bug when generated string was too long for the buffer: the
66831         buffer's contents are supposed to be the initial prefix of the
66832         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66833         exceeds INT_MAX; do the check ourselves.
66834
66835         Import the following changes from libc:
66836
66837         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66838
66839         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66840         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66841         set wc to the byte which couldn't be converted.
66842         (re_string_reconstruct): Don't clear valid_raw_len before calling
66843         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66844         tip_context using re_string_context_at.
66845
66846         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66847
66848         * lib/posix/regex.h: g++ still cannot handled [restrict].
66849
66850         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66851
66852         * lib/posix/regex.h: Remove special handling for VMS.
66853
66854 2006-08-10  Jim Meyering  <jim@meyering.net>
66855
66856         * modules/same-inode: New module.
66857         * modules/dev-ino: New module.
66858         * modules/cycle-check: Depend on these modules, rather than simply
66859         including their .h files.
66860         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66861         required via m4/cycle-check.m4.
66862         * modules/same: Depend on new same-inode module, rather than
66863         including same-inode.h.
66864         * modules/chdir-safer: New file.
66865
66866         * modules/chown (Depends-on): Add stat-macros.
66867
66868 2006-08-10  Jim Meyering  <jim@meyering.net>
66869
66870         * m4/cycle-check.m4: New file.
66871         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66872         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66873
66874 2006-08-10  Eric Blake  <ebb9@byu.net>
66875
66876         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66877         in from original proposal.
66878
66879 2006-08-10  Eric Blake  <ebb9@byu.net>
66880         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66881
66882         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66883         namespace.
66884
66885 2006-08-10  Bruno Haible  <bruno@clisp.org>
66886
66887         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66888         as well.
66889
66890 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         Sync from coreutils.
66893
66894         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66895
66896         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66897         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66898
66899 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66900
66901         * modules/restrict: Remove; no longer needed now that we assume
66902         Autoconf 2.59 or later.
66903         * MODULES.html.sh: Remove 'restrict'.
66904         * modules/argp (Depends-on): Remove 'restrict'.
66905         * modules/base64 (Depends-on): Likewise.
66906         * modules/gc (Depends-on): Likewise.
66907         * modules/getaddrinfo (Depends-on): Likewise.
66908         * modules/glob (Depends-on): Likewise.
66909         * modules/inet_ntop (Depends-on): Likewise.
66910         * modules/inet_pton (Depends-on): Likewise.
66911         * modules/memxor (Depends-on): Likewise.
66912         * modules/regex (Depends-on): Likewise.
66913         * modules/strtok_r (Depends-on): Likewise.
66914         * modules/time_r (Depends-on): Likewise.
66915
66916 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66917
66918         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66919         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66920         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66921         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66922         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66923         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66924         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66925         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66926
66927         Merge from coreutils.
66928         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66929         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66930         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66931         * m4/time_r.m4 (gl_TIME_R): Likewise.
66932
66933 2006-08-09  Karl Berry  <karl@gnu.org>
66934
66935         * config/srclist.txt: no more gettext-tools, per Bruno.
66936
66937 2006-08-08  Eric Blake  <ebb9@byu.net>
66938
66939         * modules/verror: New module.
66940         * MODULES.html.sh: Document it.
66941
66942 2006-08-08  Eric Blake  <ebb9@byu.net>
66943
66944         * lib/verror.h, lib/verror.c: New files.
66945
66946 2006-08-08  Eric Blake  <ebb9@byu.net>
66947
66948         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66949         verror_at_line output complies with GNU Coding Standards even when
66950         file is NULL.
66951
66952 2006-08-07  Bruno Haible  <bruno@clisp.org>
66953
66954         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66955         versions of AIX.
66956         Reported by Ralf Wildenhues.
66957
66958 2006-08-07  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66961         in an AC_DEFUN. Needed so that the autoconf snippets can use
66962         AC_REQUIRE.
66963
66964 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66965
66966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66967         Initialize pkgdata_DATA.
66968         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66969         overriding it.
66970
66971 2006-08-06  Eric Blake  <ebb9@byu.net>
66972
66973         * lib/error.h: Fold in some upstream changes from glibc.
66974         * lib/error.c: Likewise.
66975
66976 2006-08-04  Bruno Haible  <bruno@clisp.org>
66977
66978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66979         Make the mostlyclean-local rule depend on mostlyclean-generic.
66980         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66981
66982 2006-07-31  Bruno Haible  <bruno@clisp.org>
66983
66984         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66985         <stdlib.h>, <string.h>.
66986
66987 2006-07-30  Bruno Haible  <bruno@clisp.org>
66988
66989         * modules/readlink (License): Change to LGPL.
66990
66991 2006-07-30  Bruno Haible  <bruno@clisp.org>
66992
66993         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66994         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66995         set PKGDATADIR to point to it.
66996
66997 2006-07-30  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/csharpexec (configure.ac): Comment out macro invocation.
67000         * modules/javaexec (configure.ac): Likewise.
67001         * modules/javacomp-script (configure.ac): Likewise.
67002
67003         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67004
67005 2006-07-30  Bruno Haible  <bruno@clisp.org>
67006
67007         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67008         linked-list.
67009
67010 2006-07-30  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67013
67014 2006-07-30  Bruno Haible  <bruno@clisp.org>
67015
67016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67017         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67018         get removed.
67019
67020 2006-07-29  Bruno Haible  <bruno@clisp.org>
67021
67022         Make it possible for gnulib-tool to work with locally modified or
67023         augmented gnulib repositories.
67024         * gnulib-tool (func_usage): Document --local-dir option.
67025         (local_gnulib_dir): New variable.
67026         Handle --local-dir option.
67027         (func_lookup_file): New function.
67028         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67029         (func_get_description, func_get_filelist, func_get_description,
67030         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67031         func_get_automake_snippet, func_get_include_directive,
67032         func_get_license, func_get_maintainer): Use func_lookup_file.
67033         (func_import, func_create_testdir): Use func_lookup_file.
67034
67035 2006-07-29  Bruno Haible  <bruno@clisp.org>
67036
67037         * modules/setenv (Depends-on): Add unistd.
67038
67039 2006-07-29  Bruno Haible  <bruno@clisp.org>
67040
67041         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67042
67043 2006-07-29  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67046
67047 2006-07-29  Bruno Haible  <bruno@clisp.org>
67048
67049         * gnulib-tool (import, update): If there is no Makefile.am, look at
67050         aclocal.m4, instead of bailing out.
67051
67052 2006-07-29  Bruno Haible  <bruno@clisp.org>
67053
67054         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67055         Categorize the options by when they are useful.
67056
67057 2006-07-29  Bruno Haible  <bruno@clisp.org>
67058
67059         * gnulib-tool (func_usage): Document option --no-libtool.
67060         Handle option --no-libtool.
67061         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67062         for changed semantics of $libtool variable.
67063         (func_import): Likewise. If libtool is not used, show this through
67064         an option --no-libtool.
67065         (func_create_testdir): Update.
67066
67067 2006-07-29  Bruno Haible  <bruno@clisp.org>
67068
67069         * gnulib-tool (func_import): Extend error message about missing
67070         --doc-base.
67071
67072 2006-07-29  Bruno Haible  <bruno@clisp.org>
67073
67074         * gnulib-tool (func_import): Don't create the $docbase directory if
67075         there is no file to store there.
67076
67077 2006-07-29  Bruno Haible  <bruno@clisp.org>
67078
67079         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67080         relevant, look for configure.ac there, not in the current directory.
67081         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67082
67083 2006-07-29  Bruno Haible  <bruno@clisp.org>
67084
67085         * gnulib-tool (SORT): New variable.
67086         (func_usage): Undocument --assume-autoconf option.
67087         Remove --assume-autoconf option handling.
67088         (autoconf_minversion): Determine from the contents of configure.ac.
67089         (func_import): Remove autoconf_minversion handling.
67090         Suggested by Eric Blake.
67091
67092 2006-07-29  Bruno Haible  <bruno@clisp.org>
67093
67094         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67095
67096 2006-07-29  Bruno Haible  <bruno@clisp.org>
67097
67098         * config/srclist.txt (*setenv.[ch]): Remove rules.
67099
67100 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67101
67102         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67103
67104 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67105
67106         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67107         arpa/inet.h.
67108
67109 2006-07-28  Simon Josefsson  <jas@extundo.com>
67110
67111         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67112         * modules/inet_pton (Depends-on): Likewise.
67113
67114 2006-07-28  Simon Josefsson  <jas@extundo.com>
67115
67116         * m4/netinet_in_h.m4: New file.
67117
67118 2006-07-28  Simon Josefsson  <jas@extundo.com>
67119
67120         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67121         #include's.
67122
67123 2006-07-28  Simon Josefsson  <jas@extundo.com>
67124
67125         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67126         #include's.
67127
67128 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67131         setgid on directories only if they set these bits.
67132         * lib/modechange.h: Remove obsolete comment about masks.
67133
67134 2006-07-28  Eric Blake  <ebb9@byu.net>
67135
67136         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67137         macro expansion.
67138
67139 2006-07-28  Bruno Haible  <bruno@clisp.org>
67140
67141         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67142
67143 2006-07-28  Bruno Haible  <bruno@clisp.org>
67144
67145         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67146
67147 2006-07-28  Bruno Haible  <bruno@clisp.org>
67148
67149         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67150         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67151         Define fallbacks.
67152         Avoids link error on FreeBSD 4.x.
67153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67154
67155         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67156         encoding.
67157         * lib/mbswidth.c (iswcntrl): Likewise.
67158
67159 2006-07-27  Bruno Haible  <bruno@clisp.org>
67160
67161         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67162         test.
67163
67164 2006-07-27  Bruno Haible  <bruno@clisp.org>
67165
67166         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67167         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67168         defined.
67169
67170 2006-07-26  Eric Blake  <ebb9@byu.net>
67171
67172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67173
67174 2006-07-26  Eric Blake  <ebb9@byu.net>
67175
67176         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67177         like mingw that lack mkstemp.
67178         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67179         avoid compilation warning on mingw.
67180
67181 2006-07-26  Bruno Haible  <bruno@clisp.org>
67182
67183         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67184         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67185         INT_FAST*_MIN, INTPTR_MIN.
67186
67187 2006-07-25  Bruno Haible  <bruno@clisp.org>
67188
67189         * modules/version-etc (Depends-on): Add stdarg.
67190
67191 2006-07-25  Bruno Haible  <bruno@clisp.org>
67192
67193         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67194         complex commands.
67195
67196 2006-07-25  Bruno Haible  <bruno@clisp.org>
67197
67198         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67199         defined in <stdarg.h> or config.h.
67200
67201 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67204         (gl_STDIO_SAFER): Remove.
67205
67206 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * MODULES.html.sh (File stream based Input/Output):
67209         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67210         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67211         * modules/fopen-safer, modules/tmpfile-safer: New files.
67212         * modules/stdio-safer: Remove.
67213
67214 2006-07-24  Bruno Haible  <bruno@clisp.org>
67215
67216         * modules/tmpdir: New file.
67217         * MODULES.html.sh (File system functions): Add it.
67218
67219 2006-07-24  Bruno Haible  <bruno@clisp.org>
67220
67221         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67222         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67223
67224 2006-07-24  Bruno Haible  <bruno@clisp.org>
67225
67226         * modules/clean-temp: New file.
67227
67228 2006-07-24  Bruno Haible  <bruno@clisp.org>
67229
67230         * m4/tmpdir.m4: New file, from GNU gettext.
67231
67232 2006-07-24  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/tmpdir.h: New file, from GNU gettext.
67235         * lib/tmpdir.c: New file, from GNU gettext.
67236
67237 2006-07-24  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/clean-temp.h: New file, from GNU gettext.
67240         * lib/clean-temp.c: New file, from GNU gettext.
67241
67242 2006-07-23  Eric Blake  <ebb9@byu.net>
67243
67244         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67245         (Depends-on): Add binary-io.
67246
67247 2006-07-23  Eric Blake  <ebb9@byu.net>
67248
67249         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67250
67251 2006-07-23  Eric Blake  <ebb9@byu.net>
67252
67253         * lib/tmpfile-safer.c: New file.
67254         * lib/stdio-safer.h (fopen_safer): Add prototype.
67255         * lib/stdio--.h (tmpfile): Make safer.
67256
67257 2006-07-23  Bruno Haible  <bruno@clisp.org>
67258
67259         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67260         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67261         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67262         gl_linked_remove_at): Use it.
67263
67264 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67265         and Simon Josefsson <jas@extundo.com>
67266
67267         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67268
67269         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67270
67271 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * modules/close-stream: New file.
67274         * modules/closeout (Description): Make it clear that it exits
67275         with a diagnostic on error.
67276         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67277         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67278
67279 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         * m4/close-stream.m4: New file.
67282
67283 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * lib/close-stream.c, lib/close-stream.h: New files.
67286
67287 2006-07-22  Bruno Haible  <bruno@clisp.org>
67288
67289         Merge from GNU gettext 0.15.
67290
67291         2006-05-01  Bruno Haible  <bruno@clisp.org>
67292
67293                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67294
67295         2006-07-22  Bruno Haible  <bruno@clisp.org>
67296
67297                 * modules/javaversion: New file.
67298                 * MODULES.html.sh (Java): Add javaversion.
67299
67300         2006-03-12  Bruno Haible  <bruno@clisp.org>
67301
67302                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67303
67304         2005-12-04  Bruno Haible  <bruno@clisp.org>
67305
67306                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67307                 (untested).
67308
67309         2006-06-21  Bruno Haible  <bruno@clisp.org>
67310
67311                 Avoid warnings from recent versions of mcs.
67312                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67313                 -o, -L, -r any more. Use options documented since mcs-1.0
67314                 instead. Similarly for -g.
67315
67316         2005-12-04  Bruno Haible  <bruno@clisp.org>
67317
67318                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67319                 .resources, not .resource.
67320
67321         2005-07-09  Bruno Haible  <bruno@clisp.org>
67322
67323                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67324                 add a .dll suffix.
67325                 Reported by Mark Junker <mjscod@gmx.de>.
67326
67327         2006-07-22  Bruno Haible  <bruno@clisp.org>
67328
67329                 * modules/gettext: Upgrade to gettext-0.15.
67330                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67331                 m4/visibility.m4.
67332                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67333
67334 2006-07-22  Bruno Haible  <bruno@clisp.org>
67335
67336         Merge from GNU gettext 0.15.
67337
67338         2006-03-25  Bruno Haible  <bruno@clisp.org>
67339
67340                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67341
67342         2006-07-21  Bruno Haible  <bruno@clisp.org>
67343
67344                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67345                 "1.1".
67346
67347         2006-05-09  Bruno Haible  <bruno@clisp.org>
67348
67349                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67350                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67351                 for the conftestver execution.
67352
67353         2006-05-01  Bruno Haible  <bruno@clisp.org>
67354
67355                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67356                 optional target-version argument. Verify that the compiler
67357                 groks source of the specified source-version, or add -source
67358                 option as necessary. Verify that the compiler produces
67359                 bytecode in the specified target-version, or add -target and
67360                 -source options as necessary. Make the result of the test
67361                 available as variable CONF_JAVAC. Also log error output in
67362                 config.log.
67363
67364         2006-03-11  Bruno Haible  <bruno@clisp.org>
67365
67366                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67367
67368         2006-05-09  Bruno Haible  <bruno@clisp.org>
67369
67370                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67371                 CLASSPATH_SEPARATOR to a semicolon.
67372
67373         2006-03-12  Bruno Haible  <bruno@clisp.org>
67374
67375                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67376                 available as variable CONF_JAVA, for subsequent autoconf
67377                 tests. Also log error output in config.log.
67378
67379         2006-07-19  Bruno Haible  <bruno@clisp.org>
67380
67381                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67382                 that getline works on glibc2 systems. Needed to avoid trouble
67383                 in relocatable.c.
67384                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67385
67386         2005-12-04  Bruno Haible  <bruno@clisp.org>
67387
67388                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67389                 launcher (untested).
67390
67391         2005-12-04  Bruno Haible  <bruno@clisp.org>
67392
67393                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67394
67395         2006-07-22  Bruno Haible  <bruno@clisp.org>
67396
67397                 * gettext.m4: Update from GNU gettext-0.15.
67398                 * nls.m4: Likewise.
67399                 * po.m4: Likewise.
67400                 * inttypes-pri.m4: Likewise.
67401                 * inttypes-h.m4: Renamed from inttypes.m4.
67402                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67403
67404 2006-07-22  Bruno Haible  <bruno@clisp.org>
67405
67406         Merge from GNU gettext 0.15.
67407
67408         2005-07-05  Bruno Haible  <bruno@clisp.org>
67409
67410                 * printf-args.c (printf_fetchargs): Work around broken
67411                 definition of wint_t on mingw.
67412
67413         2005-02-12  Bruno Haible  <bruno@clisp.org>
67414
67415                 * xallocsa.h: Add extern "C" for C++.
67416
67417         2006-05-17  Bruno Haible  <bruno@clisp.org>
67418
67419                 Cygwin portability.
67420                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67421
67422         2006-04-30  Bruno Haible  <bruno@clisp.org>
67423
67424                 * progreloc.c: Include <mach-o/dyld.h> if available.
67425                 (find_executable): Use _NSGetExecutablePath when possible.
67426
67427         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67428
67429                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67430                 function.
67431
67432         2005-12-29  Bruno Haible  <bruno@clisp.org>
67433
67434                 * progreloc.c (set_program_name_and_installdir): Fix
67435                 compilation error.
67436
67437         2005-12-04  Bruno Haible  <bruno@clisp.org>
67438
67439                 Cygwin portability.
67440                 * progreloc.c: Include <windows.h> also on Cygwin.
67441                 (find_executable): Add support for Cygwin.
67442                 (set_program_name_and_installdir): Handle also platforms with
67443                 nonempty EXEEXT.
67444
67445         2006-07-11  Bruno Haible  <bruno@clisp.org>
67446
67447                 * javacomp.c: Fix a comment.
67448                 Reported by Jim Meyering.
67449
67450         2006-04-30  Bruno Haible  <bruno@clisp.org>
67451
67452                 * javacomp.h (compile_java_class): Add source_version,
67453                 target_version arguments.
67454                 * javacomp.c: Rewritten to choose only a compiler that
67455                 respects the specified source_version and target_version.
67456
67457         2006-06-27  Bruno Haible  <bruno@clisp.org>
67458
67459                 Assume correct S_ISDIR macro.
67460                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67461
67462         2006-07-22  Bruno Haible  <bruno@clisp.org>
67463
67464                 * javaversion.h: New file, from GNU gettext.
67465                 * javaversion.c: New file, from GNU gettext.
67466                 * javaversion.java: New file, from GNU gettext.
67467                 * javaversion.class: New file, from GNU gettext.
67468
67469         2006-05-17  Bruno Haible  <bruno@clisp.org>
67470
67471                 Cygwin portability.
67472                 * javaexec.c (execute_java_class): Test for jview program
67473                 also on Cygwin.
67474
67475         2006-04-09  Bruno Haible  <bruno@clisp.org>
67476
67477                 * fatal-signal.c: Don't include string.h.
67478                 (at_fatal_signal): Use a copying loop instead of memcpy.
67479
67480         2005-12-04  Bruno Haible  <bruno@clisp.org>
67481
67482                 * csharpexec.c: Add support for 'clix' launcher (untested).
67483                 (execute_csharp_using_sscli): New function.
67484                 (execute_csharp_program): Call it.
67485
67486         2006-06-21  Bruno Haible  <bruno@clisp.org>
67487
67488                 Avoid warnings from recent versions of mcs.
67489                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67490                 -o, -L, -r any more. Use options documented since mcs-1.0
67491                 instead. Similarly for -g.
67492
67493         2005-07-09  Bruno Haible  <bruno@clisp.org>
67494
67495                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67496                 add a .dll suffix.
67497                 Reported by Mark Junker <mjscod@gmx.de>.
67498
67499         2006-06-17  Bruno Haible  <bruno@clisp.org>
67500
67501                 * config.charset: Update for NetBSD 3.0.
67502
67503         2006-05-17  Bruno Haible  <bruno@clisp.org>
67504
67505                 Cygwin portability.
67506                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67507
67508         2006-05-16  Bruno Haible  <bruno@clisp.org>
67509
67510                 * localcharset.c [CYGWIN]: Include <windows.h>.
67511                 (get_charset_aliases): For Cygwin, return the same CPxxx
67512                 aliases list as under WIN32.
67513                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67514                 the environment variables. Fall back to GetACP().
67515
67516         2006-04-05  Bruno Haible  <bruno@clisp.org>
67517
67518                 * config.charset: Update Juan Manuel Guerrero's address.
67519
67520         2005-02-12  Bruno Haible  <bruno@clisp.org>
67521
67522                 * allocsa.h: Add extern "C" for C++.
67523
67524         2005-02-10  Bruno Haible  <bruno@clisp.org>
67525
67526                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67527                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67528
67529         2006-07-22  Bruno Haible  <bruno@clisp.org>
67530
67531                 * gettext.h: Update to GNU gettext-0.15.
67532
67533 2006-07-22  Bruno Haible  <bruno@clisp.org>
67534
67535         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67536         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67537         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67538
67539 2006-07-21  Eric Blake  <ebb9@byu.net>
67540
67541         * modules/stdlib-safer: New file.
67542         * MODULES.html.sh (File stream based Input/Output): Add
67543         stdlib-safer.
67544
67545 2006-07-21  Eric Blake  <ebb9@byu.net>
67546
67547         * lib/stdlib-safer.h: New file from coreutils, required by
67548         stdlib--.h.
67549
67550 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67553
67554 2006-07-20  Bruno Haible  <bruno@clisp.org>
67555
67556         * gnulib-tool: Recognize new option --assume-autoconf.
67557         (autoconf_minversion): New variable.
67558         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67559
67560 2006-07-20  Bruno Haible  <bruno@clisp.org>
67561
67562         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67563
67564 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67565
67566         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67567         Reindent and repaginate.
67568
67569 2006-07-19  Derek Price  <derek@ximbiot.com>
67570
67571         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67572         Correct grammar.
67573
67574 2006-07-17  Bruno Haible  <bruno@clisp.org>
67575
67576         * modules/list: New file.
67577         * modules/array-list: New file.
67578         * modules/carray-list, modules/carray-list-tests: New files.
67579         * modules/linked-list, modules/linked-list-tests: New files.
67580         * modules/avltree-list, modules/avltree-list-tests: New files.
67581         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67582         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67583         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67584         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67585         * modules/oset: New file.
67586         * modules/array-oset: New file.
67587         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67588         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67589         * tests/test-carray_list.c: New file.
67590         * tests/test-linked_list.c: New file.
67591         * tests/test-avltree_list.c: New file.
67592         * tests/test-rbtree_list.c: New file.
67593         * tests/test-linkedhash_list.c: New file.
67594         * tests/test-avltreehash_list.c: New file.
67595         * tests/test-rbtreehash_list.c: New file.
67596         * tests/test-avltree_oset.c: New file.
67597         * tests/test-rbtree_oset.c: New file.
67598         * MODULES.html.sh (Container data structures): New section.
67599
67600 2006-07-17  Bruno Haible  <bruno@clisp.org>
67601
67602         * m4/gl_list.m4: New file.
67603
67604 2006-07-17  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/gl_list.h: New file.
67607         * lib/gl_list.c: New file.
67608         * lib/gl_array_list.h: New file.
67609         * lib/gl_array_list.c: New file.
67610         * lib/gl_carray_list.h: New file.
67611         * lib/gl_carray_list.c: New file.
67612         * lib/gl_linked_list.h: New file.
67613         * lib/gl_linked_list.c: New file.
67614         * lib/gl_anylinked_list1.h: New file.
67615         * lib/gl_anylinked_list2.h: New file.
67616         * lib/gl_avltree_list.h: New file.
67617         * lib/gl_avltree_list.c: New file.
67618         * lib/gl_anyavltree_list1.h: New file.
67619         * lib/gl_anyavltree_list2.h: New file.
67620         * lib/gl_rbtree_list.h: New file.
67621         * lib/gl_rbtree_list.c: New file.
67622         * lib/gl_anyrbtree_list1.h: New file.
67623         * lib/gl_anyrbtree_list2.h: New file.
67624         * lib/gl_anytree_list1.h: New file.
67625         * lib/gl_anytree_list2.h: New file.
67626         * lib/gl_linkedhash_list.h: New file.
67627         * lib/gl_linkedhash_list.c: New file.
67628         * lib/gl_anyhash_list1.h: New file.
67629         * lib/gl_anyhash_list2.h: New file.
67630         * lib/gl_avltreehash_list.h: New file.
67631         * lib/gl_avltreehash_list.c: New file.
67632         * lib/gl_rbtreehash_list.h: New file.
67633         * lib/gl_rbtreehash_list.c: New file.
67634         * lib/gl_anytreehash_list1.h: New file.
67635         * lib/gl_anytreehash_list2.h: New file.
67636
67637         * lib/gl_oset.h: New file.
67638         * lib/gl_oset.c: New file.
67639         * lib/gl_array_oset.h: New file.
67640         * lib/gl_array_oset.c: New file.
67641         * lib/gl_avltree_oset.h: New file.
67642         * lib/gl_avltree_oset.c: New file.
67643         * lib/gl_rbtree_oset.h: New file.
67644         * lib/gl_rbtree_oset.c: New file.
67645         * lib/gl_anytree_oset.h: New file.
67646
67647 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * m4/mkancesdirs.m4: New file.
67650         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67651         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67652         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67653         it.
67654
67655 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67658         * lib/mkancesdirs.h: New files.
67659         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67660         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67661         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67662         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67663         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67664         callers changed.  Revamp internals significantly, by not
67665         attempting to create directories that are temporarily more
67666         permissive than the final results.  Do not attempt to use
67667         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67668         This removes some race conditions, fixes some bugs, and simplifies
67669         things.  Use new dirchownmod function to do owner and mode changes.
67670         * lib/mkdir-p.h: Likewise.
67671         * lib/modechange.c (octal_to_mode): New function.
67672         (struct mode_change): New member mentioned.
67673         (make_node_op_equals): New arg mentioned.  All callers changed.
67674         (mode_compile): Keep track of which mode bits the user has explicitly
67675         mentioned.
67676         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67677         New arg PMODE_BITS, to keep track of which mode bits the user
67678         mentioned; it treats S_ISUID and S_ISGID speciall.
67679         All callers changed.
67680         * lib/modechange.h: Likewise.
67681
67682 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * MODULES.html.sh: Add mkancestors.
67685         * modules/mkancesdirs: New module.
67686         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67687         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67688         The chdir-safer and afs files are now orphans; I'll remove them
67689         unless someone speaks up.
67690         Add lib/dirchownmod.c, lib/dirchownmod.h.
67691         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67692         Add lchown, mkancesdirs.
67693         (Maintainer): Add self.
67694
67695 2006-07-15  Karl Berry  <karl@gnu.org>
67696
67697         * gnulib-tool: help message wording/arrangement.
67698
67699 2006-07-14  Simon Josefsson  <jas@extundo.com>
67700
67701         * doc/gnulib.texi (Libtool and Windows): New section.
67702
67703 2006-07-12  Simon Josefsson  <jas@extundo.com>
67704
67705         * modules/gendocs (License): Fix license, approved by Karl.
67706
67707 2006-07-12  Eric Blake  <ebb9@byu.net>
67708
67709         * MODULES.html.sh: Add gendocs.
67710
67711 2006-07-11  Eric Blake  <ebb9@byu.net>
67712
67713         * modules/fdl: New module, to install doc/fdl.texi.
67714         * MODULES.html.sh: Add new section for documentation modules.
67715         * gnulib-tool: Avoid space-tab.
67716         (--doc-base): New option, to manage files from doc.
67717
67718 2006-07-11  Eric Blake  <ebb9@byu.net>
67719
67720         * m4/absolute-header.m4: Fix comments to match recent change.
67721
67722 2006-07-11  Eric Blake  <ebb9@byu.net>
67723
67724         * gnulib-tool: List --doc-base before --tests-base.
67725
67726 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67727
67728         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67729
67730 2006-07-11  Bruno Haible  <bruno@clisp.org>
67731
67732         * README: Mention where to put documentation.
67733
67734 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67735
67736         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67737
67738 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67741         to stdint.m4.
67742
67743 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67746         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67747         "no/such/file/stdint.h" when there is no such file, so that
67748         the resulting C code can be parsed by dodgy compilers.
67749         Problems reported by Bob Proulx.
67750
67751 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67752
67753         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67754         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67755         macros into the GNU _D_EXACT_NAMLEN.
67756         * lib/savedir.c:  Likewise.
67757         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67758
67759 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67760         and Paul Eggert  <eggert@cs.ucla.edu>
67761
67762         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67763         * m4/savedir.m4:
67764         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67765         macros into the GNU _D_EXACT_NAMLEN.
67766
67767 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67770         around the absolute name, to work around a problem with the HP-UX
67771         11.23 native C compiler, reported by Bob Proulx.
67772
67773 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * doc/maintain.texi, make-stds.texi: Sync from
67776         <http://savannah.gnu.org/projects/gnustandards>.
67777
67778 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67781
67782 2006-07-09  Jim Meyering  <jim@meyering.net>
67783
67784         * m4/glob.m4: Remove a doubled word in a comment.
67785
67786 2006-07-09  Jim Meyering  <jim@meyering.net>
67787
67788         * lib/argp-pv.c: Remove a doubled word in a comment.
67789         * lib/check-version.c (check_version): Likewise.
67790         * lib/javacomp.c (compile_java_class): Likewise.
67791
67792 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67795         for the benefit of people using Autoconf 2.60.  If you want to
67796         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67797         (or m4/onceonly.m4, if pre-2.57) manually.
67798
67799 2006-07-08  Jim Meyering  <jim@meyering.net>
67800
67801         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67802         comment.
67803         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67804         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67805         comment.
67806
67807 2006-07-08  Jim Meyering  <jim@meyering.net>
67808
67809         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67810
67811 2006-07-07  Simon Josefsson  <jas@extundo.com>
67812
67813         * tests/test-crc.c: Change expected crc value, the test vector
67814         were probably computed using the old broken crc.c?
67815
67816 2006-07-06  Simon Josefsson  <jas@extundo.com>
67817
67818         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67819         now the canonical place for the M4 file).
67820
67821         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67822         from the sys_socket dependency now.
67823
67824         * modules/inet_pton (Files): Ditto.
67825
67826         * modules/inet_ntop (Files): Ditto.
67827
67828 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67829
67830         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67831         not gl_PREREQ_GETUSERSHELL.
67832
67833 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67834
67835         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67836         with only one argument, for Autoconf 2.60.
67837         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67838         expand to nothing, so add a shell command to avoid syntax error.
67839         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67840
67841 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67842
67843         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67844
67845 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67848         no longer needed.  Check for isblank decl.
67849         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67850         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67851         of existence.
67852
67853 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * lib/getloadavg.c: Use __VMS, not VMS.
67856         * lib/getopt.c: Likewise.
67857         * lib/getpagesize.h: Likewise.
67858         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67859         and probably does not work.
67860
67861 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * lib/.cppi-disable: Add wcwidth.
67864         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67865         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67866         (ISGRAPH): Remove.  All uses changed to isgraph.
67867         (FOLD) [!defined _LIBC]: Remove special case.
67868         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67869         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67870         HAVE_ISBLANK.
67871         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67872         case.
67873
67874 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67875
67876         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67877         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67878         brackets.  Other minor changes to suppress some compiler
67879         warnings.
67880
67881 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67882         and Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67885         of invoking obsolescent AC_HEADER_DIRENT macro.
67886         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67887         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67888         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67889         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67890         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67891         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67892         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67893         * m4/readdir.m4: Remove; no longer needed.
67894
67895 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67896         and Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67899         Don't worry about this obsolete case any more.
67900         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67901         directories.
67902         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67903         worry about this obsolete case any more.
67904         * lib/fts.c: Likewise.
67905         * lib/getcwd.c: Likewise.
67906         * lib/glob.h: Likewise.
67907         * lib/savedir.c: Likewise.
67908
67909 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67912         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67913         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67914         needed.
67915         All uses removed.
67916         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67917         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67918         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67919         needed.
67920         * m4/getdate.m4 (gl_GETDATE): Likewise.
67921         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67922         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67923         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67924         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67925         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67927         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67928         needed.
67929
67930 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * lib/memcasecmp.c: Include <limits.h>.
67933         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67934         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67935         Don't assume isdigit succeeds only on '0' through '9'.
67936
67937 2006-07-05  Eric Blake  <ebb9@byu.net>
67938
67939         * modules/getaddrinfo (Depends-on): Add snprintf.
67940
67941 2006-07-05  Eric Blake  <ebb9@byu.net>
67942
67943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67944         to avoid 'header present but could not be compiled' on cygwin.
67945
67946 2006-07-05  Eric Blake  <ebb9@byu.net>
67947
67948         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67949         missing from netdb.h.
67950         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67951
67952 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67953
67954         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67955         no longer needed.
67956         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67957         * m4/getdate.m4 (gl_GETDATE): Likewise.
67958         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67959         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67960         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67961         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67962         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67963
67964 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67965
67966         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67967         All uses of is_space replaced by isspace.
67968         * lib/exit.h: Don't talk about STDC_HEADERS.
67969         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67970         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67971         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67972         replaced by isprint etc.
67973         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67974         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67975         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67976         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67977         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67978         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67979
67980 2006-07-05  Bruno Haible  <bruno@clisp.org>
67981
67982         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67983         the function exists, before testing against AIX.
67984         Reported by Martin Lambers <marlam@marlam.de>.
67985
67986 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67989         From Mark D. Baushke.
67990
67991 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67994         to the absolute name, not just one, to bypass Sun C 5.8's
67995         "warning: #include of /usr/include/... may be non-portable".
67996
67997 2006-07-04  Eric Blake  <ebb9@byu.net>
67998
67999         * modules/dirname-tests: New test module.
68000         * tests/test-dirname.c: New file, replacing dirname.c
68001         TEST_DIRNAME section that was recently deleted.
68002
68003 2006-07-04  Bruno Haible  <bruno@clisp.org>
68004
68005         Assume ANSI C header files and <ctype.h> functions.
68006         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68007         (mbsnwidth): Use isprint, iscntrl instead.
68008
68009 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         Merge from coreutils.
68012         * MODULES.html.sh: Add xstrtold.
68013         * modules/xstrtold: New file.
68014         * modules/cycle-check (Files): Add lib/same-inode.h.
68015         * modules/dirname (Files): Add m4/double-slash-root.m4.
68016         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68017         * modules/mkdir-p (Files): Add lib/same-inode.h.
68018         * modules/same (Files): Add lib/same-inode.h.
68019
68020 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68023         This is to keep the terminology clean; POSIX talks about
68024         "absolute pathnames", not "full pathnames", but the GNU
68025         Coding Standards say to use "path" for something else;
68026         so use "absolute" to keep both sides happy.
68027         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68028         Set gl_absolute_header, not gl_full_header_path.
68029         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68030         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68031         All uses changed.
68032
68033         Merge from coreutils.
68034
68035         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68038         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68039         want to require the building of c-strtod.o.
68040         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68041         needs -lm directly.
68042         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68043
68044         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68047         --as-needed option if available.  Problem reported by Albert Chin in
68048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68049         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68050         cc merely issues a bunch of annoying warnings for --as-needed
68051         (this problem was reported by Bob Proulx).  Also, try linking with
68052         -lm to detect a bug in binutils 2.16 (this problem was reported
68053         by Ralf Wildenhues).
68054
68055         2006-06-18  Jim Meyering  <jim@meyering.net>
68056
68057         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68058         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68059         macro.
68060         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68061         also check for glibc-2.4's abort-inducing bug.
68062
68063         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68064         Low-probability clean-up should be to use rmdir to get rid of
68065         the just-created directory, not unlink.
68066
68067         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68068         configure fail, and request a bug report to inform us about it.
68069         Add a comment that, barring reports to the contrary, in 2007 we'll
68070         assume ftruncate is universally available.
68071
68072         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68075
68076         2006-03-12  Jim Meyering  <jim@meyering.net>
68077
68078         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68079         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68080         * m4/same.m4 (gl_SAME): Likewise.
68081         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68082
68083         2006-03-11  Eric Blake  <ebb9@byu.net>
68084
68085         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68086         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68087         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68088         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68089
68090 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68093         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68094         reported by Mark D. Baushke, one in
68095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68096
68097         Merge from coreutils.
68098
68099         * lib/.cppi-disable: Add stdint_.h.
68100         * lib/.cvsignore: Add stdint.h.
68101
68102         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68105         both double and long double versions.
68106         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68107         * lib/xstrtold.c: New file.
68108         * lib/xstrtod.h (xstrtold): New decl.
68109
68110         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * lib/filemode.c (setst): Remove.
68113         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68114         (arguably) clearer, and the generated code is a bit smaller on my
68115         Debian GNU/Linux stable x86 host.
68116
68117         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68120         Assume that filemode.h includes sys/types.h and sys/stat.h.
68121         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68122         (ftypelet): Reorder to put common cases first, for efficiency.
68123         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68124         to do 'M'.
68125         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68126         of 10, for compatibility with FreeBSD.  All callers changed.
68127         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68128         types that can't be deduced solely from st_mode.  First arg is now a
68129         const pointer.
68130         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68131         (strmode): Renamed from mode_string.
68132         (filemodestring): New decl.
68133         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68134         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68135         needed.
68136         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68137
68138         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68141         fsusage.h now does that.  Include fsusage.h first, to test interface.
68142         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68143         at most one method (the old code could have generated decls that
68144         didn't conform to C89, not that this was ever exercised).
68145         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68146
68147         2006-03-19  Jim Meyering  <jim@meyering.net>
68148
68149         Work even in a chroot where d_ino values for entries in "/"
68150         don't match the stat.st_ino values for the same names.
68151         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68152         number, iterate through all entries again, using lstat instead.
68153         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68154         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68155
68156         * lib/getcwd.c (__getcwd): Clarify a comment.
68157         Use memcpy in place of a call to strcpy.
68158
68159         2006-03-12  Jim Meyering  <jim@meyering.net>
68160
68161         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68162         matches that of the current directory (which we're about to chdir ".."
68163         out of), then save the dev-ino of the parent, instead.
68164
68165         * lib/same-inode.h (SAME_INODE): New file/macro.
68166         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68167         Include "same-inode.h", instead.
68168         * lib/same.c: Likewise.
68169         * lib/cycle-check.h: Include "same-inode.h".
68170         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68171         * lib/cycle-check.c (SAME_INODE): Remove definition.
68172         * lib/root-dev-ino.h: Include "same-inode.h".
68173
68174         2006-03-11  Eric Blake  <ebb9@byu.net>
68175
68176         * lib/same.c (same_name): s/base_name/last_component/
68177         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68178         * lib/filenamecat.c (file_name_concat): Likewise.
68179
68180         2006-03-11  Eric Blake  <ebb9@byu.net>,
68181                     Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68184         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68185         drive prefix.
68186         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68187         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68188         (last_component): New method.
68189         * lib/dirname.c (dir_len): Determine when drive letters need a
68190         subsequent slash.  Preserve // when it is special.
68191         (dir_name): Don't append dot when drive letter is absolute.
68192         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68193         * lib/basename.c (base_name): New semantics - malloc the result.
68194         Preserve // when it is special.  Preserve relative files that look
68195         like drive letters.
68196         (base_len): Preserve // when it is special.
68197         (last_component): New method, similar to old base_name semantics.
68198         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68199         base_name.  Strip redundant slashes from ///.
68200
68201 2006-07-03  Jim Meyering  <jim@meyering.net>
68202
68203         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68204         macro is used before the first cycle_check call.
68205
68206 2006-07-03  Eric Blake  <ebb9@byu.net>
68207
68208         * modules/dirname (Depends-on): Add xstrndup.
68209
68210 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68213         test cases, so that config.log is a bit easier to follow.
68214
68215 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68218         both are 64 bits, since this seems to be the tradition, and this
68219         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68220         we ever run into a host that prefers long long to long in this
68221         case, we'll need another configure-time test.  Problem reported by
68222         Jim Meyering.
68223
68224 2006-07-02  Eric Blake  <ebb9@byu.net>
68225
68226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68227
68228 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         * modules/inttypes (Depends-on): No longer depends on stdint.
68231         * modules/stdint (Description): Say more about assumptions.
68232         Say that the fast types might differ.  Say macros are used.
68233         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68234         (Makefile.am): Revise list of substituted symbols to match
68235         new stdint.m4.
68236         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68237         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68238         * tests/test-stdint.c (verify_same_types)
68239         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68240         the code conforms to C99/C89.
68241         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68242         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68243
68244 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68245
68246         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68247         but fix a bug, by requiring at least 64 bits.
68248         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68249         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68250         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68251         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68252
68253         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68254         changes.  Make 2.59 a prerequisite.  Check and substitute for
68255         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68256         inttypes.h.  Do not use special include files; just use the
68257         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68258         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68259         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68260         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68261         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68262         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68263         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68264         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68265         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68266         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68267         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68268         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68269         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68270         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68271         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68272         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68273         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68274         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68275         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68276         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68277         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68278         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68279         not check for things that C99 does not require, e.g., int8_t.  If
68280         a test isn't needed unless <stdint.h> isn't working, and is
68281         unlikely to be needed for any other reason, then don't do it
68282         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68283         size_t, since we assume C89 freestanding at least.  Do not check
68284         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68285         the right thing even if the types are not defined.  Instead use:
68286         (gl_STDINT_TYPE_PROPERTIES): New macro.
68287         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68288         testing whether <sys/types.h> clashes, as Autoconf does this for
68289         us now.  All uses removed.
68290         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68291         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68292         (gl_CHECK_TYPE_SAME):
68293         Remove; no longer needed.
68294         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68295         exists, since we'll return 0 anyway in that case.
68296         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68297
68298 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68301         possible collision with system files.
68302         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68303         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68304         WCHAR_MIN and WCHAR_MAX in this case.
68305         (<stddef.h>): Do not include; no longer needed.
68306         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68307         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68308         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68309         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68310         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68311         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68312         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68313         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68314         !defined(__c99))]: Include in this case too, since it's harmless
68315         now.
68316         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68317         dangerous to do so.
68318         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68319         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68320         (_STDINT_MIN, _STDINT_MAX): New macros.
68321         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68322         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68323         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68324         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68325         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68326         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68327         macros, not typedefs; this simplifies things quite a bit.
68328         Use long int for all types narrower than int64_t.
68329         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68330         Define in terms of long long int or int64_t or long int,
68331         not int64_t or int32_t.  This saves some compile-time testing.
68332         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68333         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68334         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68335         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68336         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68337         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68338         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68339         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68340         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68341         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68342         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68343         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68344         undef any previous version and define our own version, for
68345         simplicity and consistency with the new macros for types.
68346         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68347         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68348         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68349         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68350         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68351         @WINT_T_SUFFIX@ to keep things simple here.
68352         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68353         Simplify by assuming typical 8/16/32/64 host, since we're
68354         already doing that elsewhere anyway.
68355         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68356         and assume long long int is 64 bits if available.  This
68357         speeds up 'configure'.
68358
68359 2006-07-01  Eric Blake  <ebb9@byu.net>
68360
68361         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68362         Reported by Andreas Buening.
68363
68364 2006-07-01  Eric Blake  <ebb9@byu.net>
68365
68366         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68367
68368 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68369
68370         * lib/getaddrinfo.c: fixed typo
68371
68372 2006-06-29  Jim Meyering  <jim@meyering.net>
68373
68374         * modules/strftime (Maintainer): Add my name, since with the
68375         FPRINTFTIME changes strftime.c has forked from glibc.
68376
68377 2006-06-29  Eric Blake  <ebb9@byu.net>
68378
68379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68380
68381 2006-06-29  Eric Blake  <ebb9@byu.net>
68382
68383         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68384
68385 2006-06-29  Eric Blake  <ebb9@byu.net>
68386
68387         * lib/stat_.h: New file.
68388
68389 2006-06-29  Eric Blake  <ebb9@byu.net>
68390
68391         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68392         unused static function.
68393
68394 2006-06-29  Eric Blake  <ebb9@byu.net>
68395
68396         * doc/functions.texi (Function Portability): Document missing lstat
68397         on mingw.
68398
68399 2006-06-29  Eric Blake  <ebb9@byu.net>
68400
68401         * MODULES.html.sh: Add sys_stat.
68402         * modules/sys_stat: New module.
68403         * modules/mkstemp (Depends-on): Add sys_stat.
68404
68405 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68406
68407         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68408
68409 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68410
68411         * m4/c-bs-a.m4: Removed.
68412
68413 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68414
68415         * lib/strftime.c: Assume strftime() exists.
68416
68417 2006-06-29  Derek Price  <derek@ximbiot.com>
68418
68419         * modules/c-bs-a: Removed - \a is C89.
68420         * MODULES.html.sh: Remove c-bs-a.
68421
68422 2006-06-29  Bruno Haible  <bruno@clisp.org>
68423
68424         * modules/wcwidth (License): Change to LGPL.
68425
68426 2006-06-28  Simon Josefsson  <jas@extundo.com>
68427
68428         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68429         on _WIN32.
68430
68431         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68432         getnameinfo.
68433
68434 2006-06-28  Simon Josefsson  <jas@extundo.com>
68435
68436         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68437
68438 2006-06-28  Simon Josefsson  <jas@extundo.com>
68439
68440         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68441         functions there.  It will succeed on Windows XP, but on Windows
68442         2000 and (presumably) earlier, it will fail, and use the internal
68443         re-implementation.
68444         (use_win32_p): New function.
68445         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68446         Support AI_NUMERICSERV to disable getservbyname.
68447         (getnameinfo): New function, only supports
68448         NI_NUMERICHOST|NI_NUMERICSERV for now.
68449
68450         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68451         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68452         getnameinfo.
68453
68454 2006-06-28  Eric Blake  <ebb9@byu.net>
68455
68456         * modules/wcwidth: New file.
68457         * modules/mbchar (Depends-on): Add wcwidth.
68458         * modules/mbswidth (Depends-on): Add wcwidth.
68459         * MODULES.html.sh: Add wcwidth.
68460
68461 2006-06-28  Eric Blake  <ebb9@byu.net>
68462
68463         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68465
68466 2006-06-28  Eric Blake  <ebb9@byu.net>
68467
68468         * lib/xvasprintf.h: Fix comments.
68469
68470 2006-06-28  Eric Blake  <ebb9@byu.net>
68471
68472         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68473         * lib/mbswidth.c (wcwidth): Move from here...
68474         * lib/wcwidth.h: ...to this new file.
68475
68476 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68477
68478         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68479
68480         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68481         it's obsolete.
68482         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68483
68484 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68485
68486         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68487         Autoconf 2.60 says this stuff was obsolete.
68488
68489 2006-06-28  Bruno Haible  <bruno@clisp.org>
68490
68491         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68492
68493 2006-06-28  Bruno Haible  <bruno@clisp.org>
68494
68495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68496         gt_TYPE_WCHAR_T.
68497
68498 2006-06-28  Bruno Haible  <bruno@clisp.org>
68499
68500         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68501         declaration for wcwidth.
68502         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68503
68504 2006-06-28  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68507         (mkdir): Define using _mkdir.
68508
68509 2006-06-28  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/getaddrinfo.h: Fix POSIX URL.
68512         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68513         _WIN32.
68514         (use_win32_p): Make static.
68515         (getaddrinfo): Reject service name if it is empty or does not consist
68516         solely of decimal digits, or if its value is > 65535.
68517         (getnameinfo): Remove useless casts.
68518
68519 2006-06-27  Simon Josefsson  <jas@extundo.com>
68520
68521         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68522         Eggert and Martin Lambers.
68523
68524 2006-06-27  Simon Josefsson  <jas@extundo.com>
68525
68526         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68527         Eggert and Martin Lambers.
68528
68529 2006-06-27  Bruno Haible  <bruno@clisp.org>
68530
68531         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68532         result to 0, not to empty.
68533         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68534
68535 2006-06-27  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68538
68539 2006-06-26  Simon Josefsson  <jas@extundo.com>
68540
68541         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68542         present.
68543
68544 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68547         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68549
68550 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68551
68552         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68553
68554 2006-06-26  Bruno Haible  <bruno@clisp.org>
68555
68556         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68557
68558 2006-06-26  Bruno Haible  <bruno@clisp.org>
68559
68560         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68561
68562 2006-06-26  Bruno Haible  <bruno@clisp.org>
68563
68564         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68565         SGI C compiler in pre-C99 mode.
68566         Suggested by Mark D. Baushke and Larry Jones.
68567
68568 2006-06-26  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68571         WCHAR_MAX.
68572         Reported by Mark D. Baushke and Larry Jones.
68573
68574 2006-06-26  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68577         in pre-C99 mode.
68578         Suggested by Mark D. Baushke and Larry Jones.
68579
68580 2006-06-23  Simon Josefsson  <jas@extundo.com>
68581             Bruno Haible  <bruno@clisp.org>
68582
68583         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68584         Emit mostlyclean-local rule.
68585         (func_emit_tests_Makefile_am): Likewise.
68586         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68587
68588 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68589
68590         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68591
68592 2006-06-23  Bruno Haible  <bruno@clisp.org>
68593
68594         * tests/test-stdint.c: Update to match ISO C 99 Technical
68595         Corrigendum 1.
68596
68597 2006-06-23  Bruno Haible  <bruno@clisp.org>
68598
68599         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68600
68601 2006-06-23  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/stdint_.h: Treat IRIX like OpenBSD.
68604
68605 2006-06-23  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68608         ISO C 99 Technical Corrigendum 1.
68609
68610 2006-06-22  Simon Josefsson  <jas@extundo.com>
68611
68612         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68613         MinGW.
68614
68615 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68618         needed.  Some compiler complained about some of them.  Problem reported
68619         by Larry Jones in
68620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68621
68622 2006-06-21  Simon Josefsson  <jas@extundo.com>
68623
68624         * tests/test-getaddrinfo.c: New file.
68625
68626         * modules/getaddrinfo-tests: New file.
68627
68628         * MODULES.html.sh: Add inet_pton.
68629
68630         * modules/inet_pton: New file.
68631
68632 2006-06-21  Simon Josefsson  <jas@extundo.com>
68633
68634         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68635         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68636         of using the (limited) gnulib implementation on Windows XP.
68637
68638         * m4/inet_pton.m4: New file.
68639
68640 2006-06-21  Simon Josefsson  <jas@extundo.com>
68641
68642         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68643         variable.
68644
68645         * lib/socket_.h: Don't define WINVER.
68646
68647         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68648         slightly modified to work in gnulib.
68649
68650 2006-06-21  Simon Josefsson  <jas@extundo.com>
68651
68652         * doc/gnulib.texi (Windows sockets): Add.
68653
68654 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68655
68656         * lib/read-file.c (fread_file): Start with buffer allocation of
68657         0 bytes rather than 1 byte; this simplifies the code.
68658         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68659         code to free buffer and save/restore errno.
68660         (internal_read_file): Remove unused local.
68661
68662 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68663
68664         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68665         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68666         Problem reported by Denis Excoffier in
68667         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68668
68669 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68670
68671         * modules/sys_socket, modules/socklen: Include sys/types since
68672         FreeBSD 4.x's sys/socket.h needs it.
68673
68674 2006-06-19  Simon Josefsson  <jas@extundo.com>
68675
68676         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68677
68678 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68681
68682 2006-06-19  Bruno Haible  <bruno@clisp.org>
68683
68684         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68685         and FULL_PATH_INTTYPES_H in angle brackets.
68686         Reported by Mark D. Baushke <mdb@gnu.org>.
68687
68688 2006-06-17  Eric Blake  <ebb9@byu.net>
68689
68690         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68691         errno.
68692
68693 2006-06-17  Bruno Haible  <bruno@clisp.org>
68694
68695         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68696         <sys/inttypes.h>.
68697
68698 2006-06-17  Bruno Haible  <bruno@clisp.org>
68699
68700         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68701         whether errno is declared. Assume <errno.h> declares errno.
68702
68703 2006-06-17  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68706
68707 2006-06-17  Bruno Haible  <bruno@clisp.org>
68708
68709         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68710         problem on Solaris 2.5.1.
68711
68712 2006-06-16  Eric Blake  <ebb9@byu.net>
68713
68714         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68715         * lib/unicodeio.c [!defined errno]: Likewise.
68716         * lib/strtol.c [!defined errno]: Likewise.
68717         * lib/strtod.c [!defined errno]: Likewise.
68718
68719 2006-06-15  Eric Blake  <ebb9@byu.net>
68720
68721         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68722
68723 2006-06-15  Eric Blake  <ebb9@byu.net>
68724
68725         * config/srclist.txt (ssize_t.m4): Lose sync.
68726
68727 2006-06-15  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/stdint (Files): Include m4/full-header-path.m4,
68730         m4/size_max.m4, m4/wchar_t.m4.
68731         (Makefile.am): Many more substitutions.
68732         * modules/stdint-tests: New file.
68733         * tests/test-stdint.c: New file.
68734
68735 2006-06-15  Bruno Haible  <bruno@clisp.org>
68736
68737         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68738         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68739         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68740         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68741         gl_CHECK_TYPE_SAME): New macros.
68742
68743 2006-06-15  Bruno Haible  <bruno@clisp.org>
68744
68745         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68746
68747 2006-06-15  Bruno Haible  <bruno@clisp.org>
68748
68749         * lib/stdint_.h: Rewritten to be fully auto-configured.
68750         Fixes bug on HP-UX/IA64.
68751
68752 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * lib/getdate.y (__attribute__): Don't define if already defined.
68755         Problem reported by Larry Jones.
68756         * lib/utimens.c (__attribute__): Likewise.
68757
68758 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68761         reported by Andreas Schwab.
68762
68763 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68764             Bruno Haible  <bruno@clisp.org>
68765
68766         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68767         check for the declaration of strnlen and a run test that exposes the
68768         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68769         rpl_strndup.
68770
68771 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68772             Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68775
68776 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68777
68778         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68779         compile test, for Tru64 4.0D.
68780
68781 2006-05-28  Karl Berry  <karl@gnu.org>
68782
68783         * config/srclist.txt (printf-args.c): lose sync.
68784
68785 2006-05-26  Martin Lambers  <marlam@marlam.de>
68786
68787         * lib/getpass.c: Updates the test for the native W32 API, and adds
68788         missing includes, thus fixing compilation warnings.
68789
68790 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68791
68792         * lib/exclude.c (exclude_fnmatch): New function.
68793         (excluded_file_name): Call exclude_fnmatch.
68794         * lib/exclude.h (excluded_file_name): New prototype
68795
68796 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * lib/tempname.c (small_open, large_open): New macros.
68799         (__open, __open64) [!_LIBC]: Remove.
68800         (__gen_tempname): Use small_open and large_open instead of __open
68801         and __open64.  This fixes a portability bug on HP-UX 11.11i
68802         reported by Simon Wing-Tang in
68803         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68804
68805 2006-05-24  Bruno Haible  <bruno@clisp.org>
68806
68807         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68808         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68809         Reported by Thorsten Maerz <torte@netztorte.de> via
68810         Aaron Stone <aaron@serendipity.cx>.
68811
68812 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68815         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68816         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68817         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68818         not really conditional on the cache.
68819         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68820
68821 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68824         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68825         (my_usleep): Don't mishandle maximum value.
68826
68827 2006-05-19  Jim Meyering  <jim@meyering.net>
68828
68829         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68830
68831 2006-05-17  Bruno Haible  <bruno@clisp.org>
68832
68833         Cygwin portability.
68834         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68835
68836 2006-05-17  Bruno Haible  <bruno@clisp.org>
68837
68838         * lib/stdint_.h: Fix recognition of Cygwin.
68839
68840 2006-05-15  Bruno Haible  <bruno@clisp.org>
68841
68842         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68843         on libtool patch by Ralf Wildenhues.
68844
68845 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68848         test for C99 conformance; (bool) 0.5 is an integer constant
68849         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68850         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68851
68852 2006-05-11  Simon Josefsson  <jas@extundo.com>
68853
68854         * m4/xvasprintf.m4: Fix obvious typo.
68855
68856 2006-05-11  Jim Meyering  <jim@meyering.net>
68857
68858         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68859         James Lemley.
68860
68861 2006-05-10  Simon Josefsson  <jas@extundo.com>
68862
68863         * lib/md4.c: Typo fix, update copyright years.
68864         (K1, K2): Don't use L because it turn computations into 64-bit on
68865         64-bit platforms.
68866
68867 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68870         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68871         unwanted sign propagation, e.g., on hosts with 64-bit int.
68872         There still are some problems with reeelly weird theoretical hosts
68873         (e.g., 33-bit int) but it's not worth worrying about now.
68874         * lib/sha1.c (rol): Likewise.
68875         (K1, K2, K3, K4): Remove unnecessary L suffix.
68876
68877 2006-05-10  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/des.c: Cast to avoid warnings.
68880
68881 2006-05-09  Bruno Haible  <bruno@clisp.org>
68882
68883         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68884         (Depends-on): Depend also on xsize, stdarg.
68885         (configure.ac): Add gl_XVASPRINTF.
68886
68887 2006-05-09  Bruno Haible  <bruno@clisp.org>
68888
68889         * m4/xvasprintf.m4: New file.
68890
68891 2006-05-09  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68894         (EOVERFLOW): Define fallback value.
68895         (xstrcat): New function.
68896         (xvasprintf): Recognize the special case of a string concatenation.
68897
68898 2006-05-08  Eric Blake  <ebb9@byu.net>
68899
68900         * gnulib-tool (func_version): Base copyright year on CVS date.
68901         (func_emit_copyright_notice): New function.
68902         (func_emit_lib_Makefile_am): Use it.
68903         (func_emit_tests_Makefile_am): Likewise.
68904         (func_import): Likewise.
68905
68906 2006-05-08  Bruno Haible  <bruno@clisp.org>
68907
68908         * modules/stdarg: New file.
68909         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68910
68911 2006-05-08  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/stdarg.m4: New file, from GNU gettext.
68914
68915 2006-05-08  Bruno Haible  <bruno@clisp.org>
68916
68917         * config/srclist.txt (build-aux/config.rpath): different from latest
68918         release.
68919
68920 2006-05-08  Bruno Haible  <bruno@clisp.org>
68921
68922         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68923
68924 2006-05-05  Jim Meyering  <jim@meyering.net>
68925
68926         * m4/warning.m4: New file, derived from bison's file by the same name.
68927
68928 2006-05-03  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/stdint_.h: Shorter URL.
68931         * lib/inttypes.h: Likewise.
68932
68933 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68936
68937 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * lib/verify.h: Document the internals better.  Most of this change
68940         was written by Bruno Haible.
68941
68942 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68943
68944         * doc/verify.texi: New file, partly based on a proposal by
68945         Bruno Haible.
68946
68947 2006-05-02  Bruno Haible  <bruno@clisp.org>
68948
68949         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68950         test from here...
68951         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68952
68953 2006-04-29  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68956         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68957
68958 2006-04-29  Bruno Haible  <bruno@clisp.org>
68959
68960         * gnulib-tool: Make --update option actually work.
68961
68962 2006-04-29  Bruno Haible  <bruno@clisp.org>
68963
68964         * doc/gcd.texi: New file.
68965         * doc/gnulib.texi: Include it.
68966
68967 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * lib/getdate.y (get_date): When adding relative date, start with the
68970         initial time, not with the result of the first mktime call.
68971
68972 2006-04-25  Bruno Haible  <bruno@clisp.org>
68973
68974         * gnulib-tool (func_import): Output the include directives in three
68975         blocks, sorted separately.
68976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68977
68978 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68979
68980         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68981         to define main with arguments, for C++.  Reported by Eric Blake.
68982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68983         Prefer 'int main ()' to 'int main (void)', for C++.
68984         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68986         for 'main', for C99 and C++.
68987
68988 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68991         Don't assume that exit status -1 is valid.
68992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68993         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68994         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68995         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68996         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68998         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68999         functions can be used without declaring them, or that you can
69000         exit with status -1.
69001         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69002
69003 2006-04-24  Karl Berry  <karl@gnu.org>
69004
69005         * config/srclist.txt (longdouble.m4): sync lost.
69006
69007 2006-04-24  Eric Blake  <ebb9@byu.net>
69008
69009         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69010
69011 2006-04-24  Bruno Haible  <bruno@clisp.org>
69012
69013         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69014         poll() implementation in AIX.
69015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69016
69017 2006-04-24  Bruno Haible  <bruno@clisp.org>
69018
69019         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69020         assigned exactly once.
69021
69022 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69023             Bruno Haible  <bruno@clisp.org>
69024
69025         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69026         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69027         for AM_CPPFLAGS.
69028
69029 2006-04-23  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/copy-file: Depend on unistd.
69032         * modules/execute: Likewise.
69033         * modules/fatal-signal: Likewise.
69034         * modules/findprog: Likewise.
69035         * modules/mkdtemp : Likewise.
69036         * modules/pipe: Likewise.
69037         * modules/wait-process: Likewise.
69038
69039 2006-04-23  Bruno Haible  <bruno@clisp.org>
69040
69041         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69042         condition was already detected.
69043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69044
69045 2006-04-23  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/copy-file.c: Include <unistd.h> unconditionally.
69048         * lib/execute.c: Likewise.
69049         * lib/fatal-signal.c: Likewise.
69050         * lib/findprog.c: Likewise.
69051         * lib/mkdtemp.c: Likewise.
69052         * lib/pipe.h: Likewise.
69053         * lib/pipe.c: Likewise.
69054         * lib/wait-process.h: Likewise.
69055
69056 2006-04-23  Bruno Haible  <bruno@clisp.org>
69057
69058         * gnulib-tool (func_usage): Fix --import description. Document
69059         --update.
69060         (func_import): Create temporary file in a temporary directory, if
69061         --dry-run is specified. Silence errors from 'grep' when there are no
69062         m4 files in $m4dir.
69063         (func_create_testdir): Silence errors from 'grep' when there are no
69064         m4 files in $m4dir.
69065         Reported by Karl Berry <karl@freefriends.org>.
69066
69067 2006-04-20  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69070         one argument, so that the code will be portable to Autoconf 2.60.
69071         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69072         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69073         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69074
69075 2006-04-19  Derek Price  <derek@ximbiot.com>
69076             Eric Blake  <ebb9@byu.net>
69077
69078         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69079         rather than "/full/path.h".  Update comment to match.  Shorten &
69080         generalize m4_translit call via AS_TR_CPP.
69081
69082 2006-04-19  Derek Price  <derek@ximbiot.com>
69083             Eric Blake  <ebb9@byu.net>
69084
69085         * lib/inttypes.h: Correct grammar in comment.
69086
69087 2006-04-18  Derek Price  <derek@ximbiot.com>
69088             Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * modules/inttypes: New file.
69091         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69092
69093 2006-04-18  Derek Price  <derek@ximbiot.com>
69094             Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69097         New files.
69098
69099 2006-04-18  Derek Price  <derek@ximbiot.com>
69100             Paul Eggert  <eggert@cs.ucla.edu>
69101
69102         * lib/inttypes.h: New file.
69103         * lib/strtoimax.c: Assume <inttypes.h>.
69104
69105 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69108         isn't mounted.  Problem reported by Kir Kolyshkin.
69109
69110 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69113         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69114         Derek R. Price.
69115         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69116         implementation.
69117
69118 2006-04-12  Eric Blake  <ebb9@byu.net>
69119
69120         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69121         is now done automatically by the corresponding Autoconf macro.
69122
69123 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69126         time_r.h.
69127
69128 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         Merge regex changes from libc, removing some of our
69131         POSIX-conformance changes that were rejected and redoing them in a
69132         less-intrusive way.
69133
69134         * lib/regcomp.c (re_compile_internal, init_dfa):
69135         Length arg is now size_t, not Idx.  All uses changed.
69136         (peek_token): Forward decl now says internal_function.
69137         (__re_error_msgid, __re_error_msgid_idx):
69138         Now static rather than extern with attribute_hidden.
69139         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69140         For some reason libc prefers K&R style defns for external functions.
69141         (regerror) [!defined _LIBC]: Likewise.
69142         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69143         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69144         (build_range_exp, build_collating_symbol):
69145         Use K&R-style defn.
69146         (re_compile_fastmap): Use '\0' to memset, not 0.
69147         (utf8_sb_map): Make the calculations more obvious.
69148         (init_dfa, parse_bracket_exp, build_charclass_op):
69149         Call calloc and cast result, as glibc does.
69150         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69151         (build_range_exp, build_collating_symbol):
69152         Now internal functions.
69153
69154         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69155
69156         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69157         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69158         Don't depend on VMS; depend on __VMS instead, for POSIX
69159         namespace cleanness.
69160         (regoff_t): Define to ssize_t, not long int.
69161
69162         Remove the REG_ macros named below.  Instead, make the old names
69163         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69164         __USE_GNU_REGEX.
69165         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69166         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69167         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69168         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69169         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69170         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69171         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69172         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69173         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69174         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69175         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69176         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69177         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69178         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69179         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69180         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69181         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69182         (REG_NREGS):
69183         Remove.  All uses replaced by the old RE_* names.
69184         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69185         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69186         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69187         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69188         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69189         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69190         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69191         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69192         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69193         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69194         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69195         Don't bother having these macros be independent of each others'
69196         values, since they no longer exist in the POSIX name space.
69197
69198         Rename the following member names back to their old names,
69199         unless !__USE_GNU_REGEX.  All uses changed back.
69200         (buffer): Renamed from re_buffer.
69201         (allocated): Renamed from re_allocated.
69202         (used): Renamed from re_used.
69203         (syntax): Renamed from re_syntax.
69204         (fastmap): Renamed from re_fastmap.
69205         (translate): Renamed from re_translate.
69206         (can_be_null): Renamed from re_can_be_null.
69207         (regs_allocated): Renamed from re_regs_allocated.
69208         (fastmap_accurate): Renamed from re_fastmap_accurate.
69209         (no_sub): Renamed from re_no_sub.
69210         (not_bol): Renamed from re_not_bol.
69211         (not_eol): Renamed from re_not_eol.
69212         (newline_anchor): Renamed from re_newline_anchor.
69213         (num_regs): Renamed from rm_num_regs.
69214         (start): Renamed from rm_start.
69215         (end): Renamed from rm_end.
69216
69217         (free_state): Move up a bit.
69218
69219         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69220         #define to be empty.
69221         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69222         when that is what is intended.
69223         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69224         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69225         (MAX): New macro.
69226         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69227         All uses changed back to re_malloc, etc.  It's now the caller's
69228         responsibility to check for overflow; all callers changed.
69229         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69230         (re_x2nrealloc): Remove.
69231         (free_state): Remove decl.
69232
69233         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69234         (re_set_registers, re_exec):
69235         Use K&R-style defn.
69236
69237         2006-01-31  Roland McGrath  <roland@redhat.com>
69238
69239         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69240         Reported by Mike Frysinger <vapier@gentoo.org>.
69241
69242         2006-01-15  Andreas Jaeger  <aj@suse.de>
69243
69244         [BZ #1950]
69245         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69246         build_wcs_upper_buffer change.
69247         (build_wcs_upper_buffer): Change return type.
69248
69249         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69250
69251         * lib/regex_internal.h: Include <stdint.h> if available.
69252
69253         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69254
69255         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69256
69257         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69258
69259         * lib/regcomp.c: Adjust for changed secondary hash function.
69260
69261         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69262
69263         * lib/regex.h: Pretty printing.
69264         Clean up namespace a bit.
69265
69266         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69267
69268         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69269         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69270
69271         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69272                     Ulrich Drepper  <drepper@redhat.com>
69273
69274         [BZ #1302]
69275         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69276         changed.
69277         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69278
69279         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69280
69281         [BZ #281]
69282         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69283         * lib/regcomp.c: Remove unnecessary uses of
69284         unsigned RE_TRANSLATE_TYPE.
69285         * lib/regex_internal.h: Likewise.
69286         * lib/regex_internal.c: Likewise.
69287         * lib/regexec.c: Likewise.
69288         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69289
69290         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69291
69292         * lib/regexec.c (find_recover_state): Remove unnecessary
69293         initialization.
69294         (transit_state_bkref): Make DFA a const pointer.
69295         (get_subexp): Likewise.
69296         (check_arrival): Likewise.
69297         (update_cur_sifted_state): Likewise.
69298         (re_search_internal): Likewise.
69299         (prune_impossible_nodes): Likewise.
69300         (acquire_init_state_context): Likewise.
69301         (proceed_next_node): Likewise.
69302         (set_regs): Likewise.
69303         (free_fail_stack_return): Likewise.
69304         (check_arrival_expand_ecl): Mark DFA parameter as const.
69305         (check_arrival_expand_ecl_sub): Likewise.
69306         (check_subexp_limits): Likewise.
69307         (sub_epsilon_src_nodes):  Likewise.
69308         (add_epsilon_src_nodes):  Likewise.
69309         (merge_state_array): Likewise.
69310         (update_regs): Likewise.
69311         (build_trtable): Likewise.
69312         (sift_states_backward): Mark MCTX parameter as const.
69313         (build_sifted_states): Likewise.
69314         (update_cur_sifted_state): Likewise.
69315         (sift_states_mkref): Likewise.
69316         (check_arrival_expand_ecl): Mark eclosure as const.
69317         (check_dst_limits_calc_pos_1): Likewise.
69318         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69319         pointer.
69320
69321         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69322
69323         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69324         (transit_state_sb): Likewise.
69325         (transit_state_mb): Likewise.
69326         (sift_states_iter_mb): Likewise.
69327         (check_arrival_add_next_nodes): Likewise.
69328         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69329         [_LIBC] (re_search_2_stub): Use mempcpy.
69330
69331         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69332         mbrtowc for very simple UTF-8 case.
69333
69334         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69335         a pointer-to-const.
69336         (re_acquire_state_context): Likewise.
69337         * lib/regex_internal.h: Adjust prototypes.
69338
69339         * lib/regex.c: Prevent using C++ compilers.
69340
69341         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69342         (re_acquire_state_context): Likewise.
69343
69344 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * modules/regex (Depends-on): Add ssize_t.
69347
69348 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69351         translation table.
69352
69353 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69354
69355         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69356
69357 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69358             Bruno Haible  <bruno@clisp.org>
69359
69360         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69361         <sys/types.h> and <inttypes.h>.
69362
69363 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69364
69365         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69366         `__error_t_defined', so argp.h will not typedef the former.
69367
69368 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69371         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69372         glibc names.  Even if glibc is changed to conform to POSIX, the
69373         traditional names will be available anyway, since regex depends on
69374         the extensions module.  Also, fix a longstanding typo in the
69375         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69376         reported by Emanuele Giaquinta.  Also, change sense of cached
69377         variable, so that the message makes sense.
69378
69379 2006-03-24  Simon Josefsson  <jas@extundo.com>
69380
69381         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69382         including some doc fixes.
69383         (base64_encode_alloc): Fix +1 bug on allocation failures.
69384
69385 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69386
69387         * lib/base64.c (base64_encode): Do not read past end of array with
69388         unsanitized input on systems with CHAR_BIT > 8.
69389
69390 2006-03-24  Eric Blake  <ebb9@byu.net>
69391
69392         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69393
69394 2006-03-22  Karl Berry  <karl@gnu.org>
69395
69396         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69397         * config/srclistvars.sh (COREUTILS): new var.
69398
69399 2006-03-17  Jim Meyering  <jim@meyering.net>
69400
69401         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69402         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69403
69404 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69407         no longer needs it.  Instead, check that regoff_t is as least
69408         as wide as ptrdiff_t.
69409
69410         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69411         so that our regex.h stays compatible with the installed regex.
69412         This is helpful for installers who configure --without-included-regex.
69413         Problem reported by Emanuele Giaquinta.
69414
69415 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69416
69417         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69418         Typedef to long int, not to off_, as POSIX will likely change
69419         in that direction.
69420
69421 2006-03-15  Eric Blake  <ebb9@byu.net>
69422
69423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69424
69425 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69426
69427         * lib/argp-help.c (validate_uparams): Fix typo
69428         * lib/argp-parse.c (argp_default_options): Consistently begin help
69429         messages with a lowercase letter.
69430
69431 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69432
69433         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69434         overrun buffers and shouldn't be used (much as gets shouldn't be
69435         used).
69436         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69437
69438 2006-03-08  Simon Josefsson  <jas@extundo.com>
69439
69440         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69441         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69442
69443 2006-03-08  Simon Josefsson  <jas@extundo.com>
69444
69445         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69446         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69447
69448 2006-03-08  Simon Josefsson  <jas@extundo.com>
69449
69450         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69451         signal that configure disabled the device.
69452
69453 2006-03-08  Simon Josefsson  <jas@extundo.com>
69454
69455         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69456         languages.
69457
69458 2006-03-07  Simon Josefsson  <jas@extundo.com>
69459
69460         * modules/getopt (Depends-on): Add unistd.
69461
69462         * modules/unistd: New file.
69463
69464 2006-03-07  Simon Josefsson  <jas@extundo.com>
69465
69466         * modules/gc-random: New file.
69467
69468 2006-03-07  Simon Josefsson  <jas@extundo.com>
69469
69470         * m4/unistd_h.m4: New file.
69471
69472 2006-03-07  Simon Josefsson  <jas@extundo.com>
69473
69474         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69475         test to be side-effect free by storing the result in the cache
69476         variable gl_cv_lib_readline, and moving the assignment of
69477         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69478         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69479
69480 2006-03-07  Simon Josefsson  <jas@extundo.com>
69481
69482         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69483         error on missing devices (the functions will return an error).
69484
69485         * m4/gc.m4: Move random stuff to gc-random.m4
69486
69487 2006-03-07  Simon Josefsson  <jas@extundo.com>
69488
69489         * lib/unistd_.h: New file.
69490
69491 2006-03-07  Simon Josefsson  <jas@extundo.com>
69492
69493         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69494
69495 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69496
69497         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69498         Problem reported by Juan Manuel Guerrero.
69499
69500 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69503         the unistd module.
69504         * lib/getlogin_r.c: Likewise.
69505         * lib/getlogin_r.h: Likewise.
69506         * lib/glob.c: Likewise.
69507         * lib/pagealign_alloc.c: Likewise.
69508         * lib/unistd_.h: Remove; no longer needed.
69509
69510 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69513         Add unistd.
69514         * modules/c-stack (Depends-on): Add unistd.
69515         * modules/getlogin_r: Likewise.
69516         * modules/glob: Likewise.
69517         * modules/pagealign_alloc: Likewise.
69518         * modules/unistd (Files): Remove lib/unistd_.h.
69519         (EXTRA_DIST): Remove.
69520         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69521         need unistd_.h.
69522         (MOSTLYCLEANFILES): Remove unistd.h-t.
69523
69524 2006-03-03  Simon Josefsson  <jas@extundo.com>
69525
69526         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69527
69528 2006-03-03  Simon Josefsson  <jas@extundo.com>
69529
69530         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69531         libidn and bison.
69532
69533 2006-03-03  Simon Josefsson  <jas@extundo.com>
69534
69535         * build-aux/maint.mk: Add indent target.
69536
69537 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69538
69539         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69540         our replacement poll.h in any case, to avoid a differing
69541         declaration from a system header.  Seen on AIX.
69542
69543 2006-03-01  Simon Josefsson  <jas@extundo.com>
69544
69545         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69546         <kasal@ucw.cz>.
69547
69548 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * modules/gettime (Depends-on): Add extensions module.
69551         * modules/nanosleep (Depends-on): Likewise.
69552         * modules/settime (Depends-on): Likewise.
69553
69554 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69557         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69558         pedantically.
69559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69560         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69561
69562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69563         not "==".  Reported by Ralf Wildenhues.
69564
69565 2006-03-01  Karl Berry  <karl@gnu.org>
69566
69567         * doc/Copyright/request-*: new files, synced from gnuorg.
69568
69569 2006-03-01  Karl Berry  <karl@gnu.org>
69570
69571         * config/srclist.txt (Copyright/*): new entries.
69572
69573 2006-02-28  Simon Josefsson  <jas@extundo.com>
69574
69575         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69576
69577 2006-02-27  Simon Josefsson  <jas@extundo.com>
69578
69579         * lib/base64.h: Indent #define's.  From Jim Meyering
69580         <jim@meyering.net>.
69581
69582 2006-02-27  Jim Meyering  <jim@meyering.net>
69583
69584         Revert the change of 2006-02-24, so these files can continue
69585         to be sync'd from gettext.
69586         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69587         of `config.h'.
69588
69589 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * modules/intprops: New file.
69592         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69593         Add intprops.
69594         * modules/getloadavg (Files): Remove lib/intprops.h.
69595         (Depends-on): Add intprops.
69596         * modules/human: Likewise.
69597         * modules/inttostr: Likewise.
69598         * modules/openat: Likewise.
69599         * modules/sig2str: Likewise.
69600         * modules/userspec: Likewise.
69601         * modules/utimecmp: Likewise.
69602         * modules/xnanosleep: Likewise.
69603         * modules/xstrtol: Likewise.
69604
69605 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69606
69607         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69608         * modules/lock-tests (TESTS): Use $(EXEEXT).
69609         * modules/tls-tests: Likewise.
69610         * modules/argp-tests: Likewise.
69611         (check_PROGRAMS): New var, replacing...
69612         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69613
69614 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69615
69616         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69617         `config.h'.
69618
69619 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69622
69623 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69624
69625         Sync from coreutils.
69626         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69627         gl_CHDIR_SAFER.
69628
69629 2006-02-22  Jim Meyering  <jim@meyering.net>
69630
69631         Sync from coreutils.
69632         * m4/chdir-safer.m4: New file.
69633
69634 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69637         AT_FDCWD exceeds INT_MAX.
69638         * lib/openat.h (AT_FDCWD): Likewise.
69639
69640 2006-02-17  Eric Blake  <address@hidden>
69641
69642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69643
69644 2006-02-16  Simon Josefsson  <jas@extundo.com>
69645
69646         * modules/getaddrinfo (Depends-on): Add sys_socket.
69647
69648 2006-02-15  Simon Josefsson  <jas@extundo.com>
69649
69650         * build-aux/maint.mk: Add dsyntax-check rule.
69651
69652 2006-02-15  Eric Blake  <ebb9@byu.net>
69653
69654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69655         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69656         'present but cannot compile' warnings on cygwin.
69657         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69658         use ws2tcpip.h if sys/socket.h works.
69659         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69660         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69661
69662 2006-02-14  Simon Josefsson  <jas@extundo.com>
69663
69664         * modules/maintainer-makefile (Files): Rename.
69665
69666         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69667         and (the local) Makefile.cfg to maint-cfg.mk.
69668
69669         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69670         to the latter.
69671
69672         * modules/maintainer-makefile: New module.
69673
69674         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69675         severaly stripped to make it possible to build it up from scratch
69676         with reliable tests.
69677
69678         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69679         fixes to permit overriding the default actions when configure and
69680         makefile are not available.
69681
69682 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         Sync from coreutils.
69685         * modules/lstat (Depends-on): Don't depend on xalloc.
69686         (License): Change from GPL to LGPL, since this is now simply a
69687         replacement for a libc function.
69688
69689 2006-02-14  Jim Meyering  <jim@meyering.net>
69690
69691         Sync from coreutils.
69692
69693         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69694         failure on deficient systems, and simplify gnulib lgpl dependencies.
69695         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69696         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69697
69698         * lib/xalloc-die.c: Remove unused definition of N_.
69699
69700 2006-02-14  Jim Meyering  <jim@meyering.net>
69701
69702         Sync from coreutils.
69703         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69704         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69705         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69706         double-quote uses of that variable, to accommodate the rare case in
69707         which getmntent is available in none of the libraries checked.  This
69708         happens at least on FreeBSD 5.0.
69709
69710 2006-02-13  Simon Josefsson  <jas@extundo.com>
69711
69712         * gnulib-tool (Usage): Fix --import, from
69713         karl@freefriends.org (Karl Berry).
69714
69715 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69716
69717         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69718
69719 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69720
69721         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69722         "autoupdate" on 2005-12-12.
69723
69724 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         * modules/closeout (Depends-on): Remove atexit.
69727
69728 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69731         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69732
69733 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69736         __EXTENSIONS__ if this causes compilation to fail.  Problem
69737         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69738         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69739
69740 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69743         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69745         All uses changed.
69746
69747 2006-01-26  Simon Josefsson  <jas@extundo.com>
69748
69749         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69750         prototype is visible on mingw32.
69751
69752         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69753         for mingw32.
69754
69755         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69756         mingw32).
69757
69758 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69761         attempt to open for write; this always fails, at least on POSIX
69762         hosts.  This reinstates the 2006-01-09 change, which was
69763         inadvertently removed.
69764
69765 2006-01-26  Bruno Haible  <bruno@clisp.org>
69766
69767         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69768         Reported by Paul Eggert.
69769
69770 2006-01-26  Bruno Haible  <bruno@clisp.org>
69771             Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * lib/stdbool_.h (_Bool)
69774         [(! (defined __cplusplus || defined __BEOS__)
69775           && !defined __GNUC__
69776           && !(defined __HP_cc || defined __xlc__
69777                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69778                || defined __sgi))]:
69779         #define to signed char in these cases too; this simplifies
69780         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69781         etc., separately) and makes it more conservative.
69782
69783 2006-01-25  Simon Josefsson  <jas@extundo.com>
69784
69785         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69786         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69787         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69788
69789 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69790
69791         * lib/argp-namefrob.h: Bugfix. Remove stray #
69792
69793 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69796         so that we test the test.
69797         Check for yet another HP-UX cc bug involving *bool |= bool.
69798
69799 2006-01-25  Karl Berry  <karl@gnu.org>
69800
69801         * config/srclist.txt (vasnprintf.c): sync lost.
69802
69803 2006-01-25  Jim Meyering  <jim@meyering.net>
69804
69805         Sync from the stable (b5) branch of coreutils:
69806
69807         * lib/fts.c (fts_children): Don't let close() clobber errno from
69808         failed fchdir().
69809
69810         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69811         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69812         a dangling symlink.  That can also happen at least for ELOOP.
69813         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69814         FYI, this bug predates the inclusion of fts.c in coreutils.
69815
69816         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69817         in their own block, so pre-c99 compilers don't object.
69818
69819         Avoid the double-free (first in fts_read, second in fts_close) that
69820         would occur when an `active' directory is made inaccessible (e.g.,
69821         via chmod a-x) during a traversal.
69822         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69823         before returning.  Reproduce this failure by
69824         mkdir -p a/b; cd a; chmod a-x . b
69825         Reported by Stavros Passas.
69826
69827 2006-01-25  Jim Meyering  <jim@meyering.net>
69828
69829         * lib/fileblocks.c: Remove more useless parentheses.
69830         * lib/readutmp.h: Likewise.
69831
69832 2006-01-25  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69835         warnings.
69836         Reported by Paul Eggert.
69837
69838 2006-01-25  Bruno Haible  <bruno@clisp.org>
69839
69840         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69841         rid of a trap command. For Solaris sh.
69842         Reported by Mark D. Baushke <mdb@gnu.org>.
69843
69844 2006-01-24  Simon Josefsson  <jas@extundo.com>
69845
69846         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69847         Bruno.
69848
69849 2006-01-24  Karl Berry  <karl@gnu.org>
69850
69851         * config/srclist.txt (argp-namefrob.h): sync lost.
69852
69853 2006-01-24  Jim Meyering  <jim@meyering.net>
69854
69855         * modules/openat (Files): Add lib/intprops.h.
69856         From Mark D. Baushke.
69857
69858 2006-01-24  Jim Meyering  <jim@meyering.net>
69859
69860         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69861         Reported by Mark D. Baushke.
69862
69863 2006-01-24  Jim Meyering  <jim@meyering.net>
69864
69865         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69866
69867 2006-01-24  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/strnlen (Maintainer): Change from glibc to all.
69870
69871 2006-01-24  Bruno Haible  <bruno@clisp.org>
69872
69873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69874         Patch by Paul Eggert.
69875
69876 2006-01-24  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69879         already has it.
69880         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69881         2005-11-26.
69882
69883         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69884         'signed char' to avoid problems with the built-in _Bool type.
69885         Reported by Paul Eggert on 2005-11-26.
69886
69887 2006-01-24  Bruno Haible  <bruno@clisp.org>
69888
69889         * gnulib-tool (func_import): Avoid constructing complicated sed
69890         expressions inside backquote.
69891         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69892
69893 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69894
69895         These changes imported from libc.
69896         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69897         test and two separate function calls.
69898         * lib/strndup.c (__strndup): Add libc_hidden_def.
69899
69900 2006-01-23  Simon Josefsson  <jas@extundo.com>
69901
69902         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69903         Remove the test_*_SOURCES variable: automake infers it by default.
69904         * modules/tls-tests: Likewise.
69905
69906 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         Work around porting bugs reported by Dieter in
69909         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69910         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69911         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69912         Include "getopt.h" first, to check interface.
69913         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69914         !HAVE_DECL_GETENV.
69915         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69916         (__strndup): Revert to K&R-style function dfns, the glibc style.
69917         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69918         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69919         Include strnlen.h first, to get prototype properly.
69920         (strnlen): Renamed from __strnlen.
69921         Remove weak alias.
69922
69923 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69926
69927 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * config/srclist.txt: Adjust to reflect glibc reorganization.
69930         This affects only comments.
69931
69932 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69933
69934          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69935          Reported by Bruce Korb <bkorb@gnu.org>.
69936
69937 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69940         to pacify gcc -Wswitch-default.
69941
69942 2006-01-22  Bruno Haible  <bruno@clisp.org>
69943
69944         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69945         temporary buffer for sprintf, take into account the precision also
69946         for 'd', 'i', 'u', 'o', 'x', 'X'.
69947
69948 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69949
69950         * modules/argp-tests: New module
69951         * tests/test-argp.c: New file
69952         * tests/test-argp-2.sh: New file
69953
69954 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69955
69956         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69957         (__argp_base_name): Removed
69958         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69959         typo.
69960         (__argp_base_name): Provide macro definition or extern declaration
69961         depending on the configuration
69962
69963 2006-01-20  Simon Josefsson  <jas@extundo.com>
69964
69965         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69966
69967 2006-01-20  Simon Josefsson  <jas@extundo.com>
69968
69969         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69970
69971 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69974         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69975         Suggested by Bruno Haible.
69976
69977 2006-01-20  Karl Berry  <karl@gnu.org>
69978
69979         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69980         until changes propagate, I guess.
69981
69982 2006-01-19  Simon Josefsson  <jas@extundo.com>
69983
69984         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69985
69986 2006-01-19  Simon Josefsson  <jas@extundo.com>
69987
69988         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69989
69990 2006-01-19  Simon Josefsson  <jas@extundo.com>
69991
69992         * gnulib-tool: Set check_PROGRAMS.
69993
69994         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69995         modules/des-tests, modules/gc-arcfour-tests,
69996         modules/gc-arctwo-tests, modules/gc-des-tests,
69997         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69998         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69999         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70000         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70001         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70002         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70003         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70004         test_*_SOURCES.
70005
70006 2006-01-18  Simon Josefsson  <jas@extundo.com>
70007
70008         * modules/socklen (Depends-on): Depend on sys_socket.
70009
70010 2006-01-18  Simon Josefsson  <jas@extundo.com>
70011
70012         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70013         modules/des-tests, modules/gc-arcfour-tests,
70014         modules/gc-arctwo-tests, modules/gc-des-tests,
70015         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70016         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70017         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70018         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70019         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70020         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70021         $(EXEEXT) to automake TESTS variable, for mingw32.
70022
70023 2006-01-17  Simon Josefsson  <jas@extundo.com>
70024
70025         * modules/socklen (Include): Need sys/socket.h.
70026
70027 2006-01-17  Bruno Haible  <bruno@clisp.org>
70028
70029         * modules/ssize_t (Include): Add <sys/types.h>.
70030
70031 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70034         it's not portable and it doesn't work with cross-compiles.
70035         Problem reported by Bruno Haible.  Fix missing-$ typo in
70036         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70037         -zignore from being used with Sun's C compiler.
70038
70039 2006-01-12  Simon Josefsson  <jas@extundo.com>
70040
70041         * lib/base64.c: Fix warning, reported by Bruno Haible
70042         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70043
70044 2006-01-12  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/ldd: New file.
70047         * build-aux/ldd.sh.in: New file.
70048         * MODULES.html.sh (Support for building libraries and executables): Add
70049         ldd.
70050
70051 2006-01-12  Bruno Haible  <bruno@clisp.org>
70052
70053         * m4/ldd.m4: New file.
70054
70055 2006-01-12  Bruno Haible  <bruno@clisp.org>
70056
70057         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70058         endless loop while replacing $auxdir with build-aux.
70059
70060 2006-01-11  Simon Josefsson  <jas@extundo.com>
70061
70062         * lib/stdint_.h (SIZE_MAX): Add missing (.
70063
70064 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         Sync from coreutils.
70067         * lib/md5.c: Fix commentary typos.
70068         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70069         * lib/md5.h (__attribute__): Remove; unused.
70070         * lib/sha1.c: Fix commentary to match md5 better.
70071         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70072         so that we don't need to worry about alignment.  All uses changed.
70073         This merges the 2005-10-28 md5 change into sha1.
70074
70075 2006-01-11  Jim Meyering  <jim@meyering.net>
70076
70077         Sync from coreutils.
70078         * lib/md5.c (OP): Fix spacing.
70079
70080 2006-01-11  Bruno Haible  <bruno@clisp.org>
70081
70082         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70083         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70084         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70085
70086 2006-01-11  Bruno Haible  <bruno@clisp.org>
70087
70088         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70089         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70090         the "early" section as well.
70091
70092 2006-01-11  Bruno Haible  <bruno@clisp.org>
70093
70094         Avoid "ar: no archive members specified" error on MacOS X.
70095         * gnulib-tool (func_modules_add_dummy): New function.
70096         (func_import, func_create_testdir): Invoke it.
70097
70098 2006-01-11  Bruno Haible  <bruno@clisp.org>
70099
70100         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70101         with $auxdir in AC_CONFIG_FILES statements.
70102
70103 2006-01-11  Bruno Haible  <bruno@clisp.org>
70104
70105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70106         Initialize also noinst_HEADERS to empty.
70107
70108 2006-01-11  Bruno Haible  <bruno@clisp.org>
70109
70110         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70111         variables.
70112         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70113         autoreconf.
70114
70115 2006-01-11  Bruno Haible  <bruno@clisp.org>
70116
70117         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70118         overridable by the user.
70119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70120
70121 2006-01-10  Simon Josefsson  <jas@extundo.com>
70122
70123         * modules/sys_socket: New file.
70124
70125 2006-01-10  Simon Josefsson  <jas@extundo.com>
70126
70127         * m4/sys_socket_h.m4: New file.
70128
70129 2006-01-10  Simon Josefsson  <jas@extundo.com>
70130
70131         * lib/socket_.h: New file.
70132
70133 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * modules/readutmp (Maintainer): Add myself.
70136
70137 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70140         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70141         People who are still concerned with buggy memcmp implementations
70142         can invoke gl_FUNC_MEMCMP themselves.
70143
70144 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * lib/regex_internal.h (BITSET_WORD_BITS):
70147         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70148         preprocessor mishandles large unsigned values as if they were signed.
70149         Problem reported by Claudio Fontana in
70150         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70151
70152 2006-01-10  Jim Meyering  <jim@meyering.net>
70153
70154         Avoid the double-free (first in fts_read, second in fts_close) that
70155         would occur when an `active' directory is made inaccessible (e.g.,
70156         via chmod a-x) during a traversal.
70157         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70158         before returning.  Reproduce this failure by
70159         mkdir -p a/b; cd a; chmod a-x . b
70160         Reported by Stavros Passas.
70161
70162         Sync from coreutils.
70163         * lib/sha1.c: Tweak grammar in a comment.
70164
70165 2006-01-10  Jim Meyering  <jim@meyering.net>
70166
70167         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70168         Patch by Joerg Sonnenberger.
70169
70170 2006-01-10  Bruno Haible  <bruno@clisp.org>
70171
70172         * modules/readutmp: Depend on module free.
70173         * modules/strtok_r: Depend on module restrict.
70174
70175 2006-01-10  Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/gettext (configure.ac): Add an invocation of
70178         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70179
70180 2006-01-10  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70183         Reported by Werner Lemberg <wl@gnu.org>.
70184
70185 2006-01-10  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/localcharset.c: Update from GNU gettext.
70188
70189 2006-01-10  Bruno Haible  <bruno@clisp.org>
70190
70191         * lib/argp.h (__const): Remove macro. Use const instead.
70192         * lib/argp-fmtstream.h (__const): Likewise.
70193         * lib/glob_.h (__const): Remove macro.
70194         * lib/glob-libc.h: Use const instead of __const.
70195
70196 2006-01-10  Bruno Haible  <bruno@clisp.org>
70197
70198         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70199         variable.
70200         Needed to avoid an automake error regarding the 'gettext' module.
70201
70202 2006-01-09  Simon Josefsson  <jas@extundo.com>
70203
70204         * modules/inet_ntop (Depends-on): Add restrict.
70205
70206 2006-01-09  Simon Josefsson  <jas@extundo.com>
70207
70208         * modules/gc-rijndael-tests (License): Put under LGPL.
70209
70210         * modules/gc-des-tests (License): Likewise.
70211
70212         * modules/gc-arcfour-tests (License): Likewise.
70213
70214         * modules/gc-arctwo-tests (License): Likewise.
70215
70216         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70217
70218         * modules/gc-hmac-sha1-tests (Files): Likewise.
70219
70220         * modules/gc-hmac-md5-tests (License): Likewise.
70221
70222         * modules/gc-sha1-tests (License): Likewise.
70223
70224         * modules/gc-md5-tests (License): Likewise.
70225
70226         * modules/gc-md4-tests (License): Likewise.
70227
70228         * modules/gc-md2-tests (License): Likewise.
70229
70230         * modules/gc-tests (License): Likewise.
70231
70232         * modules/des-tests (License): Likewise.
70233
70234         * modules/md4-tests (License): Likewise.
70235
70236         * modules/md2-tests (License): Likewise.
70237
70238 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         Sync from coreutils:
70241
70242         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70243         * modules/lib-ignore: New file.
70244         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70245         chdir-safer.m4, lchmod.m4.
70246         * modules/openat: Add mkdirat.c, openat-priv.h.
70247
70248 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         Sync from coreutils.
70251         * m4/lib-ignore.m4: New file.
70252         * m4/lchmod.m4: New file.
70253
70254 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         Sync from coreutils.
70257         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70258         for write access: POSIX says that must fail.
70259         * lib/fts.c (diropen): Likewise.
70260         * lib/save-cwd.c (save_cwd): Likewise.
70261         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70262         well, for minor improvements on hosts that lack O_DIRECTORY.
70263         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70264         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70265         Fall back on chown if open failed with EACCES.
70266
70267         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70268         Report an error at compile-time if only a 1-second nominal clock
70269         resolution is found.
70270
70271         * lib/lchmod.h: New file.
70272         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70273         (make_dir_parents): Use lchown rather than chown, and
70274         lchmod rather than chmod.
70275
70276         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70277         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70278         "proc" reported by n0dalus.
70279
70280         * lib/mountlist.c: Include <limits.h>.
70281         (dev_from_mount_options)
70282         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70283         New function.  It no longer assumes "dev=" has the System V meaning
70284         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70285         (read_file_system_list)
70286         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70287         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70288         dev= in that case.
70289
70290         * lib/posixtm.h (PDS_PRE_2000): New macro.
70291         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70292         allow_century.  All usages changed.  Reject dates outside the range
70293         1969-1999 if PDS_PRE_2000 is used.
70294
70295 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         Sync from coreutils.
70298         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70299         (Time of day items): Mention the possibility of leap seconds.
70300         Problem reported by Dr. David Alan Gilbert.
70301
70302 2006-01-09  Jim Meyering  <jim@meyering.net>
70303
70304         Sync from coreutils.
70305
70306         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70307
70308         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70309
70310         * lib/modechange.c (mode_compile): Reject an invalid mode string
70311         that starts with an octal digit.  From Andreas Gruenbacher.
70312
70313         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70314         and dup to open_safer and dup_safer, respectively.
70315         (openat_permissive): Fix typo in comment.
70316
70317         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70318         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70319         (_): Remove; no longer needed.
70320         (openat): Renamed from rpl_openat; no need for rpl_openat
70321         since openat.h renames openat for us.
70322         Replace most of the body with a call to openat_permissive,
70323         to avoid duplicate code.
70324         Port to (probably hypothetical) environments were mode_t is
70325         wider than int.
70326         (openat_permissive): Require mode arg, so that we can check
70327         types better.  Put it just after flags.  Change cwd failure
70328         indicator from pointer-to-bool to pointer-to-errno-value.
70329         All callers changed.
70330         Invoke openat_save_fail and/or openat_restore_fail if
70331         cwd_errno is null, so that openat can call us.
70332         (openat_permissive, fdopendir, fstatat, unlinkat):
70333         Simplify errno handling to avoid some duplicate code,
70334         as it's OK to set errno on success.
70335         * lib/openat.h: Revamp code so that function macros depend on
70336         __OPENAT_PREFIX only, not also on AT_FDCWD.
70337         (openat_ro): Remove.  Caller changed to use openat_permissive.
70338         (openat_permissive): Now a macro, if not a function.
70339         (openat_restore_fail, openat_save_fail): Now always functions,
70340         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70341
70342         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70343         and openat.c.
70344         * lib/mkdirat.c: Include openat-priv.h.
70345         Remove definitions of macros defined therein.
70346         * lib/openat.c: Likewise.
70347
70348         * lib/mkdirat.c (mkdirat): New file and function.
70349         * lib/openat.h (mkdirat): Declare.
70350
70351         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70352
70353         * lib/openat.h (openat_permissive): Declare.
70354         (openat_ro): Define.
70355
70356         * lib/openat.c (EXPECTED_ERRNO): New macro.
70357         (openat_permissive): New function -- used in remove.c rewrite.
70358         (all functions): Set errno just before returning, only if there
70359         was an actual failure.
70360         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70361
70362         Emulate openat-family functions using Linux's procfs, if possible.
70363         Idea and some code based on Ulrich Drepper's glibc changes.
70364
70365         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70366         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70367         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70368         before falling back on save_cwd and restore_cwd.
70369         (fdopendir, fstatat, unlinkat): Likewise.
70370
70371         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70372         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70373
70374         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70375         as second argument to va_arg.  Otherwise, some versions of gcc
70376         warn that `if this code is reached, the program will abort'.
70377
70378 2006-01-09  Jim Meyering  <jim@meyering.net>
70379
70380         Sync from coreutils.
70381         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70382         Require openat-priv.h.
70383
70384 2006-01-09  Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/strnlen (Include): Use strnlen.h.
70387
70388 2006-01-09  Bruno Haible  <bruno@clisp.org>
70389
70390         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70391
70392 2006-01-09  Bruno Haible  <bruno@clisp.org>
70393
70394         * lib/sysexit_.h (EX_OK): New macro.
70395         Suggested by Martin Lambers <marlam@marlam.de>.
70396
70397 2006-01-09  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70400         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70401
70402 2006-01-09  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70405         numbers.
70406
70407 2006-01-09  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70410         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70411         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70412         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70413
70414 2006-01-09  Bruno Haible  <bruno@clisp.org>
70415
70416         * build-aux/javacomp.sh.in: New file, moved from lib/.
70417         * modules/javacomp-script (Files): Update.
70418         (configure.ac): Add AC_CONFIG_FILES invocation.
70419         (EXTRA_DIST): Remove variable.
70420
70421         * build-aux/javaexec.sh.in: New file, moved from lib/.
70422         * modules/javaexec (Files): Update.
70423         (configure.ac): Add AC_CONFIG_FILES invocation.
70424         (EXTRA_DIST): Remove javaexec.sh.in.
70425
70426         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70427         * modules/csharpcomp-script (Files): Update.
70428         (configure.ac): Add AC_CONFIG_FILES invocation.
70429         (EXTRA_DIST): Remove variable.
70430
70431         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70432         * modules/csharpexec (Files): Update.
70433         (configure.ac): Add AC_CONFIG_FILES invocation.
70434         (EXTRA_DIST): Remove csharpexec.sh.in.
70435
70436 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70437
70438         Sync from coreutils.
70439
70440         Add POSIX ACL support
70441         * lib/acl.h (copy_acl, set_acl): Add declarations.
70442         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70443         systems other than Linux.
70444         (chmod_or_fchmod): New function: use fchmod when possible,
70445         and chmod otherwise.
70446         (file_has_acl): Add a POSIX ACL implementation, with a
70447         Linux-specific subcase.
70448         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70449         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70450         acls are unsupported.
70451         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70452         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70453         are unsupported.
70454
70455 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70456
70457         Sync from coreutils.
70458         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70459
70460 2006-01-07  Bruno Haible  <bruno@clisp.org>
70461
70462         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70463         gl_EARLY.
70464
70465 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70468         Problem reported for Mingw by Mark Junker.
70469
70470 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * README: Gnulib normally doesn't generate a tarball.
70473
70474 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70477         long int, not int, for nanosecond counts, so that people who are
70478         used to POSIX struct timespec won't be surprised.  Reported by Jim
70479         Meyering.
70480
70481 2005-12-28  Bruno Haible  <bruno@clisp.org>
70482
70483         * build-aux/config.rpath: Update from GNU gettext.
70484
70485 2005-12-16  Jim Meyering  <jim@meyering.net>
70486
70487         * modules/fprintftime: New module.
70488         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70489
70490 2005-12-16  Jim Meyering  <jim@meyering.net>
70491
70492         * m4/fprintftime.m4: New file.
70493
70494 2005-12-16  Jim Meyering  <jim@meyering.net>
70495
70496         * lib/fprintftime.c, lib/fprintftime.h: New files.
70497
70498 2005-12-15  Simon Josefsson  <jas@extundo.com>
70499
70500         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70501         new m4/socklen.m4.
70502
70503 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70504
70505         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70506         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70507
70508 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70509
70510         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70511         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70512         struct uparams is valid. Fall back to the default values if it is
70513         not.
70514
70515 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70516
70517         * modules/argp (Files): Add argp-pin.c
70518         (Depends-on): dirname
70519         (lib_SOURCES): Add argp-pin.c
70520
70521 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70522
70523         * m4/argp.m4:  Check if program_invocation_name and
70524         program_invocation_short_name are declared and define appropriate
70525         macros if they are not.
70526
70527 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70528
70529         * lib/argp-help.c (__argp_base_name): New function
70530         (__argp_short_program_name): Rewrite using __argp_base_name
70531         * lib/argp-namefrob.h: Define program_invocation_name and
70532         program_invocation_short_name if requested
70533         (__argp_base_name): Add prototype
70534         * lib/argp-parse.c (argp_def): Use gettext wrappers
70535         (argp_default_parser): Use __argp_base_name
70536         * lib/argp-pin.c: New file. Defines program_invocation_name and
70537         program_invocation_short_name on systems that lack them.
70538
70539 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70542         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70543         porting problem reported by Georg Schwarz in
70544         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70545
70546 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70549         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70550         porting problem reported by Georg Schwarz in
70551         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70552
70553 2005-12-05  Bruno Haible  <bruno@clisp.org>
70554
70555         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70556         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70557         Reported by Mark Junker <mjscod@gmx.de>.
70558
70559 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70560
70561         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70562         Use implementation from Albert Chin, with some
70563         comments/corrections by Stepan Kasal and myself.
70564
70565 2005-12-02  Bruno Haible  <bruno@clisp.org>
70566
70567         * gnulib-tool (func_import): Accept GPLed build tool modules when
70568         --lgpl is given.
70569         * modules/csharpcomp-script: New file.
70570         * modules/csharpcomp: Depend on it.
70571         * modules/javacomp-script: New file.
70572         * modules/javacomp: Depend on it.
70573         Suggested by Simon Josefsson.
70574
70575 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70578         statement, to work around an HP-UX 10.20 compiler bug reported by
70579         Peter O'Gorman.
70580
70581 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * modules/savedir (Depends-on): Add openat.
70584
70585 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70586
70587         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70588         (uintmax_t) [defined uintmax_t]: Do not declare.
70589         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70590         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70591         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70592         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70593         sake of portability to weird hosts that C allows (though we don't
70594         know of any practical examples).
70595
70596         * lib/savedir.h (fdsavedir): New decl.
70597         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70598         contains most of the former guts of savedir.
70599         (savedir): Use savedirstream.
70600         Include "openat.h".
70601
70602 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * modules/obstack (Files): Add m4/ulonglong.m4.
70605         Problem reported by Davide Angelocola.
70606
70607 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70610         coreutils no longer futzes with rounding modes.
70611
70612 2005-11-14  Jim Meyering  <jim@meyering.net>
70613
70614         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70615         replacement of mkstemp.
70616
70617 2005-11-10  Simon Josefsson  <jas@extundo.com>
70618
70619         * lib/readline.c: Remove EOL.
70620
70621 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * modules/gethrxtime (Depends-on): Add gettime.
70624
70625 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70628         or gettimeofday; no longer needed.
70629
70630 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70631
70632         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70633         time business.
70634         (gethrxtime) [! (HAVE_NANOUPTIME
70635         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70636         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70637         our own approximation.
70638
70639 2005-11-08  Eric Blake  <ebb9@byu.net>
70640
70641         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70642
70643 2005-11-08  Eric Blake  <ebb9@byu.net>
70644
70645         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70646
70647 2005-11-04  Bruno Haible  <bruno@clisp.org>
70648
70649         * gnulib-tool: Implement --update mode.
70650
70651 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         Fix porting problem reported by Theodoros V. Kalamatianos.
70654         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70655         Don't assume that futimes failing means we must fail.
70656
70657 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70660         variables to suggest the intended function of the PATH_MAX check.
70661
70662 2005-10-30  Kean Johnston  <jkj@sco.com>
70663
70664         Trivial changes to support SCO systems.
70665         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70666         as PATH_MAX.
70667         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70668         where __ptr is null when no I/O is pending.
70669
70670 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70673         leave errno alone.  Problem reported by Dmitry V. Levin.
70674
70675 2005-10-28  Simon Josefsson  <jas@extundo.com>
70676
70677         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70678         Test more.
70679
70680         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70681
70682         * modules/md2, modules/md2-tests: New files.
70683
70684 2005-10-28  Simon Josefsson  <jas@extundo.com>
70685
70686         * m4/inet_ntop.m4: More tests.
70687
70688         * m4/gc-md2.m4, md2.m4: New file.
70689
70690 2005-10-28  Simon Josefsson  <jas@extundo.com>
70691
70692         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70693         "restrict" keywords, as per POSIX.  Protect the function
70694         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70695         Don't use K&R prototypes.  Check the sprintf return values.
70696         Re-define EAFNOSUPPORT if not present.  Indent.
70697
70698         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70699         suggested by Bruno Haible <bruno@clisp.org>.
70700
70701         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70702
70703         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70704
70705         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70706         libgcrypt).
70707
70708         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70709
70710         * lib/md2.h, lib/md2.c: New files.
70711
70712 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70715         errno alone.  Problem reported by Frederic Jolliton.
70716
70717 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * modules/verify (License): Change from GPL to LGPL.  This is a
70720         tiny module and there are apparently near-equivalents that are
70721         under the BSD license.
70722
70723 2005-10-24  Simon Josefsson  <jas@extundo.com>
70724
70725         * modules/sha1: Relicense to LGPL.
70726
70727 2005-10-24  Simon Josefsson  <jas@extundo.com>
70728
70729         * lib/md4.h: Shrink buffer size, now that we changed the type.
70730
70731 2005-10-23  Simon Josefsson  <jas@extundo.com>
70732
70733         * gnulib-tool (func_import): Fix --tests-base.
70734
70735 2005-10-22  Simon Josefsson  <jas@extundo.com>
70736
70737         * modules/arcfour (Depends-on): Need stdint.
70738
70739 2005-10-22  Simon Josefsson  <jas@extundo.com>
70740
70741         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70742         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70743
70744 2005-10-22  Simon Josefsson  <jas@extundo.com>
70745
70746         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70747         suggested by Bruno Haible <bruno@clisp.org>.
70748
70749 2005-10-22  Simon Josefsson  <jas@extundo.com>
70750
70751         * lib/crc.h: Include stddef.h, for size_t.
70752
70753 2005-10-22  Simon Josefsson  <jas@extundo.com>
70754
70755         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70756         arcfour_context struct (simplify test vector testing in GNU
70757         Shishi).
70758
70759 2005-10-21  Simon Josefsson  <jas@extundo.com>
70760
70761         * modules/des, modules/des-tests: New files.
70762
70763         * modules/gc-des, modules/gc-des-tests: New files.
70764
70765         * tests/test-des.c, tests/test-gc-des.c: New file.
70766
70767 2005-10-21  Simon Josefsson  <jas@extundo.com>
70768
70769         * modules/arctwo, modules/arctwo-tests: New files.
70770
70771         * tests/test-arctwo.c: New file.
70772
70773         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70774
70775         * tests/test-gc-arctwo.c: New file.
70776
70777 2005-10-21  Simon Josefsson  <jas@extundo.com>
70778
70779         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70780         Bruno Haible <bruno@clisp.org>.
70781
70782         * m4/gc-des.m4: New file.
70783
70784 2005-10-21  Simon Josefsson  <jas@extundo.com>
70785
70786         * m4/arctwo.m4: New file.
70787
70788         * m4/gc-arctwo.m4: New file.
70789
70790 2005-10-21  Simon Josefsson  <jas@extundo.com>
70791
70792         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70793         block.
70794
70795 2005-10-21  Simon Josefsson  <jas@extundo.com>
70796
70797         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70798         <bruno@clisp.org>.
70799
70800         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70801
70802         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70803         Bruno Haible <bruno@clisp.org>.
70804
70805         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70806         <bruno@clisp.org>.
70807
70808 2005-10-21  Simon Josefsson  <jas@extundo.com>
70809
70810         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70811
70812 2005-10-21  Simon Josefsson  <jas@extundo.com>
70813
70814         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70815
70816 2005-10-21  Simon Josefsson  <jas@extundo.com>
70817
70818         * lib/des.h, lib/des.c: New files.
70819
70820         * lib/gc-gnulib.c: Support DES.c
70821
70822 2005-10-21  Simon Josefsson  <jas@extundo.com>
70823
70824         * lib/arctwo.h, lib/arctwo.c: New files.
70825
70826         * lib/gc-gnulib.c: Support ARCTWO.
70827
70828 2005-10-21  Simon Josefsson  <jas@extundo.com>
70829
70830         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70831         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70832
70833 2005-10-21  Simon Josefsson  <jas@extundo.com>
70834
70835         * gnulib-tool (func_import, func_create_testdir): Define automake
70836         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70837         Makefile.am snippet),
70838         suggested by Bruno Haible <bruno@clisp.org>.
70839
70840         * modules/gc (Makefile.am): Use it.
70841
70842 2005-10-21  Bruno Haible  <bruno@clisp.org>
70843
70844         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70845         patch.
70846
70847 2005-10-19  Simon Josefsson  <jas@extundo.com>
70848
70849         * tests/test-gc-rijndael.c: New file.
70850
70851         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70852
70853 2005-10-19  Simon Josefsson  <jas@extundo.com>
70854
70855         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70856         interface too.
70857
70858 2005-10-19  Simon Josefsson  <jas@extundo.com>
70859
70860         * tests/test-gc-arcfour.c: New file.
70861
70862         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70863
70864 2005-10-19  Simon Josefsson  <jas@extundo.com>
70865
70866         * modules/gc-md4, modules/gc-md4-tests: New file.
70867
70868         * tests/test-gc-md4.c: New file.
70869
70870 2005-10-19  Simon Josefsson  <jas@extundo.com>
70871
70872         * m4/gc-md4.m4: New file.
70873
70874 2005-10-19  Simon Josefsson  <jas@extundo.com>
70875
70876         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70877         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70878         <kasal@ucw.cz>.
70879
70880 2005-10-19  Simon Josefsson  <jas@extundo.com>
70881
70882         * m4/gc-arcfour.m4: New file.
70883
70884         * m4/gc-rijndael.m4: New file.
70885
70886 2005-10-19  Simon Josefsson  <jas@extundo.com>
70887
70888         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70889
70890 2005-10-19  Simon Josefsson  <jas@extundo.com>
70891
70892         * lib/gc-gnulib.c: Support ARCFOUR.
70893
70894 2005-10-19  Simon Josefsson  <jas@extundo.com>
70895
70896         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70897         support.
70898
70899         * lib/gc.h: Add ECB enum type.
70900
70901         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70902
70903 2005-10-18  Simon Josefsson  <jas@extundo.com>
70904
70905         * tests/test-md5.c: New file.
70906
70907         * modules/md5-tests: New file.
70908
70909 2005-10-18  Simon Josefsson  <jas@extundo.com>
70910
70911         * tests/test-md4.c: New file.
70912
70913         * modules/md4, modules/md4-tests: New files.
70914
70915 2005-10-18  Simon Josefsson  <jas@extundo.com>
70916
70917         * m4/md4.m4: New file.
70918
70919 2005-10-18  Simon Josefsson  <jas@extundo.com>
70920
70921         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70922
70923 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70924
70925         * gnulib-tool (func_create_testdir): Omit the second check whether
70926         BUILT_SOURCES in nonempty.
70927
70928 2005-10-17  Simon Josefsson  <jas@extundo.com>
70929
70930         * tests/test-rijndael.c: New file.
70931
70932 2005-10-17  Simon Josefsson  <jas@extundo.com>
70933
70934         * modules/sha1: Depend on stdint instead of md5.
70935
70936         * modules/md5: Depend on stdint, remove uint32_t.
70937
70938 2005-10-17  Simon Josefsson  <jas@extundo.com>
70939
70940         * modules/gc-sha1-tests: New file.
70941
70942         * tests/test-gc-sha1.c: New file.
70943
70944 2005-10-17  Simon Josefsson  <jas@extundo.com>
70945
70946         * m4/md5.m4: Remove call to uint32_t.m4.
70947
70948 2005-10-17  Simon Josefsson  <jas@extundo.com>
70949
70950         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70951
70952         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70953         md5.h.
70954
70955         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70956
70957         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70958
70959 2005-10-17  Simon Josefsson  <jas@extundo.com>
70960
70961         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70962
70963 2005-10-17  Simon Josefsson  <jas@extundo.com>
70964
70965         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70966
70967 2005-10-17  Simon Josefsson  <jas@extundo.com>
70968
70969         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70970
70971         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70972
70973 2005-10-17  Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70976         that it can also be used in a test.
70977
70978 2005-10-16  Bruno Haible  <bruno@clisp.org>
70979
70980         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70981         TESTS_ENVIRONMENT, so that individual tests can augment it.
70982
70983         * gnulib-tool (func_create_testdir): Use an intermediate target for
70984         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70985         macros, like $(ALLOCA_H), which cannot be passed through the command
70986         line.
70987
70988 2005-10-15  Simon Josefsson  <jas@extundo.com>
70989
70990         * modules/rijndael-tests: New file.
70991
70992         * modules/rijndael: New file.
70993
70994 2005-10-15  Simon Josefsson  <jas@extundo.com>
70995
70996         * m4/rijndael.m4: New file.
70997
70998 2005-10-15  Simon Josefsson  <jas@extundo.com>
70999
71000         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71001
71002         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71003
71004 2005-10-14  Simon Josefsson  <jas@extundo.com>
71005
71006         * tests/test-arcfour.c: New file.
71007
71008         * modules/arcfour, modules/arcfour-tests: New files.
71009
71010 2005-10-14  Simon Josefsson  <jas@extundo.com>
71011
71012         * m4/arcfour.m4: New file.
71013
71014 2005-10-14  Simon Josefsson  <jas@extundo.com>
71015
71016         * lib/arcfour.h, lib/arcfour.c: New files.
71017
71018 2005-10-14  Roland McGrath  <roland@redhat.com>
71019
71020         Import from libc.  [BZ #1331]
71021         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71022         macro argument.
71023         Reported by Matej Vela <vela@debian.org>.
71024
71025 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71026
71027         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71028         include <wchar.h>; no longer needed.
71029
71030 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71033
71034 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71035         and  Ulrich Drepper  <drepper@redhat.com>
71036
71037         Import from libc.
71038         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71039         instead of inline stream orientation test and two separate
71040         function calls.  Pay no attention to USE_IN_LIBIO.
71041
71042 2005-10-13  Simon Josefsson  <jas@extundo.com>
71043
71044         * modules/gc-hmac-md5-tests: New file.
71045
71046         * tests/test-gc-hmac-sha1.c: New file.
71047
71048         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71049
71050         * modules/gc-hmac-md5-tests: New file.
71051
71052         * tests/test-gc-md5.c: New file.
71053
71054         * modules/gc-md5-tests: New file.
71055
71056 2005-10-13  Simon Josefsson  <jas@extundo.com>
71057
71058         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71059         Move memory allocation outside of loop.
71060
71061 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71064         intermediate directory is in a read-only file system.  Problem
71065         reported by Eric Blake.
71066
71067 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71068
71069         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71070
71071 2005-10-12  Simon Josefsson  <jas@extundo.com>
71072
71073         * tests/test-hmac-sha1.c: New file.
71074
71075         * modules/hmac-sha1-tests: New file.
71076
71077         * modules/hmac-sha1: New file.
71078
71079 2005-10-12  Simon Josefsson  <jas@extundo.com>
71080
71081         * modules/gc-sha1: New file.
71082
71083 2005-10-12  Simon Josefsson  <jas@extundo.com>
71084
71085         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71086
71087         * tests/test-gc-pbkdf2-sha1.c: New file.
71088
71089 2005-10-12  Simon Josefsson  <jas@extundo.com>
71090
71091         * modules/gc-md5, modules/gc-hmac-md5: New files.
71092
71093         * modules/gc (Files): Remove md5, memxor and hmac files.
71094
71095 2005-10-12  Simon Josefsson  <jas@extundo.com>
71096
71097         * m4/gc-pbkdf2-sha1.m4: New file.
71098
71099         * m4/gc-hmac-sha1.m4: New file.
71100
71101         * m4/gc-sha1: New file.
71102
71103         * m4/hmac-sha1.m4: New file.
71104
71105 2005-10-12  Simon Josefsson  <jas@extundo.com>
71106
71107         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71108
71109         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71110
71111 2005-10-12  Simon Josefsson  <jas@extundo.com>
71112
71113         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71114         suggested by Bruno Haible <bruno@clisp.org>.
71115
71116 2005-10-12  Simon Josefsson  <jas@extundo.com>
71117
71118         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71119
71120 2005-10-12  Simon Josefsson  <jas@extundo.com>
71121
71122         * lib/gc-pbkdf2-sha1.c: New file.
71123
71124         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71125
71126 2005-10-12  Simon Josefsson  <jas@extundo.com>
71127
71128         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71129
71130         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71131
71132 2005-10-12  Simon Josefsson  <jas@extundo.com>
71133
71134         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71135         GC_USE_HMAC_MD5, respectively.
71136
71137         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71138         (gc_md5): Fix typo.
71139
71140         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71141
71142         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71143
71144         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71145
71146 2005-10-12  Bruno Haible  <bruno@clisp.org>
71147
71148         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71149         Reported by Stepan Kasal <kasal@ucw.cz>.
71150
71151 2005-10-11  Simon Josefsson  <jas@extundo.com>
71152
71153         * tests/test-crc.c: New file.
71154
71155         * modules/crc, modules/crc-tests: New files.
71156
71157 2005-10-11  Simon Josefsson  <jas@extundo.com>
71158
71159         * m4/crc.m4: New file.
71160
71161 2005-10-11  Simon Josefsson  <jas@extundo.com>
71162
71163         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71164
71165         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71166
71167         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71168
71169 2005-10-11  Simon Josefsson  <jas@extundo.com>
71170
71171         * lib/crc.h, lib/crc.c: New files.
71172
71173         * lib/gc.h (gc_hash_buffer): Add doc.
71174
71175 2005-10-11  Bruno Haible  <bruno@clisp.org>
71176
71177         * modules/c-strcasestr: New file.
71178         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71179
71180 2005-10-11  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/c-strcase: New file.
71183         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71184
71185 2005-10-11  Bruno Haible  <bruno@clisp.org>
71186
71187         * lib/strcasecmp.c: Include limits.h.
71188         (strcasecmp): Avoid integer overflow on exotic platforms.
71189         * lib/strncasecmp.c: Include limits.h.
71190         (strncasecmp): Avoid integer overflow on exotic platforms.
71191         Reported by Paul Eggert.
71192
71193 2005-10-11  Bruno Haible  <bruno@clisp.org>
71194
71195         * lib/c-strcasestr.h: New file, from GNU gettext.
71196         * lib/c-strcasestr.c: New file, from GNU gettext.
71197
71198 2005-10-11  Bruno Haible  <bruno@clisp.org>
71199
71200         * lib/c-strcase.h: New file, from GNU gettext.
71201         * lib/c-strcasecmp.c: New file, from GNU gettext.
71202         * lib/c-strncasecmp.c: New file, from GNU gettext.
71203
71204 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * modules/mempcpy (License): GPL -> LGPL.
71207         * modules/strchrnul (License): Likewise.
71208         * modules/sysexits (License): Likewise.
71209
71210 2005-10-08  Simon Josefsson  <jas@extundo.com>
71211
71212         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71213
71214 2005-10-07  Simon Josefsson  <jas@extundo.com>
71215
71216         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71217
71218 2005-10-06  Simon Josefsson  <jas@extundo.com>
71219
71220         * tests/test-hmac-md5.c: New file.
71221
71222         * modules/hmac-md5-tests: New file.
71223
71224         * modules/hmac-md5: New file.
71225
71226 2005-10-06  Simon Josefsson  <jas@extundo.com>
71227
71228         * m4/hmac-md5.m4: New file.
71229
71230         * m4/memxor.m4: Require gl_C_RESTRICT.
71231
71232 2005-10-06  Simon Josefsson  <jas@extundo.com>
71233
71234         * lib/memxor.c (memxor): Avoid casts and warnings.
71235
71236 2005-10-06  Simon Josefsson  <jas@extundo.com>
71237
71238         * lib/hmac-md5.c: New file.
71239
71240         * lib/hmac.h: New file.
71241
71242 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71245         promotes to int, not unsigned int, to catch the AIX 5.3
71246         compiler bug.
71247
71248 2005-10-05  Simon Josefsson  <jas@extundo.com>
71249
71250         * modules/memxor: New file.
71251
71252         * modules/iconv (Files): Move config.rpath to havelib, it is used
71253         there.
71254
71255         * modules/havelib (Files): Add config.rpath.
71256
71257 2005-10-05  Simon Josefsson  <jas@extundo.com>
71258
71259         * m4/memxor.m4: New file.
71260
71261 2005-10-05  Simon Josefsson  <jas@extundo.com>
71262
71263         * lib/memxor.c (memxor): Fix compiler error.
71264
71265         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71266         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71267
71268         * lib/memxor.h, lib/memxor.c: New files.
71269
71270         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71271         we assume all systems have it, suggested by Jim Meyering
71272         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71273         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71274         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71275         same reasons.
71276
71277 2005-10-05  Simon Josefsson  <jas@extundo.com>
71278
71279         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71280
71281 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71284         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71285         needed, since the source code now assumes these .h files.
71286
71287 2005-10-05  Derek Price  <derek@ximbiot.com>
71288
71289         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71290
71291 2005-10-05  Bruno Haible  <bruno@clisp.org>
71292
71293         * modules/stdint (License): Change to LGPL.
71294
71295 2005-10-04  Simon Josefsson  <jas@extundo.com>
71296
71297         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71298         D. Baushke" <mdb@gnu.org>.
71299
71300 2005-10-04  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/verify.h (verify_true): Provide alternative definition for C++.
71303
71304 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71307         (SSIZE_MAX): New macro, if not already defined.
71308         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71309         than 2 GiB.
71310
71311 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         Sync from coreutils.
71314         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71315         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71316         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71317         ULLONG_MAX doesn't work with 2.7.2.1.
71318
71319 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71322         From Ben Pfaff.
71323
71324         * modules/exclude (Depends-on): Depend on verify.
71325         * modules/strtoimax (Depends-on): Likewise.
71326         * modules/utimecmp (Depends-on): Likewise.
71327
71328 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * lib/exclude.c: Include verify.h.
71331         (verify): Remove.  All callers changed to use verify.h's version.
71332         * lib/strtoimax.c: Likewise.
71333         * lib/utimecmp.c: Likewis.e
71334
71335         Sync from coreutils.
71336         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71337         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71338         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71339         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71340         bother returning ENOSYS if settimeofday or stime fails; just let
71341         them return whatever errno they want to return.
71342         * lib/utimens.c: Include unistd.h, for dup2.
71343         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71344         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71345
71346 2005-10-02  Jim Meyering  <jim@meyering.net>
71347
71348         Sync from coreutils.
71349         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71350         from glibc-2.2.5 that fails for read-only files.
71351
71352 2005-10-02  Jim Meyering  <jim@meyering.net>
71353
71354         Sync from coreutils.
71355         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71356         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71357         `#if HAVE_CONFIG_H'.
71358         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71359         Remove AT_FDCWD test.
71360         Do not consume the fd unless successful.
71361         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71362         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71363         block, so that we don't even try to compile it if settimeofday is
71364         available.  This works around a compilation failure on OSF1 V5.1,
71365         due to stime requiring a `long int*' while tv_sec is `int'.
71366
71367 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71368
71369         Sync from coreutils.
71370         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71371         against `yes', rather than just testing for nonempty.
71372
71373 2005-10-01  Simon Josefsson  <jas@extundo.com>
71374
71375         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71376         and Darwin.
71377
71378         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71379         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71380         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71381         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71382         Check if struct addrinfo is declared.
71383
71384 2005-10-01  Simon Josefsson  <jas@extundo.com>
71385
71386         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71387         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71388         AI_* and EAI_* definitions.  Protect function declarations.
71389
71390 2005-10-01  Jim Meyering  <jim@meyering.net>
71391
71392         Sync from coreutils.
71393
71394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71395         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71396         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71398         in the inet and nsl libraries.  Required on Solaris 5.7.
71399
71400 2005-10-01  Jim Meyering  <jim@meyering.net>
71401
71402         Sync from coreutils.
71403         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71404         in the inet and nsl libraries.  Required on Solaris 5.7.
71405
71406 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71407
71408         * lib/getdelim.c (getdelim): Remove unused variables.
71409
71410 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71413         so that the code works even with ancient cpp.  Portability problem
71414         with GCC 2.7.2.1 reported by Thomas M.Ott.
71415
71416 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * modules/regex (Depends-on): Add strcase.
71419
71420         * modules/gethostname (Licence): Change from GPL to LGPL, since
71421         gethostname.c is a trivial implementation of a standard library
71422         function.
71423         * modules/poll (License): Change from GPL to LGPL, since it's
71424         derived from LGPL code.
71425
71426 2005-09-27  Jim Meyering  <jim@meyering.net>
71427
71428         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71429         HAVE_CONFIG_H.
71430
71431         * lib/intprops.h (signed_type_or_expr__): Define.
71432         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71433         for unsigned types.
71434
71435 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * lib/verify.h (verify_expr): Remove, replacing with:
71438         (verify_true): New macro that returns true instead of void.
71439         (verify_type__): Remove.
71440         (verify): Use verify_true rather than verify_type__.
71441
71442 2005-09-26  Bruno Haible  <bruno@clisp.org>
71443
71444         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71445         is necessary.
71446         (lib_SOURCES): Remove mbchar.c.
71447         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71448         (Files): Add m4/mbrtowc.m4.
71449         * modules/mbiter: Likewise.
71450         * modules/mbuiter: Likewise.
71451
71452 2005-09-26  Bruno Haible  <bruno@clisp.org>
71453
71454         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71455         compile mbchar.c if they are not both present.
71456         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71457         * m4/mbiter.m4 (gl_MBITER): Likewise.
71458         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71459         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71460         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71461
71462 2005-09-25  Jim Meyering  <jim@meyering.net>
71463
71464         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71465         also uses socklen_t.
71466
71467 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * lib/utimens.c (ENOSYS): Define if not already defined.
71470         (futimens): Support having a null PATH if the file descriptor
71471         is nonnegative.
71472
71473         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71474         Remove.
71475         (__attribute): Define to empty unless GCC 3.1 or later.
71476         This works around a core dump on OpenBSD 3.4, which has GCC
71477         2.95.3, which dumps core when given __attribute__(()).  It also
71478         simplifies other tests, since we really don't want to bother with
71479         worrying about which ancient version of GCC supported what.
71480         Original problem reported by Yoann Vandoorselaere, with part of
71481         the fix suggested by Derek Price.
71482
71483 2005-09-24  Jim Meyering  <jim@meyering.net>
71484
71485         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71486         so we can once again use a positive bitfield width of 1 -- now we
71487         don't have to explain why we were using a bitfield width of 2.
71488
71489 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71490
71491         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71492         and similarly for the other external symbols.  Problem reported
71493         by James Gallager.
71494
71495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71496         bug reported by Jim Meyering.
71497
71498         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71499         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71500         not needed, since socklen is a prerequisite module.
71501
71502 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71505         Problem reported by Eric Blake.
71506         (getaddrinfo): Initialize se so that it's not garbage.
71507         Redo internal storage allocation so that it doesn't make unportable
71508         assumptions about alignment.
71509         Fix a memory leak.
71510
71511         * lib/utimens.c (futimens): Use futimesat if available.
71512         Prefer it to futimes since it doesn't have the futimes bug.
71513
71514         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71515         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71516         Instead, declare a function that returns a pointer to an array,
71517         and use verify_type__ to declare the size of the array.
71518         Problem and germ of a solution reported by Bruno Haible.
71519         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71520         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71521
71522 2005-09-23  Jim Meyering  <jim@meyering.net>
71523
71524         Sync from coreutils.
71525         Correct build failure (socklen_t not defined) on at least
71526         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71528
71529 2005-09-23  Jim Meyering  <jim@meyering.net>
71530
71531         * modules/getaddrinfo (Depends-on): Add socklen.
71532
71533 2005-09-23  Bruno Haible  <bruno@clisp.org>
71534
71535         * tests/test-verify.c: New file.
71536
71537 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         Sync from coreutils.
71540
71541         * modules/argmatch (Depends-on): Add verify.
71542         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71543         unistd-safer.
71544         * modules/save-cwd (Depends-on): Likewise.
71545
71546         * modules/openat (Files): Add lib/openat-die.c.
71547         (Depends-on): Remove error, exitfail.
71548         Add dirname.
71549
71550         * modules/verify: New file.
71551         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71552         with "verify" module.
71553
71554 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         Sync from coreutils.
71557
71558         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71559         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71560         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71561         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71562         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71563         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71564         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71565         Don't bother checking for string.h, stdlib.h, unistd.h.
71566         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71567         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71568         module's job.
71569         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71570         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71571
71572         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71573         (gl_GETDATE): Use it.
71574
71575         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71576
71577 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         Sync from coreutils.
71580
71581         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71582         stat-time.h.
71583         * lib/argmatch.h: Include verify.h
71584         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71585         (ARGMATCH_ASSERT): Remove; unused.
71586         * lib/canonicalize.c: Assume STDC_HEADERS.
71587         * lib/exclude.c: Include "strcase.h".
71588         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71589         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71590         and stdio-safer.h.
71591         (getusershell): Call fopen, not fopen_safer.
71592         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71593         Do not include unistd-safer.h.
71594         (save_cwd): Don't call fd_safer; no longer needed
71595         now that we include fcntl--.h.
71596
71597         * lib/getdate.y (relative_time): New type.
71598         (RELATIVE_TIME_0): New constant.
71599         (parser_control): Use relative_time instead of doing it ourselves.
71600         (%union): Add new relative_time rel member.
71601         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71602         Now typeless.
71603         (relunit, relunit_snumber): Now of type rel.
71604         (zone, rel, relunit, get_date): Adjust to above changes.
71605
71606         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71607         Do not include unistd-safer.h.
71608         (getloadavg): Don't call fd_safer; no longer needed
71609         now that we include fcntl--.h.
71610
71611         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71612         (make_dir_parents): Treat ENOSYS like EEXIST.
71613
71614         Improve quality of diagnostics on restore_cwd failure.
71615         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71616         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71617         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71618         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71619         each time through the loop.  Do not diagnose restore_cwd failure;
71620         that is the caller's job (and perhaps the caller does not care).
71621
71622         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71623         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71624         If the file already exists but is not a directory, don't bother
71625         to try to make its parents.
71626         Close potential file descriptor leak if we can't chdir("/") (!).
71627         Don't always return true if chdir($PWD) fails; return true only
71628         if the requested action was done successfully (except for the
71629         chdir($PWD)).
71630         Don't log final directory unless we actually made it.
71631         Refactor to avoid duplicate code to fix up permissions.
71632         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71633
71634         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71635         to make it a bit faster and (I hope) clearer.
71636         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71637         Fix bug in formats like %2N.
71638
71639         * lib/verify.h: New file.
71640
71641 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         Sync from coreutils.
71644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71645
71646 2005-09-22  Jim Meyering  <jim@meyering.net>
71647
71648         Sync from coreutils.
71649
71650         * m4/lstat.m4 (gl_FUNC_LSTAT):
71651         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71652         Remove obsolete comment.
71653         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71654         * m4/xstrtod.m4: Likewise.
71655
71656         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71657
71658 2005-09-22  Jim Meyering  <jim@meyering.net>
71659
71660         Sync from coreutils.
71661
71662         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71663
71664         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71665         the .tm_year member, since otherwise gcc-4.0 would now warn about
71666         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71667
71668         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71669         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71670
71671         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71672         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71673         when run in a time zone for which daylight savings time is in effect
71674         for the starting date.
71675
71676         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71677         stop us from restricting permissions of just-created absolute-named
71678         directories.
71679         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71680         to restore initial working directory.
71681         * lib/mkdir-p.c (make_dir_parents): New parameter:
71682         different_working_dir, to tell caller if/when we change the working
71683         directory and are unable to return to the initial one.
71684         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71685         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71686         `return false'.  This fixes a bug introduced on 2004-07-30.
71687
71688         * lib/openat.c (fdopendir): Be sure to close the supplied
71689         file descriptor before returning.  This makes our replacement
71690         implementation a little closer to Solaris's, where fdopendir
71691         ties the file descriptor to the returned DIR* pointer.
71692         * lib/openat.c (unlinkat): New function.
71693         * lib/openat.h (unlinkat): Add prototype.
71694         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71695         (openat_restore_fail): Rename from openat_restore_die.
71696         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71697
71698         Provide an alternative to exiting immediately upon save_cwd or
71699         restore_cwd failure.  Now, an application can arrange e.g.,
71700         to perform a longjump in that case.
71701         * lib/openat.c: Include dirname.h.
71702         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71703         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71704         and openat_restore_die rather than calling error directly.
71705         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71706
71707         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71708         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71709         define.
71710
71711         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71712         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71713                             int utc, int nanoseconds);
71714         Background:
71715         date should not have to allocate a megabyte of virtual memory to
71716         handle a format argument like +%1048575T.  When implemented with
71717         strftime, it must allocate such a buffer, use strftime to fill it
71718         in, print it, then free it.
71719         With fprintftime, it simply prints everything and exits.
71720         With no need for memory allocation, that's one fewer way to fail.
71721         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71722         optional field width, not before, so we accept %9:z, not %:9z.
71723         (my_strftime): Be sure to use L_('x') for literals.
71724
71725         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71726         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71727         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71728         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71729         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71730         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71731         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71732         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71733         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71734         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71735         * lib/xgethostname.c, lib/xreadlink.c:
71736         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71737
71738         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71739         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71740         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71741         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71742         and don't include <sys/file.h>).
71743
71744 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71745
71746         Sync from coreutils.
71747
71748         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71749         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71750         [!LDAV_DONE]: Avoid unused variable warning.
71751
71752 2005-09-21  Bruno Haible  <bruno@clisp.org>
71753
71754         * lib/unicodeio.h (unicode_to_mb): New declaration.
71755
71756 2005-09-20  Derek Price  <derek@ximbiot.com>
71757
71758         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71759         getaddrinfo.h.
71760
71761 2005-09-20  Bruno Haible  <bruno@clisp.org>
71762
71763         * gnulib-tool: Remove trailing slashes from the values specified for
71764         --source-base, --m4-base, --tests-base, --aux-dir.
71765         Suggested by Simon Josefsson <jas@extundo.com>.
71766
71767 2005-09-20  Bruno Haible  <bruno@clisp.org>
71768
71769         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71770         func_modules_to_filelist, func_import, func_create_testdir): Make all
71771         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71772         change when gnulib-tool is invoked in a different locale.
71773
71774 2005-09-19  Simon Josefsson  <jas@extundo.com>
71775
71776         * m4/socklen.m4: Fix typo.
71777
71778 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71779
71780         Use a consistent style for including <config.h>.
71781         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71782         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71783         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71784         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71785         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71786         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71787         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71788         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71789         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71790         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71791         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71792         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71793         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71794         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71795         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71796         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71797         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71798         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71799         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71800         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71801         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71802         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71803         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71804         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71805         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71806         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71807         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71808         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71809         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71810         lib/xstrtoumax.c, lib/yesno.c:
71811         Standardize inclusion of config.h.
71812         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71813         lib/inttostr.h:  Removed inclusion of config.h from header files.
71814         * lib/inttostr.c:  Adjusted in-tree users.
71815         * lib/timespec.h: Remove superfluous warning to include config.h.
71816         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71817         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71818         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71819         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71820         config.h with HAVE_CONFIG_H.
71821
71822 2005-09-19  Jim Meyering  <jim@meyering.net>
71823
71824         * modules/pathmax (License): Change to LGPL.
71825
71826 2005-09-19  Derek Price  <derek@ximbiot.com>
71827
71828         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71829
71830 2005-09-19  Bruno Haible  <bruno@clisp.org>
71831
71832         * gnulib-tool (import): Provide default for --tests-base.
71833
71834 2005-09-19  Bruno Haible  <bruno@clisp.org>
71835
71836         * doc/quote.texi: New file, extracted from gnulib.texi.
71837         * doc/ctime.texi: New file, extracted from gnulib.texi.
71838         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71839         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71840         * doc/gnulib.texi: Include them.
71841
71842 2005-09-18  Bruno Haible  <bruno@clisp.org>
71843
71844         Portability fix.
71845         * gnulib-tool (func_readlink): New function.
71846         (func_ln_if_changed): Use it.
71847
71848 2005-09-18  Bruno Haible  <bruno@clisp.org>
71849
71850         * gnulib-tool: Support --with-tests also with --import.
71851         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71852         (func_import): Use variables $testsbase and $inctests. Emit a
71853         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71854         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71855         SUBDIRS += $testsdir.
71856         (func_create_testdir): Update.
71857
71858 2005-09-18  Bruno Haible  <bruno@clisp.org>
71859
71860         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71861         instead of $dry_run.
71862         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71863         (func_ln_if_changed): Don't handle dry-run here.
71864         (func_import): In dry-run mode, detect more precisely which actions
71865         would be performed, and don't use "...ing" verbs.
71866
71867 2005-09-18  Bruno Haible  <bruno@clisp.org>
71868
71869         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71870         (func_import): Use join on two temporary files instead of three nested
71871         loops, in order to determine which files are new or old.
71872
71873 2005-09-18  Bruno Haible  <bruno@clisp.org>
71874
71875         * gnulib-tool (func_import): Comment out code that spits out the
71876         new files with --dry-run.
71877
71878 2005-09-18  Bruno Haible  <bruno@clisp.org>
71879
71880         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71881
71882 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * lib/stat-time.h: New file.
71885         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71886         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71887         in a different way.
71888         (timespec_cmp): New function.
71889         * lib/utimecmp.c: Include stat-time.h.
71890         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71891         members exist, not on the obsolescent ST_MTIM_NSEC.
71892         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71893
71894 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71897
71898 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * MODULES.html.sh (File system functions): Add stat-time.
71901         * modules/stat-time: New file.
71902         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71903         is now done in a different way, by the stat-time module.
71904         * modules/utimecmp (Depends-on): Add stat-time.
71905
71906 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         * m4/st_mtim.m4: Remove.  Superseded by...
71909         * m4/stat-time.m4: New file.
71910         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71911         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71912
71913 2005-09-15  Derek Price  <derek@ximbiot.com>
71914
71915         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71916
71917 2005-09-15  Derek Price  <derek@ximbiot.com>
71918
71919         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71920         * lib/regex_internal.c: Ditto, using this...
71921         (__GNUC_PREREQ): ...new macro.
71922         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71923         using...
71924         (__GNUC_PREREQ): ...this new macro.
71925
71926         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71927
71928 2005-09-15  Derek Price  <derek@ximbiot.com>
71929             Paul Eggert  <eggert@cs.ucla.edu>
71930
71931         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71932         changes, consolidating in...
71933         * lib/regex_internal.h: ...this file.
71934
71935 2005-09-13  Jim Meyering  <jim@meyering.net>
71936
71937         * lib/canon-host.c: Filter through gnu indent and reword comments
71938         slightly.
71939         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71940
71941 2005-09-13  Derek Price  <derek@ximbiot.com>
71942
71943         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71944         failure.
71945         Reported by Jim Meyering  <jim@meyering.net>.
71946
71947 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71948
71949         * lib/base64.c: Typo.
71950         (base64_encode): Put b64str in initialized data section.
71951
71952 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         Merge glibc and coreutils changes into gnulib, plus a few
71955         extra fixes.
71956         * lib/md5.c: Use #error rather than a string.
71957         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71958         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71959         (__attribute__): Define to empty for non recent-GCC.
71960         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71961         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71962         Renamed from their non-__ counterparts, with new macros replacing
71963         them if not _LIBC.  Add __THROW attribute.
71964         (rol): Remove.
71965         (struct md5_ctx): Align buffer if using GCC.
71966         * lib/sha1.h (struct sha1_ctx): Likewise.
71967         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71968         The old name was backwards.
71969         (NOTSWAP): Remove; not used.
71970         (rol): New macro, moved here from md5.h.
71971         (sha1_process_block): Remove a FIXME that doesn't make sense.
71972
71973 2005-09-12  Derek Price  <derek@ximbiot.com>
71974
71975         Return usable errors from canon-host.
71976         * lib/canon-host.h: New file.
71977         * lib/canon-host.c (canon_host): Wrap...
71978         (canon_host_r): ...this new function, which now relies exclusively on
71979         getaddrinfo.
71980         (ch_strerror): New function.
71981         (last_cherror): New global.
71982         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71983         interface.
71984         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71985         void *.
71986         (freeaddrinfo): Free ai->ai_canonname when set.
71987
71988 2005-09-12  Derek Price  <derek@ximbiot.com>
71989
71990         Make canon-host require getaddrinfo.
71991         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71992         AC_LIBSOURCE canon-host.h.  Call...
71993         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71994         gl_GETADDRINFO.
71995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71996
71997 2005-09-12  Derek Price  <derek@ximbiot.com>
71998
71999         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72000         LGPL.
72001         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72002
72003 2005-09-12  Derek Price  <derek@ximbiot.com>
72004
72005         * lib/gai_strerror.c: Include config.h when available.  Include
72006         getaddrinfo.h before other headers to test interface.
72007         Reported by Larry Jones <lawrence.jones@ugs.com>.
72008
72009 2005-09-12  Derek Price  <derek@ximbiot.com>
72010             Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * modules/glob (Files): Add glob-libc.h.
72013
72014 2005-09-12  Derek Price  <derek@ximbiot.com>
72015             Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72018         glob_.h, glob-libc.h.
72019         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72020
72021 2005-09-12  Derek Price  <derek@ximbiot.com>
72022             Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72025         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72026         protecting things that should be done only in gnulib contexts.
72027         * lib/glob_.h: New file, containing only the glob things needed for
72028         gnulib.
72029         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72030         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72031         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72032         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72033         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72034         and to respect the namespace rules better.
72035
72036 2005-09-08  Simon Josefsson  <jas@extundo.com>
72037
72038         * modules/socklen: New file.
72039
72040 2005-09-08  Simon Josefsson  <jas@extundo.com>
72041
72042         * m4/socklen.m4: New file.
72043
72044 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * modules/utimens (Files): Add m4/utimbuf.m4, since
72047         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72048         Reported by Sergey Poznyakoff.
72049
72050 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72053         definitions, since that's the preferred style in glibc.
72054         Fix a minor spacing issue, and update copyright notice to match
72055         glibc's.
72056
72057 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72060
72061 2005-09-06  Simon Josefsson  <jas@extundo.com>
72062
72063         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72064         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72065
72066 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72069         warning.
72070
72071 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * config/srclist.txt: Add glibc bug 1302.
72074
72075 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72076
72077         Change bitset word type from unsigned int to unsigned long int,
72078         as this has better performance on typical 64-bit hosts.
72079         Port bitset code to hosts with unusual word sizes.
72080         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72081         (build_collating_symbol):
72082         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72083         argument is a bitset.  This is merely a style issue, but it makes
72084         it clearer that an entire array is expected.
72085         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72086         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72087         Port to the case where bitset_word is not the same as unsigned int.
72088         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72089         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72090         Likewise.
72091         * lib/regexec.c (check_dst_limits_calc_pos_1,
72092         check_subexp_matching_top):
72093         (build_trtable, group_nodes_into_DFAstates):
72094         Likewise.
72095         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72096         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72097         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72098         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72099         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72100         * lib/regcomp.c (optimize_subexps, lower_subexp):
72101         Work even if bitset_word has holes in its bitwise representation.
72102         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72103         * lib/regexec.c (check_dst_limits_calc_pos_1,
72104         check_subexp_matching_top):
72105         Likewise.
72106         * lib/regex_internal.c (re_string_reconstruct):
72107         Don't assume UCHAR_MAX == 255.
72108         * lib/regex_internal.h (bitset_set_all): Likewise.
72109         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72110         All uses changed.
72111         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72112         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72113         All uses changed.
72114         (BITSET_WORD_MAX): New macro.
72115         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72116         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72117         (bitset_empty, bitset_copy):
72118         Prefer sizeof (bitset) to multiplying it out ourselves.
72119         (bitset_not_merge): Remove; unused.
72120         (bitset_contain): Return bool, not unsigned int with one bit on.
72121         All callers changed.
72122         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72123         alignment than re_node_set; do this by defining a new internal
72124         type struct dests_alloc and using it to allocate memory.
72125
72126 2005-09-05  Bruno Haible  <bruno@clisp.org>
72127
72128         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72129         links.
72130
72131 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72132
72133         * modules/size_max (Makefile.am): Add size_max.h
72134
72135 2005-09-04  Derek Price  <derek@ximbiot.com>
72136
72137         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72138
72139 2005-09-03  Simon Josefsson  <jas@extundo.com>
72140
72141         * gnulib-tool: Fix typo.
72142
72143 2005-09-03  Simon Josefsson  <jas@extundo.com>
72144
72145         * config/srclist.txt: Add glibc bug 1293.
72146
72147 2005-09-03  Derek Price  <derek@ximbiot.com>
72148
72149         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72150         From Larry Jones <lawrence.jones@ugs.com>.
72151
72152 2005-09-02  Simon Josefsson  <jas@extundo.com>
72153
72154         * modules/socklen: New file.
72155
72156 2005-09-02  Simon Josefsson  <jas@extundo.com>
72157
72158         * modules/havelib: New module.
72159
72160         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72161         Use havelib.
72162
72163 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         Check for arithmetic overflow when calculating sizes, to prevent
72166         some buffer-overflow issues.  These patches are conservative, in the
72167         sense that when I couldn't determine whether an overflow was possible,
72168         I inserted a run-time check.
72169         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72170         macros.
72171         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72172         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72173         (re_xnrealloc, re_x2nrealloc): New inline functions.
72174         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72175         parse_bracket_exp):
72176         (build_equiv_class, build_charclass): Check for arithmetic overflow
72177         in size expression calculations.
72178         * lib/regex_internal.c (re_string_realloc_buffers):
72179         (build_wcs_upper_buffer, re_node_set_add_intersect):
72180         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72181         (re_dfa_add_node, register_state): Likewise.
72182         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72183         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72184         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72185         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72186
72187 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72190         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72191
72192 2005-09-02  Bruno Haible  <bruno@clisp.org>
72193
72194         Support for lib vs. lib64 distinction on biarch platforms.
72195         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72196         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72198
72199 2005-09-02  Bruno Haible  <bruno@clisp.org>
72200
72201         * gnulib-tool (import): In the other first-use case, provide defaults
72202         as well.
72203
72204 2005-09-02  Bruno Haible  <bruno@clisp.org>
72205
72206         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72207         patches not yet found in the latest gettext release.
72208
72209 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72212         to avoid a collision with bits/local_lim.h in glibc.
72213         All uses changed.  Problem reported by Dmitry V. Levin in
72214         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72215
72216         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72217         bugs in int versus size_t comparisons.
72218         (re_string_context_at): Fix bug where the code assumed that
72219         Idx is signed.
72220
72221         Use bool where appropriate.
72222         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72223         All callers changed.
72224         (calc_eclosure_iter): Likewise, for ROOT arg.
72225         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72226         (build_charclass_op): Likewise, for NON_MATCH arg.
72227         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72228         (re_string_construct_common): Likewise, for ICASE arg.
72229         * lib/regexec.c (re_search_2_stub, re_search_stub):
72230         Likewise, for RET_LEN arg.
72231         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72232         (set_regs): Likewise, for FL_BACKTRACK arg.
72233         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72234         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72235         (calc_eclosure_iter, parse_bracket_exp):
72236         Use bool for internal variables that are booleans.
72237         * lib/regexec.c (re_search_internal, check_matching,
72238         proceed_next_node):
72239         (set_regs, build_sifted_states, sift_states_bkref):
72240         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72241         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72242         (find_collation_sequence_value):
72243         Likewise.
72244         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72245         (re_node_set_compare):
72246         Return bool, not int. All callers changed.
72247         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72248         (build_trtable, check_node_accept): Likewise.
72249         * lib/regex_internal.h: Include stdbool.h.
72250
72251         Fix bugs uncovered when converting to bool.
72252         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72253         failure instead of charging ahead blindly.
72254         * lib/regex_internal.c (register_state): Likewise.
72255         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72256         for freeing internal storage.
72257         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72258         bitset pieces used as boolean, to avoid undefined behavior
72259         on hosts that do int overflow checking.
72260
72261 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         * config/srclist.txt: Add glibc bugs 1285-1287.
72264
72265 2005-09-01  Jim Meyering  <jim@meyering.net>
72266
72267         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72268         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72269         Require gl_STAT_MACROS, too.
72270
72271 2005-09-01  Bruno Haible  <bruno@clisp.org>
72272
72273         * gnulib-tool (import): In the first-use case, provide defaults.
72274
72275 2005-09-01  Bruno Haible  <bruno@clisp.org>
72276
72277         * gnulib-tool (func_import): Remove the .tmp files.
72278
72279 2005-09-01  Bruno Haible  <bruno@clisp.org>
72280
72281         * gnulib-tool (func_import): Fix handling of symbolic links.
72282
72283 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72286         old glibc regex code mishandles strings longer than 2**31 bytes.
72287         This patch fixes this when the regex code is used in gnulib
72288         (i.e., outside glibc).
72289
72290         This patch should not affect the use of the regex code inside
72291         glibc.  No doubt this problem also needs to be handled for glibc
72292         as well, but the result will be an incompatible change to the
72293         glibc ABI, and the old ABI will have to be supported too.  That
72294         can be the the subject for another patch.
72295
72296         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72297         governing whether the rest of this patch is active.  By default,
72298         the macro is disabled and the patch has no effect.
72299         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72300         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72301         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72302         (re_match_2, re_set_registers): Use the new types.
72303         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72304         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72305         New macros.
72306         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72307         (re_string_context_at, bin_tree_t, re_dfastate_t):
72308         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72309         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72310         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72311         (re_string_char_size_at, re_string_wchar_at):
72312         (re_string_elem_size_at):
72313         Use the new types and macros to port to 64-bit hosts.
72314         Use unsigned types for internal values, so that the code
72315         mostly works even for arrays larger than SSIZE_MAX.
72316         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72317         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72318         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72319         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72320         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72321         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72322         (calc_inveclosure, parse_dup_op, build_range_exp):
72323         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72324         (fetch_number, create_token_tree, mark_opt_subexp):
72325         Likewise.
72326         * lib/regex_internal.c (re_string_construct_common,
72327         create_ci_newstate):
72328         (create_cd_newstate, re_string_allocate, re_string_construct):
72329         (re_string_realloc_buffers, build_wcs_upper_buffer):
72330         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72331         (re_string_reconstruct, re_string_peek_byte_case):
72332         (re_string_fetch_byte_case, re_string_context_at):
72333         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72334         (re_node_set_init_copy, re_node_set_add_intersect):
72335         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72336         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72337         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72338         (re_acquire_state, re_acquire_state_context, register_state):
72339         Likewise.
72340         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72341         search_cur_bkref_entry):
72342         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72343         (re_search_internal, re_search_2_stub, re_search_stub)
72344         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72345         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72346         (update_cur_sifted_state, check_dst_limits):
72347         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72348         (check_subexp_limits, sift_states_bkref, merge_state_array):
72349         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72350         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72351         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72352         (expand_bkref_cache, check_node_accept_bytes):
72353         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72354         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72355         (acquire_init_state_context, check_halt_node_context):
72356         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72357         (sift_states_backward, clean_state_log_if_needed):
72358         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72359         (find_recover_state, transit_state_sb, transit_state_mb):
72360         (transit_state_bkref, build_trtable, match_ctx_clean):
72361         Likewise.
72362         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72363         to work around an assumption that REG_MISSING is negative.
72364
72365         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72366         (seek_collating_symbol_entry) [defined _LIBC]:
72367         (lookup_collation_sequence_value) [defined _LIBC]:
72368         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72369         Use prototypes rather than old-style function definitions.
72370         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72371         (transit_state_sb) [0]:
72372         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72373
72374         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72375         rm_eo.
72376
72377         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72378         (optimize_subexps, lower_subexp):
72379         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72380         since the signed shift might overflow.  Use 1u<<31 instead.
72381         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72382         Likewise.
72383         * lib/regexec.c (check_dst_limits_calc_pos_1,
72384         check_subexp_matching_top): Likewise.
72385
72386         * lib/regcomp.c (optimize_subexps, lower_subexp):
72387         Use CHAR_BIT rather than 8, for clarity.
72388         * lib/regexec.c (check_dst_limits_calc_pos_1):
72389         (check_subexp_matching_top): Likewise.
72390         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72391         have to worry about portability issues when shifting it left.
72392         Remove no-longer-needed test for table_size > 0.
72393         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72394         in a word, as the resulting behavior is undefined.
72395         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72396         in one case, a <= should have been an <, and in another case the
72397         whole test was missing.
72398         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72399         the standard name CHAR_BIT.
72400         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72401         this is not true on one's complement and signed-magnitude hosts.
72402
72403         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72404         next_last_offset.
72405         (struct re_dfa_t): Remove unused member states_alloc.
72406         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72407
72408 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72411         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72412         and large-file glibc and in 32-bit large-file Solaris.
72413
72414 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72417         lengths fit in regoff_t; this isn't true if regoff_t is the same
72418         width as size_t.
72419         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72420         (= START + RANGE) instead of RANGE.  This avoids overflow
72421         problems when regoff_t is the same width as size_t.
72422         All callers changed.
72423         (re_search_2_stub): Check for overflow when adding the
72424         sizes of the two strings.
72425         (re_search_stub): Check for overflow when adding START
72426         to RANGE; if it occurs, substitute the extreme value.
72427
72428 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72431
72432 2005-08-31  Jim Meyering  <jim@meyering.net>
72433
72434         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72435         a pointer-to-const.
72436         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72437         (register_state): Likewise.
72438         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72439         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72440         (group_nodes_into_DFAstates): Likewise.
72441
72442 2005-08-31  Jim Meyering  <jim@meyering.net>
72443
72444         * check-module: Add a FIXME comment.
72445
72446 2005-08-31  Eric Blake  <ebb9@byu.net>
72447
72448         * modules/unistd-safer (Files): Add unistd--.h.
72449         * modules/stdio-safer (Files): Add stdio--.h.
72450
72451 2005-08-31  Derek Price  <derek@ximbiot.com>
72452
72453         * lib/getdelim.c (getdelim): Return EOF on EOF.
72454         Reported by Larry Jones <lawrence.jones@ugs.com>.
72455
72456 2005-08-31  Bruno Haible  <bruno@clisp.org>
72457
72458         Avoid unnecessary diffs in the generated lib/Makefile.am.
72459         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72460         the generated files.
72461         (func_import): Don't set cmd.
72462
72463 2005-08-31  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/strstr.c: Include <stddef.h>, for NULL.
72466         * lib/strcasestr.c: Likewise.
72467         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72468
72469 2005-08-31  Bruno Haible  <bruno@clisp.org>
72470
72471         * gnulib-tool: New option --macro-prefix.
72472         (func_import): Use macro_prefix.
72473         (import): Handle option --macro-prefix.
72474
72475 2005-08-31  Bruno Haible  <bruno@clisp.org>
72476
72477         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72478         Also use new variables cached_lgpl, cached_libtool.
72479
72480 2005-08-31  Bruno Haible  <bruno@clisp.org>
72481
72482         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72483         always instantiating them.
72484
72485 2005-08-31  Bruno Haible  <bruno@clisp.org>
72486
72487         * gnulib-tool (func_import): Read the previous cached settings
72488         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72489         earlier added by gnulib but are now dropped. Warn when a gnulib file
72490         overwrites a non-gnulib file.
72491
72492 2005-08-31  Bruno Haible  <bruno@clisp.org>
72493
72494         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72495         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72496         projects that don't keep autogenerated files in CVS. Put into
72497         actioncmd only the specified modules, not the transitive closure.
72498
72499 2005-08-31  Bruno Haible  <bruno@clisp.org>
72500
72501         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72502         Create directories that shall be filled.
72503         (import): Don't look for gl_* macros in configure.ac. Recurse across
72504         all directories containing a gnulib-cache.m4 files, if meaningful.
72505
72506 2005-08-31  Bruno Haible  <bruno@clisp.org>
72507
72508         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72509         (import): Set seen_libtool when we see gl_LIBTOOL.
72510
72511 2005-08-31  Bruno Haible  <bruno@clisp.org>
72512
72513         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72514         declaration macro definitions from generated gnulib.m4.
72515
72516 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72517
72518         * lib/iconvme.h: Add prototype for iconv_alloc.
72519
72520 2005-08-29  Simon Josefsson  <jas@extundo.com>
72521
72522         * lib/iconvme.c: Fix errno.
72523
72524 2005-08-29  Bruno Haible  <bruno@clisp.org>
72525
72526         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72527         that it works when the directory contains spaces.
72528
72529 2005-08-29  Bruno Haible  <bruno@clisp.org>
72530
72531         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72532
72533 2005-08-29  Bruno Haible  <bruno@clisp.org>
72534
72535         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72536         Emit more advice.
72537
72538 2005-08-29  Bruno Haible  <bruno@clisp.org>
72539         and Stepan Kasal  <kasal@ucw.cz>
72540
72541         * check-module: If more parameters are given, check each of them
72542         separately; add more exceptions, as noted by Jim Meyering.
72543         (check_module): New procedure.
72544         (%exempt_header): Now contains all exceptions.
72545
72546 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72547
72548         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72549
72550 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72551
72552         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72553
72554 2005-08-28  Bruno Haible  <bruno@clisp.org>
72555
72556         * m4/gnulib-tool.m4: New file.
72557
72558 2005-08-27  Jim Meyering  <jim@meyering.net>
72559
72560         * modules/unistd-safer (Files): Add pipe-safer.c.
72561         * modules/fcntl-safer (Files): Add creat-safer.c.
72562
72563 2005-08-27  Jim Meyering  <jim@meyering.net>
72564
72565         * m4/stdlib-safer.m4: New file.  From coreutils.
72566         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72567         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72568         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72569         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72570         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72571
72572 2005-08-27  Jim Meyering  <jim@meyering.net>
72573
72574         * lib/fopen-safer.c: Merge minor changes from coreutils.
72575         * lib/dup-safer.c: Likewise.
72576         * lib/fd-safer.c: Likewise.
72577
72578         Merge from coreutils.
72579         * lib/stdio--.h: New file.
72580         * lib/stdlib--.h: New file.
72581         * lib/mkstemp-safer.c: New file.
72582
72583         GNU tar needs these.
72584         * lib/pipe-safer.c: New file.
72585         * lib/creat-safer.c: New file.
72586         * lib/fcntl--.h (creat): Define to creat_safer.
72587         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72588         * lib/unistd--.h (pipe): Define to pipe_safer.
72589         * lib/unistd-safer.h: Declare pipe_safer.
72590
72591 2005-08-26  Simon Josefsson  <jas@extundo.com>
72592
72593         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72594         Haible <bruno@clisp.org>.
72595
72596 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * lib/regex_internal.h: Remove all references to
72599         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72600         or better.
72601         (bitset_not, bitset_merge, bitset_not_merge):
72602         (bitset_mask, re_string_allocate, re_string_construct):
72603         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72604         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72605         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72606         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72607         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72608         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72609         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72610         (re_acquire_state_context):
72611         Remove unnecessary forward decls.
72612         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72613         Put __attribute at function definition,
72614         now that the function decl has been removed.
72615         * lib/regex_internal.c (re_string_peek_byte_case):
72616         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72617         Likewise.
72618
72619 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72620
72621         * m4/regex.m4: Add AC_PREREQ(2.50).
72622         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72623
72624 2005-08-25  Simon Josefsson  <jas@extundo.com>
72625
72626         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72627         __fsetlocking.
72628
72629 2005-08-25  Simon Josefsson  <jas@extundo.com>
72630
72631         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72632         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72633         GLIBC specific code.
72634
72635 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         Make regex safe for g++.  This fixes one real bug (an "err"
72638         that should have been "*err").  g++ problem reported by
72639         Sam Steingold.
72640         * lib/regex_internal.h (re_calloc): New macro, consistent with
72641         re_malloc etc.  All callers of calloc changed to use re_calloc.
72642         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72643         not int.  All callers changed.
72644         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72645         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72646         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72647         (find_recover_state): Change "err" to "*err"; this fixes what
72648         appears to be a real bug.
72649         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72650         versus int.
72651
72652 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * modules/regex (Depends-on): Add malloc, since the code
72655         assumes that !malloc(0) means failure.
72656
72657 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72660
72661         alloca modernization/simplification for regex.
72662         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72663         needs to be at the start of the file, and can be moved into
72664         regex_internal.h and simplified.
72665         * lib/regex_internal.h: Include <alloca.h>.
72666         (__libc_use_alloca) [!defined _LIBC]: New macro.
72667         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72668         now works outside glibc.
72669
72670 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * config/srclist.txt: Add glibc bugs 1241, 1245.
72673
72674 2005-08-25  Jim Meyering  <jim@meyering.net>
72675
72676         * lib/open-safer.c: Include <config.h>.
72677         Otherwise, we'd lose LARGEFILE support in any file using
72678         e.g. "fcntl--.h"
72679
72680 2005-08-25  Bruno Haible  <bruno@clisp.org>
72681
72682         * m4/minmax.m4: Require autoconf 2.52.
72683         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72684         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72685         alternatives of translit over the alphabet.
72686         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72687
72688 2005-08-24  Simon Josefsson  <jas@extundo.com>
72689
72690         * tests/test-getpass.c: New file.
72691
72692 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72695         for GNU regex features.
72696
72697 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72700         * lib/regex.h (regerror): Likewise.
72701
72702         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72703         requires this.  (The code never needed it.)
72704
72705         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72706         All uses of recently-renamed identifiers changed to use the new,
72707         POSIX-compliant names.  The code will build and run just fine
72708         without these changes, but it's better to eat our own dog food
72709         and use the standard-conforming names.
72710
72711         * lib/regex.h: Fix a multitude of POSIX name space violations.
72712         These changes have an effect only for programs that define
72713         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72714         do not change anything for programs compiled in the normal way.
72715         Also, there is no effect on the ABI.
72716
72717         (_REGEX_SOURCE): New macro.
72718         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72719         defined and _GNU_SOURCE is not; this fixes a name space violation.
72720
72721         Rename the following macros to obey POSIX requirements.
72722         The old names are still visible as macros if _REGEX_SOURCE is defined.
72723         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72724         RE_BACKSLASH_ESCAPE_IN_LISTS.
72725         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72726         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72727         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72728         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72729         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72730         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72731         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72732         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72733         (REG_INTERVALS): renamed from RE_INTERVALS.
72734         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72735         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72736         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72737         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72738         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72739         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72740         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72741         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72742         RE_UNMATCHED_RIGHT_PAREN_ORD.
72743         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72744         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72745         (REG_DEBUG): renamed from RE_DEBUG.
72746         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72747         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72748         unusual, since we can't clash with the POSIX REG_ICASE.
72749         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72750         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72751         (REG_NO_SUB): renamed from RE_NO_SUB.
72752         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72753         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72754         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72755         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72756         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72757         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72758         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72759         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72760         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72761         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72762         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72763         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72764         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72765         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72766         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72767         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72768         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72769         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72770         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72771         (REG_FIXED): Renamed from REGS_FIXED.
72772         (REG_NREGS): Renamed from RE_NREGS.
72773
72774         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72775         of other REG_* macros, since POSIX says the user is allowed to
72776         #undef these macros selectively.
72777
72778         (reg_errcode_t): Update comment stating what other tables need
72779         to be consistent.
72780
72781         Rename the following enum values to obey POSIX requirements.
72782         The old names are still visible as macros.
72783         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72784         is not defined, since GNU is supposed to be a superset of POSIX as
72785         much as possible, and since we want reg_errcode_t to be a signed
72786         type for implementation consistency.
72787         (_REG_NOERROR): Renamed from REG_NOERROR.
72788         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72789         (_REG_BADPAT): Renamed from REG_BADPAT.
72790         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72791         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72792         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72793         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72794         (_REG_EBRACK): Renamed from REG_EBRACK.
72795         (_REG_EPAREN): Renamed from REG_EPAREN.
72796         (_REG_EBRACE): Renamed from REG_EBRACE.
72797         (_REG_BADBR): Renamed from REG_BADBR.
72798         (_REG_ERANGE): Renamed from REG_ERANGE.
72799         (_REG_ESPACE): Renamed from REG_ESPACE.
72800         (_REG_BADRPT): Renamed from REG_BADRPT.
72801         (_REG_EEND): Renamed from REG_EEND.
72802         (_REG_ESIZE): Renamed from REG_ESIZE.
72803         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72804         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72805         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72806         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72807         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72808
72809         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72810         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72811         changed.  But support the old name if the new one is not defined
72812         and if _REGEX_SOURCE.
72813
72814         Change the following member names in struct re_pattern_buffer.
72815         The old names are still supported if !_REGEX_SOURCE.
72816         The new names are always supported, regardless of _REGEX_SOURCE.
72817         (re_buffer): Renamed from buffer.
72818         (re_allocated): Renamed from allocated.
72819         (re_used): Renamed from used.
72820         (re_syntax): Renamed from syntax.
72821         (re_fastmap): Renamed from fastmap.
72822         (re_translate): Renamed from translate.
72823         (re_can_be_null): Renamed from can_be_null.
72824         (re_regs_allocated): Renamed from regs_allocated.
72825         (re_fastmap_accurate): Renamed from fastmap_accurate.
72826         (re_no_sub): Renamed from no_sub.
72827         (re_not_bol): Renamed from not_bol.
72828         (re_not_eol): Renamed from not_eol.
72829         (re_newline_anchor): Renamed from newline_anchor.
72830
72831         Change the following member names in struct re_registers.
72832         The old names are still supported if !_REGEX_SOURCE.
72833         The new names are always supported, regardless of _REGEX_SOURCE.
72834         (rm_num_regs): Renamed from num_regs.
72835         (rm_start): Renamed from start.
72836         (rm_end): Renamed from end.
72837
72838         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72839         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72840         Prepend __ to parameter names.
72841
72842         Undo yesterday's changes.
72843
72844 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72847         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72848         lib/regex.c.
72849
72850 2005-08-24  Jim Meyering  <jim@meyering.net>
72851
72852         Sync from coreutils.
72853         * m4/fcntl-safer.m4: New file.
72854
72855         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72856         and object files for this module.
72857
72858 2005-08-24  Jim Meyering  <jim@meyering.net>
72859
72860         Sync from coreutils.
72861         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72862
72863 2005-08-24  Jim Meyering  <jim@meyering.net>
72864
72865         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72866         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72867
72868 2005-08-24  Jim Meyering  <jim@meyering.net>
72869
72870         * modules/fcntl-safer: New module.
72871         * modules/fts (Depends-on): Add fcntl-safer.
72872         * MODULES.html.sh (File descriptor based Input/Output):
72873         Add fcntl-safer.
72874
72875 2005-08-24  Bruno Haible  <bruno@clisp.org>
72876
72877         Support for unit test modules.
72878         * modules/README: Mention tests modules.
72879         * modules/TEMPLATE-TESTS: New file.
72880         * gnulib-tool: New options --extract-tests-module, --with-tests and
72881         --tests-base (unused for the moment).
72882         (testsbase, inctests): New variables.
72883         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72884         (func_verify_module): Exclude TEMPLATE-TESTS.
72885         (func_verify_nontests_module, func_verify_tests_module): New functions.
72886         (func_get_dependencies): Add implicit dependency for tests modules.
72887         (func_get_tests_module): New function.
72888         (func_modules_transitive_closure): When --with-tests was specified,
72889         include the unit tests as well, unless explicitly avoided.
72890         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72891         (func_emit_tests_Makefile_am): New function.
72892         (func_create_testdir): When --with-tests was specified, emit a
72893         tests/ directory.
72894         * MODULES.html.sh (Future developments): Update.
72895
72896 2005-08-24  Bruno Haible  <bruno@clisp.org>
72897
72898         * modules/tls-tests: New file.
72899         * tests/test-tls.c: New file, from GNU gettext.
72900
72901 2005-08-24  Bruno Haible  <bruno@clisp.org>
72902
72903         * modules/lock-tests: New file.
72904         * tests/test-lock.c: New file, from GNU gettext.
72905
72906 2005-08-24  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/lock.h: Add multiple inclusion guard.
72909         * lib/tls.h: Add multiple inclusion guard.
72910
72911 2005-08-24  Bruno Haible  <bruno@clisp.org>
72912
72913         * gnulib-tool: Add support for the --aux-dir option to
72914         --create-testdir, --create-megatestdir, --test, --megatest.
72915         (func_create_testdir, func_create_megatestdir): Optionally emit a
72916         AC_CONFIG_AUX_DIR directive.
72917         (create-testdir, create-megatestdir, test, megatest): Provide a
72918         default value for $auxdir.
72919
72920 2005-08-24  Bruno Haible  <bruno@clisp.org>
72921
72922         * gnulib-tool (import): Use compound statement instead of subshell
72923         where possible.
72924
72925 2005-08-24  Bruno Haible  <bruno@clisp.org>
72926
72927         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72928
72929 2005-08-24  Bruno Haible  <bruno@clisp.org>
72930
72931         * gnulib-tool (func_version): Update.
72932
72933 2005-08-24  Bruno Haible  <bruno@clisp.org>
72934
72935         * gnulib-tool (func_import, func_create_testdir,
72936         func_create_megatestdir): Quote all autoconf macro arguments.
72937
72938 2005-08-24  Bruno Haible  <bruno@clisp.org>
72939
72940         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72941         option --force, because --force causes the aclocal.m4 of each
72942         subdirectory to be newer than the corresponding config.h.in.
72943
72944 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72947         All contents moved to gl_REGEX.
72948         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72949         assume that it does.
72950
72951 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         * lib/regex.h (REG_NOSYS)
72954         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72955         Define, since POSIX requires it as of 2001.
72956         (_REG_ENOSYS)
72957         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72958         New private symbol, used to keep the enum signed in all cases.
72959         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72960         Youngman in
72961         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72962
72963         * lib/regex_internal.c (re_string_skip_chars, register_state):
72964         (calc_state_hash):
72965         Remove forward decls; no longer needed now that we use prototypes.
72966         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72967         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72968         (clean_state_log_if_needed): Likewise.
72969
72970 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * config/srclist.txt: Add glibc bugs 1231-1233.
72973
72974 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         Fix problems reported by Sam Steingold in
72977         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72978         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72979         assumed that reg_errcode_t is a signed type, which is not
72980         necessarily true if _XOPEN_SOURCE is not defined.
72981         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72982         since some compilers warn about it otherwise.
72983
72984 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72987         (init_word_char, create_initial_state, duplicate_node_closure):
72988         (fetch_token, peek_token_bracket, build_range_exp):
72989         (build_collating_symbol): Remove forward decls; no longer needed
72990         now that we use prototypes.
72991
72992         * lib/regcomp.c:
72993         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72994         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72995         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72996         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72997         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72998         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72999         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73000         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73001         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73002         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73003         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73004         (build_charclass, build_charclass_op, fetch_number, create_tree):
73005         (create_token_tree, mark_opt_subexp, duplicate_tree):
73006         Use prototypes rather than old-style definitions.
73007
73008         * lib/regex_internal.c:
73009         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73010         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73011         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73012         (re_string_reconstruct, re_string_peek_byte_case):
73013         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73014         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73015         (re_node_set_init_copy, re_node_set_add_intersect):
73016         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73017         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73018         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73019         (re_acquire_state, re_acquire_state_context, register_state):
73020         (create_ci_newstate, create_cd_newstate, free_state):
73021         Likewise.
73022         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73023         re_search_2):
73024         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73025         (re_search_internal, prune_impossible_nodes):
73026         (acquire_init_state_context, check_matching, static):
73027         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73028         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73029         (update_regs, sift_states_backward, build_sifted_states):
73030         (clean_state_log_if_needed, merge_state_array):
73031         (update_cur_sifted_state, add_epsilon_src_nodes):
73032         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73033         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73034         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73035         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73036         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73037         (check_arrival, check_arrival_add_next_nodes):
73038         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73039         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73040         (check_node_accept_bytes, check_node_accept, extend_buffers):
73041         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73042         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73043         (sift_ctx_init):
73044         Likewise.
73045
73046         * lib/regex_internal.h:
73047         (re_string_allocate, re_string_construct, re_string_reconstruct):
73048         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73049         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73050         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73051         (re_string_context_at, re_string_peek_byte_case):
73052         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73053         is defined, since we now use prototypes always.
73054
73055         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73056         C89 or better.  All uses removed.
73057
73058 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * config/srclist.txt: Add glibc bugs 1220-1227.
73061
73062 2005-08-20  Jim Meyering  <jim@meyering.net>
73063
73064         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73065         of unused local, dfa.
73066
73067 2005-08-20  Bruno Haible  <bruno@clisp.org>
73068
73069         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73070
73071 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73074         (re_node_set_insert_last, re_dfa_add_node):
73075         Rename local variables to avoid GCC shadowing warnings.
73076
73077 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73078
73079         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73080         [defined lint]: Suppress bogus uninitialized-variable warnings.
73081
73082         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73083         and let the caller return REG_ESPACE if out of space.  This
73084         removes an uninitialied-variable warning with GCC 4.0.1, and also
73085         avoids taking the address of a local variable.  All callers
73086         changed.
73087
73088 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73091         $LIBCSRC/posix/regexec.c.
73092         Add glibc bug 1217 for regcomp.c.
73093
73094 2005-08-19  Jim Meyering  <jim@meyering.net>
73095
73096         * lib/regexec.c (proceed_next_node): Redo local variables to
73097         avoid GCC shadowing warnings.
73098
73099 2005-08-18  Bruno Haible  <bruno@clisp.org>
73100
73101         * lib/strstr.c (strstr): Fix return value in multibyte case.
73102         * lib/strcasestr.c (strcasestr): Likewise.
73103
73104 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73107
73108 2005-08-17  Jim Meyering  <jim@meyering.net>
73109
73110         Make the %s format (seconds since the epoch) work for a negative
73111         number and when used with a zero-padded field width, e.g. %015s.
73112
73113         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73114         label so that it precedes the code to set `digits'.  Otherwise,
73115         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73116         print `00-22'.  Now, it prints `-0022', as it should.
73117
73118 2005-08-17  Bruno Haible  <bruno@clisp.org>
73119
73120         * modules/strstr (Files): Add m4/mbrtowc.m4.
73121         (Depends-on): Add mbuiter.
73122
73123 2005-08-17  Bruno Haible  <bruno@clisp.org>
73124
73125         * modules/strcasestr: New file.
73126         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73127         strcasestr.
73128
73129 2005-08-17  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73132
73133 2005-08-17  Bruno Haible  <bruno@clisp.org>
73134
73135         * modules/mbuiter: New file.
73136         * MODULES.html.sh (Extended multibyte and wide character utilities):
73137         Add mbuiter.
73138
73139 2005-08-17  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73142         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73143
73144 2005-08-17  Bruno Haible  <bruno@clisp.org>
73145
73146         * m4/strcasestr.m4: New file.
73147
73148 2005-08-17  Bruno Haible  <bruno@clisp.org>
73149
73150         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73151         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73152
73153 2005-08-17  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/strcasestr.h: New file.
73156         * lib/strcasestr.c: New file.
73157
73158 2005-08-17  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/strcasecmp.c: Use mbuiter.h.
73161
73162 2005-08-17  Bruno Haible  <bruno@clisp.org>
73163
73164         * lib/mbuiter.h: New file.
73165
73166 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73169         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73170         and gl_GETOPT are both invoked via different paths (as happens
73171         with GNU tar CVS because it uses both argp and getopt), the former
73172         wins.
73173
73174 2005-08-16  Bruno Haible  <bruno@clisp.org>
73175
73176         * modules/tls: New file.
73177         * MODULES.html.sh (Multithreading): Add tls.
73178
73179 2005-08-16  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/strnlen1: New file.
73182         * MODULES.html.sh (String handling): Add strnlen1.
73183
73184 2005-08-16  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/strcase (Files): Add m4/mbrtowc.m4.
73187         (Depends-on): Add strnlen1, mbchar.
73188
73189 2005-08-16  Bruno Haible  <bruno@clisp.org>
73190
73191         * modules/mbiter: New file.
73192         * MODULES.html.sh (Extended multibyte and wide character utilities):
73193         Add mbiter.
73194
73195 2005-08-16  Bruno Haible  <bruno@clisp.org>
73196
73197         * modules/mbfile: New file.
73198         * MODULES.html.sh (Extended multibyte and wide character utilities):
73199         Add mbfile.
73200
73201 2005-08-16  Bruno Haible  <bruno@clisp.org>
73202
73203         * modules/mbchar: New file.
73204         * MODULES.html.sh (Extended multibyte and wide character utilities):
73205         New section.
73206
73207 2005-08-16  Bruno Haible  <bruno@clisp.org>
73208
73209         * m4/tls.m4: New file, from GNU gettext.
73210
73211 2005-08-16  Bruno Haible  <bruno@clisp.org>
73212
73213         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73214         always.
73215         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73216
73217 2005-08-16  Bruno Haible  <bruno@clisp.org>
73218
73219         * m4/mbiter.m4: New file.
73220
73221 2005-08-16  Bruno Haible  <bruno@clisp.org>
73222
73223         * m4/mbfile.m4: New file.
73224
73225 2005-08-16  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/mbchar.m4: New file.
73228
73229 2005-08-16  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/tls.h: New file, from GNU gettext.
73232         * lib/tls.c: New file, from GNU gettext.
73233
73234 2005-08-16  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/strnlen1.h: New file.
73237         * lib/strnlen1.c: New file.
73238
73239 2005-08-16  Bruno Haible  <bruno@clisp.org>
73240
73241         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73242         (mbi_init): Update.
73243         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73244         NUL byte, not after it.
73245
73246 2005-08-16  Bruno Haible  <bruno@clisp.org>
73247
73248         * lib/strcase.h (strcasecmp): Add note in comments.
73249         * lib/strncasecmp.c: Use code from strcasecmp.c.
73250         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73251         (strcasecmp): Work correctly in multibyte locales.
73252
73253 2005-08-16  Bruno Haible  <bruno@clisp.org>
73254
73255         * lib/mbiter.h: New file.
73256
73257 2005-08-16  Bruno Haible  <bruno@clisp.org>
73258
73259         * lib/mbfile.h: New file.
73260
73261 2005-08-16  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/mbchar.h: New file.
73264         * lib/mbchar.c: New file.
73265
73266 2005-08-16  Bruno Haible  <bruno@clisp.org>
73267
73268         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73269         the valid ones. Makes the comparison operations transitive:
73270         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73271         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73272
73273 2005-08-15  Simon Josefsson  <jas@extundo.com>
73274
73275         * modules/ssize_t (License): Change to 'unlimited'.
73276
73277         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73278
73279 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73282         Add comments for each pending glibc patch.
73283
73284 2005-08-15  Bruno Haible  <bruno@clisp.org>
73285
73286         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73287         __cplusplus is defined.
73288
73289 2005-08-14  Jim Meyering  <jim@meyering.net>
73290
73291         Sync from coreutils.
73292
73293         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73294         Use the hash-table-based cycle-detection code not just when
73295         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73296         Reported by James Youngman in
73297         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73298         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73299         FTS_TIGHT_CYCLE_CHECK.
73300         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73301         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73302         once again.
73303         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73304         * lib/fts.c (fd_safer): Remove decl.
73305         Include fcntl--.h rather than unistd-safer.h
73306         (fts_safe_changedir): Don't call fd_safer; no longer needed
73307         now that we include fcntl--.h.
73308
73309 2005-08-12  Simon Josefsson  <jas@extundo.com>
73310
73311         * modules/getndelim2: Use ssize_t module.
73312         * modules/getnline: Likewise.
73313         * modules/safe-read: Likewise.
73314         * modules/xreadlink: Likewise.
73315
73316         * modules/ssize_t: New file.
73317
73318 2005-08-12  Simon Josefsson  <jas@extundo.com>
73319
73320         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73321
73322 2005-08-12  Simon Josefsson  <jas@extundo.com>
73323
73324         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73325         ssize_t.
73326
73327 2005-08-12  Simon Josefsson  <jas@extundo.com>
73328
73329         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73330         readline, getdelim and check_version.
73331         (Support for systems lacking ISO C 99: Sizes of integer types):
73332         Add size_max.
73333
73334 2005-08-12  Bruno Haible  <bruno@clisp.org>
73335
73336         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73337
73338 2005-08-11  Simon Josefsson  <jas@extundo.com>
73339
73340         * modules/readline: New file.
73341
73342         * modules/strnlen (Files): Add strnlen.h.
73343
73344 2005-08-11  Simon Josefsson  <jas@extundo.com>
73345
73346         * m4/readline.m4: New file.
73347
73348 2005-08-11  Simon Josefsson  <jas@extundo.com>
73349
73350         * lib/readline.h, readline.c: New file.
73351
73352 2005-08-11  Simon Josefsson  <jas@extundo.com>
73353
73354         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73355         gl_AVOID.
73356
73357 2005-08-11  Bruno Haible  <bruno@clisp.org>
73358
73359         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73360
73361 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73362
73363         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73364
73365 2005-08-10  Simon Josefsson  <jas@extundo.com>
73366
73367         * tests/test-iconvme.c: New file.
73368
73369 2005-08-10  Simon Josefsson  <jas@extundo.com>
73370
73371         * m4/strnlen.m4: New file.
73372
73373         * m4/strndup.m4: Don't check for strnlen declaration, done in
73374         strnlen.m4.
73375
73376 2005-08-10  Simon Josefsson  <jas@extundo.com>
73377
73378         * lib/strndup.c: Use strnlen.h.
73379
73380         * lib/strnlen.h: New file.
73381
73382 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73383
73384         * README: Typos.
73385
73386 2005-08-02  Simon Josefsson  <jas@extundo.com>
73387
73388         * modules/readline: New file.
73389
73390 2005-08-02  Simon Josefsson  <jas@extundo.com>
73391
73392         * modules/getdelim: New file.
73393
73394         * modules/getline: Rewrite, don't use getndelim2.
73395
73396 2005-08-02  Simon Josefsson  <jas@extundo.com>
73397
73398         * m4/getline.m4: Separate out getdelim stuff into separate module.
73399
73400         * m4/getdelim.m4: New file.
73401
73402 2005-08-02  Simon Josefsson  <jas@extundo.com>
73403
73404         * lib/getline.h, getline.c: Rewrite.
73405
73406         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73407
73408 2005-07-31  Bruno Haible  <bruno@clisp.org>
73409
73410         * lib/lock.h (gl_lock_initializer): New macro.
73411         (gl_lock_define_initialized): Use it.
73412         (gl_rwlock_initializer): New macro.
73413         (gl_rwlock_define_initialized): Use it.
73414         (gl_recursive_lock_initializer): New macro.
73415         (gl_recursive_lock_define_initialized): Use it.
73416
73417 2005-07-30  Karl Berry  <karl@gnu.org>
73418
73419         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73420         Report from Ben Pfaff, regarding getopt.
73421
73422 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73425         normal way.
73426         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73427         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73428         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73429         (gl_GETOPT): Use the new macros.  Most of the implementation
73430         is moved to the new macros.  This is for programs like Emacs
73431         that don't want all the functionality of gl_GETOPT.
73432
73433 2005-07-26  Bruno Haible  <bruno@clisp.org>
73434
73435         * m4/lock.m4: Update from GNU gettext.
73436
73437 2005-07-26  Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/lock.h: Update from GNU gettext.
73440         * lib/lock.c: Update from GNU gettext.
73441
73442 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73445         obsolescent AC_TRY_RUN.  Include the default includes files, for
73446         'exit'.
73447
73448 2005-07-24  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/visibility: New file.
73451         * MODULES.html.sh (Misc): Add visibility.
73452
73453 2005-07-24  Bruno Haible  <bruno@clisp.org>
73454
73455         * m4/visibility.m4: New file.
73456
73457 2005-07-24  Bruno Haible  <bruno@clisp.org>
73458
73459         * doc/visibility.texi: New file.
73460
73461 2005-07-22  Bruno Haible  <bruno@clisp.org>
73462
73463         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73464         $(ALLOCA_H), redundant through BUILT_SOURCES.
73465         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73466         redundant through BUILT_SOURCES.
73467         * modules/byteswap (Makefile.am): Remove explicit dependency on
73468         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73469         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73470         $(FNMATCH_H), redundant through BUILT_SOURCES.
73471         * modules/getopt (Makefile.am): Remove explicit dependency on
73472         $(GETOPT_H), redundant through BUILT_SOURCES.
73473         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73474         redundant through BUILT_SOURCES.
73475         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73476         redundant through BUILT_SOURCES.
73477         * modules/stdbool (Makefile.am): Remove explicit dependency on
73478         $(STDBOOL_H), redundant through BUILT_SOURCES.
73479         * modules/stdint (Makefile.am): Remove explicit dependency on
73480         $(STDINT_H), redundant through BUILT_SOURCES.
73481         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73482         Remove explicit dependency on $(SYSEXITS_H).
73483         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73484
73485 2005-07-18  Simon Josefsson  <jas@extundo.com>
73486
73487         * lib/check-version.c (check_version): Accept identical versions too.
73488
73489 2005-07-18  Bruno Haible  <bruno@clisp.org>
73490
73491         * modules/lock: New file.
73492         * MODULES.html.sh (Multithreading): New section.
73493
73494 2005-07-18  Bruno Haible  <bruno@clisp.org>
73495
73496         * m4/lock.m4: New file, from GNU gettext.
73497
73498 2005-07-18  Bruno Haible  <bruno@clisp.org>
73499
73500         * lib/lock.h: New file, from GNU gettext.
73501         * lib/lock.c: New file, from GNU gettext.
73502
73503 2005-07-18  Bruno Haible  <bruno@clisp.org>
73504
73505         * lib/lock.h (gl_once_t): New type.
73506         (gl_once_define, gl_once): New macros.
73507         * lib/lock.c (fresh_once): New variable.
73508         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73509         functions.
73510
73511 2005-07-16  Simon Josefsson  <jas@extundo.com>
73512
73513         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73514         workaround, suggested by Bruno.
73515
73516 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         * modules/xalloc (Depends-on): Add xalloc-die.
73519         * modules/xvasprintf (Depends-on): Add xalloc-die.
73520
73521 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73524         with a minor change.
73525
73526 2005-07-15  Bruno Haible  <bruno@clisp.org>
73527
73528         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73529         When using lib/poll.c, define poll as rpl_poll.
73530
73531 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73532
73533         * modules/argp (Depends-on): Remove unlocked-io.
73534
73535 2005-07-14  Derek Price  <derek@ximbiot.com>
73536
73537         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73538         for glob symlink bug.
73539
73540 2005-07-14  Bruno Haible  <bruno@clisp.org>
73541
73542         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73543         Instead, test for *_unlocked function declarations directly.
73544
73545 2005-07-11  Simon Josefsson  <jas@extundo.com>
73546
73547         * modules/size_max: New file.
73548
73549         * modules/xsize: Depend on size_max module for size_max.m4.
73550
73551 2005-07-11  Simon Josefsson  <jas@extundo.com>
73552
73553         * lib/size_max.h: New file.
73554
73555 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73558         copyright symbol and the year.
73559         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73560         (version_etc_va): Use parameterized copyright notice.
73561         Reword to conform to the current GNU coding standards.
73562
73563 2005-07-11  Karl Berry  <karl@gnu.org>
73564
73565         * doc/gnulib.texi (Quoting): new node.
73566         (Initial import): more info, from Patrice.
73567
73568 2005-07-11  Bruno Haible  <bruno@clisp.org>
73569
73570         * gnulib-tool (func_usage): Document option --avoid.
73571         (Command line options): Handle --avoid.
73572         (func_acceptable): New function.
73573         (func_modules_transitive_closure): Use it.
73574
73575 2005-07-11  Bruno Haible  <bruno@clisp.org>
73576
73577         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73578         Reported by Jim Meyering.
73579
73580 2005-07-10  Bruno Haible  <bruno@clisp.org>
73581
73582         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73583         Needed when size_t is smaller than 'unsigned int'.
73584         Reported by Paul Eggert.
73585
73586 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73587
73588         * modules/argp (Depends-on): Add unlocked-io
73589
73590 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73591
73592         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73593         block of defines.
73594
73595 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73598         fix now.
73599
73600 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73601         and Paul Eggert  <eggert@cs.ucla.edu>
73602
73603         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73604         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73605
73606 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * modules/regex (Files): Add lib/regex_internal.c,
73609         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73610         (Depends-on): Add extensions.
73611         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73612
73613 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73616         pathconf.
73617         * m4/same.m4 (gl_SAME): Likewise.
73618         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73619
73620         * m4/regex.m4: Adjust to new libc regex implementation.
73621         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73622         all the .c and .h parts of (the new) regex.
73623         Quote the m4 stuff better.
73624         Check for RE_ICASE bug of old gnulib.
73625         Check for REG_STARTEND of recent libc.
73626         Rename local variables from jm_* to gl_*.
73627         Quote operand of "test -f".
73628         Say "recent enough" version of libc, not "version 2".
73629         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73630         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73631         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73632         Remove check for btowc, isascii.
73633         Require AM_LANGINFO_CODESET.
73634
73635 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/regex.c, regex.h: Sync from libc.
73638         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73639         * lib/regexec.c:
73640         New files, synced from libc, except that regex_internal.h
73641         currently has a small porting fix.
73642
73643 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73644
73645         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73646         regex_internal.c, regexec.c.
73647         Add regex_internal.h too, but as a comment, since the libc version
73648         is currently broken in gnulib mode.
73649
73650 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73651
73652         Support programs like Emacs that use gnulib but not gettext.
73653         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73654         * modules/gettext-h: New file.
73655         * modules/gettext (Files): Remove lib/gettext.h.
73656         (Depends-on): Add gettext-h.
73657         (Makefile.am): Remove lib_SOURCES.
73658         * modules/argmatch, modules/c-stack, modules/closeout:
73659         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73660         * modules/execute, modules/file-type, modules/getaddrinfo:
73661         * modules/getopt, modules/human, modules/javacomp:
73662         * modules/javaexec, modules/mkdir-p, modules/obstack:
73663         * modules/openat, modules/pagealign_alloc, modules/pipe:
73664         * modules/quotearg, modules/regex, modules/rpmatch:
73665         * modules/unicodeio, modules/userspec, modules/version-etc:
73666         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73667         * modules/xsetenv:
73668         Depend on gettext-h, not gettext.
73669
73670 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         * gnulib-tool (func_import): Add support for 'public domain' license.
73673         * modules/alloca, modules/atexit, modules/memmove:
73674         Now public domain, not GPL.
73675         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73676         * modules/realloc, modules/strerror, modules/strtod:
73677         Now LGPL, not GPL.
73678
73679 2005-07-05  Bruno Haible  <bruno@clisp.org>
73680
73681         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73682         autoconf CVS. Needed for mingw.
73683
73684 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         Remove the dependency of the strftime module on the tzset module.
73687         * modules/strftime (Depends-on): Remove dependency on tzset.
73688
73689 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         Remove the dependency of the strftime module on the tzset module.
73692         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73693         gl_FUNC_TZSET_CLOBBER.
73694
73695 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         Remove the dependency of the strftime module on the tzset module.
73698         * lib/strftime.c (my_strftime)
73699         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73700         Copy the input structure, to work around some of the bug with
73701         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73702         Solaris releases, you should also use the tzset module, but we won't
73703         require it as a dependency any more since we don't want LGPLed code
73704         to depend on GPLed code.
73705
73706 2005-07-02  Jim Meyering  <jim@meyering.net>
73707
73708         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73709         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73710         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73711         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73712
73713 2005-07-02  Jim Meyering  <jim@meyering.net>
73714
73715         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73716
73717 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73720         declares only 'struct timespec;' (!).
73721
73722 2005-07-01  Jim Meyering  <jim@meyering.net>
73723
73724         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73725         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73726         * lib/save-cwd.c, tempname.c:
73727         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73728         and don't include <sys/file.h>).
73729
73730 2005-06-29  Jim Meyering  <jim@meyering.net>
73731
73732         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73733         type name.  Use the variable name instead.
73734         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73735         Likewise.
73736
73737 2005-06-28  Simon Josefsson  <jas@extundo.com>
73738
73739         * modules/check-version (Files): Add check-version.m4.
73740
73741 2005-06-28  Simon Josefsson  <jas@extundo.com>
73742
73743         * m4/check-version.m4: New file, suggested by Jim Meyering
73744         <jim@meyering.net>.
73745
73746 2005-06-28  Simon Josefsson  <jas@extundo.com>
73747
73748         * lib/check-version.h, lib/check-version.c: New files.
73749
73750 2005-06-28  Simon Josefsson  <jas@extundo.com>
73751
73752         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73753         collision with global variable.  Better indentation.  Don't
73754         increment buffer pointer beyond buffer end.  Based on comments
73755         from Paul Eggert <eggert@cs.ucla.edu>.
73756
73757         * lib/base64.h: Indent.
73758
73759 2005-06-28  Simon Josefsson  <jas@extundo.com>
73760
73761         * doc/gnulib.texi (Library version handling): New section.
73762
73763 2005-06-28  Jim Meyering  <jim@meyering.net>
73764
73765         * check-module (find_included_lib_files): Hard-code another
73766         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73767         but modules/fts-lgpl (correctly) does not list those files.
73768
73769         * modules/canonicalize (Files): Add lib/pathmax.h.
73770
73771 2005-06-25  Simon Josefsson  <jas@extundo.com>
73772
73773         * modules/check-version: New file.
73774
73775 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73778         initializer of struct addrinfo, as an indication that we don't
73779         care how many members the structure has.
73780
73781 2005-06-24  Derek Price  <derek@ximbiot.com>
73782         and Bruno Haible  <bruno@clisp.org>
73783
73784         Remove stat module & update lstat.
73785         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73786         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73787         * m4/stat.m4: Remove this file.
73788
73789 2005-06-24  Derek Price  <derek@ximbiot.com>
73790         and Bruno Haible  <bruno@clisp.org>
73791
73792         Remove stat module & update lstat.
73793         * lib/stat.c: Remove this file...
73794         (slash_aware_lstat): ...moving this content and its support...
73795         * lib/lstat.c (rpl_lstat): ...into here.
73796         * lib/lstat.h: New file.
73797
73798 2005-06-24  Derek Price  <derek@ximbiot.com>
73799         and Bruno Haible  <bruno@clisp.org>
73800
73801         Remove stat module & update lstat.
73802         * config/srclist.txt (libc sources): Remove stat.
73803
73804 2005-06-24  Derek Price  <derek@ximbiot.com>
73805         and Bruno Haible  <bruno@clisp.org>
73806
73807         Remove stat module & update lstat.
73808         * MODULES.html.sh (stat): Remove.
73809         * MODULES.html: Regenerated.
73810         * modules/lstat (Description): Correct function name.
73811         (Files): Add "lstat.h".
73812         (Depends-on): Remove stat, add xalloc, stat-macros.
73813         * modules/stat: Remove this file.
73814         (Include): Add "lstat.h", remove <sys/stat.h>.
73815
73816 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73819         (ranged_convert): Don't save conversion in a temporary struct.
73820         This causes a warning with GCC 4.0.0, and anyway in the typical
73821         case it's not worth the extra 100 bytes or so of code.
73822         (ranged_convert, __mktime_internal): When calling a function via a
73823         pointer P, use P () rather than (*P) (), as we now assume C89 or
73824         better.
73825
73826 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73829         "who -r" failed to give output.  Problem reported by Tim Waugh.
73830
73831         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73832         (xcalloc): Use it to avoid needless tests.
73833         Problem reported by Jim Meyering.
73834
73835 2005-06-20  Derek Price  <derek@ximbiot.com>
73836
73837         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73838         unnecessary for Autoconfs > 2.59c.
73839
73840 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73841
73842         * lib/argp.h (__option_is_short): Check upper limit of
73843         __key. Isprint() requires its argument to have the value
73844         of an unsigned char or EOF.
73845
73846 2005-06-16  Jim Meyering  <jim@meyering.net>
73847
73848         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73849         when either N or S is zero.
73850
73851 2005-06-16  Derek Price  <derek@ximbiot.com>
73852
73853         * m4/bison.m4: Declare YACC & YFLAGS precious.
73854
73855 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73858         multibyte string or pattern, fall back on unibyte matching.
73859         Problem reported by James Youngman.
73860
73861 2005-06-08  Bruno Haible  <bruno@clisp.org>
73862
73863         * modules/csharpcomp: New file.
73864         * MODULES.html.sh (C#): Add csharpcomp.
73865
73866 2005-06-08  Bruno Haible  <bruno@clisp.org>
73867
73868         * m4/csharpcomp.m4: New file, from GNU gettext.
73869
73870 2005-06-08  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/csharpcomp.h: New file, from GNU gettext.
73873         * lib/csharpcomp.c: New file, from GNU gettext.
73874         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73875
73876 2005-06-08  Bruno Haible  <bruno@clisp.org>
73877
73878         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73879         warning on mingw.
73880
73881 2005-06-07  Derek Price  <derek@ximbiot.com>
73882
73883         Sync from CVS.
73884         * lib/glob_.h: Indent nested #ifdef.
73885
73886 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         Sync from coreutils.
73889         Use "file name" when talking about file names, instead of "filename"
73890         or "path", as per the GNU coding standards.
73891         * lib/mkdir-p.c: Renamed from makepath.c.
73892         (make_dir_parents): Renamed from make_path.  All callers changed.
73893         * lib/mkdir-p.h: Likewise.  All includers changed.
73894         * lib/filenamecat.c: Renamed from path-concat.c.
73895         (file_name_concat): Renamed from path_concat.  All callers changed.
73896         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73897         * lib/filenamecat.h: Likewise.  All includers changed.
73898         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73899         in comments or local variable names.
73900         * lib/basename.c: Likewise.
73901         * lib/canonicalize.c, canonicalize.h: Likewise.
73902         * lib/dirname.c, dirname.h: Likewise.
73903         * lib/euidaccess.c: Likewise.
73904         * lib/exclude.c: Likewise
73905         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73906         * lib/fsusage.c, fsuage.h: Likewise.
73907         * lib/fts.c, fts_.h: Likewise.
73908         * lib/getcwd.c: Likewise.
73909         * lib/getloadavg.c: Likewise.
73910         * lib/mkstemp.c: Likewise.
73911         * lib/mountlist.c, mountlist.h: Likewise.
73912         * lib/openat.c, openat.h: Likewise.
73913         * lib/readlink-stub.c: Likewise.
73914         * lib/readutmp.c, readutmp.h: Likewise.
73915         * lib/rename.c: Likewise.
73916         * lib/rmdir.c: Likewise.
73917         * lib/same.c: Likewise.
73918         * lib/savedir.c: Likewise.
73919         * lib/stripslash.c: Likewise.
73920         * lib/tempname.c: Likewise.
73921         * lib/xreadlink.c: Likewise.
73922         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73923         All uses changed.
73924         * lib/exclude.h: Likewise.
73925
73926         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73927         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73928         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73929         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73930         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73931         files have been getting away with it for years (MORE/BSD 4.3
73932         is extinct now).
73933         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73934         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73935
73936         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73937         Define to 256, not 255, as per modern POSIX.
73938
73939 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73940
73941         Sync from coreutils.
73942         Use "file name" when talking about file names, instead of "filename"
73943         or "path", as per the GNU coding standards.
73944         * MODULES.html.sh: mkdir-p renamed from makepath.
73945         filenamecat renamed from path-concat.
73946         * modules/filenamecat: Renamed from modules/path-concat.
73947         (Files): filenamecat.h and filenamecat.c renamed from
73948         path-concat.h and path-concat.c.
73949         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73950         (Include): filenamecat.h, not path-concat.h.
73951         * modules/mkdir-p: Renamed from modules/makepath.
73952         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73953         makepath.c.
73954         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73955         (Include): mkdir-p.h, not makepath.h.
73956
73957 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         Sync from coreutils.
73960         * m4/mkdir-p.m4: Renamed from makepath.m4.
73961         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73962         Rename files from makepath.c to mkdir-p.c, and from
73963         makepath.h to mkdir-p.h.
73964         * m4/filenamecat.m4: Renamed from path-concat.m4.
73965         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73966         Rename files from path-concat.c to filenamecat.c,
73967         and from path-concat.h to filenamecat.h.
73968         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73969         "file name" in local variables or comments.
73970         * m4/rename.m4: Likewise.
73971
73972 2005-06-01  Bruno Haible  <bruno@clisp.org>
73973
73974         * modules/csharpexec: New file.
73975         * MODULES.html.sh (C#): New section.
73976
73977 2005-06-01  Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/csharp.m4: New file, from GNU gettext.
73980         * m4/csharpexec.m4: New file, from GNU gettext.
73981
73982 2005-06-01  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/csharpexec.h: New file, from GNU gettext.
73985         * lib/csharpexec.c: New file, from GNU gettext.
73986         * lib/csharpexec.sh.in: New file, from GNU gettext.
73987
73988 2005-05-31  Derek Price  <derek@ximbiot.com>
73989             Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         Sync from cvs.
73992         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73993
73994 2005-05-31  Derek Price  <derek@ximbiot.com>
73995             Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         Sync from cvs.
73998         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73999
74000 2005-05-29  Derek Price  <derek@ximbiot.com>
74001
74002         * config/srclist.txt (glob_.h, glob.c): Add these files.
74003
74004 2005-05-29  Derek Price  <derek@ximbiot.com>
74005
74006         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74007         * modules/glob: New file.
74008         * modules/getlogin_r: Add link to POSIX spec in description.
74009
74010 2005-05-29  Derek Price  <derek@ximbiot.com>
74011             Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         * m4/glob.m4: New file.
74014
74015 2005-05-29  Derek Price  <derek@ximbiot.com>
74016             Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         * lib/glob_.h, lib/glob.c: New files.
74019
74020 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74023         * modules/fts-lgpl (Depends-on): Remove gettext.
74024
74025 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74028         and don't require gt_INTTYPES_PRI.
74029
74030 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74033
74034         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74035         the configuration hassle isn't worth it.
74036         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74037         (LONGEST_MODIFIER, PRIuMAX): Remove.
74038
74039 2005-05-27  Bruno Haible  <bruno@clisp.org>
74040
74041         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74042
74043 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74046         _POSIX_PTHREAD_SEMANTICS for Solaris.
74047
74048 2005-05-25  Derek Price  <derek@ximbiot.com>
74049
74050         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74051
74052 2005-05-25  Derek Price  <derek@ximbiot.com>
74053             Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74056         * lib/getlogin_r.c, getlogin_r.h: New files.
74057
74058 2005-05-25  Bruno Haible  <bruno@clisp.org>
74059             Derek Price  <derek@ximbiot.com>
74060
74061         * lib/getlogin_r.h: Simplify API documentation.
74062
74063 2005-05-23  Derek Price  <derek@ximbiot.com>
74064
74065         * modules/minmax (Files): Add m4/minmax.m4.
74066         (configure.ac): Add gl_MINMAX.
74067
74068 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74071         so that unistd-safer.h (GPL'ed code) need not be included.
74072
74073 2005-05-22  Bruno Haible  <bruno@clisp.org>
74074
74075         * m4/minmax.m4: New file.
74076         Based on a patch by Derek Price <derek@ximbiot.com>.
74077
74078 2005-05-22  Bruno Haible  <bruno@clisp.org>
74079
74080         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74081         (INT64_MIN): Fix definition.
74082         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74083
74084         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74085         NEED_SIGNED_INT_TYPES.
74086
74087         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74088         HAVE_SYSTEM_INTTYPES.
74089
74090 2005-05-22  Bruno Haible  <bruno@clisp.org>
74091
74092         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74093         Also include <sys/param.h> if it defines MIN, MAX.
74094         Based on a patch by Derek Price <derek@ximbiot.com>.
74095
74096 2005-05-21  Jim Meyering  <jim@meyering.net>
74097
74098         * modules/fts (Files): Add m4/inttypes-pri.m4.
74099         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74100
74101 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         New fts module.
74104         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74105         (setup_dir, free_dir): New functions.
74106         (enter_dir, leave_dir): Define trivial
74107         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74108         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74109         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74110         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74111         Move to fts-cycle.c.
74112         (fts_open): Use setup_dir.
74113         (fts_close): Use free_dir.
74114         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74115         This adds a label and some gotos, but the alternatives were messier.
74116         Check for memory allocation failure when entering a dir.
74117         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74118         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74119         (FTS): New member fts_cycle, that is a union that contains the
74120         old active_dir_ht and cycle_state.  All uses changed to mention
74121         fts_cycle.ht and fts_cycle.state.
74122         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74123         fts.c, with the following changes:
74124         (setup_dir, free_dir): New functions.
74125         (enter_dir): Now returns bool.  Return true if successful, false
74126         if memory exhausted.  All callers changed.
74127         Do not bother partly cleaning up on
74128         memory allocation failure; that is free_dir's job.
74129         However, free ad if hash_insert fails, to avoid memory leak.
74130         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74131         fts->fts_options to see which union member to use.
74132
74133 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74136         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74137
74138 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74141
74142 2005-05-20  Jim Meyering  <jim@meyering.net>
74143
74144         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74145         Now a macro, to pacify GCC.
74146
74147 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74148
74149         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74150         of -1.
74151
74152 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74153
74154         * lib/chown.c (rpl_chown): Return -1 on failure.
74155
74156 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74159         Don't check for stddef.h.
74160         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74161         don't use its results.
74162         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74163         since we include them unconditionally.  Don't require
74164         AM_STDBOOL_H, since stdbool is a prerequisite.
74165         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74166         since we assume C89 or better.
74167         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74168         as we don't use their results.
74169         Don't check for fchdir, memmove, memset, strrchr, as we use
74170         them unconditionally.
74171         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74172         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74173
74174 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74177         Include <stddef.h> unconditionally, since we assume C89 now.
74178         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74179         * lib/fts.c: Include fts_.h first, to check interface.
74180         Do not include intprops.h; no longer needed.
74181         Include cycle-check.h and hash.h, since fts_.h no longer does.
74182         Remove unnecessary casts of closedir to void.
74183         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74184         decide whether to decrement nlinks.
74185         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74186         (FTS): Use struct hash_table * instead of Hash_table, so that
74187         we no longer need to include hash.h here.
74188
74189 2005-05-18  Jim Meyering  <jim@meyering.net>
74190
74191         * modules/dirfd (License): Change to LGPL.  Most of the code
74192         is already in the public domain.
74193
74194 2005-05-18  Jim Meyering  <jim@meyering.net>
74195
74196         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74197         Reported by Yoann Vandoorselaere.
74198
74199 2005-05-17  Jim Meyering  <jim@meyering.net>
74200
74201         * m4/fts.m4: New file, from coreutils.
74202
74203 2005-05-17  Jim Meyering  <jim@meyering.net>
74204
74205         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74206
74207 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         Sync from coreutils.
74210         * m4/unlinkdir.m4: New file.
74211
74212 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         Sync from coreutils.
74215         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74216         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74217         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74218         White space changes only.
74219         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74220         special.
74221         * lib/yesno.c: Include getline.h, not ctype.h.
74222         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74223         Use getline to remove arbitrary restriction on response length.
74224
74225 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74226
74227         * config/srclist-update: Spell out "Street" in FSF postal
74228         mail address; this is the style the FSF seems to prefer.
74229
74230         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74231         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74232         this updates FSF postal mail address.
74233
74234         Sync from coreutils.
74235         * modules/unlinkdir: New file.
74236         * modules/yesno (Depends-on): Add getline.
74237         * MODULES.html.sh (File system functions): Add unlinkdir.
74238
74239 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74242         lib/strsep.h:
74243         Change the initial comment to refer to GPL, not LGPL.
74244         gnulib-tool will change it to LGPL as needed.
74245
74246         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74247         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74248         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74249         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74250         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74251         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74252         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74253         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74254         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74255         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74256         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74257         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74258         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74259         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74260         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74261         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74262         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74263         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74264         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74265         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74266         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74267         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74268         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74269         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74270         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74271         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74272         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74273         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74274         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74275         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74276         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74277         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74278         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74279         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74280         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74281         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74282         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74283         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74284         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74285         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74286         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74287         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74288         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74289         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74290         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74291         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74292         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74293         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74294         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74295         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74296         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74297         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74298         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74299         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74300         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74301         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74302         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74303         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74304         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74305         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74306         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74307         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74308         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74309         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74310         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74311         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74312         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74313         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74314         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74315         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74316         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74317         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74318         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74319         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74320         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74321         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74322         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74323         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74324         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74325         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74326         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74327         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74328         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74329         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74330         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74331         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74332         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74333         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74334         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74335         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74336         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74337         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74338         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74339         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74340         lib/yesno.c, lib/yesno.h:
74341         Update FSF postal mail address.
74342
74343 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74346         tests/test-memmem.c, tests/test-stpncpy.c:
74347         Update FSF postal mail address.
74348
74349 2005-05-13  Bruno Haible  <bruno@clisp.org>
74350
74351         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74352         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74353         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74354         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74355         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74356         Add support for 64-bit integers in the MSVC compiler.
74357
74358 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74359
74360         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74361
74362 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74363
74364         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74365
74366 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * doc/getdate.texi (General date syntax): Don't say that date
74369         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74370         Problem reported by Nic Ferrier.
74371
74372 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74373
74374         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74375         specified in ai_socktype. Fix invalid ai_protocol
74376         check. ai_protocol is usually set to 0 or depending on
74377         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74378         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74379         ai_socktype / ai_protocol in the returned addrinfo structure.
74380
74381 2005-05-10  Simon Josefsson  <jas@extundo.com>
74382
74383         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74384         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74385
74386 2005-05-10  Karl Berry  <karl@gnu.org>
74387
74388         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74389         (from http://www.gnu.org/licenses).
74390         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74391         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74392         fdl.texi suffices.
74393
74394 2005-05-10  Karl Berry  <karl@gnu.org>
74395
74396         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74397         (COPYING.DOC): remove.
74398
74399         * config/srclist-update: new FSF address.
74400
74401 2005-05-10  Derek Price  <derek@ximbiot.com>
74402
74403         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74404         possible.
74405
74406 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74407             Bruno Haible  <bruno@clisp.org>
74408
74409         * modules/inet_ntop: New file.
74410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74411         inet_ntop.
74412
74413 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74414             Bruno Haible  <bruno@clisp.org>
74415
74416         * m4/inet_ntop.m4: New file.
74417
74418 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74419             Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/inet_ntop.h: New file.
74422         * lib/inet_ntop.c: New file, from glibc with modifications.
74423
74424 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * modules/time_r (License): Change to LGPL.
74427         * modules/extensions (License): Change to LGPL.  Actually,
74428         the license is more permissive than that, but currently gnulib-tool
74429         doesn't know how to handle more-permissive licenses.
74430
74431         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74432         Problem reported by Dave Love.
74433
74434 2005-05-08  Jim Meyering  <jim@meyering.net>
74435
74436         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74437         blank.
74438
74439 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * modules/argmatch (Depends-on): Add stdbool.
74442         * modules/backupfile (Depends-on): Likewise.
74443         * modules/chdir-long (Depends-on): Likewise.
74444         * modules/closeout (Depends-on): Likewise.
74445         * modules/cycle-check (Depends-on): Likewise.
74446         * modules/dirname (Depends-on): Likewise.
74447         * modules/fnmatch (Depends-on): Likewise.
74448         * modules/fsusage (Depends-on): Likewise.
74449         * modules/fwriteerror (Depends-on): Likewise.
74450         * modules/getcwd (Depends-on): Likewise.
74451         * modules/getloadavg (Depends-on): Likewise.
74452         * modules/hard-locale (Depends-on): Likewise.
74453         * modules/makepath (Depends-on): Likewise.
74454         * modules/mountlist (Depends-on): Likewise.
74455         * modules/nanosleep (Depends-on): Likewise.
74456         * modules/posixtm (Depends-on): Likewise.
74457         * modules/quotearg (Depends-on): Likewise.
74458         * modules/readtokens (Depends-on): Likewise.
74459         * modules/readtokens0 (Depends-on): Likewise.
74460         * modules/readutmp (Depends-on): Likewise.
74461         * modules/save-cwd (Depends-on): Likewise.
74462         * modules/strftime (Depends-on): Likewise.
74463         * modules/userspec (Depends-on): Likewise.
74464         * modules/utimecmp (Depends-on): Likewise.
74465         * modules/xgetcwd (Depends-on): Likewise.
74466         * modules/xnanosleep (Depends-on): Likewise.
74467         * modules/xstrtod (Depends-on): Likewise.
74468         * modules/yesno (Depends-on): Likewise.
74469
74470 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74473         needless checks.
74474
74475 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         Merge from coreutils.  Among other things,
74478         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74479         * lib/fd-safer.c: New file.
74480         * lib/fcntl-safer.h, open-safer.c: Remove.
74481         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74482         * lib/dup-safer.c: Include unistd-safer.h first.
74483         Don't include errno.h.
74484         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74485         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74486         * lib/file-type.c: Rely on file-type.h change.
74487         * lib/getloadavg.c: Include unistd-safer.h.
74488         (getloadavg): Use safer open.
74489         * lib/getusershell.c: Include "stdio-safer.h".
74490         (getusershell): Use safer fopen.
74491         * lib/long-options.c (long_options): Use NULL rather than 0.
74492         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74493         'free'.
74494         * lib/modechange.c: Likewise.
74495         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74496         (MODE_DONE): New constant.
74497         (struct mode_change): Remove 'next' member.
74498         (make_node_op_equals): New function; like the old one of the
74499         same name, except it allocates an array.
74500         (mode_compile, mode_create_from_ref): Use it.
74501         (mode_compile): Allocate result as an array, not a linked list.
74502         Parse octal string ourself, so that we catch mistakes like "+0".
74503         (mode_adjust): Arg is an array, not a linked list.
74504         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74505         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74506         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74507         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74508         Remove.  This is now stat-macros.h's job.
74509         (talloc): Remove.  All callers replaced by xalloc, so that
74510         our invokers don't have to worry about reporting memory failures.
74511         (make_node_op_equals): Remove.
74512         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74513         New constants.
74514         (struct mode_change): Moved here from modechange.h.
74515         (mode_append_entry): Remove.
74516         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74517         apps to have incorrect behavior.  Use simpler algorithm for head
74518         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74519         Detect more invalid usages rather than having somewhat-random behavior.
74520         Don't insert an "a=" action, as that leads to incorrect behavior.
74521         (mode_compile, mode_create_from_ref): Return NULL on error instead
74522         of an enum, since now there's only one way to have an error.  All
74523         callers changed.
74524         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74525         at the correct time.  Simplify calculation of "+u" and its ilk.
74526         Don't mishandle "+X".
74527         (mode_free): Remove "register" and localize decls.
74528         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74529         (struct mode_change): Move to modechange.c; callers don't
74530         need to see this stuff.
74531         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74532         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74533         (mode_change, mode_adjust): Reflect the new signatures noted above.
74534         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74535         that might redefine system include files.
74536         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74537         (my_usleep): Use NULL rather than (void *) 0.
74538         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74539         Use siginterrupt to specify that system calls should be interrupted.
74540         (rpl_nanosleep): Move initialization of suspended closer to call of
74541         my_usleep.
74542         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74543         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74544         (desirable_utmp_entry): New function.
74545         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74546         using x2nrealloc, to simplify logic.
74547         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74548         size calculation.  Do not assume utmp file is a regular file.
74549         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74550         (READ_UTMP_CHECK_PIDS): New constant.
74551         * lib/save-cwd.c: Include unistd-safer.h.
74552         (save_cwd): Use fd_safer.
74553         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74554         [!_LIBC] Include "stat-macros.h" instead.
74555         * lib/unistd-safer.h (fd_safer): New decl.
74556
74557 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * modules/getloadavg (Depends-on): Add unistd-safer.
74560         * modules/getusershell (Depends-on): Add stdio-safer.
74561         * modules/lstat (Depends-on): Remove xalloc.
74562         * modules/mkstemp (Depends-on): Add stat-macros.
74563         * modules/modechange (Depends-on): Remove xstrtol.
74564         Add stat-macros, xalloc.
74565         * modules/save-cwd (Depends-on): Add unistd-safer.
74566         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74567         * modules/unistd-safer (Files): Add lib/fd-safer.c
74568         (Makefile.am): Remove lib_SOURCES.
74569
74570         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74571         Remove fcntl-safer; unistd-safer supersedes it.
74572
74573 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74576         AC_HEADER_STAT.
74577         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74578         (gl_PREREQ_CHOWN): Remove.
74579         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74580         it.  Don't require AC_HEADER_STAT.
74581         (gl_PREREQ_LSTAT): Remove.
74582         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74583         Don't require AC_HEADER_STAT.
74584         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74585         (gl_PREREQ_RMDIR): Remove.
74586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74587         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74588         the stat-macros module a prerequisite.
74589         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74590         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74591         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74592         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74593         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74594         variable names.
74595         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74596         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74597         variable prefixes.
74598         * m4/fcntl-safer.m4: Remove.
74599         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74600         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74601         Invoke gl_PREREQ_FD_SAFER.
74602         (gl_PREREQ_FD_SAFER): New macro.
74603         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74604         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74605         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74606         Remove duplicate call to AC_LIBOBJ(readutmp).
74607         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74608
74609         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74610         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74611
74612 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * MODULES.html.sh (Misc): Add byteswap.
74615
74616 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74617
74618         * modules/getcwd (Depends-on): Add extensions.
74619         * modules/openat (Depends-on): Likewise.
74620
74621 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74622
74623         * modules/byteswap: New file.
74624
74625 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74626
74627         * m4/byteswap.m4: New file.
74628
74629 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74630
74631         * lib/byteswap_.h: New file.
74632
74633 2005-04-25  Karl Berry  <karl@gnu.org>
74634
74635         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74636
74637 2005-04-25  Albert Chin  <china@thewrittenword.com>
74638
74639         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74640         Toolkit C bug.
74641
74642 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74643
74644         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74645         (func_ln_if_changed): Remove forcibly for no error message
74646         in case file does not exist.
74647
74648 2005-04-19  Simon Josefsson  <jas@extundo.com>
74649
74650         * gnulib-tool (Options): Make --symlink mean --symbolic.
74651
74652 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74653
74654         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74655
74656 2005-04-16  Simon Josefsson  <jas@extundo.com>
74657
74658         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74659
74660 2005-04-15  Simon Josefsson  <jas@extundo.com>
74661
74662         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74663
74664 2005-04-15  Simon Josefsson  <jas@extundo.com>
74665
74666         * gnulib-tool: Rename --symlink to --symbolic.
74667
74668 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74669
74670         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74671         symbolic links to files instead of copying/moving.  Add --aux-dir,
74672         specifying directory relative --dir where auxiliary build tools
74673         are placed.
74674
74675 2005-04-14  Bruno Haible  <bruno@clisp.org>
74676
74677         * modules/allocsa (License): Change to LGPL.
74678         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74679
74680 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74683         that "UTC +1 second" continues to work.  Problem reported
74684         by Dmitry V. Levin.
74685         (relunit_snumber): New rule.
74686         (relunit): Use it.
74687
74688 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         * lib/getdate.y (universal_time_zone_table): New constant.
74691         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74692         universal_time_zone_table.
74693         (lookup_zone): Prefer universal_time_zone_table to
74694         local_time_zone_table, so that "GMT" time stamps are allowed in
74695         London during the summer.  Problem reported by Ian Abbott.
74696
74697 2005-04-12  Jim Meyering  <jim@meyering.net>
74698
74699         * lib/human.c (humblock): Set *options even when returning due to
74700         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74701         warning from gcc-4.
74702
74703 2005-04-09  Jim Meyering  <jim@meyering.net>
74704
74705         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74706         -Wuninitialized: initialize tm0.tm_year.
74707
74708 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74711         count, since there's no maximum.  All uses changed.
74712         Add member dsts_seen.
74713         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74714         not being INT_MAX.
74715         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74716         Use pc_rels_seen to decide whther a date is absolute.
74717
74718         * lib/getdate.y (number): Don't overwrite year.
74719         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74720         check.
74721
74722 2005-04-02  Simon Josefsson  <jas@extundo.com>
74723
74724         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74725         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74726
74727 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74728
74729         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74730         where no absolute path name can be longer than PATH_MAX.
74731
74732 2005-03-27  Jim Meyering  <jim@meyering.net>
74733
74734         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74735
74736 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74739         "one's complement" -> "ones' complement" in comment, as per Knuth.
74740         "value of type" -> "type or expression" in comment.
74741         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74742
74743 2005-03-26  Jim Meyering  <jim@meyering.net>
74744
74745         Comment nits.
74746         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74747         Correct typos: s/or/of/.
74748
74749 2005-03-26  Jim Meyering  <jim@meyering.net>
74750
74751         * modules/check-include-files: Move to ../ and rename to...
74752         * check-module: ...this.
74753
74754 2005-03-25  Jim Meyering  <jim@meyering.net>
74755
74756         * modules/xvasprintf (Files): Add xalloc.h.
74757
74758 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * modules/gettext (Files): config/config.rpath ->
74761         build-aux/config.rpath
74762         * modules/iconv (Files): Likewise.
74763         Problem reported by Oskar Liljeblad.
74764
74765 2005-03-23  Jim Meyering  <jim@meyering.net>
74766
74767         * modules/check-include-files: New script to check for
74768         missing dependencies, multiple includes, etc.
74769
74770         * modules/c-strtold (Depends-on): Add xalloc.
74771         * modules/c-strtod (Depends-on): Add xalloc.
74772         * modules/hash (Depends-on): Add xalloc.
74773         (Files): Remove lib/xalloc.h.
74774
74775         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74776         * modules/userspec (Files): Add lib/inttostr.h.
74777
74778 2005-03-23  Jim Meyering  <jim@meyering.net>
74779
74780         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74781
74782 2005-03-22  Jim Meyering  <jim@meyering.net>
74783
74784         * modules/stat-macros: New module.
74785         * modules/canonicalize, modules/euidaccess, modules/file-type,
74786         * modules/filemode, modules/lchown, modules/makepath,
74787         * modules/rmdir, modules/stat: Depend on new stat-macros module
74788         rather than listing lib/stat-macros.h manually.
74789         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74790
74791 2005-03-22  Jim Meyering  <jim@meyering.net>
74792
74793         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74794
74795 2005-03-22  Bruno Haible  <bruno@clisp.org>
74796
74797         * config/srclist.txt: Replace target directory 'config' with
74798         'build-aux'.
74799         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74800         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74801         ../build-aux/.
74802
74803 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * modules/chdir-long (Depends-on): Add mempcpy.
74806
74807         * modules/acl, modules/backupfile, modules/c-strtod,
74808         modules/c-strtold, modules/canon-host, modules/canonicalize,
74809         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74810         modules/exclude, modules/exitfail, modules/file-type,
74811         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74812         modules/getdate, modules/getline, modules/getpagesize,
74813         modules/getpass, modules/getugroups, modules/group-member,
74814         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74815         modules/inttostr, modules/long-options, modules/makepath,
74816         modules/md5, modules/memcasecmp, modules/memcoll,
74817         modules/modechange, modules/mountlist, modules/path-concat,
74818         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74819         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74820         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74821         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74822         modules/strftime, modules/strndup, modules/strverscmp,
74823         modules/timespec, modules/unlocked-io, modules/userspec,
74824         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74825         modules/yesno:
74826         Remove lib_SOURCES line from Makefile.am section, as this is now
74827         done automatically by the corresponding Autoconf macro.
74828
74829 2005-03-21  Jim Meyering  <jim@meyering.net>
74830
74831         Changes imported from coreutils.
74832
74833         * lib/cycle-check.c: Don't include xalloc.h.
74834
74835         * lib/path-concat.c: Don't include assert.h.
74836         (path_concat): Remove assertion that would have triggered
74837         for ABASE starting with more than one slash.
74838         Reported by Andreas Schwab.
74839
74840         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74841         properly when ABASE is an absolute file name.
74842         Correct the description of this function.
74843         Include <assert.h>.
74844         Add an assertion and a test driver.
74845         This fixes a bug introduced on 2004-07-02.
74846         Andreas Schwab reported the resulting failure of cp --parents:
74847         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74848
74849 2005-03-21  Jim Meyering  <jim@meyering.net>
74850
74851         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74852         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74853
74854 2005-03-21  Jim Meyering  <jim@meyering.net>
74855         and  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74858         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74859         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74860         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74861         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74862         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74863         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74864         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74865         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74866         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74867         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74868         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74869         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74870         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74871         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74872         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74873         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74874         for these modules.
74875
74876 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74879         (which shouldn't happen), generate nothing instead of returning 0
74880         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74881
74882 2005-03-16  Bruno Haible  <bruno@clisp.org>
74883
74884         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74885         HAVE_LONGLONG_64BIT.
74886
74887 2005-03-16  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74890         HAVE_LONGLONG_64BIT.
74891
74892 2005-03-16  Bruno Haible  <bruno@clisp.org>
74893
74894         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74895         HAVE_LONGLONG_64BIT.
74896
74897 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74900         reliably distinguish strftime failure from empty output on POSIX
74901         hosts.
74902
74903 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74906         (iconv_string): Don't guess a size-zero buffer, as that might cause
74907         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74908         result would be 'too large', where 'too large' is (heuristically)
74909         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74910         overflow concerns.  This will prevent some unwanted malloc failures
74911         when the inputs are very large.
74912
74913 2005-03-15  Karl Berry  <karl@gnu.org>
74914
74915         * config/srclist.txt (config.rpath): from gettext.
74916         * config/config.rpath: update.
74917
74918 2005-03-15  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74921         to 'negate'.
74922
74923         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74924         variable.
74925
74926         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74927         results.
74928
74929 2005-03-14  Simon Josefsson  <jas@extundo.com>
74930
74931         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74932         <fx@gnu.org>.
74933
74934 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74937         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74938         intprops.h.
74939         * lib/strtol.c: Likewise.
74940
74941 2005-03-14  Jim Meyering  <jim@meyering.net>
74942
74943         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74944         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74945         to be nonzero so that we (and caller) can detect the difference
74946         between a valid zero-length expansion and an error return, even
74947         when the underlying strftime fails before writing anything into
74948         that location.
74949
74950 2005-03-14  Bruno Haible  <bruno@clisp.org>
74951
74952         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74953         Update from GNU gettext 0.14.3.
74954
74955 2005-03-10  Jim Meyering  <jim@meyering.net>
74956
74957         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74958
74959 2005-03-10  Jim Meyering  <jim@meyering.net>
74960
74961         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74962         so that this module works on systems without fchdir.
74963
74964 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         Factor int-properties macros into a single file, except for
74967         glibc-related files.
74968         * lib/intprops.h: New file.
74969         * lib/getloadavg.c: Include it instead of limits.h.
74970         (INT_STRLEN_BOUND): Remove.
74971         * lib/human.c: Include intprops.h.
74972         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74973         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74974         302/1000.
74975         * lib/inttostr.h: Include intprops.h instead of limits.h.
74976         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74977         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74978         for consistency with intprops.h.
74979         (time_t_is_integer, twos_complement_arithmetic): Use them.
74980         * lib/sig2str.h: Include <signal.h>, intprops.h.
74981         (INT_STRLEN_BOUND): Remove.
74982         * lib/strftime.c (TYPE_SIGNED): Remove.
74983         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74984         * lib/strtol.c: Adjust comments to match intprops.h.
74985         * lib/userspec.c: Include intprops.h.
74986         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74987         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74988         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74989         instead of rolling our own expressions.
74990         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74991
74992         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74993         instead of int.
74994         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74995         the right thing even if adding 1900 would overflow.  Similarly
74996         for tm_mon + 1 and tm_yday + 1.
74997         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74998         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74999         (DO_SIGNED_NUMBER): New macro.
75000         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75001
75002 2005-03-07  Bruno Haible  <bruno@clisp.org>
75003
75004         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75005
75006 2005-03-07  Bruno Haible  <bruno@clisp.org>
75007
75008         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75009
75010 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75011
75012         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75013         (func_import): Only replace files via --import when they have actually
75014         changed.
75015
75016 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75017
75018         * m4/mmap-anon.m4: New file.
75019         * m4/pagealign_alloc.m4: New file.
75020
75021 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75022             Bruno Haible  <bruno@clisp.org>
75023
75024         * modules/pagealign_alloc: New file.
75025         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75026
75027 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75028             Bruno Haible  <bruno@clisp.org>
75029
75030         * lib/pagealign_alloc.h: New file.
75031         * lib/pagealign_alloc.c: New file.
75032
75033 2005-03-03  Bruno Haible  <bruno@clisp.org>
75034
75035         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75036         Use an all-permissive copyright notice, recommended by RMS.
75037
75038 2005-03-02  Bruno Haible  <bruno@clisp.org>
75039
75040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75041         of AIX, the replacement has to be done only after <string.h> is
75042         included, therefore not in config.h. stpncpy.h does the replacement,
75043         and stpncpy.c uses it.
75044
75045 2005-03-02  Bruno Haible  <bruno@clisp.org>
75046
75047         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75048         stpncpy.c uses it.
75049
75050 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75053         The workaround isn't strictly needed for POSIX conformance, and
75054         it's too much of a pain to configure and maintain.  We'll ask
75055         people to fix their kernels instead.
75056         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75057         (NANOSLEEP_BUG_WORKAROUND): Remove.
75058         (xnanosleep): Remove the workaround.
75059
75060 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75063         Reported by Derek Price.
75064         (Include): Add "timespec.h".
75065
75066         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75067
75068 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75071         to detect nanosleep bug.
75072
75073 2005-03-01  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75076
75077 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75078
75079         * modules/gethrxtime: New file.
75080         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75081         (Depends-on): Add gethrxtime.
75082         (configure.ac): Add gl_XNANOSLEEP.
75083         (Makefile.am): Remove lib_SOURCES line.
75084
75085 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75088         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75089
75090 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75093         * lib/timespec.h (gettime): Return void, since it always
75094         succeeds now.  All uses changed.
75095         * lib/gettime.c (gettime): Likewise.
75096         [HAVE_NANOTIME]: Prefer nanotime.
75097         Assume gettimeofday succeeds, as POSIX requires.
75098         Assime time () succeeds, since other code already does.
75099         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75100         (timespec_subtract): Remove.
75101         (NANOSLEEP_BUG_WORKAROUND): New constant.
75102         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75103         things considerably.  Use it only on GNU/Linux hosts, since the
75104         workaround shouldn't be needed elsewhere.
75105
75106 2005-02-24  Bruno Haible  <bruno@clisp.org>
75107
75108         * modules/gettext (Files): Add m4/glibc2.m4.
75109
75110 2005-02-24  Bruno Haible  <bruno@clisp.org>
75111
75112         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75113         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75114         * m4/progtest.m4:
75115         Update from GNU gettext 0.14.2.
75116         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75117
75118 2005-02-24  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75121         * lib/config.charset: Update from GNU gettext 0.14.2.
75122
75123 2005-02-24  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/gettext.h: Update from GNU gettext 0.14.2.
75126
75127 2005-02-23  Simon Josefsson  <jas@extundo.com>
75128
75129         * m4/iconvme.m4: New file.
75130
75131 2005-02-23  Jim Meyering  <jim@meyering.net>
75132
75133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75134         change.
75135         Thanks to Bruno Haible for catching it.
75136
75137 2005-02-22  Simon Josefsson  <jas@extundo.com>
75138
75139         * modules/iconvme: New file.
75140
75141         * MODULES.html.sh: Add iconvme.
75142
75143 2005-02-22  Simon Josefsson  <jas@extundo.com>
75144
75145         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75146
75147 2005-02-22  Simon Josefsson  <jas@extundo.com>
75148
75149         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75150
75151 2005-02-22  Jim Meyering  <jim@meyering.net>
75152
75153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75154         s/ifndef/ifdef/.
75155
75156 2005-02-20  Neil Conway  <neilc@samurai.com>
75157
75158         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75159         returned by OSX/Darwin if the specified buffer is not large
75160         enough for the hostname.
75161
75162 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75163
75164         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75165         pass it to _help, otherwise the latter coredumps trying to
75166         dereference state.root_argp.
75167
75168 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * modules/chdir-long (Depends-on): Add memrchr.
75171         * modules/memrchr (Files): Add lib/memrchr.h.
75172         (Include): "memrchr.h".
75173
75174 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75175
75176         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75177
75178 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * lib/memrchr.h: New file.
75181         * lib/chdir-long.c: Include it.
75182         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75183         Don't bother including stddef.h.
75184
75185 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75188         inclusion.
75189         Include <sys/types.h>, for dev_t.
75190         (ME_DUMMY, ME_REMOTE): Move from here....
75191         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75192         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75193         Dmitry V. Levin.
75194         Include mountlist.h first, to test the interface.
75195
75196 2005-01-29  Bruno Haible  <bruno@clisp.org>
75197
75198         * lib/progname.c (program_name): Initialize.
75199         Needed when linking statically on MacOS X.
75200
75201 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         Sync from coreutils.
75204         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75205         (Depends-on): Add c-strtod.
75206         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75207
75208 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         Sync from coreutils.
75211         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75212
75213         Remove files that are specific to coreutils.
75214         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75215
75216 2005-01-28  Bruno Haible  <bruno@clisp.org>
75217
75218         * modules/javacomp: New file.
75219         * MODULES.html.sh (Java): Add javacomp.
75220
75221 2005-01-28  Bruno Haible  <bruno@clisp.org>
75222
75223         * m4/javacomp.m4: New file, from GNU gettext.
75224
75225 2005-01-28  Bruno Haible  <bruno@clisp.org>
75226
75227         * lib/javacomp.sh.in: New file, from GNU gettext.
75228         * lib/javacomp.h: New file, from GNU gettext.
75229         * lib/javacomp.c: New file, from GNU gettext.
75230
75231 2005-01-26  Simon Josefsson  <jas@extundo.com>
75232
75233         * lib/gai_strerror.c: Use GPL in header.
75234
75235 2005-01-26  Bruno Haible  <bruno@clisp.org>
75236
75237         * modules/javaexec: New file.
75238         * MODULES.html.sh (Java): Add javaexec.
75239
75240 2005-01-26  Bruno Haible  <bruno@clisp.org>
75241
75242         * m4/javaexec.m4: New file, from GNU gettext.
75243
75244 2005-01-26  Bruno Haible  <bruno@clisp.org>
75245
75246         * lib/javaexec.sh.in: New file, from GNU gettext.
75247         * lib/javaexec.h: New file, from GNU gettext.
75248         * lib/javaexec.c: New file, from GNU gettext.
75249
75250 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75251
75252         * modules/lchown (Depends-on): Remove lchown.h
75253
75254 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75255
75256         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75257         must be defined if the header file was not found, in order
75258         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75259
75260 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75261
75262         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75263         initializers for struct pentry_state.
75264         (__argp_error): Check return value of __asprintf
75265         (__argp_failure): Translate error message
75266
75267         * lib/argp-parse.c: Removed braces around the expansion of N_()
75268
75269 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75272         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75273         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75274         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75275         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75276         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75277         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75278         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75279         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75280         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75281         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75282         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75283         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75284         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75285         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75286         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75287         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75288         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75289         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75290         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75291         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75292         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75293         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75294         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75295         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75296         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75297         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75298         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75299         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75300         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75301         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75302         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75303         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75304         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75305         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75306         Use an all-permissive copyright notice, recommended by RMS.
75307
75308 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * modules/chdir-long (Depends-on): Remove mempcpy.
75311
75312 2005-01-21  Jim Meyering  <jim@meyering.net>
75313
75314         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75315         same value as for Solaris 9.
75316
75317         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75318         component length.  This included changing the parameter to be
75319         of type `char *' rather than `char const *'.
75320         * lib/chdir-long.h (chdir_long): Update prototype.
75321
75322         * lib/openat.c (fdopendir, fstatat): New functions.
75323         * lib/openat.h: Include headers required for use of DIR and struct
75324         stat.
75325         [AT_SYMLINK_NOFOLLOW]: Define.
75326         (fdopendir, fstatat): Add prototypes.
75327
75328 2005-01-21  Bruno Haible  <bruno@clisp.org>
75329
75330         * modules/classpath: New file.
75331         * MODULES.html.sh (Java): Add classpath.
75332
75333 2005-01-21  Bruno Haible  <bruno@clisp.org>
75334
75335         * lib/classpath.h: New file, from GNU gettext.
75336         * lib/classpath.c: New file, from GNU gettext.
75337
75338 2005-01-20  Simon Josefsson  <jas@extundo.com>
75339
75340         * modules/version-etc-fsf: New file.
75341
75342 2005-01-20  Simon Josefsson  <jas@extundo.com>
75343
75344         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75345         * lib/version-etc.c: Remove version_etc_copyright.
75346         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75347         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75348
75349 2005-01-20  Simon Josefsson  <jas@extundo.com>
75350
75351         * lib/base64.h (isbase64): Add.
75352
75353         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75354         using a unsigned prototype, don't inline.
75355         (base64_decode): Use it.
75356
75357 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75360         it.
75361
75362 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         * lib/save-cwd.c (save_cwd): Remove code to support the case
75365         where fchdir is missing or flaky.
75366
75367 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75370
75371 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75374         AC_LIBSOURCES now does this.
75375         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75376         with new ullong_max module.
75377
75378 2005-01-19  Bruno Haible  <bruno@clisp.org>
75379
75380         * modules/sh-quote: New file.
75381         * MODULES.html.sh (Executing programs): Add sh-quote.
75382
75383 2005-01-19  Bruno Haible  <bruno@clisp.org>
75384
75385         * lib/sh-quote.h: New file, from GNU gettext.
75386         * lib/sh-quote.c: New file, from GNU gettext.
75387
75388 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         Merge from coreutils.
75391         * m4/ullong_max.m4: New file.
75392         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75393         (gl_MACROS): Assume localeconv exists.
75394
75395 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         Merge changes from coreutils, as described below in several
75398         changelogs dated today.
75399
75400         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75401         (O_DIRECTORY): Remove; not needed here, since "." must be
75402         a directory.  All uses removed.
75403         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75404         universal on Suns, and we also need to test for IRIX.
75405         Revamp code to use 'if' rather than '#if'.
75406         Avoid unnecessary comparison of cwd->desc to 0.
75407
75408         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75409         for known valid error numbers rather than observed invalid ones.
75410
75411 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * modules/ullong_max: New file.
75414
75415         * modules/chdir-long, modules/openat: New files.
75416         * modules/save-cwd (Depends-on): Depend on chdir-long.
75417         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75418
75419 2005-01-18  Jim Meyering  <jim@meyering.net>
75420
75421         Merge from coreutils.
75422         * m4/chdir-long.m4, m4/openat.m4: New files.
75423         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75424         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75425         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75426         is sane and DOES follow symlinks.  Besides, testing 20 different
75427         systems found no broken chown implementations.
75428         Prompted by a change in rsync's copy of this macro.
75429         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75430
75431         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75432
75433         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75434         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75435         NULL-means-set-to-current-time semantics.
75436         Remove temporary file immediately, rather than waiting
75437         for configure's at-exit trap code to do it.
75438
75439 2005-01-18  Jim Meyering  <jim@meyering.net>
75440
75441         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75442
75443         * lib/utimens.c (futimens): Account for the fact that futimes
75444         can also fail with errno == ENOSYS or errno == ENOENT.
75445         Patch from Dmitry V. Levin.
75446
75447         Change the name of the robust chdir function from chdir to chdir_long.
75448         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75449         (restore_cwd): Use chdir_long, not chdir.
75450         * lib/chdir-long.c: Renamed from chdir.c.
75451         * lib/chdir-long.h: Renamed from chdir.h.
75452         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75453         Hurd.
75454
75455 2005-01-18  Bruno Haible  <bruno@clisp.org>
75456
75457         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75458         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75459         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75460         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75461         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75462         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75463         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75464         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75465         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75466         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75467         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75468         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75469         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75470         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75471         Use an all-permissive copyright notice, recommended by RMS.
75472
75473 2005-01-18  Bob Proulx  <bob@proulx.com>
75474
75475         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75476         simplify offsetof() macro construct to avoid compile failure with
75477         native HP-UX 11.0 ANSI C compiler.
75478
75479 2005-01-17  Bruno Haible  <bruno@clisp.org>
75480
75481         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75482         redundant because stpncpy.m4 takes care of it.
75483
75484 2005-01-17  Bruno Haible  <bruno@clisp.org>
75485
75486         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75487
75488 2005-01-17  Bruno Haible  <bruno@clisp.org>
75489
75490         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75491         used.
75492
75493 2005-01-17  Bruno Haible  <bruno@clisp.org>
75494
75495         * lib/fwriteerror.h (fwriteerror): Change specification to include
75496         fclose.
75497         * lib/fwriteerror.c: Include <stdbool.h>.
75498         (fwriteerror): At the end, close the file stream. Record whether
75499         stdout was already closed.
75500
75501 2005-01-17  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/execute.c (environ): Declare if needed.
75504         * lib/pipe.c (environ): Likewise.
75505         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75506
75507 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75508
75509         * modules/argp: Depend on vsnprintf
75510
75511 2005-01-10  Jim Meyering  <jim@meyering.net>
75512
75513         * modules/closeout (Depends-on): Add atexit.
75514
75515 2005-01-06  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75518
75519 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75522         definitions to be after all include files, to avoid collisions.
75523         Problem reported by Bob Proulx.
75524
75525 2005-01-04  Jim Meyering  <jim@meyering.net>
75526
75527         Changes imported from coreutils.
75528         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75529         as the mkstemp template, use a temporary directory and an
75530         8.3-friendly template to avoid trouble on systems like DJGPP.
75531         Reported by Juan M. Guerrero via Stepan Kasal.
75532         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75533         close. Remove the temporary directory right away, rather than waiting
75534         for configure's at-exit trap code to do it.
75535         Suggestion from Stepan Kasal.
75536
75537 2005-01-01  Simon Josefsson  <jas@extundo.com>
75538
75539         * gnulib-tool: Print #include directives when --import'ing.
75540
75541 2004-12-28  Simon Josefsson  <jas@extundo.com>
75542
75543         * tests/test-base64.c: Include required header files.  Remove
75544         unused variables.
75545
75546 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * modules/error (Depends-on): Remove gettext.
75549
75550 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75553         not needed.  This removes a dependency on the gettext module.
75554         [defined _LIBC]: Do not include <libintl.h>; not needed.
75555
75556 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75559         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75560
75561 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75564         HAVE_DECL_STRTOLD.
75565
75566 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * modules/getdate (Depends-on): Remove alloca-opt.
75569
75570 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75573
75574 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * lib/argp-parse.c: Include <stddef.h>.
75577         (alignof, alignto): New macros.
75578         (parser_init): Don't assume that void * is aligned sufficiently
75579         for struct option.
75580
75581         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75582         need to extend the stack.
75583         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75584         large.
75585
75586 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75587
75588         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75589
75590 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75593         (2004-10-24) change.  Apparently this was a false alarm.
75594
75595         * modules/getdate: Depend on alloca-opt, not alloca.
75596
75597 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75600         Remove now-obsolete comment about AIX.
75601         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75602         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75603         (YYMAXDEPTH): New macro.
75604
75605 2004-12-18  Simon Josefsson  <jas@extundo.com>
75606
75607         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75608
75609 2004-12-18  Bruno Haible  <bruno@clisp.org>
75610
75611         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75612
75613 2004-12-18  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/fatal-signal.c (fatal_signals): Make non-const.
75616         (init_fatal_signals): New function.
75617         (uninstall_handlers, install_handlers): Ignore signals that were set to
75618         SIG_IGN.
75619         (at_fatal_signal): Call init_fatal_signals.
75620         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75621         SIG_IGN.
75622         Reported by Paul Eggert.
75623
75624 2004-12-18  Bruno Haible  <bruno@clisp.org>
75625
75626         * doc/alloca.texi: New file.
75627         * doc/alloca-opt.texi: New file.
75628
75629 2004-12-17  Jim Meyering  <jim@meyering.net>
75630
75631         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75632         Otherwise, install-sh could exit with improper exit status when
75633         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75634
75635 2004-12-16  Simon Josefsson  <jas@extundo.com>
75636
75637         * tests/test-base64.c: Add license.
75638
75639 2004-12-15  Stepan Kasal  <address@hidden>
75640
75641         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75642
75643 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * modules/getcwd (Files): Add m4/d-ino.m4.
75646         Suggested by Mark D. Baushke.
75647
75648 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * lib/getdate.y (textint): New member "negative".
75651         (time_zone_hhmm): New function.
75652         Expect 14 shift-reduce conflicts, not 13.
75653         (o_colon_minutes): New rule.
75654         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75655         (yylex): Set the "negative" member of signed numbers.
75656
75657 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * doc/getdate.texi (Time of day items, Time zone items):
75660         Describe new formats +00:00, UTC+00:00.
75661
75662 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75665         spurious "-l"s.  Problem reported by Stepan Kasal.
75666
75667 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75670         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75671
75672 2004-12-04  Simon Josefsson  <jas@extundo.com>
75673
75674         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75675         Vandoorselaere <yoann@prelude-ids.org>.
75676
75677 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         Changes imported from coreutils.
75680         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75681         exist.
75682         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75683
75684 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Changes imported from coreutils.
75687         * lib/hard-locale.c: Assume <locale.h> exists.
75688         Include "strdup.h".
75689         (GLIBC_VERSION): New macro.
75690         (hard_locale): Assume setlocale exists.
75691         Rewrite to avoid #ifdef.
75692         Use strdup rather than malloc + strcpy.
75693         * lib/human.c: Assume <locale.h> exists.
75694         (human_readable): Assume localeconv exists.
75695
75696 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         * modules/hard-locale (Depends-on): Add strdup.
75699
75700 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75701
75702         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75703         convert T2, not T.  (Imported from libc.)
75704
75705 2004-11-30  Simon Josefsson  <jas@extundo.com>
75706
75707         * modules/restrict (License): Change to LGPL.
75708
75709 2004-11-30  Simon Josefsson  <jas@extundo.com>
75710
75711         * m4/restrict.m4: Add copyright and copying conditions.
75712
75713 2004-11-30  Simon Josefsson  <jas@extundo.com>
75714
75715         * m4/base64.m4: New file.
75716
75717 2004-11-30  Simon Josefsson  <jas@extundo.com>
75718
75719         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75720         base64.
75721
75722         * tests/test-base64.c: New file.
75723
75724         * modules/base64: New file.
75725
75726 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75729         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75730
75731         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75732
75733 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75736         (__getcwd.c): Don't restore errno; glibc doesn't.
75737         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75738         first, falling back to our code only if its results look suspicious.
75739         Ensure that the resulting buffer is only as large as necessary.
75740
75741         * lib/readutmp.c: Include readutmp.h first.
75742         Include <errno.h>, since readutmp.h no longer does that.
75743         * lib/readutmp.h: Don't include <errno.h>,
75744         <sys/param.h>, <time.h>; not needed to establish interface.
75745         (errno): Remove decl.
75746         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75747         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75748         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75749
75750 2004-11-28  Simon Josefsson  <jas@extundo.com>
75751
75752         * lib/base64.h, base64.c: New file.
75753
75754 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75757
75758 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75761         (Depends-on): Remove pathmax, same.  Add mempcpy.
75762         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75763         (Makefile.am): Append getcwd.h to lib_SOURCES.
75764         (Include): Add getcwd.h.
75765         (Maintainer): Change from Jim Meyering to "all, glibc",
75766         since getdate now uses intended-for-glibc code.
75767         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75768         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75769
75770 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75773         HP's ANSI C compiler.
75774         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75775         Declaring int functions causes warnings on some modern systems and
75776         shouldn't be needed to compile on ancient ones.
75777         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75778         defined.
75779
75780         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75781         with the following changes.
75782         (__set_errno): Parenthesize properly.
75783         Include <stdbool.h>.
75784         (MIN, MAX, MATCHING_INO): New macros.
75785         (__getcwd): Define with prototype, not K&R form.
75786         Use heuristics to allocate default buffer on stack if possible.
75787         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75788         behavior, and to avoid the PATH_MAX limit when computing
75789         ../../../../...
75790         Use MATCHING_INO to compare inode number to file.
75791         Check for arithmetic overflow in size calculations.
75792         Fix bug in reallocation of dot array that caused getcwd to fail
75793         on directories nested deeper than 75.
75794         Be more careful about saving errno on error.
75795         Do not use realloc; use only free+malloc, as this is a bit
75796         more flexible and avoids a needless copy operation.
75797         Do not inspect st_dev and st_ino for symbolic links; POSIX
75798         doesn't specify the latter.
75799         Check for closedir errors.
75800         Avoid needless casts.
75801         Use "#ifdef weak_alias" around weak_alias, to be like other
75802         glibc code.
75803         The following changes to getcwd.c have effect only when used in
75804         gnulib; they have no effect inside glibc proper.
75805         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75806         as alloca isn't used.
75807         (alloca, __alloca): Likewise.
75808         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75809         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75810         unconditionally, as gnulib assumes C89 or better.
75811         Do not include <sys/param.h>.
75812         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75813         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75814         better.
75815         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75816         Include <dirent.h> in a way that is compatible with modern Autoconf.
75817         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75818         New macros, if not already defined.
75819         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75820         Use "_LIBC", not "defined _LIBC", for consistency.
75821         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75822         a mempcpy module.
75823         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75824         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75825         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75826         credit only to Jim Meyering and adjust the copyright dates.
75827         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75828         <stdlib.h>, <unistd.h>, "pathmax.h".
75829         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75830         (INITIAL_BUFFER_SIZE): Remove.
75831         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75832
75833 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75836         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75837         Use the _ONCE methods, for efficiency.
75838         Check for fcntl.h.  In test program, include <errno.h>
75839         and <fcntl.h> if available.  Remove old K&R cruft from
75840         test program.  Check for common errors in GNU/Linux,
75841         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75842         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75843         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75844         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75845         name accordingly.
75846         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75847         accommodate new getcwd.c.
75848         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75849         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75850         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75851         that's all we need now.
75852
75853 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75854
75855         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75856         argp-parse.c depends on getopt internals, that means we should
75857         always use our getopt, to be on the safe side.
75858         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75859         order not to spoil the result of an eventual previous invocation
75860         of gl_GETOPT_SUBSTITUTE.
75861
75862 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75863
75864         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75865         redefinition warnings. To avoid them, include the defines
75866         in `#if !defined __need_getopt ... #endif'. The only place
75867         where __getopt_argv_const is used is in definitions
75868         of getopt_long and getopt_long_only below, which are as well
75869         protected by `#ifndef __need_getopt'.
75870         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75871         __need_getopt after including <stdio.h> and <unistd.h> These
75872         headers might have defined it.
75873
75874 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75875
75876         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75877
75878 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75881         (futimens): New function, which uses futimes if available.
75882         (futimens, utimens): Support timespec==NULL, with same semantics
75883         as utime and utimens.
75884         * lib/utimens.h (futimens): New decl.
75885
75886 2004-11-23  Jim Meyering  <jim@meyering.net>
75887
75888         * lib/getopt_.h: Remove trailing blanks.
75889
75890 2004-11-23  Jim Meyering  <jim@meyering.net>
75891
75892         * lib/__fpending.c: Add comment.
75893
75894 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * modules/canonicalize (Depends-on): Add xreadlink.
75897         Problem reported by James Youngman.
75898
75899 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75902         New macros.
75903         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75904         optopt): Use them instead of invoking ## directly; otherwise, the
75905         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75906
75907 2004-11-19  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/strtok_r.c: Move comments from here...
75910         * lib/strtok_r.h: ... to here.
75911
75912 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75915         implementations that mishandle size_t overflow.
75916
75917 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75920         might fail.  Problem reported by Yoann Vandoorselaere.
75921         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75922         implementations that mishandle size_t overflow.
75923
75924 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * modules/canon-host (Depends-on): Add strdup.
75927
75928 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75931
75932 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * lib/canon-host.c: Include "strdup.h".
75935         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75936         Use strdup instead of malloc/strcpy to duplicate strings.
75937
75938         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75939         (human_space_before_unit): New constant.
75940         * lib/human.c (human_readable): Support it.
75941
75942         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75943         (xgetcwd): Set errno correctly when failing.
75944         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75945         the failure is actually due to a PATH_MAX problem.
75946
75947         Further getopt changes to make it more likely that glibc will
75948         buy the changes back.
75949         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75950         (getopt): Use it, so to preserve glibc semantic
75951         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75952         when compiling for libc.
75953         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75954         (getopt_long, getopt_long_only): Use it.
75955
75956         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75957         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75958         (getopt): Argv is now char * const *, as per standard.
75959         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75960         not char *__getopt_argv_const *.
75961         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75962         _getopt_long_only_r): Likewise.
75963         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75964         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75965         _getopt_long_r, _getopt_long_only_r): Likewise.
75966         * lib/getopt_.h (__getopt_argv_const): Remove.
75967         (getopt): Argv is now char * const *, as per standard.
75968
75969         * lib/getdate.y (tORDINAL): New token.
75970         (day, relunit): Allow it for relative times.
75971         (relative_time_table): Use tORDINAL for ordinals.
75972
75973 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75976         Document that "second" isn't allowed as an ordinal number.
75977
75978 2004-11-16  Jim Meyering  <jim@meyering.net>
75979
75980         * modules/closeout (Depends-on): Add fpending.
75981
75982 2004-11-15  Jim Meyering  <jim@meyering.net>
75983
75984         * lib/closeout.c: Include "__fpending.h" once again.
75985         Include <stdbool.h>.
75986         (close_stdout): Don't fail just because stdout was closed initially,
75987         since some programs don't write to stdout in the normal course of
75988         operation (other than --version and --help), and we don't want this
75989         function to make e.g. `touch file >&-' fail.
75990         But do fail if it was closed and someone has tried to write to it.
75991         E.g., `printf foo >&-' must fail.
75992
75993 2004-11-13  Jim Meyering  <jim@meyering.net>
75994
75995         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75996
75997 2004-11-12  Simon Josefsson  <jas@extundo.com>
75998
75999         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76000         small doc fix is still pending.
76001
76002 2004-11-11  Simon Josefsson  <jas@extundo.com>
76003
76004         * modules/strtok_r: New file.
76005
76006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76007         strtok_r.
76008
76009 2004-11-11  Simon Josefsson  <jas@extundo.com>
76010
76011         * m4/strtok_r.m4: New file.
76012
76013         * m4/getopt.m4: Replace opterr.
76014
76015 2004-11-11  Simon Josefsson  <jas@extundo.com>
76016
76017         * lib/strtok_r.h, strtok_r.c: New file.
76018
76019 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76022         of replacing opterr, getopt, etc.  This should handle the
76023         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76024
76025 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76028         we can stop lying to compilers about the constness of argv when we
76029         are compiled outside glibc.
76030         (getopt, getopt_long, getopt_long_only): Use it.
76031         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76032         _getopt_internal, getopt): Likewise.
76033         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76034         _getopt_long_only_r): Likewise.
76035         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76036         _getopt_long_r, _getopt_long_only_r): Likewise.
76037
76038         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76039         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76040         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76041         the other external symbols.
76042         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76043         declaration, since the above renaming now works around collisions.
76044
76045 2004-11-11  Jim Meyering  <jim@meyering.net>
76046
76047         * lib/linebreak.c: Remove trailing blanks.
76048         * lib/alloca_.h: Likewise.
76049         * lib/acosl.c: Likewise.
76050         * lib/euidaccess.c: Likewise.
76051         * lib/allocsa.h: Likewise.
76052
76053 2004-11-10  Simon Josefsson  <jas@extundo.com>
76054
76055         * m4/getaddrinfo.m4: New file.
76056
76057 2004-11-10  Simon Josefsson  <jas@extundo.com>
76058
76059         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76060
76061 2004-11-10  Simon Josefsson  <jas@extundo.com>
76062
76063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76064         getaddrinfo.
76065
76066         * modules/getaddrinfo: New file.
76067
76068 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76071
76072 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * lib/mktime.c (SHR): New macro, which is a portable
76075         substitute for >> that should work even on Crays.
76076         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76077         Problem reported by Mark D. Baushke in
76078         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76079         * lib/getdate.y (SHR): Likewise.
76080         (tm_diff): Use it.
76081         * lib/strftime.c (SHR): Likewise.
76082         (tm_diff): Use it.
76083         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76084         quote_these_too, so that right shifts are well defined.  All uses
76085         changed.
76086
76087 2004-11-10  Jim Meyering  <jim@meyering.net>
76088
76089         Ensure that no close failure goes unreported.
76090         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76091         return early when it seems there's nothing to flush.
76092         Don't include __fpending.h.
76093
76094 2004-11-10  Jim Meyering  <jim@meyering.net>
76095
76096         * modules/closeout (Depends-on): Remove fpending.
76097
76098 2004-11-10  Jim Meyering  <jim@meyering.net>
76099
76100         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76101
76102 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76105         gl_FUNC_STRFTIME.
76106         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76107         and AC_REQUIRE when possible, to avoid duplicate checks.
76108         Check for <wchar.h>.
76109
76110 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76113
76114 2004-11-09  Bruno Haible  <bruno@clisp.org>
76115
76116         * m4/sockpfaf.m4: New file.
76117
76118 2004-11-05  Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76121         Reported by Mark D. Baushke <mdb@cvshome.org>.
76122
76123 2004-11-04  Bruno Haible  <bruno@clisp.org>
76124
76125         2004-09-11  Bruno Haible  <bruno@clisp.org>
76126                 * allocsa.valgrind: New file.
76127         2004-02-06  Bruno Haible  <bruno@clisp.org>
76128                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76129                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76130                 Reported by Christopher Seip <chris.seip@hp.com>.
76131
76132 2004-11-04  Bruno Haible  <bruno@clisp.org>
76133
76134         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76135         (Makefile.am): Distribute it.
76136
76137 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76140         with errno == ERANGE if the buffer is too small.
76141         Problem reported by Mark D. Baushke.
76142
76143 2004-11-03  Albert Chin  <china@thewrittenword.com>
76144             Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76147         equivalent, substitute $ac_type for equivalent type rather than
76148         blindly using uint32_t *always* which won't work if uint32_t is not
76149         available.  Define _UINT32_T to work around typedef of uint32_t if
76150         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76151         2.5.1.
76152
76153 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         * m4/jm-macros.m4: Sync from coreutils.
76156         (gl_MACROS): Check for mbrlen, for pathchk.
76157         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76158
76159 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/xreadlink.c (MAXSIZE): New macro.
76162         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76163         size does not exceed MAXSIZE.  Avoid cast.
76164         As suggested by Mark D. Baushke in
76165         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76166         if readlink fails with buffer size just under MAXSIZE, try again
76167         with MAXSIZE.
76168
76169 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76172
76173 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76174         and  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76177         (get_date): Overparenthesize to avoid GCC warning.
76178
76179 2004-11-02  Bruno Haible  <bruno@clisp.org>
76180
76181         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76182         returns void.
76183
76184 2004-11-02  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76187         function returns void.
76188
76189 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76192         fflush_unlocked, flockfile, funlockfile, funlockfile,
76193         fputs_unlocked, putc_unlocked.
76194
76195 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76198         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76199         already declared.
76200
76201 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * modules/getdate (Files): Add doc/getdate.texi.
76204         (Depends-on): Add setenv, xalloc.
76205
76206 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * lib/getdate.y: Add support for TZ="foo" within a date string.
76209         Fix some bugs near time_t boundaries.  Reject dates with
76210         out-of-range components, e.g., "Sept 31".
76211         Include <stdlib.h>, "setenv.h", "xalloc.h".
76212         (ISDIGIT_LOCALE): Remove; unused.
76213         Note that the TZ and time functions used here are not reentrant.
76214         (mktime_ok, get_tz): New functions.
76215         (TZBUFSIZE): New constant.
76216         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76217         This requires that we sometimes generate our own TZ="XXX..." setting.
76218
76219 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * doc/getdate.texi: New file, from coreutils with modifications for
76222         the new TZ parsing.
76223
76224 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76225
76226         * lib/mktime.c (not_equal_tm): Remove redundant check.
76227
76228 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * modules/regex (lib_SOURCES): Add regex.c.
76231         Reported by James Youngman in
76232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76233
76234 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * lib/getdate.y: Use Bison 1.875 features, and some minor
76237         code cleanups.  This change does not affect semantics.
76238         Don't include <stdlib.h>; no longer needed.
76239         Don't include unlocked-io.h; only the "#if TEST" code uses
76240         stdio, and performance isn't crucial there.
76241         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76242         Bison 1.875 features as described below.
76243         All uses of "PC." replaced by "pc->".
76244         (YYSTYPE): Add a forward declaration.
76245         (yylex, yyerror): Use full prototypes in forward decls.
76246         Use "%pure-parser" rather than obsolescent "%pure_parser".
76247         Use %parse-param and %lex-param instead of obsolescent
76248         YYPARSE_PARAM and YYLEX_PARAM.
76249         (meridian_table, month_and_day_table, time_units_table,
76250         relative_time_table, time_zone_table, military_table,
76251         lookup_zone, lookup_word, get_date):
76252         Use NULL instead of 0 where appropriate.
76253         (to_hour): Avoid abort (), to avoid a dependency on
76254         stdlib.h.
76255         (yyerror, yylex): Now accepts parser_control * arg.
76256         (main) [TEST]: Use '\0' rather than 0 for char.
76257
76258 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76261
76262 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76265         It's now the caller's responsibility to handle the case where
76266         !HAVE_GETPAGESIZE && !defined getpagesize.
76267
76268         * lib/mktime.c (leapyear): Arg is long int, not int.
76269
76270 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76273
76274 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76277         missing.  Problem reported by James Youngman.
76278
76279 2004-10-16  Simon Josefsson  <jas@extundo.com>
76280
76281         * gnulib-tool: Fix comments.  Fix parse problem.
76282         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76283
76284 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76287         implementation of getopt_long.  Problem reported by Alexander Taler in:
76288         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76289
76290 2004-10-15  Bruno Haible  <bruno@clisp.org>
76291
76292         * gnulib-tool: Untabify. Initialize supplied_libname.
76293         (func_usage): More homogenous output.
76294         (func_modules_transitive_closure, func_modules_to_filelist,
76295         func_emit_lib_Makefile_am): New functions.
76296         (func_import): New function, extracted from big case statement. Use
76297         func_get_license, func_modules_transitive_closure,
76298         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76299         opt_lgpl. Don't use test -a, as it's not portable.
76300         (func_create_testdir): Use func_modules_transitive_closure,
76301         func_modules_to_filelist, func_emit_lib_Makefile_am.
76302
76303 2004-10-15  Bruno Haible  <bruno@clisp.org>
76304
76305         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76306
76307 2004-10-15  Bruno Haible  <bruno@clisp.org>
76308
76309         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76310         the portions belonging to each module.
76311         Suggested by Derek Robert Price <derek@ximbiot.com>.
76312
76313 2004-10-12  Simon Josefsson  <jas@extundo.com>
76314
76315         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76316         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76317         to real functions.
76318
76319 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76320
76321         * modules/vsnprintf: New file.
76322
76323 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76324
76325         * m4/vsnprintf.m4: New file.
76326
76327 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76328
76329         * lib/vsnprintf.h: New file.
76330         * lib/vsnprintf.c: New file.
76331
76332 2004-10-11  Bruno Haible  <bruno@clisp.org>
76333
76334         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76335         vsnprintf.
76336
76337 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76340
76341 2004-10-07  Bruno Haible  <bruno@clisp.org>
76342
76343         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76344         fits into the provided buffer.
76345
76346 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76347
76348         * lib/diacrit.c, diacrit.h: Add GPL notice.
76349
76350         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76351         notice.
76352         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76353         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76354         This avoids a potential constant-folding bug.
76355
76356 2004-10-05  Bruno Haible  <bruno@clisp.org>
76357
76358         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76359         for the declaration of strsep.
76360
76361 2004-10-05  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76364
76365 2004-10-04  Simon Josefsson  <jas@extundo.com>
76366
76367         * modules/memmem: New file.
76368         * tests/test-memmem.c: New file.
76369         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76370
76371 2004-10-04  Simon Josefsson  <jas@extundo.com>
76372
76373         * m4/memmem.m4: New file.
76374
76375 2004-10-04  Simon Josefsson  <jas@extundo.com>
76376
76377         * lib/memmem.h: New file.
76378         * lib/memmem.c: New file, taken from glibc.
76379
76380 2004-10-04  Simon Josefsson  <jas@extundo.com>
76381
76382         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76383         '#ifdef USE_UNLOCKED_IO'.
76384
76385 2004-10-04  Simon Josefsson  <jas@extundo.com>
76386
76387         * config/srclist.txt: Add memmem from glibc.
76388
76389 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76392
76393         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76394         modules/exclude, modules/getdate, modules/getline,
76395         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76396         modules/getusershell, modules/linebuffer, modules/md5,
76397         modules/mountlist, modules/posixtm, modules/readtokens,
76398         modules/readutmp, modules/regex, modules/sha1,
76399         modules/version-etc, modules/yesno:
76400         Remove dependency on unlocked-io.
76401
76402 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76405
76406         * m4/unlocked-io.m4: Add copyright notice.
76407         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76408
76409 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76412         * lib/xmalloc.c (xmemdup): Likewise.
76413         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76414         XFREE): Remove these long-obsolescent macros.
76415         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76416         * lib/xstrdup.c: Remove.
76417
76418         * lib/regex.c (re_comp): Cast gettext return value to char *,
76419         Problem reported by Martin Neitzel via Mark D. Baushke.
76420
76421 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76424         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76425         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76426         regex.c, sha1.c, version-etc.c, yesno.c:
76427         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76428         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76429         the includer's responsibility.
76430
76431         Sync from coreutils.
76432
76433         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76434         points to the start of a string, as the C Standard says the
76435         resulting behavior is undefined.
76436
76437         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76438         simple -> simple_backups, numbered_existing ->
76439         numbered_existing_backups, numbered -> numbered_backups
76440         to avoid shadowing problems.  All uses changed.
76441         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76442         * lib/backupfile.c (check_extension, numbered_backup):
76443         Rename locals to avoid shadowing 'basename'.
76444         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76445         once.
76446
76447         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76448         * lib/.cvsignore: Add getopt.h.
76449
76450 2004-10-04  Bruno Haible  <bruno@clisp.org>
76451
76452         * modules/README: New file.
76453         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76454         not a module.
76455
76456 2004-10-02  Jim Meyering  <jim@meyering.net>
76457
76458         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76459
76460 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76461
76462         * modules/strsep: New file.
76463
76464 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76465
76466         * m4/strsep.m4: New file.
76467
76468 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76469
76470         * lib/strsep.h: New file.
76471         * lib/strsep.c: New file.
76472
76473 2004-10-01  Simon Josefsson  <jas@extundo.com>
76474
76475         * lib/snprintf.c (snprintf): Handle size==0.
76476
76477 2004-10-01  Simon Josefsson  <jas@extundo.com>
76478             Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76481         (snprintf): Declare 'args'.
76482
76483 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * lib/snprintf.c: Remove comments as to why each header is needed.
76486
76487 2004-10-01  Bruno Haible  <bruno@clisp.org>
76488
76489         * MODULES.html.sh: Add strsep.
76490
76491 2004-09-30  Simon Josefsson  <jas@extundo.com>
76492
76493         * modules/snprintf: New file.
76494
76495 2004-09-30  Simon Josefsson  <jas@extundo.com>
76496
76497         * m4/snprintf.m4: New file.
76498
76499 2004-09-30  Simon Josefsson  <jas@extundo.com>
76500
76501         * lib/snprintf.h, lib/snprintf.c: New files.
76502
76503 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76504
76505         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76506         (hol_entry_help): Never translate an empty string.
76507         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76508         * lib/argp.h (OPTION_NO_TRANS): New option.
76509
76510 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * modules/argp (Maintainer): Replace Simon Josefsson
76513         by Sergey Poznyakoff.
76514
76515 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76518         changes merged back into glibc.
76519
76520 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76523
76524 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76525
76526         * lib/xvasprintf.c: Include xalloc.h.
76527         (xvasprintf): Use xalloc_die, not xmalloc_die.
76528
76529 2004-09-29  Bruno Haible  <bruno@clisp.org>
76530
76531         * modules/alloca-opt: New file, derived from modules/alloca.
76532         * modules/allocsa: Depend on alloca-opt instead of alloca.
76533         * modules/setenv: Likewise.
76534         * modules/vasnprintf: Likewise.
76535         * MODULES.html.sh: Add alloca-opt.
76536
76537 2004-09-28  Simon Josefsson  <jas@extundo.com>
76538
76539         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76540         LGPL, and to replace license template from GPL to LGPL.
76541
76542 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * modules/dummy: Change license to LGPL.
76545
76546 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76549
76550 2004-09-24  Simon Josefsson  <jas@extundo.com>
76551
76552         * modules/minmax (License): Change from GPL to LGPL.
76553
76554 2004-09-23  Simon Josefsson  <jas@extundo.com>
76555
76556         * gnulib-tool (--import): Typo.
76557
76558 2004-09-23  Simon Josefsson  <jas@extundo.com>
76559
76560         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76561
76562 2004-09-22  Bruno Haible  <bruno@clisp.org>
76563
76564         * modules/*: Add 'License' field.
76565         * gnulib-tool: Accept --extract-license option.
76566         (func_get_license): New function.
76567
76568 2004-09-21  Bruno Haible  <bruno@clisp.org>
76569
76570         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76571         Reported by Simon Josefsson.
76572
76573 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76576         gl_AC_TYPE_LONG_LONG.
76577
76578 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76581
76582 2004-09-18  Simon Josefsson  <jas@extundo.com>
76583         and  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76586         calls with autoreconf.  Define GL_LIB.
76587
76588 2004-09-14  Karl Berry  <karl@gnu.org>
76589
76590         * config/srclist.txt: unsync setenv.c, sigh.
76591
76592 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76595         Problem reported by Bruno Haible in:
76596         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76597
76598 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * config/srclist.txt: Comment out argp-pvh.c.
76601
76602 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76605         in case some system header has #define'd it.  Problem reported by
76606         Soeren D. Schulze in
76607         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76608
76609 2004-09-09  Karl Berry  <karl@gnu.org>
76610
76611         * regex.[ch]: delete from the root.  These were supposed to be
76612                 synced with emacs cvs, but this has not happened for about
76613                 a year, and anyway nothing else uses emacs regex.[ch].
76614                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76615                 lib/regex[.ch] is untouched.
76616
76617 2004-09-09  Bruno Haible  <bruno@clisp.org>
76618
76619         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76620
76621 2004-09-09  Bruno Haible  <bruno@clisp.org>
76622
76623         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76624         modifications.
76625         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76626
76627 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76628
76629         * modules/xvasprintf: New file.
76630         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76631
76632 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76633
76634         * lib/xvasprintf.h: New file.
76635         * lib/xvasprintf.c: New file.
76636         * lib/xasprintf.c: New file.
76637
76638 2004-09-08  Bruno Haible  <bruno@clisp.org>
76639
76640         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76641
76642 2004-09-08  Bruno Haible  <bruno@clisp.org>
76643
76644         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76645         length is > INT_MAX.
76646         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76647         more.
76648
76649 2004-09-08  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/stdint_.h: New file, taken from GNU clisp.
76652
76653 2004-09-08  Bruno Haible  <bruno@clisp.org>
76654             Oskar Liljeblad  <oskar@osk.mine.nu>
76655
76656         * modules/stdint: New file.
76657         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76658
76659 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         Import from coreutils.
76662         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76663         strings on unbounded length.  alloca's performance benefits aren't
76664         that important here.
76665         (V_STRDUP): Remove.
76666         (parse_with_separator): New function, with most of the internals
76667         of the old parse_user_spec.  Allow user to omit both user and group,
76668         for compatibility with FreeBSD.
76669         Clone only the user name, not the entire spec.
76670         Do not set *uid, *gid unless entirely successful.
76671         Avoid memory leak in some failing cases.
76672         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76673         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76674         (parse_user_spec): Rewrite to use parse_with_separator.
76675
76676 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * modules/userspec: Don't depend on alloca.
76679
76680 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76683
76684 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76687         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76688         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76689
76690 2004-08-16  Simon Josefsson  <jas@extundo.com>
76691
76692         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76693         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76694         Add --dry-run for --import.
76695         Let user provided command line parameters override configure.ac
76696         settings.
76697
76698 2004-08-12  Simon Josefsson  <jas@extundo.com>
76699
76700         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76701         as discussed with Paul Eggert in threads rooted at
76702         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76703         and
76704         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76705         Before, the test was empty, and relied on ELIDE_CODE in source
76706         code.)
76707         (gl_PREREQ_GETOPT): New macro.
76708         (gl_GETOPT): Use them.
76709
76710 2004-08-12  Simon Josefsson  <jas@extundo.com>
76711
76712         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76713         * lib/getopt_.h: Renamed from getopt.h.
76714
76715 2004-08-12  Simon Josefsson  <jas@extundo.com>
76716
76717         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76718         Change default library name from libfoo to libgnu.
76719         Now, if you have a configure.ac that says:
76720                 gl_SOURCE_BASE(gl)
76721                 gl_M4_BASE(gl/m4)
76722                 gl_MODULES(error getopt etcetera)
76723                 gl_INIT
76724         you can import all you need by running:
76725                 ../gnulib/gnulib-tool --import
76726
76727         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76728         (Makefile.am): Rewrite, use logic from argz.
76729         (Include): Use <getopt.h> instead of "getopt.h".
76730
76731 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * modules/argp (Files): Add m4/unlocked-io.m4.
76734         (Depends-on): Add extensions.
76735
76736 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76739         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76740         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76741         Check for program_invocation_name, program_invocation_short_name,
76742         flockfile, funlockfile, features.h, _getopt_long_only_r.
76743
76744 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76747         its complicated substitute.
76748         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76749         and program_invocation_name.
76750         (__argp_basename) [!_LIBC]: Remove; the only use was
76751         replaced by its body.
76752         (__argp_short_program_name): Change condition from
76753         !defined __argp_short_program_name to
76754         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76755         to match argp-namefrob.h.
76756         (__argp_failure): Don't assume strerror_r returns char *.
76757         * lib/argp-parse.c (N_): Define unconditionally.
76758         (argp_default_options): Fill out initializers with 0 to avoid
76759         gcc warnings.
76760
76761 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76764         getopt1.c.
76765
76766 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         Merge from coreutils.
76769
76770         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76771
76772         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76773         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76774
76775 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         Merge from coreutils.
76778
76779         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76780         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76781         for Reliant Unix 5.43.
76782
76783         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76784         (union fooround): Use uintmax_t, not long int.
76785         The rest is a merge from libc:
76786         [defined _LIBC]: Include <shlib-compat.h>.
76787         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76788
76789         * lib/settime.c (settime): Recode to avoid warning with
76790         Sun Forte C 6U2.
76791
76792         * lib/strverscmp.c: Convert to UTF-8.
76793
76794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76797         m4/uintmax_t.m4.
76798
76799 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * modules/xalloc-die: New file.
76802         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76803
76804         * modules/md5 (Files): Add m4/uint32_t.m4.
76805         * modules/sha1: Renamed from modules/sha.
76806         (Files):
76807         Rename lib/sha.h to lib/sha1.h.
76808         Rename lib/sha.c to lib/sha1.c.
76809         Rename m4/sha.m4 to m4/sha1.m4.
76810         (lib_SOURCES): Likewise.
76811         (configure.ac): Rename gl_SHA to gl_SHA1.
76812         (Include): sha.h -> sha1.h.
76813
76814 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76817         * m4/sha1.m4: Renamed from sha.m4.
76818         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76819
76820 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * lib/obstack.h (obstack_empty_p):
76823         Don't assume that chunk->contents is suitably aligned.
76824         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76825         Likewise. Problem reported by Benno in
76826         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76827
76828         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76829         readable.  This could be improved further but it'd take some work.
76830
76831 2004-08-08  Simon Josefsson  <jas@extundo.com>
76832
76833         * modules/xgethostname (Depends-on): Remove exit and error (not
76834         used).
76835
76836         * modules/getpass-gnu: Add getpass.h.
76837         (Depends-on): Add stdbool.
76838         * modules/getpass: Add getpass.h.
76839
76840 2004-08-08  Simon Josefsson  <jas@extundo.com>
76841
76842         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76843         Check getpass declaration.
76844
76845 2004-08-08  Simon Josefsson  <jas@extundo.com>
76846
76847         * lib/xgethostname.c: Don't include error.h (not used).
76848
76849         * lib/getpass.h: Add.
76850         * lib/getpass.c: Include getpass.h first.
76851
76852 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * lib/xalloc-die.c: New file.
76855         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76856         All uses removed.
76857         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76858         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76859         xalloc-die.c.
76860         (_, N_, xalloc_die): Move to xalloc-die.c.
76861         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76862         so that we needn't mess with xalloc_msg_memory_exhausted.
76863
76864         * lib/sha1.h: Renamed from sha.h.
76865         (SHA1_H): Renamed from _SHA_H.
76866         (sha1_ctx): Renamed from sha_ctx.
76867         (sha1_init_ctx): Renamed from sha_init_ctx.
76868         (sha1_process_block): Renamed from sha_process_block.
76869         (sha1_process_bytes): Renamed from sha_process_bytes.
76870         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76871         (sha1_read_ctx): Renamed from sha_read_ctx.
76872         (sha1_stream): Renamed from sha_stream.
76873         (sha1_buffer): Renamed from sha_buffer.
76874         * lib/sha1.c: Likewise; renamed from sha.c.
76875         Do not include <sys/types.h>.
76876         Include <stddef.h> rather than <stdlib.h>.
76877
76878 2004-08-08  Bruno Haible  <bruno@clisp.org>
76879
76880         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76881         FILESYSTEM_PREFIX_LEN.
76882         * lib/progreloc.c: Likewise.
76883         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76884
76885 2004-08-06  Simon Josefsson  <jas@extundo.com>
76886
76887         * modules/progname (Depends-on): Don't depend on stdbool.
76888
76889 2004-08-06  Simon Josefsson  <jas@extundo.com>
76890
76891         * modules/getsubopt: New file.
76892         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76893         getsubopt.
76894
76895 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         More merge from coreutils.
76898
76899         * m4/utimens.m4, m4/utimecmp.m4: New files.
76900         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76901         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76902         prereq.m4, sha.m4: Import changes from coreutils.
76903
76904 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         More merge from coreutils.
76907         * modules/raise, modules/readtokens0, modules/utimens:
76908         * modules/utimecmp, module/xnanosleep: New files.
76909         * modules/strftime: Add lib/strftime.h.
76910         Change include from <time.h> to "strftime.h".
76911         * modules/yesno: Add lib/yesno.h.
76912         * modules/backupfile: Remove lib/addext.c.
76913         * modules/euidaccess: Add stat-macros.h.
76914         * modules/canonicalize, modules/euidaccess,
76915         modules/filemode, modules/lchown, modules/makepath,
76916         modules/rmdir, modules/stat: Likewise.
76917
76918 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         Merge from tar.
76921         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76922         SIZE_MAX is a valid preprocessor constant.
76923         (__argp_basename): Change from "#ifndef _LIBC"
76924         to "#ifndef __argp_short_program_name", so that
76925         we don't compile these functions for tar.
76926
76927         More merges from coreutils.
76928         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76929         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76930         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76931         * lib/addext.c: Remove; no longer needed.
76932         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76933         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76934         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76935         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76936         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76937         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76938         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76939         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76940         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76941         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76942         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76943         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76944         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76945         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76946         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76947         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76948         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76949         Import changes from coreutils.
76950
76951 2004-08-05  Simon Josefsson  <jas@extundo.com>
76952
76953         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76954
76955 2004-08-05  Simon Josefsson  <jas@extundo.com>
76956
76957         * m4/getsubopt.m4: New file.
76958
76959 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         Merge from coreutils.
76962
76963         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76964         * m4/getcwd-path-max.m4: New files.
76965
76966         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76967         FILESYSTEM_PREFIX_LEN ->
76968         FILE_SYSTEM_PREFIX_LEN.
76969         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76970         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76971         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76972         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76973
76974         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76975         prerequisite modules now handle the DOS stuff.
76976         Don't check for unistd.h.
76977
76978 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         Merge from coreutils.
76981
76982         * lib/.gdb-history: Remove; this doesn't belong here.
76983
76984         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76985         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76986         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76987         * lib/getcwd.c: New files.
76988
76989         * lib/dirname.h: Include <stdbool.h>.
76990         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76991         for consistency with POSIX terminology.  All uses changed.
76992         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76993         (strip_trailing_slashes): Use bool for booleans.
76994         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76995
76996         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76997         sometimes returns a positive errno value even when it succeeds.
76998         (print_errno_message) [!LIBC]: Fall back on strerror if
76999         __strerror_r fails.
77000
77001         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77002         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77003         (longest_relative_suffix): New function.
77004         (path_concat): Use it.  Assume first argument is not NULL.
77005         Port to DOS.  Omit redundant separators.
77006         Report an error instead of returning NULL.
77007         Use mempcpy instead of memcpy.
77008         (xpath_concat): Remove: not declared or used.
77009
77010         * lib/same.h: Include <stdbool.h>
77011         (same_name): Return bool, not int.
77012         * lib/same.c (same_name): Likewise.
77013         (errno): Don't declare; we assume C89 or better now.
77014
77015         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77016         if not already defined.
77017
77018         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77019         * lib/dup-safer.c (errno): Likewise.
77020
77021 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         Merge from coreutils.
77024         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77025         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77026         * modules/path-concat: Don't depend on strdup.
77027
77028 2004-08-03  Simon Josefsson  <jas@extundo.com>
77029
77030         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77031         * lib/progname.h: Don't include stdbool.h.
77032
77033 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77036         * MODULES.html.sh (func_all_modules): Remove fatal.
77037
77038 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77041
77042 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77045         working.
77046
77047 2004-08-02  Simon Josefsson  <jas@extundo.com>
77048
77049         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77050         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77051         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77052
77053 2004-08-01  Simon Josefsson  <jas@extundo.com>
77054
77055         * lib/xgetdomainname.c: Include stdlib.h, for free().
77056
77057 2004-07-19  Bruno Haible  <bruno@clisp.org>
77058
77059         * MODULES.html.sh (func_all_modules): Add dummy.
77060
77061 2004-07-16  Simon Josefsson  <jas@extundo.com>
77062
77063         * modules/dummy: New file.
77064
77065 2004-07-16  Simon Josefsson  <jas@extundo.com>
77066
77067         * lib/dummy.c: New file.
77068
77069 2004-07-16  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/backupfile.h: Add extern "C" for C++.
77072         * lib/closeout.h: Likewise.
77073         * lib/copy-file.h: Likewise.
77074         * lib/findprog.h: Likewise.
77075         * lib/full-write.h: Likewise.
77076         * lib/pathname.h: Likewise.
77077         * lib/progname.h: Likewise.
77078         * lib/stpcpy.h: Likewise.
77079         * lib/stpncpy.h: Likewise.
77080         * lib/strcase.h: Likewise.
77081         * lib/strstr.h: Likewise.
77082         * lib/xalloc.h: Likewise.
77083
77084         * lib/mbswidth.h: Add extern "C" for C++.
77085         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77086
77087 2004-07-13  Robert Millan  <robertmh@gnu.org>
77088
77089         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77090
77091 2004-07-09  Simon Josefsson  <jas@extundo.com>
77092
77093         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77094         failed without this.)
77095
77096 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * modules/chown (Files): Add lib/fchown-stub.c, since
77099         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77100
77101 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/fchown-stub.c: New file.
77104
77105 2004-06-24  Jim Meyering  <jim@meyering.net>
77106
77107         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77108
77109 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * modules/argz: Omit "#include".
77112
77113         * MODULES.html.sh (func_all_modules): Add calloc, to match
77114         2004-06-01 addition of calloc module.
77115
77116 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         * m4/argz.m4: New file, which is autoupdated from libtool.
77119
77120 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77123         libtool.
77124
77125 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * config/srclist-update: Don't insist on "USA." before the
77128         close-comment, as libtool omits the period and puts the */ on a
77129         separate line.
77130         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77131         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77132
77133 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77134
77135         * modules/argz: New file.
77136         * MODULES.html.sh (func_all_modules): Add argz.
77137
77138 2004-06-12  Jim Meyering  <jim@meyering.net>
77139         and  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         * modules/hash (Files): Add lib/xalloc.h.
77142         * modules/pipe (Depends-on): Add wait-process.
77143         * modules/stat (Depends-on): Add xalloc.
77144         * modules/userspec (Files): Add lib/userspec.h.
77145         * modules/xstrto
77146
77147         Upgrade from gettext-0.13.
77148         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77149         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77150         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77151
77152 2004-06-10  Jim Meyering  <jim@meyering.net>
77153
77154         * lib/calloc.c: New file.
77155
77156 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77157
77158         * lib/getdate.y (yylex): Allow space between sign and number.
77159         Problem reported by Dan Jacobson.
77160
77161 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         Merge from coreutils CVS.
77164
77165         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77166         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77167         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77168         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77169         xstrtol.m4: Fix copyright date and/or serial number.
77170
77171         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77172         See if we need an fchown replacement.
77173         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77174         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77175         and use the replacement function if we detect either defect.
77176
77177         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77178         gl_UTIMECMP.
77179
77180 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77181         and  Jim Meyering  <jim@meyering.net>
77182
77183         Merge from coreutils CVS.
77184
77185         * lib/stat-macros.h: New file, with contents from file-type.h
77186         and coreutils' system.h.
77187         * lib/file-type.c: Include "stat-macros.h".
77188         * lib/file-type.h (file_type): Move all macro definitions to new file,
77189         stat-macros.h.
77190
77191         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77192         Wrap old code with this conditional.
77193         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77194         function that does not dereference symlinks.
77195         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77196
77197         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77198         dependency problems.
77199         (xreadlink): Accept new arg SIZE, for efficiency.
77200         All decls and uses changed.
77201         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77202
77203         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77204         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77205
77206         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77207         sysexits.h.
77208
77209 2004-06-01  Jim Meyering  <jim@meyering.net>
77210
77211         * m4/calloc.m4: New file.
77212
77213 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77216         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77217         Also, fix a typo in a diagnostic.
77218
77219 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77222         or AC_FUNC_REALLOC.
77223
77224 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77227         macros to be defined.
77228         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77229         the allocator returns NULL because the requested size is zero.
77230
77231 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77232
77233         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77234         var.  Add comment explaining why libc still defines it.  This
77235         merges the following patch from glibc:
77236         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77237
77238 2004-05-20  Andreas Schwab  <schwab@suse.de>
77239
77240         * m4/free.m4: Replace free if it not known to work, not the other
77241         way round.
77242
77243 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77246         present in glibc since revision 1.1 of this file.
77247         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77248         obstack_alignment_mask, obstack_alloc, obstack_base,
77249         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77250         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77251         obstack_grow0, obstack_init, obstack_int_grow,
77252         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77253         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77254         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77255         nonexistent functions.
77256
77257 2004-05-18  Karl Berry  <karl@gnu.org>
77258
77259         * config/srclist.txt: break link for vasnprintf.c.
77260
77261 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         Port obstack to the AS/400, where pointers are 16 bytes wide and
77264         you cannot cast an integer to a valid pointer.  This patch is
77265         currently waiting to be integrated into glibc; see
77266         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77267
77268         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77269         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77270         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77271         (struct obstack): temp member is now a union of a pointer and
77272         an integer, instead of an integer.  All integer uses changed.
77273         This does not affect the physical layout of struct obstack,
77274         except on hosts (like the AS/400) where the size or alignment of
77275         void * is greater than that of ptrdiff_t.
77276         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77277         __STDC__)]: Store temporary in pointer member of union, not
77278         integer member.
77279         * lib/obstack.c: Include <stddef.h>, for offsetof.
77280         (struct fooalign): Remove; it doesn't need a name.
77281         (union fooround): Change double to long double, and add void *.
77282         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77283         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77284         not a macro.  Hence the values are always int; so remove all
77285         casts-to-int in uses.
77286
77287 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77290         we can get this patch merged into glibc.
77291
77292 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77293             Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * m4/argp: Depend on alloca.
77296
77297 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77298             Paul Eggert  <eggert@cs.ucla.edu>
77299
77300         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77301         freecoding.
77302
77303 2004-05-17  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77306         precision that consists of a '.' followed by an empty digit string.
77307         Patch by Tor Lillqvist <tml@iki.fi>.
77308
77309 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77312         for backward compatibility with older code.  We need our own
77313         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77314         it under some other name, and our alloca.h will define it.
77315
77316 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77317             Derek Price  <derek@ximbiot.com>
77318
77319         * lib/alloca.c: Include <alloca.h>, to get our interface.
77320         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77321         include <alloca.h> first.  Use C89 prototype for alloca; this
77322         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77323         Use #elif for simplicity, since we can assume C89 now.
77324         Don't try to source the system alloca.h since it will not be found
77325         and to prevent recursively including its replacement.
77326         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77327         * lib/regex.c: Likewise.
77328
77329 2004-05-16  Derek Price  <derek@ximbiot.com>
77330             Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         getline cleanup.  This changes the getndelim2 API: both order of
77333         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77334         no delimiter).
77335
77336         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77337         interface does that.
77338         (getline): Always use getdelim, so that we don't have two
77339         copies of this code.
77340         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77341         if available.
77342         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77343         (GETNDELIM2_MAXIMUM): New macro.
77344         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77345         instead of the old practice of delim2==0.  All callers changed.
77346         Return -1 on overflow, instead of returning junk.
77347         Do not set *linesize unless allocation succeeds.
77348         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77349         that we include sys/types.h.
77350         * lib/getnline.h: Likewise.
77351         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77352         (getndelim2): Reorder arguments.
77353         * lib/getnline.c (getnline, getndelim):
77354         Don't discard the NMAX argument.
77355         (getnline): Invoke getndelim, to avoid code duplication.
77356         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77357         of (size_t) -1 by callers of the getnline family.
77358
77359 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77362         Check for gettimeofday.
77363         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77364         Check for settimeofday, stime.
77365
77366 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/nanosleep.c (suspended): Change its type from int to
77369         sig_atomic_t volatile.
77370         (first_call): Make it private to rpl_nanosleep, and have it
77371         be zero initially as that's a bit faster.
77372         (my_usleep): Round up fractional times instead of truncating them,
77373         as this is the usual meaning for 'sleep'.
77374
77375         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77376         doesn't work.
77377         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77378         (ENOSYS): Define if not defined.
77379         (settime): Fall back on stime if it exists and settimeofday fails.
77380         But don't bother with fallbacks if a method fails with errno == EPERM.
77381
77382 2004-05-11  Jim Meyering  <jim@meyering.net>
77383
77384         Prior to this change, the save_cwd caller required read access to the
77385         current directory on most systems (ones with the fchdir function).
77386
77387         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77388         fails, try write-only, and finally, resort to using xgetcwd.
77389
77390 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * lib/obstack.c, obstack.h: Import changes from libc.
77393
77394 2004-04-28  Bruno Haible  <bruno@clisp.org>
77395
77396         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77397         also implicitly appends .exe to executables.
77398         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77399         accepts Windows pathnames.
77400         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77401         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77402         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77403         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77404         Reported by Derek Robert Price <derek@ximbiot.com>.
77405
77406 2004-04-21  Karl Berry  <karl@gnu.org>
77407
77408         * config/srclist.txt (localcharset.c): break sync.
77409
77410 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77411
77412         * m4/host-os.m4: Add a copyright notice.
77413
77414 2004-04-20  Jim Meyering  <jim@meyering.net>
77415
77416         Change UTILS_ to gl_ in AC_DEFINE'd names.
77417         Change utils_- and jm_-prefixed variables, too.
77418         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77419         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77421
77422         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77423         Don't emit trailing blanks.
77424         Also rename jm_-prefixed variables to have gl_ prefix.
77425
77426         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77427         Also rename jm_-prefixed variables to have gl_ prefix.
77428
77429         * m4/jm-macros.m4: Reflect the renamings.
77430         * m4/prereq.m4: Likewise.
77431
77432 2004-04-20  Jim Meyering  <jim@meyering.net>
77433
77434         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77435         memory.
77436
77437 2004-04-20  Jim Meyering  <jim@meyering.net>
77438             Bruno Haible  <bruno@clisp.org>
77439
77440         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77441         memory when realloc fails.
77442
77443 2004-04-19  Jim Meyering  <jim@meyering.net>
77444
77445         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77446         now that readutmp.c may call `free (0)'.
77447
77448 2004-04-19  Bruno Haible  <bruno@clisp.org>
77449
77450         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77451         * m4/inttypes_h.m4: Likewise.
77452         * m4/stdint_h.m4: Likewise.
77453         * m4/intmax_t.m4: Likewise.
77454         * m4/uintmax_t.m4: Likewise.
77455
77456 2004-04-18  Jim Meyering  <jim@meyering.net>
77457
77458         * m4/prereq.m4: Don't forbid jm_ prefix.
77459
77460         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77461         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77462         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77463         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77464         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77465         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77466         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77467         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77468         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77469         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77470         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77471         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77472         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77473         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77474         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77475         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77476         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77477         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77478         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77479
77480 2004-04-18  Jim Meyering  <jim@meyering.net>
77481
77482         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77483         failure, don't leak memory and do call END_UTMP_ENT.
77484
77485 2004-04-16  Jim Meyering  <jim@meyering.net>
77486
77487         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77488         coreutils' stat program.
77489         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77490
77491 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77492
77493         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77494         C89.
77495         (CHAR_BIT): Remove, since we assume C89.
77496         Include <stdint.h> if available, as per current Autoconf CVS advice.
77497
77498 2004-03-31  Jim Meyering  <jim@meyering.net>
77499
77500         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77501         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77502         * m4/xalloc.m4: Likewise.
77503
77504 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77505
77506         Merge from coreutils.
77507
77508         * m4/inttostr.m4: New file.
77509         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77510         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77511         Require gl_CLOCK_TIME.
77512         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77513
77514 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77515
77516         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77517         not bool, to be more consistent with Unix conventions.
77518         Suggested by Bruno Haible.
77519
77520         Merge from coreutils.
77521
77522         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77523         * lib/umaxtostr.c: New files.
77524
77525         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77526         the usual <time.h> dance.
77527         (get_date): Change signature to support fractional time stamps.
77528         All callers changed.
77529         * lib/getdate.y: Include "getdate.h" first, as we can now
77530         assume C89 and don't need to worry about 'const'.
77531         Similarly, include "unlocked-io.h" near start, not in middle.
77532         Include <limits.h>.
77533         (textint.value): Use long int rather than int.
77534         (textint.digits): Use size_t rather than int.
77535         (BILLION, LOG10_BILLION): New constants.
77536         (parser_control): New member rel_ns.  Members day_ordinal,
77537         time_zone, month, day, hour, minutes, rel_year, rel_month,
77538         rel_day, rel_hour, rel_minutes, rel_seconds
77539         are now long int, not int.  Member seconds is now struct timespec,
77540         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77541         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77542         not int.
77543         (%union.intval): Now long int, not int.
77544         New member timespec.
77545         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77546         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77547         (spec): Now is a timespec or an item list.
77548         (timespec, items): New nonterminals.
77549         (time, rel, relunit, number, get_date):
77550         Add support for fractional seconds.
77551         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77552         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77553         (to_hour): First arg is now long int, not int.
77554         (to_year): Returns long int, not int.
77555         Don't treat year -70 like 70.
77556         (tm_diff): Returns long int, not int.
77557         (lookup_word): Use bool instead of int when appropriate.
77558         (yylex): Use size_t for count, not int.
77559         Detect overflow when parsing large integer constants.
77560         Add support for fractions.
77561         (get_date): Make pointers 'const' if possible.
77562         Use more-portable code to detect integer overflow.
77563         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77564         Don't use ctime; it's not reliable if the year has >4 digits.
77565
77566         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77567         This is for compatibility with BSD.
77568
77569         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77570         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77571         From coreutils' system.h.
77572
77573         * lib/userspec.c: Don't include "posixver.h".
77574         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77575         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77576         compatible extension.  Simplify code by removing a boolean int
77577         that was always nonzero if a string was nonnull.
77578
77579 2004-03-30  Jim Meyering  <jim@meyering.net>
77580
77581         Merge from coreutils.
77582
77583         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77584         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77585         on some systems one must include <grp.h> before it.
77586         Reported by Christian Krackowizer.
77587
77588 2004-03-30  Jim Meyering  <jim@meyering.net>
77589
77590         Merge from coreutils.
77591
77592         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77593
77594         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77595         an empty input stream.
77596
77597         * lib/readtokens.c: Include <stdbool.h>.
77598         (readtoken): Use `size_t' rather than int/long.
77599         All callers adjusted.
77600         Use `bool' rather than `int' where appropriate.
77601         Use memset rather than an explicit loop.
77602         Use x2nrealloc rather than xrealloc.
77603         Allow the use of `\0' as a delimiter.
77604         (readtokens): Likewise.
77605         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77606
77607 2004-03-30  Jim Meyering  <jim@meyering.net>
77608
77609         * m4/realloc.m4: Remove file, since now it does no more than
77610         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77611         the `configure.ac' section of module/realloc.
77612         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77613
77614 2004-03-30  Bruno Haible  <bruno@clisp.org>
77615
77616         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77617         nonnull.
77618
77619 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77620
77621         Merge changes to getloadavg.c from coreutils and Emacs.
77622
77623         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77624         Define to an expression, not to the empty string.
77625         Include cloexec.h and xalloc.h.
77626         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77627         Use set_cloexec_flag rather than rolling our own.
77628         * lib/cloexec.c, lib/cloexec.h: New files.
77629
77630 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77631
77632         * m4/cloexec.m4: New file.
77633
77634 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77635
77636         * lib/getopt.h: Sync with libc CVS.
77637
77638 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77639             Bruno Haible  <bruno@clisp.org>
77640
77641         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77642         mbswidth.
77643
77644 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77645             Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/mbswidth.h: Include <wchar.h> only if
77648         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77649         <wchar.h>.
77650         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77651
77652 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77653
77654         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77655         Sync with libc CVS.
77656         * lib/getopt_int.h: New file, also synced from libc.
77657
77658 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77659
77660         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77661         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77662         Bring back getopt.c, getopt.h, getopt1.c.
77663
77664 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77665
77666         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77667         All uses changed.  Check for sa_sigaction member; this fixes
77668         a bug first reported by Jason Andrade in
77669         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77670
77671 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77672
77673         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77674         '#if' expressions.  Unlike the code it replaces, it does not
77675         depend on (defined _SC_PAGESIZE).  However, it does depend on
77676         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77677         first reported by Jason Andrade in
77678         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77679
77680 2004-02-25  Simon Josefsson  <jas@extundo.com>
77681
77682         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77683
77684 2004-02-25  Simon Josefsson  <jas@extundo.com>
77685
77686         * lib/strdup.h: New file.
77687         * lib/strdup.c: Include it.
77688         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77689         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77690
77691 2004-02-23  Karl Berry  <karl@gnu.org>
77692
77693         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77694         (from fencepost.gnu.org:/gd/gnuorg).
77695
77696 2004-02-23  Karl Berry  <karl@gnu.org>
77697
77698         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77699         * config/srclist.txt: add maintain/standards documents.
77700
77701 2004-02-18  Bruno Haible  <bruno@clisp.org>
77702
77703         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77704         Reported by Derek Robert Price <derek@ximbiot.com>.
77705
77706 2004-02-16  Karl Berry  <karl@gnu.org>
77707
77708         * config/mkinstalldirs, install-sh: update from automake.
77709
77710 2004-02-06  Karl Berry  <karl@gnu.org>
77711
77712         * m4/po.m4: update from gettext 0.14.1.
77713
77714 2004-02-06  Karl Berry  <karl@gnu.org>
77715
77716         * lib/config.charset: update from gettext 0.14.1.
77717
77718 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77719
77720         Add comments and code, prompted by suggestions from Bruno Haible
77721         for sh-quote.
77722         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77723         describing the enum quoting_style values.
77724         * lib/quotearg.c (quotearg_alloc): New function.
77725         (quotearg_buffer_restyled): Treat lone { and } as special.
77726         Treat = as special.  Work around bug with older shells
77727         that "see" a '\' that is really the 2nd byte of a multibyte char.
77728         Quote empty string with shell_quoting_style.
77729
77730 2004-02-03  Bruno Haible  <bruno@clisp.org>
77731
77732         * m4/pipe.m4: New file, from GNU gettext.
77733
77734 2004-02-03  Bruno Haible  <bruno@clisp.org>
77735
77736         * lib/pipe.h: New file, from GNU gettext.
77737         * lib/pipe.c: New file, from GNU gettext.
77738
77739 2004-01-27  Bruno Haible  <bruno@clisp.org>
77740
77741         * m4/execute.m4: New file, from GNU gettext.
77742
77743 2004-01-27  Bruno Haible  <bruno@clisp.org>
77744
77745         * lib/execute.h: New file, from GNU gettext.
77746         * lib/execute.c: New file, from GNU gettext.
77747         * lib/w32spawn.h: New file, from GNU gettext.
77748
77749 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77750
77751         Merge from diffutils.
77752
77753         * lib/file-type.c (file_type): Add typed memory objects.
77754         * lib/file-type.h (S_TYPEISTMO): New macro.
77755
77756         * lib/c-stack.h (c_stack_action): Remove argv argument.
77757         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77758         (die): Don't calculate message unless segv_action returns.
77759         (get_stack_location, min_address_from_argv, max_address_from_argv,
77760         volatile stack_base, volatile_stack_size): Remove.
77761         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77762         that every segmentation violation is a stack overflow.  (Ouch!)
77763         See Debian bug 136249 (still outstanding) for more info about why
77764         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77765
77766 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77767
77768         Exit-status fix from coreutils.
77769
77770         Use exit_failure consistently in place of EXIT_FAILURE,
77771         so that program exit statuses are consistent on failure.
77772
77773         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77774         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77775         * lib/argmatch.h: Comment fix to match the above.
77776         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77777         Now a macro referring to exit_failure, instead of a separate
77778         variable.  Include "exitfail.h" to get it.
77779         * lib/xstrtol.h: Include "exitfail.h".
77780         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77781
77782         * lib/long-options.c (parse_long_options): Use prototype
77783         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77784         for clarity.
77785
77786 2004-01-21  Jim Meyering  <jim@meyering.net>
77787
77788         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77789         so as not to conflict with a different-sized __mktime_internal
77790         function in GNU libc.
77791         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77792         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77793
77794 2004-01-20  Karl Berry  <karl@gnu.org>
77795
77796         * config/config.guess: update from config.
77797
77798         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77799
77800 2004-01-20  Bruno Haible  <bruno@clisp.org>
77801
77802         Safer stack allocation.
77803         * lib/setenv.c: Include allocsa.h.
77804         (alloca): Remove fallback definition.
77805         (freea): Remove macro.
77806         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77807         instead of freea.
77808
77809 2004-01-20  Bruno Haible  <bruno@clisp.org>
77810
77811         * m4/eealloc.m4: New file, from GNU gettext.
77812
77813 2004-01-20  Bruno Haible  <bruno@clisp.org>
77814
77815         * m4/allocsa.m4: New file, from GNU gettext.
77816
77817 2004-01-20  Bruno Haible  <bruno@clisp.org>
77818
77819         * lib/xallocsa.h: New file, from GNU gettext.
77820         * lib/xallocsa.c: New file, from GNU gettext.
77821
77822 2004-01-20  Bruno Haible  <bruno@clisp.org>
77823
77824         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77825
77826 2004-01-20  Bruno Haible  <bruno@clisp.org>
77827
77828         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77829         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77830         specially.
77831
77832 2004-01-20  Bruno Haible  <bruno@clisp.org>
77833
77834         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77835         patch.
77836
77837 2004-01-20  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77840
77841 2004-01-20  Bruno Haible  <bruno@clisp.org>
77842
77843         * lib/eealloc.h: New file.
77844
77845 2004-01-20  Bruno Haible  <bruno@clisp.org>
77846
77847         * lib/binary-io.h: Avoid warnings on Cygwin.
77848
77849 2004-01-20  Bruno Haible  <bruno@clisp.org>
77850
77851         * lib/allocsa.h: New file, from GNU gettext.
77852         * lib/allocsa.c: New file, from GNU gettext.
77853
77854 2004-01-18  Karl Berry  <karl@gnu.org>
77855
77856         * doc/gpl.texi, doc/lgpl.texi: new files.
77857
77858 2004-01-18  Karl Berry  <karl@gnu.org>
77859
77860         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77861         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77862
77863 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77864
77865         Merge from coreutils.
77866
77867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77868         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77869         (gl_DEFAULT_POSIX2_VERSION): Move
77870         the documentation from 'configure' into 'config.hin',
77871         so that 'configure --help' isn't burdened by it and
77872         we don't have to worry about its formatting there.
77873         Reword the documentation so that it's more succinct
77874         and can be run together into a single paragraph.
77875         * m4/same.m4 (gl_SAME): Check for pathconf.
77876
77877 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77878
77879         Merge from coreutils.
77880
77881         * lib/posixver.c: Include posixver.h.
77882
77883         * lib/same.c: Include <stdbool.h>, <limits.h>.
77884         (_POSIX_NAME_MAX): Define if not defined.
77885         (MIN): New macro.
77886         (same_name): If file names are silently truncated, report
77887         that the file names are the same if they are the same after
77888         the silent truncation.
77889
77890         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77891         conversion function.
77892         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77893         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77894         longer needed.
77895
77896 2004-01-15  Jim Meyering  <jim@meyering.net>
77897
77898         Merge from coreutils.
77899
77900         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77901         if no library is required.
77902         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77903         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77904         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77905         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77906         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77907         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77908         value, $ac_cv_search_crypt, if it's "none required".
77909         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77910         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77911         not gl_FUNC_GETLOADAVG.
77912         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77913         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77914
77915 2004-01-15  Jim Meyering  <jim@meyering.net>
77916
77917         Merge from coreutils.
77918
77919         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77920         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77921         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77922
77923         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77924         optional configure-time default.
77925
77926         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77927
77928         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77929
77930 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77931
77932         Merge from coreutils.
77933
77934         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77935         value, $ac_cv_search_nanosleep, if it's "none required".
77936
77937 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77938
77939         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77940         with like-named macro in fnmatch.c.
77941         (EXT): Use an internal constant instead.
77942
77943         Merge fnmatch patches from glibc.
77944         * lib/fnmatch.c (mbsinit): Remove define.
77945         Add libc_hidden_ver (__fnmatch, fnmatch).
77946         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77947         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77948
77949 2004-01-14  Karl Berry  <karl@gnu.org>
77950
77951         * config/install-sh: update from automake.
77952
77953 2004-01-13  Karl Berry  <karl@gnu.org>
77954
77955         * config/install-sh: update from automake.
77956
77957 2004-01-09  Karl Berry  <karl@gnu.org>
77958
77959         * config/install-sh: update from automake.
77960
77961 2004-01-05  Karl Berry  <karl@gnu.org>
77962
77963         * config/config.{sub,guess}: update from config.
77964
77965 2003-12-31  Karl Berry  <karl@gnu.org>
77966
77967         * config/depcomp: update from automake.
77968
77969 2003-12-14  Karl Berry  <karl@gnu.org>
77970
77971         * lib/config.charset: update from gettext-runtime.
77972
77973 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77974
77975         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77976         Bug reported by Alfred M. Szmidt.
77977
77978 2003-12-03  Bruno Haible  <bruno@clisp.org>
77979
77980         * m4/gettext.m4: Upgrade from gettext-0.13.
77981         * m4/po.m4: Upgrade from gettext-0.13.
77982         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77983         * m4/intmax.m4: New file, from gettext-0.13.
77984         * m4/printf-posix.m4: New file, from gettext-0.13.
77985
77986 2003-11-29  Karl Berry  <karl@gnu.org>
77987
77988         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77989
77990 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77991             Bruno Haible  <bruno@clisp.org>
77992
77993         * lib/printf-parse.h: Don't include sys/types.h.
77994         (ARG_NONE): New macro.
77995         (char_directive): Change type of *arg_index fields to size_t.
77996         * lib/printf-parse.c: Don't include sys/types.h.
77997         (SSIZE_MAX): Remove macro.
77998         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77999         Remove unnecessary overflow check.
78000         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78001         fields.
78002
78003 2003-11-25  Bruno Haible  <bruno@clisp.org>
78004
78005         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78006
78007 2003-11-25  Bruno Haible  <bruno@clisp.org>
78008
78009         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78010         gt_TYPE_SSIZE_T.
78011
78012 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78013
78014         * modules/alloca: Remove dependency on xalloc.
78015
78016 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78017
78018         * lib/alloca.c: Remove dependency on xalloc module.
78019         (xalloc_die): Remove.
78020         (memory_full) [!defined emacs]: New macro.
78021         [!defined emacs]: Don't include xalloc.h.
78022         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78023         address arithmetic overflows.  Change datatypes a bit to avoid
78024         unnecessary casts.
78025
78026 2003-11-22  Jim Meyering  <jim@meyering.net>
78027
78028         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78029         s/size/size_t/.
78030
78031 2003-11-21  Karl Berry  <karl@gnu.org>
78032
78033         * config/config.{sub,guess}: update from config.
78034
78035 2003-11-18  Karl Berry  <karl@gnu.org>
78036
78037         * config/config.{sub,guess}: update from config.
78038
78039         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78040
78041 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78042
78043         * README: Mention that S+T cannot overflow if S is the size of
78044         an existing object and T is sufficiently small.
78045
78046 2003-11-17  Jim Meyering  <jim@meyering.net>
78047
78048         On systems without utime and without a utimes function capable of
78049         dealing with a NULL struct utimbuf* argument, this utime replacement
78050         could -- in unusual circumstances -- leak a file descriptor.
78051         * lib/utime.c: Include <unistd.h> and <errno.h>.
78052         (utime_null): Be sure to close `fd' and to preserve errno.
78053         Reported by Geoff Collyer via Arnold Robbins.
78054
78055 2003-11-17  Bruno Haible  <bruno@clisp.org>
78056
78057         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78058         (Depends-on): Add xsize.
78059
78060 2003-11-17  Bruno Haible  <bruno@clisp.org>
78061
78062         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78063
78064 2003-11-17  Bruno Haible  <bruno@clisp.org>
78065
78066         * lib/vasnprintf.c (alloca): Remove fallback definition.
78067         (freea): Remove definition.
78068         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78069         Reported by Paul Eggert.
78070
78071 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78072             Bruno Haible  <bruno@clisp.org>
78073
78074         Protect against address arithmetic overflow.
78075         * lib/printf-args.h: Include stddef.h.
78076         (arguments): Change type of field 'count' to size_t.
78077         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78078         'unsigned int' where appropriate.
78079         * lib/printf-parse.h: Include sys/types.h.
78080         (char_directive): Change type of *arg_index fields to ssize_t.
78081         (char_directives): Change type of fields 'count', max_*_length to
78082         size_t.
78083         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78084         (SSIZE_MAX): Define fallback value.
78085         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78086         instead of 'int' where appropriate. Check a_allocated, d_allocated
78087         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78088         * lib/vasnprintf.c: Include xsize.h.
78089         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78090         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78091         overflow. Avoid wraparound when converting a width or precision from
78092         decimal to binary.
78093
78094 2003-11-16  Bruno Haible  <bruno@clisp.org>
78095
78096         Update from GNU gettext.
78097         * lib/printf-parse.c: Generalize to it can be compiled for wide
78098         strings.
78099         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78100         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78101         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78102         SNPRINTF): New macros.
78103         Don't include <alloca.h> if the file is used inside libintl.
78104         (local_wcslen): New function, for Solaris 2.5.1.
78105         (VASNPRINTF): Use it instead of wcslen.
78106
78107 2003-11-16  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/xsize.h (xmax): New function.
78110         (xsum, xsum3, xsum4): Declare as "pure" functions.
78111
78112 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78113
78114         * modules/xalloc (Files): Undo latest change, since xalloc.h
78115         no longer needs SIZE_MAX or PTRDIFF_MAX.
78116
78117 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78118
78119         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78120         gl_PTRDIFF_MAX.
78121
78122 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78123
78124         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78125         "return", to pacify some unknown compiler.  Problem reported
78126         by Joerg Schilling.
78127
78128 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78129
78130         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78131         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78132         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78133         heuristic is just as accurate as far as we know, and it removes a
78134         dependency on size_max.m4 and ptrdiff_max.m4.
78135
78136 2003-11-11  Bruno Haible  <bruno@clisp.org>
78137
78138         * modules/xsize (Files): Add m4/size_max.m4.
78139         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78140
78141 2003-11-11  Bruno Haible  <bruno@clisp.org>
78142
78143         * m4/size_max.m4: New file.
78144         * m4/ptrdiff_max.m4: New file.
78145         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78146         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78147         (gl_XALLOC): Invoke it.
78148
78149 2003-11-11  Bruno Haible  <bruno@clisp.org>
78150
78151         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78152         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78153         defined.
78154
78155 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78156
78157         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78158         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78159         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78160         From Bruno Haible.
78161         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78162         not (size_t) -1, since it's defined here.
78163
78164 2003-11-09  Karl Berry  <karl@gnu.org>
78165
78166         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78167
78168 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78169
78170         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78171         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78172         Reject sizes of exactly SIZE_MAX bytes.
78173         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78174         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78175
78176 2003-11-05  Bruno Haible  <bruno@clisp.org>
78177
78178         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78179         SIZE_MAX defined in <limits.h> on Solaris.
78180
78181 2003-11-04  Jim Meyering  <jim@meyering.net>
78182
78183         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78184         variable names, rather than @VAR@.
78185         * modules/poll: Likewise.
78186
78187 2003-11-04  Bruno Haible  <bruno@clisp.org>
78188
78189         * modules/xsize: New file.
78190         * modules/linebreak: Depend on xsize.
78191         * MODULES.html.sh (func_all_modules): Add xsize.
78192
78193 2003-11-04  Bruno Haible  <bruno@clisp.org>
78194
78195         * m4/xsize.m4: New file.
78196
78197 2003-11-04  Bruno Haible  <bruno@clisp.org>
78198
78199         * lib/xsize.h: New file.
78200         * lib/linebreak.c: Include xsize.h.
78201         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78202         argument for overflow.
78203         Suggested by Paul Eggert.
78204
78205 2003-11-03  Karl Berry  <karl@gnu.org>
78206
78207         * config/config.{guess,sub}: update from config.
78208
78209 2003-11-03  Jim Meyering  <jim@meyering.net>
78210
78211         * modules/userspec (lib_SOURCES): Add userspec.h.
78212         (Include): Add "userspec.h".
78213         Improve description.
78214
78215 2003-11-03  Jim Meyering  <jim@meyering.net>
78216
78217         * lib/userspec.c: Include "userspec.h".
78218         * lib/userspec.h: New file.
78219
78220 2003-11-03  Bruno Haible  <bruno@clisp.org>
78221
78222         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78223
78224 2003-11-03  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78227         available, to avoid (extremely rare) race condition.
78228         Suggested by Paul Eggert.
78229
78230 2003-11-02  Karl Berry  <karl@gnu.org>
78231
78232         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78233
78234 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78235
78236         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78237         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78238         (read_filesystem_list): Set and use me_type_malloced.
78239         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78240         whatever the type happens to be), for brevity and consistency.
78241         Check for size calculation overflow on Alphas running OSF/1.
78242
78243 2003-10-31  Jim Meyering  <jim@meyering.net>
78244
78245         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78246
78247         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78248
78249 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78250             Bruno Haible  <bruno@clisp.org>
78251
78252         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78253         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78254
78255 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78258         netbsd*-gnu*.  Suggested by Robert Millan.
78259
78260 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78261
78262         * modules/group-member: Depend on stdbool.
78263
78264 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78265
78266         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78267
78268 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78269
78270         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78271         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78272         after the 'gnu' in these cases.  This fixes some bugs in the
78273         previous change, and is based on suggestions by Robert Millan.
78274
78275 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78276
78277         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78278         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78279         no longer needed.
78280         * lib/quotearg.c (quotearg_n_options): Use it.
78281         * lib/group-member.c: Include <stdbool.h>.
78282         (free_group_info): Arg is now const *; don't free arg.
78283         (get_group_info): Now returns bool and accepts struct group_info *,
78284         rather than returning a malloc'ed struct group_info *.
78285         All uses changed.  Check for overflow in internal size calculation.
78286
78287         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78288         rather than xmalloc/xrealloc.
78289         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78290         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78291         conformance bug: the old code used a pointer after freeing the
78292         storage that it addressed.
78293         * lib/hash.c (hash_initialize): Simplify the code by using
78294         xalloc_oversized rather than doing it by hand.
78295         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78296         the buffer preserved.  Use free and xmalloc instead.
78297         * lib/quotearg.c (quotearg_n_options): Likewise.
78298         Use a simpler test for size overflow.  Don't use xalloc_oversized
78299         because unsigned int might be wider than size_t (!); this suggests
78300         that we should switch from unsigned int to size_t for slot numbers.
78301
78302 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78303
78304         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78305         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78306         NetBSD kernels.  Requested by Richard Stallman.
78307
78308 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78309
78310         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78311         to allocate the returned structure.  Do not allocate a subarray,
78312         as x2nrealloc will do that.
78313         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78314         instead of xnrealloc.
78315         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78316
78317 2003-10-27  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/stdbool_.h: Better support for BeOS.
78320
78321 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78322
78323         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78324         now uses inline.
78325
78326 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78327
78328         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78329         callers that want to do their own size-overflow checking.  Include
78330         <stdbool.h>, since xalloc_oversized returns bool.
78331         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78332         to use xalloc_oversized.
78333
78334         Add two functions x2realloc, x2nrealloc, for programs that grow
78335         arrays dynamically by doubling their sizes.
78336         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78337         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78338         New functions.
78339
78340         Port to C99 semantics for 'inline' of external functions.
78341         Bug reported by Bruno Haible.
78342         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78343         with the old contents of xnmalloc.
78344         (xnmalloc, xmalloc): Use it.
78345         (xnrealloc_inline): New static inline function,
78346         with the old contents of xnrealloc.
78347         (xnrealloc, xrealloc): Use it.
78348
78349         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78350         that.
78351
78352 2003-10-26  Karl Berry  <karl@gnu.org>
78353
78354         * config/srclist.txt (COPYING.DOC): no longer available from
78355         /gd/gnuorg; don't know where the ultimate source is.
78356
78357 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78358
78359         Fix several address-calculation bugs in the hash modules,
78360         plus some minor code cleanup.
78361
78362         * lib/hash.h: Include <stdbool.h>, for bool.
78363         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78364         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78365         hash_get_n_entries, hash_get_max_bucket_length,
78366         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78367         hash_rehash): Use size_t rather than unsigned.
78368         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78369         hash_get_n_buckets_used, hash_get_n_entries,
78370         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78371         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78372         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78373         Likewise.
78374         (SIZE_MAX): Define if not defined.
78375         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78376         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78377         hash_print):
78378         Use const * when possible.
78379         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78380         (check_tuning): Fix bug: if tuning parameters were very close to
78381         0 or 1, rounding errors could have caused subscript violations.
78382         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78383         (hash_initialize): Add 'fail:' label
78384         to free table and return NULL, and use it to simplify code.
78385         Use calloc rather than clearing the storage ourself.
78386         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78387         buffer size calculations.
78388         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78389         Include <stddef.h>, for size_t.
78390         * lib/hash-pjw.c (hash_pjw): Likewise.
78391         Switch to method described by Bruno Haible.
78392         Include <limits.h>, for CHAR_BIT.
78393         (SIZE_BITS): New macro.
78394
78395 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78396
78397         * m4/getline.m4 (AM_FUNC_GETLINE):
78398         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78399         hosts.  Problem reported by Derek Robert Price in
78400         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78401         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78402         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78403
78404 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78405
78406         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78407         ceiling the allocation at NMAX bytes rather than silently
78408         discarding input bytes before NMAX is reached.  This makes
78409         a difference only if NMAX exceeds SIZE_MAX / 2.
78410
78411         * lib/obstack.c: Merge from glibc.
78412         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78413         Add libc_hidden_def (_obstack_newchunk).
78414         (_obstack_free) [! defined _LIBC]: Remove.
78415         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78416         a clone of the function body.
78417         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78418         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78419
78420         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78421         glibc.
78422         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78423         arg to memcpy.
78424
78425         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78426         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78427         Don't use lvalue casts, as GCC plans to remove support for them
78428         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78429         was also present in the non-GCC version, indicating that this
78430         code had always been buggy and had never been widely used.
78431         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78432         Use the fast variant of each macro, rather than copying the
78433         definiens of the fast variant; that way, we'll be more likely to
78434         catch future bugs in the fast variants.
78435
78436 2003-10-20  Bruno Haible  <bruno@clisp.org>
78437
78438         * modules/wait-process: New file.
78439         * MODULES.html.sh (func_all_modules): Add wait-process.
78440
78441 2003-10-20  Bruno Haible  <bruno@clisp.org>
78442
78443         * m4/wait-process.m4: New file.
78444
78445 2003-10-20  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/wait-process.h: New file, from GNU gettext.
78448         * lib/wait-process.c: New file, from GNU gettext.
78449
78450 2003-10-19  Jim Meyering  <jim@meyering.net>
78451
78452         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78453         HPUX 10.20.
78454
78455 2003-10-18  Karl Berry  <karl@gnu.org>
78456
78457         * config/config.guess: update from config.
78458
78459 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78460
78461         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78462         (getgroups): First arg is int, not size_t.
78463         Don't let 'free' mangle errno.
78464
78465 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78466
78467         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78468
78469 2003-10-16  Karl Berry  <karl@gnu.org>
78470
78471         * config/config.{guess,sub}: update from config.
78472
78473 2003-10-16  Jim Meyering  <jim@meyering.net>
78474
78475         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78476         memcpy.
78477
78478 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78479
78480         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78481         (SIZE_MAX): Remove.
78482         (new_exclude, add_exclude_file): Initial size no longer needs to
78483         be a power of 2.
78484         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78485         our own address arithmetic overflow checking.
78486
78487         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78488         (fnmatch): Do not alloca more than 2000 wide characters;
78489         instead, use malloc for large buffers.
78490         Check for address arithmetic overflow, and return -1
78491         with errno set to ENOMEM in that case.
78492         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78493         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78494         instead, return -1.  Check for address arithmetic overflow.
78495
78496 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78497
78498         Handle invalid suffixes and overflow independently, so that
78499         callers can treat them independently as needed.  Fix some bugs in
78500         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78501         suffix for a human-readable blocksize.  The major caller-visible
78502         change is the addition of a new
78503         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78504         that both overflow and suffix chars were found.
78505
78506         * lib/human.c (humblock): Don't check separately for invalid suffix
78507         char; that is xstrtoumax's job (now that its bug is fixed).
78508         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78509         INTMAX_MAX]: New macros.
78510         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78511         TYPE_MAXIMUM): New macros.
78512         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78513         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78514         if overflow occurs, as it's what __strtol does and it's more useful
78515         in practice.
78516         (__xstrtol): If __strtol reports some error other than ERANGE,
78517         reflect it to the caller as LONGINT_INVALID.  If it reports
78518         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78519         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78520         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78521         value.
78522         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78523         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78524         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78525         [defined UINTMAX_MAX]: New macros.
78526
78527 2003-10-14  Bruno Haible  <bruno@clisp.org>
78528
78529         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78530
78531 2003-10-14  Bruno Haible  <bruno@clisp.org>
78532
78533         * m4/sig_atomic_t: New file, from GNU gettext.
78534         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78535
78536 2003-10-14  Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78539         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78540         Also use volatile where needed.
78541
78542 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78543
78544         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78545         Change maintainer from Bruno Haible to 'all'.
78546
78547 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78548
78549         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78550
78551 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78552
78553         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78554         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78555         and define in terms of the other primitives.
78556         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78557         (SIZE_MAX): Define if not already defined.
78558         (array_size_overflow): New function.
78559         (xalloc_die): Abort instead of exiting if 'error' returns.
78560         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78561         (xmalloc, xrealloc): Use them.
78562         (xcalloc): Check for address arithmetic overflow.
78563         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78564         a bit faster than strcpy.
78565
78566 2003-10-10  Simon Josefsson  <jas@extundo.com>
78567
78568         * modules/argp (Depends-on): Add restrict and strcase.
78569
78570 2003-10-10  Simon Josefsson  <jas@extundo.com>
78571
78572         * m4/argp.m4: Add AC_C_INLINE.
78573
78574 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78575
78576         Merge getpass from libc, plus a few fixes.
78577
78578         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78579         Include <stdbool.h>.
78580         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78581         __fsetlocking to empty.
78582         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78583         do include <bits/libc-lock.h>.
78584         Do not include <fcntl.h>; not needed.
78585         [_LIBC]: Include <wchar.h>.
78586         (NOTCANCEL_MODE): New macro.
78587         (flockfile, funlockfile) [_LIBC]: New macros.
78588         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78589         [!_LIBC]: New macros.
78590         (call_fclose): New function.
78591         (getpass): Use it.  Save tty stream separately; this simplifies the
78592         code and makes it more reliable if stdin happens to equal stdout.
78593         Invoke __fsetlocking on tty.
78594         Handle thread cancellation if needed.
78595         Namespace cleanup (use __tcgetattr, __getline).
78596         Use bool for Booleans.
78597         [USE_IN_LIBIO]: Handle wide streams.
78598         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78599         stream might go where.
78600
78601         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78602         doesn't have to include <stdio.h> before us.
78603         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78604         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78605         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78606         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78607         if not declared, so that we can use getpass.c code from libc without
78608         rewriting it.
78609         (flockfile, ftrylockfile, funlockfile): New macros.
78610
78611 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78612
78613         * modules/getpass: Depend on stdbool.
78614
78615 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78616
78617         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78618
78619 2003-10-07  Karl Berry  <karl@gnu.org>
78620
78621         * config/config.{guess,sub}: update from config.
78622
78623 2003-10-06  Jim Meyering  <jim@meyering.net>
78624             Bruno Haible  <bruno@clisp.org>
78625
78626         This lets translators provide better translations for the
78627         "Written by ..." part of --version output.
78628         * lib/version-etc.h: Include stdarg.h.
78629         (version_etc_copyright): Declare as readonly.
78630         (version_etc): Make this function variadic with a NULL-terminated list
78631         of author name strings.
78632         (version_etc_va): New declaration.
78633         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78634         (version_etc_copyright): Declare as readonly.
78635         (version_etc_va): New function. Provide a different translatable string
78636         for each possible number of authors < 10. Abbreviate when there are 10
78637         authors or more.
78638         (version_etc): Make this function variadic. Call version_etc_va.
78639         Suggestion from Gary V. Vaughan.
78640
78641         * lib/long-options.h (parse_long_options): Change prototype: the
78642         authors string is moved to the end and becomes variadic.
78643         * lib/long-options.c: Include stdarg.h.
78644         (parse_long_options): Make this function variadic, too.
78645         Call version_etc_va, not version_etc.
78646
78647 2003-10-06  Bruno Haible  <bruno@clisp.org>
78648
78649         * modules/version-etc-2: Remove file.
78650         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78651
78652 2003-10-06  Bruno Haible  <bruno@clisp.org>
78653
78654         * modules/fatal-signal: New file.
78655         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78656
78657 2003-10-06  Bruno Haible  <bruno@clisp.org>
78658
78659         * m4/fatal-signal.m4: New file.
78660         * m4/signalblocking.m4: New file, from GNU gettext.
78661
78662 2003-10-06  Bruno Haible  <bruno@clisp.org>
78663
78664         * lib/version-etc-2.h: Remove file.
78665         * lib/version-etc-2.c: Remove file.
78666
78667 2003-10-06  Bruno Haible  <bruno@clisp.org>
78668
78669         * lib/fatal-signal.h: New file, from GNU gettext.
78670         * lib/fatal-signal.c: New file, from GNU gettext.
78671
78672 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78673
78674         * README: Rework advice for preventing empty .o files.
78675         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78676         not <sys/types.h>.
78677
78678 2003-10-04  Karl Berry  <karl@gnu.org>
78679
78680         * lib/argp*: update from libc.
78681
78682 2003-10-04  Karl Berry  <karl@gnu.org>
78683
78684         * config/config.{guess,sub}: update from config.
78685
78686 2003-10-02  Bruno Haible  <bruno@clisp.org>
78687
78688         * modules/lchown (Include): Add lchown.h.
78689         * modules/time_r (Include): Use "..." syntax.
78690         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78691
78692 2003-10-01  Simon Josefsson  <jas@extundo.com>
78693
78694         * MODULES.html.sh (func_all_modules): Move gethostname from section
78695         'based on' to section 'lacking' POSIX:2001.
78696
78697 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78698
78699         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78700         to output mode on the same stream.
78701
78702 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78703
78704         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78705         Fix arg typo in previous patch.
78706
78707 2003-09-28  Jim Meyering  <jim@meyering.net>
78708
78709         * lib/error.c: Correct cpp indentation.
78710
78711 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78712
78713         * modules/free: New file.
78714
78715 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78716
78717         * m4/free.m4: New file.
78718
78719 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78720
78721         * lib/minmax.h (MIN, MAX)
78722         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78723         Omit the special code that used __typeof__, since we worry that
78724         it could be more trouble than it's worth.  See:
78725         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78726         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78727
78728         * lib/free.c: New file.
78729
78730 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78731
78732         Trivial fixes to Makefile.am parts of module listings.
78733         * modules/strstr: Append strstr.h to lib_SOURCES.
78734         * modules/strcase: Likewise, for strcase.h.
78735
78736 2003-09-27  Karl Berry  <karl@gnu.org>
78737
78738         * config/mkinstalldirs: update from automake.
78739
78740 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78741
78742         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78743         (error_tail): Do not loop, reallocating temporary buffer, since
78744         the output cannot contain more wide characters than the input
78745         contains bytes, the size must be big enough already.  This avoids
78746         one potential size overflow calculation.  Check for size overflow
78747         when calculating temporary buffer size.  Free temporary buffer
78748         when done, if it was allocated with malloc; this plugs a memory
78749         leak.  Remove casts from void * to pointers, that are no longer
78750         needed now that we're assuming C89 or better.
78751
78752         Merge error changes from glibc.
78753
78754         * lib/error.c, error.h: Update copyright notice header to match glibc.
78755         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78756         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78757         Disable cancellation while printing error.
78758         * lib/error.h: Prepend __ to parameter names.
78759
78760 2003-09-26  Jim Meyering  <jim@meyering.net>
78761
78762         * lib/error.c (error_tail): Move some declarations
78763         into inner scope where the local variables are used.
78764
78765 2003-09-26  Bruno Haible  <bruno@clisp.org>
78766
78767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78768         stpncpy().
78769         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78770
78771 2003-09-26  Bruno Haible  <bruno@clisp.org>
78772
78773         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78774         (stpncpy): Define as alias for gnu_stpncpy.
78775         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78776
78777 2003-09-25  Simon Josefsson  <jas@extundo.com>
78778
78779         * lib/xgetdomainname.h: New file.
78780         * lib/xgetdomainname.c: New file.
78781
78782 2003-09-25  Simon Josefsson  <jas@extundo.com>
78783             Bruno Haible  <bruno@clisp.org>
78784
78785         * modules/getdomainname: New file.
78786         * modules/xgetdomainname: New file.
78787         * MODULES.html.sh (func_all_modules): Add getdomainname,
78788         xgetdomainname.
78789
78790 2003-09-25  Simon Josefsson  <jas@extundo.com>
78791             Bruno Haible  <bruno@clisp.org>
78792
78793         * m4/getdomainname.m4: New file.
78794
78795 2003-09-25  Simon Josefsson  <jas@extundo.com>
78796             Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/getdomainname.h: New file.
78799         * lib/getdomainname.c: New file.
78800
78801 2003-09-25  Karl Berry  <karl@gnu.org>
78802
78803         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78804
78805 2003-09-25  Karl Berry  <karl@gnu.org>
78806
78807         * config/install-sh: update from automake.
78808
78809 2003-09-25  Bruno Haible  <bruno@clisp.org>
78810
78811         * modules/version-etc-2: New file, from modules/version-etc with
78812         modifications.
78813         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78814
78815 2003-09-25  Bruno Haible  <bruno@clisp.org>
78816
78817         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78818         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78819
78820 2003-09-24  Simon Josefsson  <jas@extundo.com>
78821
78822         * modules/xgethostname: Add xgethostname.h.
78823
78824 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78825
78826         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78827         the buffer associated with the argument.  Bug reported by
78828         Simon Josefsson.
78829
78830 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78831
78832         * README: Document assumptions that 'int' is at least 32 bits
78833         wide, that integer arithmetic is 2's complement without overflow,
78834         that there are no holes in integer values, that adding sizes of
78835         two nonoverlapping objects can't overflow, and that all-bits-zero
78836         yields scalar zero.  Fix spelling and capitalization typos.
78837
78838 2003-09-19  Karl Berry  <karl@gnu.org>
78839
78840         * lib/argp.h: update from libc.
78841
78842 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78843
78844         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78845         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78846         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78847
78848 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78849
78850         * gnulib-tool: Use "test -h", not "test -L", for portability
78851         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78852         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78853         (sed_extract_prog): Issue s commands one-by-one, rather than
78854         using \| in one s command.
78855
78856 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78857
78858         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78859         input error, instead of returning NULL the next time we are called
78860         (and therefore losing track of errno).
78861
78862 2003-09-16  Bruno Haible  <bruno@clisp.org>
78863
78864         * gnulib-tool (func_create_testdir): Warn about duplicated
78865         dependencies.
78866
78867 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78868
78869         * modules/argmatch, modules/fatal, modules/obstack,
78870         modules/xalloc, modules/xgethostname: Sort dependencies by
78871         importance, not alphabetically.
78872
78873 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78874
78875         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78876         fails, so that the caller gets the proper errno.
78877
78878         * lib/readutmp.c (read_utmp): Likewise.
78879         Check for fstat error.  Close stream and free storage
78880         when failing.
78881
78882 2003-09-14  Karl Berry  <karl@gnu.org>
78883
78884         * config/srclist.txt (strdup.c): disable for c89 changes.
78885
78886 2003-09-14  Jim Meyering  <jim@meyering.net>
78887
78888         * lib/getloadavg.c: Correct cpp indentation.
78889         * lib/strdup.c: Likewise.
78890         * lib/vasnprintf.c: Likewise.
78891
78892 2003-09-14  Bruno Haible  <bruno@clisp.org>
78893
78894         * modules/fwriteerror: New file.
78895         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78896
78897 2003-09-14  Bruno Haible  <bruno@clisp.org>
78898
78899         * lib/fwriteerror.h: New file.
78900         * lib/fwriteerror.c: New file.
78901
78902 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78903
78904         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78905         modules/xgethostname, modules/xalloc: Depend on exit.
78906
78907 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78908
78909         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78910
78911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78912         and AC_MINIX, too, so that their extensions are available.
78913
78914         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78915         This macro has been superseded by gl_BACKUPFILE.
78916
78917         More patches to assume C89 or better.
78918
78919         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78920
78921         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78922         unconditionally.
78923         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78924         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78925         Include <string.h>, <stdlib.h> unconditionally.
78926         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78927         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78928         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78929         headers or for string.h.
78930         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78931         or strtoul.
78932
78933         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78934         headers.
78935         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78936         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78937         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78938         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78941         memcpy, memset.
78942         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78943         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78944         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78945         strtol.
78946         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78947         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78948         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78949         strtoul.
78950
78951 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78952
78953         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78954         * lib/obstack.c [!defined _LIBC]: Likewise.
78955         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78956         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78957         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78958
78959         More changes to assume C89 or better.
78960
78961         * lib/error.c (error_tail): Assume vprintf.
78962
78963         * lib/argmatch.c (getenv): Remove decl.
78964         * lib/progreloc.c (get_full_program_name): Define via prototype.
78965         * lib/setenv.c (clearenv): Likewise.
78966         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78967         needed.
78968         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78969         (malloc, memcpy): Remove decls.
78970         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78971         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78972         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78973         (memcpy): Remove macro.
78974         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78975         (__P): Remove.  All uses removed.
78976         (PTR): Remove.  All uses changed to void *.
78977         (CHAR_BIT, NULL): Remove.
78978         (spaces, zeros, memset_space, memset_zero)
78979         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78980         Remove.
78981         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78982         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78983         Define with prototype.
78984         Remove now-unnecessary prototype decl.
78985         (extra_args_spec): Assume ANSI C.  All uses changed.
78986         (extra_args_spec_iso): Remove.
78987         (my_strftime, emacs_strftimeu): Define via prototype.
78988         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78989         unconditionally.
78990         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78991         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78992         (strtoul, strtol): Remove decls.
78993         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78994         LONG_MAX): Remove.
78995         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78996         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78997         (LOCALE_PARAM_PROTO): New macro.
78998         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78999         (INTERNAL (strtol), strtol): Define with a prototype.
79000         (PARAMS): Remove.  All uses removed.
79001         * lib/tempname.c: Include <string.h> unconditionally.
79002         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79003         * lib/xgethostname.c (main): Define with a prototype.
79004         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79005         Include <stdlib.h> unconditionally.
79006         (calloc, malloc, realloc, free): Remove decls.
79007         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79008         Include <stdlib.h> unconditionally.  Sort include file names.
79009         (strtod): Remove.
79010         (xstrtod): Define with a prototype.
79011         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79012         (strtol, strtoul): Remove decls.
79013
79014 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79015
79016         More patches to assume C89 or better.
79017         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79018         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79019         string.h, memchr, STDC_HEADERS.
79020
79021 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79022
79023         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79024         Include <stdlib.h>, <string.h> unconditionally.
79025         Remove now-unnecessary cast to char *.
79026         * lib/strnlen.c: Include <string.h> unconditionally.
79027         * lib/yesno.c (yesno): Define with a prototype.
79028
79029 2003-09-11  Bruno Haible  <bruno@clisp.org>
79030
79031         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79032
79033 2003-09-10  Jim Meyering  <jim@meyering.net>
79034
79035         * lib/error.c: Correct indentation of cpp directives.
79036
79037 2003-09-10  Bruno Haible  <bruno@clisp.org>
79038
79039         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79040         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79041         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79042         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79043         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79044         <stdlib.h> and <string.h> checks.
79045         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79046         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79047
79048 2003-09-10  Bruno Haible  <bruno@clisp.org>
79049
79050         * lib/strcspn.c: Include <string.h> unconditionally.
79051         * lib/strpbrk.c: Include <string.h> unconditionally.
79052         * lib/strstr.c: Include <string.h> unconditionally.
79053         * lib/unicodeio.c: Include <string.h> unconditionally.
79054         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79055         * lib/unsetenv.c: Likewise.
79056         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79057         * lib/yesno.c: Include <stdlib.h> unconditionally.
79058         (rpmatch): Add prototype.
79059
79060 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79061
79062         More patches to assume C89 or better.
79063         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79064         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79065         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79066         or for string.h.
79067         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79068         stdlib.h.
79069         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79070         C headers.
79071         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79072         string.h.
79073         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79074         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79075         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79076         or for string.h.
79077         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79078         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79079         C headers.
79080         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79081         memcpy.
79082         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79083         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79084         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79085         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79086         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79087         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79088         string.h, free.
79089         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79090         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79091         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79092         C headers, or for string.h.
79093         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79094         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79095         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79096         headers, memory.h, stdlib.h, string.h, strings.h.
79097         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79098         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79099         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79100         strchr.
79101         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79102         headers, memory.h, string.h.
79103         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79104         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79105         free.
79106         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79107         headers.
79108         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79109         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79110         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79111         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79112         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79113
79114 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79115
79116         More K&R removal.
79117
79118         * lib/acosl.c (main): Use a prototype.
79119         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79120         tanl.c: Likewise.
79121
79122         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79123
79124         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79125         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79126         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79127         with a prototype.
79128         * lib/getopt.c (const): Remove macro.
79129         Include <string.h> unconditionally.
79130         (my_index): Remove; all uses changed to strchr.
79131         (strlen): Remove decl.
79132         (exchange): Remove forward decl; no longer needed.
79133         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79134         Define with prototype.
79135         * lib/getopt1.c (const): Remove macro.
79136         (getopt_long, getopt_long_only, main): Define with prototype.
79137
79138         * lib/getugroups.c: Include <string.h> unconditionally.
79139
79140         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79141         (getusershell, setusershell, endusershell, readname, main):
79142         Define with prototypes.
79143
79144         * lib/group-member.c: Include group-member.h first.
79145         Include <stdlib.h> unconditionally.
79146
79147         * lib/hard-locale.c: Include hard-locale.h first.
79148         Include <stdlib.h>, <string.h> unconditionally.
79149
79150         * lib/hash.c (free, malloc): Remove decls.
79151         Include <stdlib.h> unconditionally.
79152
79153         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79154         (getenv): Do not declare.
79155
79156         * lib/idcache.c: Include <string.h> unconditionally.
79157
79158         * lib/long-options.c: Include long-options.h first, to test interface.
79159         Include <stdlib.h> unconditionally.
79160
79161         * lib/makepath.c: Include makepath.h first, to test interface.
79162         Include <stdlib.h> and <string.h> unconditionally.
79163
79164         * lib/linebuffer.c: Include <stdlib.h>.
79165         (free): Remove decl.
79166
79167         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79168         stddef.h. rpl_malloc returns void *, not char *.
79169         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79170         prototype.
79171
79172         * lib/md5.h: Include <limits.h> unconditionally.
79173         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79174         (__P): Remove; all uses removed.
79175         * lib/md5.c: Include "md5.h" first.
79176         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79177         md5_buffer, md5_process_bytes, md5_process_block):
79178         Define with prototypes.
79179         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79180         * lib/sha.c: Include "sha.h" first.
79181         Include <stdlib.h>, <string.h> unconditionally.
79182
79183         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79184         * lib/memcmp.c (__ptr_t): Likewise.
79185         * lib/memrchr.c (__ptr_t): Likewise.
79186         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79187         Include <string.h> unconditionally.
79188         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79189         * lib/memchr.c: Include <stdlib.h> unconditionally.
79190         * lib/memchr.c (LONG_MAX): Remove.
79191         * lib/memrchr.c (LONG_MAX): Likewise.
79192         * lib/memchr.c (__memchr): Define via a prototype.
79193         * lib/memrchr.c (__memrchr): Likewise.
79194         * lib/memcmp.c (__P): Remove, and remove all uses.
79195         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79196         Remove forward decls; no longer needed.
79197         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79198         Use types required by C89 in prototype.
79199
79200         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79201         * lib/savedir.c: Likewise.
79202         * lib/mkdir.c (free): Remove decl.
79203         * lib/rmdir.c (rmdir): Define with a prototype.
79204         * lib/savedir.c: Include savedir.h first, to test interface.
79205
79206         * lib/mktime.c (STDC_HEADERS): Remove.
79207         Include <stdlib.h>, <string.h> unconditionally.
79208
79209         * lib/modechange.c: Include <stdlib.h> unconditionally.
79210         (malloc): Remove decl.
79211
79212         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79213         (free): Remove decl.
79214
79215         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79216         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79217         (This type really should be intptr_t, but that's a C99ism.)
79218         (_obstack_memcpy): Remove: all uses changed to memcpy.
79219         Include <string.h> unconditionally.
79220         (struct obstack): Assume __STDC__ for types of members
79221         chunkfun, freefun, extra_arg.
79222         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79223         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79224         obstack_begin, obstack_specify_allocation,
79225         obstack_specify_allocation_with_arg, obstack_chunkfun,
79226         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79227         Remove unprototyped decls and the macros that use them.
79228         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79229         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79230         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79231         (defined __STDC__ && __STDC__)]:
79232         Remove nonprototyped code.
79233         Include <stdlib.h> unconditionally.
79234         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79235         _obstack_allocated_p, _obstack_free, obstack_free,
79236         _obstack_memory_used, print_and_abort):
79237         Define using prototypes.
79238         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79239         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79240         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79241         obstack_next_free, obstack_object_size, obstack_room) [0]:
79242         Remove unused, unprototyped code.
79243
79244         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79245
79246         * lib/physmem.c (physmem_total, physmem_available, main): Define
79247         with prototypes.
79248
79249         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79250         (main): Define with a prototype.
79251
79252         * lib/posixver.c (getenv): Remove decl.
79253
79254         * lib/putenv.c (malloc): Returns void *, not char *.
79255         Include <string.h> unconditionally.
79256         (strchr, memcpy, NULL): Do not define.
79257
79258         * lib/readtokens.c: Include readtokens.h first, to test interface.
79259         Include <stdlib.h>, <string.h> unconditionally.
79260         (init_tokenbuffer): Define with a prototype.
79261
79262         * lib/regex.c (PARAMS): Remove.  All uses removed.
79263         All uses of _RE_ARGS removed, too.
79264         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79265         unconditionally.
79266         (bzero): Assume memset exists.
79267         (memcmp, memcpy, NULL): Remove.
79268         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79269         char, or assignments to local vars of type signed char.
79270         (init_syntax_once, PREFIX(extract_number_and_incr),
79271         PREFIX(print_partial_compiled_pattern),
79272         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79273         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79274         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79275         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79276         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79277         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79278         wcs_compile_range, byte_compile_range, truncate_wchar,
79279         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79280         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79281         count_mbs_length, wcs_re_match_2_internal,
79282         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79283         PREFIX(alt_match_null_string_p),
79284         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79285         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79286         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79287         now-unnecessary declaration, if any.
79288         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79289         regcomp, regexec):
79290         Remove now-unnecessary casts among pointer types.
79291         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79292
79293         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79294         (free): Remove decl.
79295
79296         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79297
79298         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79299         (free): Remove decl.
79300
79301         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79302         * lib/xgetcwd.c: Likewise.
79303
79304         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79305         (free): Remove decl.
79306
79307         * lib/strchrnul.c (strchrnul): Define with a prototype.
79308         Fix bug: c_in was not converted to char before searching.
79309
79310         The following changes are not K&R related:
79311
79312         * lib/group-member.h: Include <sys/types.h>, so that this file is
79313         self-contained.
79314         * lib/makepath.h: Likewise.
79315
79316         * lib/getusershell.c (readname, default_index, line_size, readname):
79317         Use size_t, not int, for sizes.
79318         (readname): If the size overflows, report an error instead of
79319         looping forever.
79320
79321 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79322
79323         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79324         libc.
79325
79326 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79327
79328         * README: New section: portability guidelines.
79329
79330 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79331
79332         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79333         C89 spec.
79334
79335 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79336
79337         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79338
79339 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79340
79341         Assume C89 or better; remove K&R cruft.
79342         A few of these changes were first proposed by Derek Robert Price
79343         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79344
79345         * lib/addext.c: Include <string.h> unconditionally.
79346         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79347         Don't declare getenv or malloc.
79348
79349         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79350         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79351         (NULL): Remove.
79352         (find_stack_direction, alloca): Use prototypes.
79353
79354         * lib/atexit.c (atexit): Define using a prototype.
79355
79356         * lib/basename.c, dirname.c, stripslash.c:
79357         Include <string.h> unconditionally.
79358
79359         * lib/bcopy.c: Include <stddef.h>.
79360         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79361
79362         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79363
79364         * lib/error.h (error, error_at_line, error_print_progname)
79365         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79366         * lib/error.c: Include error.h first, to check interface.
79367         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79368         (VA_START): Remove; all uses changeed to va_start.
79369         (exit, strerror): Remove decls.
79370         (error_print_progname): Prototype uncondionally.
79371         Don't include <errno.h>; no longer needed.
79372         (private_strerror): Remove.
79373         (error_tail): Always define.
79374         (error, error_at_line): Assume C89 or better; always use prototypes.
79375         * lib/fatal.c: Include "fatal.h" first, to test interface.
79376         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79377         (VA_START): Remove; all uses changed to va_start.
79378         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79379         this case.
79380         (exit): Remove decl.
79381         (fatal): Prototype unconditionally.  Assume va_start works.
79382         Abort at end, to pacify gcc.
79383
79384         * lib/euidaccess.c (main): Define with a prototype.
79385
79386         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79387
79388         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79389
79390         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79391         prototypes.
79392         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79393         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79394         (getenv): Remove decl.
79395         (fnmatch): Define using a prototype.
79396         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79397         (FCT): Define using a prototype.
79398
79399         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79400
79401         * lib/gethostname.c: Include <stddef.h>.
79402         (gethostname): Define with prototype.  Length is size_t, not int.
79403
79404 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79405
79406         Assume C89 or better; remove K&R cruft.
79407         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79408         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79409         string.h, getenv, malloc.
79410         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79411         headers.
79412         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79413         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79414         do not check for strerror.
79415         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79416         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79417         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79418         do not check for doprnt or vprintf.
79419         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79420         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79421
79422 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79423
79424         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79425         getversion.c should have been removed then, but was accidentally
79426         preserved.
79427
79428         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79429         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79430
79431 2003-09-08  Karl Berry  <karl@gnu.org>
79432
79433         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79434                 config, forget about prep.
79435
79436         * config/depcomp, missing: update from automake.
79437
79438 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79439
79440         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79441         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79442
79443 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79444
79445         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79446         copy_tm_result.  Bug reported by Simon Josefsson in
79447         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79448
79449 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79450
79451         * m4/time_r.m4: New file.
79452         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79453         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79454         is. Check for timegm declaration.
79455         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79456         Do not check for gmtime_r.
79457         Replace mktime if __mktime_internal does not exist and if mktime
79458         hasn't been replaced already.
79459
79460 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79461
79462         * lib/time_r.c, lib/time_r.h: New files.
79463
79464         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79465         __localtime_r.
79466         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79467         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79468
79469         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79470         __gmtime_r.
79471         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79472         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79473         Include <time_r.h>.
79474
79475         * lib/timegm.c: Switch to glibc implementation, with the following
79476         changes:
79477         [defined HAVE_CONFIG_H]: Include <config.h>.
79478         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79479         (__mktime_internal) [!defined _LIBC]: New decl.
79480         (__gmtime_r) [!defined _LIBC]: New macro and function.
79481         (timegm): Use a prototype, since gnulib assumes C89.
79482         Do not bother declaring tmp to be const, as it's not really usefu.
79483         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79484         (timegm): Declare only if HAVE_DECL_TIMEGM.
79485
79486 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79487
79488         * MODULES.html.sh (func_all_modules): Add time_r.
79489         * modules/time_r: New file.
79490         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79491         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79492
79493 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79494
79495         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79496         Bug reported by Lute Kamstra in
79497         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79498
79499         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79500         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79501         course with correspondingly smaller numbers for tomorrow and
79502         yesterday.  From Tadayoshi Funaba.  Originally installed into
79503         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79504         coreutils merge?).
79505
79506 2003-08-31  Simon Josefsson  <jas@extundo.com>
79507
79508         * modules/timegm: New file.
79509         * MODULES.html.sh (func_all_modules): Add timegm.
79510
79511 2003-08-31  Simon Josefsson  <jas@extundo.com>
79512
79513         * m4/timegm.m4: New file.
79514
79515 2003-08-31  Simon Josefsson  <jas@extundo.com>
79516
79517         * lib/timegm.h: New file.
79518         * lib/timegm.c: New file.  Based on
79519         wget-1.8.2/src/http.c:mktime_from_utc.
79520
79521 2003-08-31  Karl Berry  <karl@gnu.org>
79522
79523         * lib/argp.h: update from libc.
79524
79525 2003-08-28  Bruno Haible  <bruno@clisp.org>
79526
79527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79528         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79529         followed by '#define fnmatch fnmatch_posix' gives an error.
79530
79531 2003-08-28  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79534         warning on QNX, which defines O_BINARY to 000000.
79535
79536 2003-08-27  Jim Meyering  <jim@meyering.net>
79537
79538         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79539         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79540         would fail after 32.  Reported by Danny Levinson.  Details here:
79541         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79542
79543 2003-08-24  Bruno Haible  <bruno@clisp.org>
79544
79545         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79546         MSVC7 <stdio.h> is included later.
79547
79548 2003-08-22  Simon Josefsson  <jas@extundo.com>
79549
79550         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79551
79552 2003-08-20  Karl Berry  <karl@gnu.org>
79553
79554         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79555
79556 2003-08-20  Bruno Haible  <bruno@clisp.org>
79557
79558         * modules/progname: New file.
79559         * MODULES.html.sh (func_all_modules): Add progname.
79560
79561 2003-08-20  Bruno Haible  <bruno@clisp.org>
79562
79563         * lib/progname.h: New file, from GNU gettext.
79564         * lib/progname.c: New file, from GNU gettext.
79565         * lib/progreloc.c: New file, from GNU gettext.
79566
79567 2003-08-19  Jim Meyering  <jim@meyering.net>
79568
79569         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79570         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79571
79572 2003-08-19  Bruno Haible  <bruno@clisp.org>
79573
79574         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79575         more.
79576
79577 2003-08-19  Bruno Haible  <bruno@clisp.org>
79578
79579         * lib/xstrdup.c: Assume <string.h> exists.
79580
79581 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79582
79583         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79584         in makefile rules.
79585
79586 2003-08-18  Jim Meyering  <jim@meyering.net>
79587
79588         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79589         * m4/lib-ld.m4: Likewise.
79590
79591 2003-08-18  Jim Meyering  <jim@meyering.net>
79592
79593         * lib/setenv.h: Indent nested cpp directive.
79594         * lib/vasnprintf.c: Remove trailing blanks.
79595
79596 2003-08-17  Simon Josefsson  <jas@extundo.com>
79597
79598         * modules/xstrndup: New file.
79599         * MODULES.html.sh (func_all_modules): Add xstrndup.
79600
79601 2003-08-17  Simon Josefsson  <jas@extundo.com>
79602
79603         * modules/argp: Fix autoconf macro name. Add more dependencies.
79604
79605 2003-08-17  Simon Josefsson  <jas@extundo.com>
79606
79607         * m4/xstrndup.m4: New file.
79608
79609 2003-08-17  Simon Josefsson  <jas@extundo.com>
79610
79611         * m4/argp.m4: New file.
79612
79613 2003-08-17  Simon Josefsson  <jas@extundo.com>
79614             Bruno Haible  <bruno@clisp.org>
79615
79616         * lib/xstrndup.h: New file.
79617         * lib/xstrndup.c: New file.
79618
79619 2003-08-17  Bruno Haible  <bruno@clisp.org>
79620
79621         * modules/strndup (Files, Include): Add lib/strndup.h.
79622
79623 2003-08-17  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/euidaccess (Files): Add lib/euidaccess.h.
79626
79627 2003-08-17  Bruno Haible  <bruno@clisp.org>
79628
79629         * lib/strndup.h: New file.
79630
79631 2003-08-17  Bruno Haible  <bruno@clisp.org>
79632
79633         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79634         like AC_GNU_SOURCE.
79635         * modules/extensions (configure.ac): Comment out the invocation of
79636         gl_USE_SYSTEM_EXTENSIONS.
79637
79638 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79639
79640         Merges from coreutils, etc.
79641         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79642         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79643         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79644         fixing a typo.
79645         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79646         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79647
79648 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79649
79650         Document merge from coreutils.
79651         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79652         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79653         * modules/utime: Add m4/utimes-null.m4.
79654
79655 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79656
79657         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79658         space, undoing this 2003-08-12 change:
79659         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79660
79661 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79662
79663         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79664         strtoul.c from libc, undoing this 2003-08-12 change:
79665         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79666
79667 2003-08-16  Jim Meyering  <jim@meyering.net>
79668
79669         Merges from coreutils.
79670         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79671         prefix.  Adjust cache variables similarly.  Create 500 rather than
79672         just 300 files, to exercise bug on Darwin6.5, too.
79673         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79674         $missing_dir.
79675         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79676         AM_SYS_POSIX_TERMIOS.
79677         Reported by mkc@mathdogs.com.
79678         Also change use of $am_cv_sys_posix_termios
79679         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79680         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79681         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79682         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79683         in /proc/mounts until it finds one with matching device number.  This
79684         is unnecessary when the FILE argument *is* a mount point.  No stat call
79685         is necessary in that case.  So, disable the statvfs-testing code on
79686         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79687         as RedHat bug# 84846.
79688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79689         to 1MB, so as not to render systems with no stack size limit (e.g.,
79690         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79691         Include <unistd.h>.  On some systems,
79692         it is required for the definition of _SC_PAGESIZE.
79693
79694 2003-08-16  Jim Meyering  <jim@meyering.net>
79695
79696         Merge from coreutils.
79697         * lib/xstrtoimax.c: #else #if -> #elif.
79698         * lib/xstrtoumax.c: Likewise.
79699
79700 2003-08-16  Jim Meyering  <jim@meyering.net>
79701
79702         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79703         * m4/utimes.m4: Removed.
79704         * m4/utimes-null.m4: Renamed from utimes.m4.
79705
79706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79707         to 1MB, so as not to render systems with no stack size limit (e.g.,
79708         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79709         Include <unistd.h>.  On some systems,
79710         it is required for the definition of _SC_PAGESIZE.
79711
79712 2003-08-16  Jim Meyering  <jim@meyering.net>
79713         and Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         Merges from coreutils, etc.
79716
79717         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79718         using the latest version from cvs.  This avoids problems with #line
79719         directives using a vendor (Sun) compiler.
79720         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79721         Don't set GETGROUPS_LIB here; now it's
79722         done via getgroups.m4's wrapper function.
79723         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79724         rather than just in sh-util/configure.in, so that the
79725         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79726         same.
79727         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79728         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79729         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79730         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79731         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79732         Remove code that is now done by the newly-required macros.
79733         Append $(EXEEXT) to DF_PROG.
79734         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79735         Do not invoke or require the following here,
79736         since prereq.m4 or some gnulib .m4 now does this for us:
79737         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79738         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79739         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79740         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79741         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79742         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79743         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79744         AC_FUNC_OBSTACK.
79745         Do not replace the following functions, as this is now the job
79746         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79747         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79748         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79749         atexit getpass, strdup, getpagesize.
79750         Replace 'raise'.
79751         Do not check for the following functions, as this is now the job
79752         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79753         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79754         setregid.
79755         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79756         Check for sys/sysctl.h.
79757         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79758         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79759         of checking for ssize_t ourselves.
79760
79761         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79762         Require every macro that gnulib/modules/* suggests for us.
79763         (jm_PREREQ_ADDEXT): New macro.
79764         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79765         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79766
79767         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79768         (gl_PHYSMEM): Use it.
79769         Also check for `table' function.
79770         Check for new headers and functions.
79771         Add check for sys/sysmp.h.
79772         With suggestions from Kaveh Ghazi.
79773         Ignore headers that are present but cannot be compiled.  This
79774         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79775         C 5.4.
79776
79777 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79778
79779         Document merge from coreutils.
79780         * modules/userspec: Depend on posixver.
79781         * modules/strftime: Depend on tzset.
79782
79783 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79784
79785         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79786         rather than tab, after '#' in shell-script copyright notices.
79787         Suggested by Bruno Haible.
79788
79789 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79790
79791         * config/srclist-update: Use three spaces, rather than tab, after '#'
79792         in shell-script copyright notices.  Suggested by Bruno Haible.
79793         Remove unnecessary parenthesization in regular expression.
79794
79795 2003-08-15  Jim Meyering  <jim@meyering.net>
79796
79797         Merge from coreutils.
79798         * lib/xgethostname.c: Include <stdlib.h>.
79799         (xghostname): Don't exit for anything other than memory-related
79800         failure; just return NULL.
79801         * lib/userspec.c: Include "posixver.h".
79802         (parse_user_spec): Accept `.' as a separator only
79803         in pre-POSIX-200112 mode.
79804         * lib/strtoimax.c: Use #elif rather than #else #if.
79805         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79806         Remove function, now that we can rely on a working tzset function.
79807         [!_LIBC]: Ensure that the required autoconf test has been run.
79808         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79809         Use underlying_strftime for %r.
79810         * lib/sha.c: Merge in some clean-up and optimization changes from
79811         glibc.
79812         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79813         Ensure that it is a multiple of 64.
79814         Rearrange loop exit tests so as to avoid performing an
79815         additional fread after encountering an error or EOF.
79816         * lib/realloc.c: Update copyright date.
79817
79818 2003-08-15  Jim Meyering  <jim@meyering.net>
79819         and Paul Eggert  <eggert@twinsun.com>
79820
79821         Merge from coreutils.
79822         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79823         member but strut utmpx does not.  Needed for AIX 4.3.3.
79824         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79825
79826 2003-08-15  Jim Meyering  <jim@meyering.net>
79827         and Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         Merges from coreutils, etc.
79830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79831         Require gl_FUNC_TZSET_CLOBBER.
79832         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79833         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79834         members.
79835
79836 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79837
79838         Help the merge from coreutils.
79839         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79840         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79841         * m4/tzset.m4: Use it too.
79842
79843 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79844
79845         * modules/tzset: New file.
79846
79847 2003-08-14  Jim Meyering  <jim@meyering.net>
79848
79849         Merges from coreutils.
79850         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79851         variable names, rather than @FNMATCH_H@.
79852         * modules/alloca: Likewise for $(ALLOCA_H).
79853
79854         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79855         the three copies of the literal target, `fnmatch.h'.
79856         * modules/alloca (alloca.h): Likewise.
79857
79858 2003-08-14  Jim Meyering  <jim@meyering.net>
79859
79860         Merge from coreutils.
79861         * m4/tzset.m4: New file.
79862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79863         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79864         otherwise, AIX 5.1 systems would end up using the latter.
79865         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79866         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79867         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79868         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79869
79870 2003-08-14  Jim Meyering  <jim@meyering.net>
79871
79872         Merge from coreutils.
79873         * lib/obstack.h: Whitespace changes.
79874         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79875         and xcalloc return values.
79876         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79877         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79878         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79879         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79880         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79881         error from mntctl.
79882         Use mntctl's return value to drive the entry-processing loop, since
79883         we can't rely on the value of the vmt_length member in the last
79884         entry.  On some systems doing so could result in exhausting
79885         virtual memory.  Based in part on a patch from Mike Jetzer.
79886
79887 2003-08-14  Jim Meyering  <jim@meyering.net>
79888         and Paul Eggert  <eggert@twinsun.com>
79889
79890         Merges from coreutils, plus other fixes.
79891         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79892         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79893         for credits and details.  Thanks to Kaveh Ghazi for helping
79894         to keep these files in sync.
79895         (ARRAY_SIZE): Define it.
79896         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79897         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79898         (memcasecmp): Don't assume size_t fits in unsigned int.
79899         Remove casts and duplicate code.
79900         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79901         (memcpy): Remove definition.
79902         Merge in some clean-up and optimization changes from glibc.
79903         [BLOCKSIZE]: Move definition to top of file.
79904         Ensure that it is a multiple of 64.
79905         Rearrange loop exit tests so as to avoid performing an
79906         additional fread after encountering an error or EOF.
79907         * lib/md5.h (md5_uintptr): Define.
79908         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79909         return to the initial working directory.  Preserve errno
79910         for caller.
79911         * lib/idcache.c: Include "xalloc.h".
79912         (xmalloc, xrealloc): Remove decls.
79913         (getuser): Remove casts no longer required in C89.
79914         * lib/human.c: Include stdio.h, for sprintf.
79915         * lib/group-member.c: Include "xalloc.h".
79916         (xmalloc, xrealloc): Remove decls.
79917         (get_group_info): Remove casts no longer required in C89.
79918         * lib/getusershell.c (readname): Remove casts no longer required in
79919         C89.
79920         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79921         * lib/getline.c: Whitespace fix, from coreutils.
79922
79923 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79924
79925         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79926         Check for isascii.
79927
79928         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79929         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79930         Undo previous (whitespace-only) change.
79931
79932 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79933
79934         * lib/exclude.c: Include <ctype.h>
79935         (IN_CTYPE_DOMAIN): New macro.
79936         (is_space): New fn.
79937         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79938         and empty lines.
79939
79940         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79941         Undo previous (whitespace-only) change.
79942
79943 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79944
79945         * config/srclist-update: Change update back to the old behavior,
79946         leaving whitespace alone.  Use one 'sed' command rather than a
79947         pipeline.
79948         (fixlicense): Now a variable, not a function.
79949         (remove_trailing_blanks): Remove.
79950         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79951         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79952         Undo previous (whitespace-only) change.
79953
79954 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79955
79956         Merge from coreutils.
79957         * modules/euidaccess: Add lib_SOURCES, include for new
79958         file euidaccess.h
79959
79960 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79961
79962         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79963         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79964         Normalize leading white space and remove trailing white space.
79965
79966         Merge from coreutils
79967         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79968
79969         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79970         0.12.1.  These files are now being upgraded automatically by
79971         ../config/srclist-update.
79972
79973 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79974
79975         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79976         Normalize leading white space and remove trailing white space.
79977         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79978         notice, as per ../config/srclist-update.
79979
79980         Merge from coreutils.
79981         * lib/euidaccess.h: New file.
79982         * lib/euidaccess.c: Include it.
79983         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79984         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79985         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79986
79987 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79988
79989         * config/srclist-update: Add copyright notice.
79990         (remove_id_lines, remove_trailing_blanks): New constants.
79991         (fixfile): Use them to normalize spacing a bit in copied files.
79992         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79993         Normalize leading white space and remove trailing white space.
79994
79995         * config/texinfo.tex: Sync with texinfo.
79996
79997         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79998         strtoul.c from libc, to merge coreutils whitespace changes.
79999
80000         * config/srclist.txt: Get the following m4 files from gettext:
80001         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80002         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80003         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80004         wint_t.m4.
80005
80006 2003-08-12  Karl Berry  <karl@gnu.org>
80007
80008         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80009         been made.
80010
80011 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80012
80013         * modules/gnu-source, m4/gnu-source.m4:
80014         Remove; we're assuming Autoconf 2.54 or later now.
80015         Suggested by Bruno Haible.
80016         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80017
80018 2003-08-11  Bruno Haible  <bruno@clisp.org>
80019
80020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80021
80022 2003-08-11  Bruno Haible  <bruno@clisp.org>
80023
80024         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80025         (vasnprintf): Use it instead of wcslen.
80026
80027 2003-08-11  Bruno Haible  <bruno@clisp.org>
80028
80029         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80030         value to ensure that _Bool promotes to int. Use #define for _Bool when
80031         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80032
80033 2003-08-10  Karl Berry  <karl@gnu.org>
80034
80035         * lib/regex.h: update from libc (whitespace fix).
80036
80037 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80038
80039         Merge some files from coreutils.  These changes were
80040         originally made by Jim Meyering.
80041         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80042         many older Unixes require this.
80043         * lib/alloca.c (alloca): Remove cast to argument of free;
80044         no longer needed in C89.
80045         * lib/alloca_.h, regex.h: Fix white space to match
80046         what GNU indent does.
80047
80048 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80049
80050         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80051         apparently Emacs's Unicode mode got confused before my 2003-08-05
80052         checkin.
80053
80054 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80055
80056         * m4/extensions.m4: New file.
80057         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80058         Require gl_USE_SYSTEM_EXTENSIONS.
80059         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80060         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80061
80062 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80063
80064         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80065         * modules/extensions, modules/gnu-source: New files.
80066         * modules/timespec, modules/unlocked-io: Depend on extensions.
80067
80068 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80069
80070         * modules/restrict: New file.
80071         * MODULES.html.sh (func_all_modules): Add restrict.
80072         * modules/regex: Depend on restrict.
80073
80074 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80075
80076         * m4/restrict.m4: New file.
80077         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80078
80079 2003-08-07  Bruno Haible  <bruno@clisp.org>
80080
80081         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80082         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80083
80084 2003-08-07  Bruno Haible  <bruno@clisp.org>
80085
80086         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80087         makes the module 'getndelim2' compatible with the module 'getline'.
80088
80089 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80090
80091         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80092         byte with "\201" to avoid glitches when editing that source file
80093         with multi-gnome-terminal.
80094
80095 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80096
80097         * lib/bumpalloc.h: Remove.
80098
80099 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80100
80101         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80102         * modules/bumpalloc: Remove.
80103
80104 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80105
80106         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80107         GNU coding style.
80108
80109         Merge from coreutils.
80110         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80111         1. From glibc.
80112         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80113         from Karl Berry, implemented by Jim Meyering.
80114         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80115         from Dmitry V. Levin.
80116         Remove anachronistic cast of xrealloc.
80117         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80118         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80119         type. Otherwise, it wouldn't compile with at least /bin/cc on
80120         ymp-cray-unicos9.0.2.X.
80121         Combine two mostly-identical uses of alloca into one.
80122         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80123
80124 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80125
80126         [From Emacs.]
80127
80128         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80129         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80130         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80131         obsolete NLIST_NAME_UNION.
80132         [__GNU__]: Undef BSD and FSCALE.
80133         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80134
80135 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80136
80137         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80138         an enum type, so that it's guaranteed to promote to int.  See:
80139         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80140
80141 2003-08-03  Karl Berry  <karl@gnu.org>
80142
80143         * config/depcomp: update from automake.
80144
80145 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80146
80147         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80148         (strerror): Don't assume that a printable int fits in 14 bytes.
80149
80150 2003-07-31  Bruno Haible  <bruno@clisp.org>
80151
80152         * modules/getpass-gnu: New file.
80153         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80154
80155 2003-07-31  Bruno Haible  <bruno@clisp.org>
80156
80157         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80158
80159 2003-07-24  Karl Berry  <karl@gnu.org>
80160
80161         * config/missing: update from automake.
80162
80163 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80164             Bruno Haible  <bruno@clisp.org>
80165
80166         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80167         * lib/getline.c (getline, getdelim): Likewise.
80168         Remove _GNU_SOURCE define; now it's defined in config.h through
80169         m4/getline.m4.
80170
80171 2003-07-23  Karl Berry  <karl@gnu.org>
80172
80173         * config/config.sub: update from prep.
80174
80175 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80176
80177         * modules/xalloc (Depends-on): Add exitfail.
80178         * modules/xmemcoll: Likewise.
80179
80180 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80181
80182         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80183         over-parenthesization in macros.
80184
80185         Sync with coreutils.
80186
80187         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80188         required by C99.
80189
80190         Use `exit_failure' for xalloc and xmemcoll instead of their own
80191         private exit-failure variables.
80192         * lib/xalloc.h (xalloc_exit_failure): Remove.
80193         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80194         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80195         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80196         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80197         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80198
80199 2003-07-20  Jim Meyering  <jim@meyering.net>
80200
80201         * modules/closeout (Depends-on): Add exitfail.
80202         Suggestion from Bruno Haible.
80203
80204 2003-07-19  Karl Berry  <karl@gnu.org>
80205
80206         * config/config.sub: update from prep.
80207
80208 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80209
80210         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80211         Remove.
80212         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80213         to test that it can stand by itself.  Include "exitfail.h".
80214         Clients should set exit_failure instead.
80215         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80216
80217 2003-07-18  Bruno Haible  <bruno@clisp.org>
80218
80219         * modules/getndelim2: New file.
80220         * modules/getline: Share files with module getndelim2.
80221         * modules/getnline: Depend on getndelim2 instead of sharing files with
80222         it. Add getnline.c to lib_SOURCES.
80223         * MODULES.html.sh (func_all_modules): Add getndelim2.
80224
80225 2003-07-18  Bruno Haible  <bruno@clisp.org>
80226
80227         * m4/getndelim2.m4: New file.
80228         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80229         invoke gl_PREREQ_GETNDELIM2.
80230         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80231         gl_PREREQ_GETNDELIM2.
80232         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80233         gl_GETNDELIM2.
80234
80235 2003-07-18  Bruno Haible  <bruno@clisp.org>
80236
80237         * lib/getndelim2.h: New file.
80238         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80239         getndelim2.h.
80240         (getndelim2): Make non-static. Change return type to ssize_t.
80241         * lib/getline.h: Change argument names.
80242         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80243         * lib/getnline.c: Include getndelim2.h.
80244
80245 2003-07-18  Andreas Schwab  <schwab@suse.de>
80246
80247         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80248
80249 2003-07-17  Karl Berry  <karl@gnu.org>
80250
80251         * config/config.sub: update from prep.
80252
80253 2003-07-17  Bruno Haible  <bruno@clisp.org>
80254
80255         * modules/getnline: New file.
80256         * modules/getline: Add lib/getndelim2.c to source file list.
80257         * MODULES.html.sh (func_all_modules): Add getnline.
80258
80259 2003-07-17  Bruno Haible  <bruno@clisp.org>
80260
80261         * m4/getnline.m4: New file.
80262
80263 2003-07-17  Bruno Haible  <bruno@clisp.org>
80264
80265         * m4/Makefile.am.in: Remove file.
80266         * m4/Makefile.am: Remove file.
80267         * m4/Makefile.in: Remove file.
80268
80269 2003-07-17  Bruno Haible  <bruno@clisp.org>
80270
80271         * lib/getnline.h: New file.
80272         * lib/getnline.c: New file.
80273         * lib/getndelim2.c: New file, extracted from getline.c.
80274         (getndelim2): Renamed from getdelim2, with added nmax argument.
80275         * lib/getline.c: Include getndelim2.c.
80276         (getdelim2): Moved out to getndelim2.c.
80277         (getline, getdelim): Update.
80278
80279 2003-07-17  Bruno Haible  <bruno@clisp.org>
80280
80281         * lib/Makefile.am: Remove file.
80282         * lib/Makefile.in: Remove file.
80283
80284 2003-07-17  Bruno Haible  <bruno@clisp.org>
80285
80286         * configure.in: Remove file.
80287         * Makefile.in: Remove file.
80288
80289 2003-07-17  Bruno Haible  <bruno@clisp.org>
80290
80291         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80292
80293 2003-07-16  Karl Berry  <karl@gnu.org>
80294
80295         * config/srclist-update: was running fixlicense twice, which caused
80296                 texinfo.tex to be nullified for some reason.  Simplify,
80297                 $gplsrc is no longer needed as far as I can see?
80298
80299 2003-07-16  Jim Meyering  <jim@meyering.net>
80300
80301         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80302
80303 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80304
80305         * config/srclist.txt: Get the following files from gettext-runtime/intl
80306         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80307         ref-del.sin.  From Bruno Haible.
80308         * config/srclist-update (fixfile): Change grep pattern again, since the
80309         previous fix didn't work (there was another trailing $).  Use
80310         '[$]' to escape the $s.
80311
80312 2003-07-15  Karl Berry  <karl@gnu.org>
80313
80314         * lib/vasnprintf.c: update from gettext.
80315
80316 2003-07-15  Karl Berry  <karl@gnu.org>
80317
80318         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80319         gets expanded when surrounded by '$'.
80320
80321 2003-07-15  Jim Meyering  <jim@meyering.net>
80322
80323         * modules/save-cwd: Don't depend on error.  From Derek Price.
80324
80325 2003-07-15  Jim Meyering  <jim@meyering.net>
80326
80327         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80328
80329 2003-07-14  Simon Josefsson  <jas@extundo.com>
80330
80331         * modules/mempcpy: New file.
80332         * MODULES.html.sh (func_all_modules): Add mempcpy.
80333
80334 2003-07-14  Simon Josefsson  <jas@extundo.com>
80335
80336         * m4/mempcpy.m4: New file.
80337
80338 2003-07-14  Simon Josefsson  <jas@extundo.com>
80339
80340         * lib/mempcpy.h: New file.
80341         * lib/mempcpy.c: New file.
80342
80343 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80344
80345         * modules/getdate, modules/posixtm: Depend on mktime.
80346
80347 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80348
80349         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80350         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80351         unicodeio.c, unicodeio.h, unlocked-io.h:
80352         Switch from LGPL to GPL.
80353
80354 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80355
80356         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80357         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80358         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80359         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80360         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80361         updated automatically by ../config/srclist-update.  This changes
80362         their license from LPGL to GPL.
80363
80364 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80365
80366         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80367         assumed to refer to the root of the most recent stable gettext version.
80368         * config/srclistvars.sh: Add defaults for eggert.
80369         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80370         Match "This program" as well as "The program".  This is needed
80371         for gettext.
80372
80373 2003-07-14  Jim Meyering  <jim@meyering.net>
80374
80375         Don't emit diagnostics.  Let callers do that.
80376         * lib/save-cwd.c: Don't include "error.h".
80377         (save_cwd): Don't call error.  Ensure that errno is valid
80378         when returning nonzero.
80379
80380         * lib/save-cwd.h (restore_cwd): Update prototype.
80381         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80382         Simplify.  Don't call error upon failure.  Let callers do that.
80383         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80384         when auditing is enabled.  But don't bother updating the #if.
80385
80386 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80387
80388         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80389         it breaks C++ compilation.
80390         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80391
80392 2003-07-10  Simon Josefsson  <jas@extundo.com>
80393
80394         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80395
80396 2003-07-10  Jim Meyering  <jim@meyering.net>
80397
80398         * m4/clock_time.m4: Remove trailing blank.
80399         * m4/intmax_t.m4: Likewise.
80400
80401 2003-07-10  Jim Meyering  <jim@meyering.net>
80402
80403         * lib/vasnprintf.c: Remove trailing blanks.
80404         Make cpp indentation consistent.
80405
80406 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80407
80408         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80409         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80410         Switch from LGPL to GPL.
80411
80412 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80413
80414         * config/srclist.txt: Sort sublists.  Add
80415         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80416         that differ from gnulib for one reason or another; we'd like this list
80417         to be smaller but for now let's document what we have.
80418
80419 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80420
80421         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80422         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80423         and sweeter "eval x=$x".
80424         * config/srclist.txt: Get lib/argp* from glibc.
80425
80426 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80427
80428         * lib/mktime.c: Fix some boundary cases and remove need for floating
80429         point.
80430
80431         Issue a compile-time diagnostic if time_t is floating point, or if
80432         two's complement arithmetic is not in effect, or if arithmetic
80433         right shift does not propagate the sign.  These assumptions were
80434         all in the original code but they weren't checked.
80435
80436         (TIME_T_MIDPOINT, verify): New macros.
80437         (__isleap): Remove; it has integer overflow problems.
80438         (leapyear): New function, without those problems.
80439         (ydhms_tm_diff): Remove; splitting into two parts.
80440         (ydhms_diff): New function, containing the arithmetic part of
80441         the old ydhms_tm_diff function.  Issue a compile-time
80442         diagnostic if we are not using C99 integer division.
80443         Avoid casts when possible.
80444         (guess_time_tm): New function, containing the checking part of
80445         the old ydhms_tm_diff function.  Return the new value, rather than
80446         the difference between it and the old.  Accept a new argument T
80447         so that *T specifies the old value.  Check for overflow in the result.
80448
80449         (__mktime_internal): Use a time_t offset, not a long int offset.
80450         This undoes the 2003-06-04 change, which is no longer needed now
80451         that we have better overflow checking.
80452         (localtime_offset): Likewise.
80453
80454         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80455         and long are 64-bit but int is only 32-bit.
80456         (ydhms_diff): Use long int to store year1 and yday1.
80457         Issue a compile-time diagnostic if long int is not wide enough.
80458
80459         (__mktime_internal): Use long int to store adjusted year and yday.
80460         Use plain C rather than preprocessor commands, if that doesn't
80461         affect efficiency.
80462         Check for overflow (and try to repair) after each probe
80463         rather than checking only at the very end.  This avoids some bugs
80464         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80465         does not equal GMT offset at maximum time).
80466         Use integer to check for overflow rather than floating point; this
80467         is more portable to non-IEEE hosts, and is a tad faster.
80468         When we detect that we are oscillating between two values,
80469         don't check whether tm_isdst has the requested value, since
80470         we already know the answer.  When tm_isdst has the wrong value,
80471         use a different heuristic to find the right one, based on the
80472         extreme values actually observed in practice in tz2003a,
80473         rather than the (overly optimistic) "previous 3 calendar quarters".
80474
80475         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80476         "T const" to accommodate glibc style.
80477         (check_result): Use less-confusing report format.  "long" -> "long int.
80478         (main): Likewise.
80479         Don't loop if the iteration overflows time_t.
80480         Allow a negative step in the iteration.
80481
80482 2003-07-06  Karl Berry  <karl@gnu.org>
80483
80484         * config/depcomp: update from automake.
80485         * config/config.sub: update from prep.
80486
80487 2003-07-03  Karl Berry  <karl@gnu.org>
80488
80489         * config/config.guess: update from prep.
80490
80491 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80492
80493         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80494         xreadlink.c now includes it unconditionally.
80495
80496 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80497
80498         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80499         having it depend on HAVE_SYS_TYPES_H.
80500
80501 2003-07-01  Bruno Haible  <bruno@clisp.org>
80502
80503         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80504         <sys/types.h> should be sufficient.
80505         Reported by Paul Eggert.
80506
80507 2003-06-26  Karl Berry  <karl@gnu.org>
80508
80509         * config/depcomp: update from automake.
80510
80511 2003-06-26  Bruno Haible  <bruno@clisp.org>
80512
80513         * modules/human: Depend on module stdbool.
80514
80515 2003-06-25  Bruno Haible  <bruno@clisp.org>
80516
80517         * modules/readlink: New file.
80518         * modules/xreadlink: Depend on it.
80519         * MODULES.html.sh (func_all_modules): Add readlink.
80520
80521 2003-06-25  Bruno Haible  <bruno@clisp.org>
80522
80523         * m4/readlink.m4: New file.
80524
80525 2003-06-25  Bruno Haible  <bruno@clisp.org>
80526
80527         * lib/readlink.c: New file.
80528
80529 2003-06-22  Karl Berry  <karl@gnu.org>
80530
80531         * config/srclist.txt: update mkinstalldirs from automake.
80532         * config/mkinstalldirs: update.
80533
80534 2003-06-22  Bruno Haible  <bruno@clisp.org>
80535
80536         Portability to mingw32.
80537         * m4/ssize_t.m4: New file, from GNU gettext.
80538         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80539         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80540
80541 2003-06-22  Bruno Haible  <bruno@clisp.org>
80542
80543         * modules/safe-read: Add m4/ssize_t.m4.
80544         * modules/xreadlink: Add m4/ssize_t.m4.
80545
80546 2003-06-20  Bruno Haible  <bruno@clisp.org>
80547
80548         Assume C89, so PARAMS isn't needed.
80549         * lib/unicodeio.h (PARAMS): Remove.
80550         * lib/unicodeio.c: Don't use PARAMS.
80551
80552 2003-06-18  Karl Berry  <karl@gnu.org>
80553
80554         * config/config.{guess,sub}: update from prep.
80555
80556 2003-06-18  Jim Meyering  <jim@meyering.net>
80557
80558         Merge changes from coreutils.
80559         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80560         Remove explicit declarations of xmalloc and realloc.
80561         Include xalloc.h.
80562         (read_utmp): Remove anachronistic cast of xmalloc.
80563
80564 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80565
80566         Assume C89, so PARAMS isn't needed.
80567         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80568         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80569         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80570         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80571         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80572         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80573         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80574         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80575         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80576         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80577         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80578         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80579         no longer needed. Anyway, config.h should always be included before any
80580         other file.
80581
80582 2003-06-11  Simon Josefsson  <jas@extundo.com>
80583
80584         * modules/sysexits: New file.
80585         * MODULES.html.sh (func_all_modules): Add sysexits.
80586
80587 2003-06-11  Simon Josefsson  <jas@extundo.com>
80588
80589         * lib/sysexit_.h: New file.
80590
80591 2003-06-11  Derek Price  <derek@ximbiot.com>
80592
80593         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80594         necessary.
80595
80596 2003-06-11  Bruno Haible  <bruno@clisp.org>
80597
80598         * m4/sysexits.m4: New file.
80599
80600 2003-06-10  Simon Josefsson  <jas@extundo.com>
80601
80602         * lib/argp.h: New file, from glibc.
80603         * lib/argp-ba.c: New file, from glibc.
80604         * lib/argp-eexst.c: New file, from glibc.
80605         * lib/argp-fmtstream.c: New file, from glibc.
80606         * lib/argp-fmtstream.h: New file, from glibc.
80607         * lib/argp-fs-xinl.c: New file, from glibc.
80608         * lib/argp-help.c: New file, from glibc.
80609         * lib/argp-namefrob.h: New file, from glibc.
80610         * lib/argp-parse.c: New file, from glibc.
80611         * lib/argp-pv.c: New file, from glibc.
80612         * lib/argp-pvh.c: New file, from glibc.
80613         * lib/argp-xinl.c: New file, from glibc.
80614
80615 2003-06-10  Simon Josefsson  <jas@extundo.com>
80616
80617         * modules/strchrnul: New file.
80618
80619 2003-06-10  Simon Josefsson  <jas@extundo.com>
80620
80621         * modules/argp: New file.
80622
80623 2003-06-10  Simon Josefsson  <jas@extundo.com>
80624
80625         * m4/strchrnul.m4: New file.
80626
80627 2003-06-10  Simon Josefsson  <jas@extundo.com>
80628
80629         * lib/strchrnul.h: New file.
80630         * lib/strchrnul.c: New file.
80631
80632 2003-06-10  Bruno Haible  <bruno@clisp.org>
80633
80634         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80635
80636 2003-06-07  Karl Berry  <karl@gnu.org>
80637
80638         * config/config.{guess,sub}: update from prep.
80639
80640 2003-06-07  Jim Meyering  <jim@meyering.net>
80641
80642         * modules/strtod: Use $(...) notation, not @...@ for
80643         AC_REPLACE'd variables.
80644         * modules/localcharset: Likewise.
80645
80646 2003-06-07  Jim Meyering  <jim@meyering.net>
80647
80648         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80649         in place of my name in the copyright comment.
80650         Remove definition and uses of __P.
80651
80652         From coreutils.
80653         * lib/stat.c: Don't declare xmalloc explicitly.
80654         Instead, include "xalloc.h".
80655         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80656         xrealloc, and xcalloc return values.
80657         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80658         Improve comment.
80659         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80660
80661 2003-06-07  Bruno Haible  <bruno@clisp.org>
80662
80663         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80664         avoid AC_CONFIG_LINKS.
80665         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80666         fnmatch.h, to avoid AC_CONFIG_LINKS.
80667         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80668
80669 2003-06-07  Bruno Haible  <bruno@clisp.org>
80670
80671         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80672         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80673         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80674         directory.
80675         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80676         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80677         directory.
80678
80679 2003-06-06  Jim Meyering  <jim@meyering.net>
80680
80681         Merge from coreutils.
80682         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80683         Consolidate declarations and initializations of *_base* locals.
80684
80685         Merge from coreutils.
80686         This avoids a core dump on systems without GNU putenv,
80687         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80688         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80689         (unsetenv): New static function, from GNU libc.
80690         (rpl_putenv): Use it.
80691
80692         * lib/modechange.c: Remove trailing blanks.
80693
80694         Merge from coreutils.
80695         * lib/fsusage.c: Remove declaration of statfs.
80696         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80697
80698         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80699
80700 2003-06-06  Jim Meyering  <jim@meyering.net>
80701
80702         * lib/stdbool_.h: Renamed from stdbool.h.in.
80703
80704 2003-06-06  Jim Meyering  <jim@meyering.net>
80705             Bruno Haible  <bruno@clisp.org>
80706
80707         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80708         Adjust Makefile.am snippet not to redirect directly to target.
80709         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80710
80711 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80712
80713         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80714         mismatch, look in future quarters as well as past.  This fixes a
80715         bug when processing fall-backwards gaps immediately after a long
80716         period of daylight-saving time.
80717
80718         * lib/mktime.c: Assume freestanding C89 or better.
80719         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80720         (__P): Remove; not used.
80721         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80722         (mktime, not_equal_tm, print_tm, check_result,
80723         main): Use prototypes.  Use const * where appropriate.
80724         (main): Fix typo in testing code that uncovered by above changes.
80725         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80726
80727 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80728
80729         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80730         locale.h, localeconv.  This merges changes from coreutils.
80731
80732         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80733         It can be removed after the next Autoconf is released.
80734         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80735         needed.
80736
80737 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80738
80739         * lib/mktime.c: Fix Debian bug 177940
80740         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80741         (localtime_offset): Now long int, not time_t, because we want it
80742         to be guaranteed to be signed.  All uses changed.
80743         (__mktime_internal): If overflow would occur when adding offset,
80744         don't add it.
80745
80746         Merge 'human' changes from coreutils.  Rewrite to support
80747         locale-specific notations like thousands separators.
80748         * lib/human.c: Simplify authorship notice.
80749         Include human.h immediately after config.h.
80750         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80751         <limits.h>: Do not include, since human.h does.
80752         (SIZE_MAX, UINTMAX_MAX): New macros.
80753         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80754         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80755         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80756         (power_letter): Renamed from suffixes.
80757         (generate_suffix_backwards): Remove.
80758         (adjust_value): Now takes int style (because of human.h changes)
80759         and long double value (for greater precision on some platforms).
80760         (group_number): New function.
80761         (human_readable): Use it.  Use integer options, not enum.
80762         Put the options before the sizes in the arg list.
80763         Support all the new options.
80764         The old human_readable function has been removed;
80765         use inttostr.h instead.
80766         (human_readable, default_block_size, humblock):
80767         Use uintmax_t, not int, for block sizes.
80768         (human_readable_inexact, block_size_types): Remove.
80769         (block_size_opts): New constant.
80770         (human_options): Renamed from human_block_size, with new signature
80771         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80772         * lib/human.h: Add copyright and authorship notice.
80773         Include <limits.h> and <stdbool.h> unconditionally.
80774         (PARAMS): Remove.  All uses removed.
80775         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80776         (enum human_inexact_style): Remove tag; now a nameless enum.
80777         (human_floor, human_ceiling, human_round_to_even): Now have
80778         values 2, 0, 1 rather than -1, 1, 0.
80779         (human_group_digits, human_suppress_point_zero, human_autoscale,
80780         human_base_1024, human_SI, human_B): New constants.
80781         (human_readable_inexact, human_block_size): Remove.
80782         (human_readable): Size args are now uintmax_t, not int.
80783         (human_options): New decl.
80784
80785         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80786         unnecessary now that we assume C89 or better.  This change
80787         imported from coreutils.
80788
80789         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80790         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80791         in the 2003-05-30 sync from glibc.
80792
80793         .h files should stand alone, but we shouldn't include <sys/types.h>
80794         if we can get away with just <stddef.h>.
80795
80796         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80797         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80798         rather than <sys/types.h>, as we merely need size_t.
80799         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80800         to get size_t.
80801         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80802         Include <stdio.h>, to get FILE.
80803         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80804         memcasecmp.h has included <stddef.h> and all we need is size_t.
80805         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80806         our interface, instead of including <sys/types.h>
80807
80808 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80809
80810         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80811         now, as glibc mktime is buggy on non-glibc systems.
80812
80813 2003-06-03  Karl Berry  <karl@gnu.org>
80814
80815         * config/config.sub: update from prep.
80816
80817 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80818
80819         [from coreutils]
80820         Fix some minor time-related bugs with POSIX time arguments.
80821         Some valid time stamps were being rejected (notably -1, and
80822         time stamps before 1900 on 64-bit hosts).  And some invalid
80823         time stamps were being accepted, e.g. September 31.
80824
80825         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80826         that we can return (time_t) -1 successfully.
80827         * lib/posixtm.c: Likewise.
80828         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80829         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80830         (t): Remove static var.
80831         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80832         of static var.  All uses changed.
80833         (year): Do not reject years before 1900; they can occur with
80834         64-bit time_t.
80835         (posix_time_parse): Do not check for out-of-range components;
80836         that is now the caller's responsibility, since our checks were
80837         only approximations.
80838         (posixtime): Use mktime to check for out-of-range components,
80839         since it knows them exactly.
80840         If mktime returns (time_t) -1, check whether an error actually occurred
80841         by invoking localtime on -1.
80842         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80843         posixtime failures better.
80844         Improve the test data (in comments only).
80845
80846 2003-06-02  Karl Berry  <karl@gnu.org>
80847
80848         * config/mkinstalldirs (version): new variable.
80849         (--version): new option.
80850         (usage): improve message.
80851
80852 2003-05-30  Karl Berry  <karl@gnu.org>
80853
80854         * lib/mktime.c: update from libc.
80855
80856 2003-05-30  Bruno Haible  <bruno@clisp.org>
80857
80858         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80859         * config/config.rpath: Upgrade to gettext-0.12.1.
80860
80861 2003-05-30  Bruno Haible  <bruno@clisp.org>
80862
80863         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80864         * m4/nls.m4: New file, from gettext-0.12.1.
80865         * m4/po.m4: New file, from gettext-0.12.1.
80866         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80867
80868 2003-05-30  Bruno Haible  <bruno@clisp.org>
80869
80870         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80871         * lib/localcharset.h: Likewise.
80872         * lib/localcharset.c: Likewise.
80873
80874 2003-05-29  Karl Berry  <karl@gnu.org>
80875
80876         * config/config.rpath: update from gettext.
80877
80878 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80879
80880         Assume the headers required for C89 freestanding compilers.
80881         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80882         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80883         * m4/human.m4 (gl_HUMAN): Likewise.
80884         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80885         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80886         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80887         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80888         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80889         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80890
80891 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80892
80893         Assume the headers required for C89 freestanding compilers.
80894         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80895         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80896         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80897         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80898         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80899         define, since <limits.h> is guaranteed to do that.
80900         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80901         * lib/exclude.c: Include <stdbool.h> unconditionally.
80902         * lib/tempname.c: Include <stddef.h> unconditionally.
80903         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80904         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80905         <stddef.h> does that.
80906         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80907         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80908         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80909         needed.
80910         * lib/xstrtol.c: Likewise.
80911         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80912         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80913
80914         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80915         warnings on some platforms.
80916
80917         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80918         arbitrarily.
80919
80920 2003-05-26  Jim Meyering  <jim@meyering.net>
80921
80922         Merge in a change from coreutils:
80923         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80924         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80925         that condition, rather than `-1' which is slightly misleading.
80926         Change the name of the cache variable to have the gl_ prefix.
80927         Prompted by a patch from Richard Dawe for DJGPP.
80928
80929 2003-05-24  Karl Berry  <karl@gnu.org>
80930
80931         * config/config.guess: update from prep.
80932
80933 2003-05-22  Karl Berry  <karl@gnu.org>
80934
80935         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80936
80937 2003-05-20  Karl Berry  <karl@gnu.org>
80938
80939         * config/config.guess: update from prep.
80940
80941 2003-05-18  Karl Berry  <karl@gnu.org>
80942
80943         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80944         might actually be set by the user.
80945
80946         * config/depcomp, install-sh, mdate-sh: update from automake.
80947
80948 2003-05-17  Bruno Haible  <bruno@clisp.org>
80949
80950         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80951         invalid expansion for AC_EGREP_CPP.
80952         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80953         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80954         Suggested by Akim Demaille <akim@epita.fr> in
80955         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80956
80957 2003-05-12  Jim Meyering  <jim@meyering.net>
80958
80959         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80960         the space-padded-by-default conversion specifiers, %e, %k, %l.
80961
80962 2003-05-12  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80965         the string is longer than 4 KB.
80966
80967 2003-05-11  Karl Berry  <karl@gnu.org>
80968
80969         * config/config.{guess,sub}: update from prep.
80970
80971 2003-05-09  Bruno Haible  <bruno@clisp.org>
80972
80973         * modules/error: Add m4/strerror_r.m4 to file list.
80974
80975 2003-05-03  Bruno Haible  <bruno@clisp.org>
80976
80977         Upgrade to Unicode-4.0.
80978         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80979         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80980         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80981         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80982         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80983         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80984         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80985         Change width of U+E0100..U+E01EF from 1 to 0.
80986
80987 2003-04-25  Jim Meyering  <jim@meyering.net>
80988
80989         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80990         of type size_t, not int.
80991
80992 2003-04-25  Bruno Haible  <bruno@clisp.org>
80993
80994         * lib/copy-file.c: Include <stddef.h>, for size_t.
80995
80996 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80997
80998         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80999         code which expansion is under static control.  Patch imported from
81000         Akim Demaille's patch to Bison; see
81001         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81002
81003 2003-04-14  Bruno Haible  <bruno@clisp.org>
81004
81005         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81006
81007 2003-04-11  Jim Meyering  <jim@meyering.net>
81008
81009         Merge changes from Coreutils.
81010
81011         2003-03-22  Jim Meyering  <jim@meyering.net>
81012
81013         * lib/strftime.c (widen): Cast alloca return value to proper type.
81014
81015         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81016
81017         From GNU libc.
81018         * lib/strftime.c (my_strftime): Handle very large width
81019         specifications for numeric values correctly.  Improve checks for
81020         overflow.
81021
81022         2003-01-19  Jim Meyering  <jim@meyering.net>
81023
81024         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81025         definitions.
81026         (nl_get_alt_digit) [! defined my_strftime]: Define.
81027         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81028         _nl_get_alt_digit and _nl_get_walt_digit.
81029
81030         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81031         libc. These changes have no effect outside of _LIBC.
81032
81033 2003-04-10  Bruno Haible  <bruno@clisp.org>
81034
81035         * modules/findprog: New file.
81036         * MODULES.html.sh (func_all_modules): Add it.
81037
81038 2003-04-10  Bruno Haible  <bruno@clisp.org>
81039
81040         * m4/findprog.m4: New file.
81041         * m4/eaccess.m4: New file.
81042
81043 2003-04-10  Bruno Haible  <bruno@clisp.org>
81044
81045         * lib/findprog.h: New file, from GNU gettext.
81046         * lib/findprog.c: New file, from GNU gettext.
81047
81048 2003-04-05  Jim Meyering  <jim@meyering.net>
81049
81050         Merge changes from Coreutils.
81051
81052         * lib/exclude.h (PARAMS): Remove definition and uses.
81053         * lib/exclude.c: Remove uses of `PARAMS'.
81054
81055         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81056         Add test-cases for DOS filenames. Declare program_name.
81057         (main): Set up program_name.  Patch by Rich Dawe.
81058
81059         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81060         error from mntctl.
81061         Use mntctl's return value to drive the entry-processing loop, since
81062         we can't rely on the value of the vmt_length member in the last
81063         entry.  On some systems doing so could result in exhausting
81064         virtual memory.  Based in part on a patch from Mike Jetzer.
81065
81066 2003-04-04  Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/linebreak: New file.
81069         * MODULES.html.sh (func_all_modules): Add it.
81070
81071 2003-04-04  Bruno Haible  <bruno@clisp.org>
81072
81073         * m4/linebreak.m4: New file.
81074
81075 2003-04-04  Bruno Haible  <bruno@clisp.org>
81076
81077         * lib/linebreak.h: New file, from GNU gettext.
81078         * lib/linebreak.c: New file, from GNU gettext with slight
81079         modifications.
81080         * lib/lbrkprop.h: New file, from GNU gettext.
81081
81082 2003-04-03  Bruno Haible  <bruno@clisp.org>
81083
81084         * modules/utf8-ucs4: New file.
81085         * modules/utf16-ucs4: New file.
81086         * modules/ucs4-utf8: New file.
81087         * modules/ucs4-utf16: New file.
81088         * MODULES.html.sh (func_all_modules): Add them.
81089
81090 2003-04-03  Bruno Haible  <bruno@clisp.org>
81091
81092         * m4/utf-ucs4.m4: New file.
81093         * m4/ucs4-utf.m4: New file.
81094
81095 2003-04-03  Bruno Haible  <bruno@clisp.org>
81096
81097         * lib/utf8-ucs4.h: New file, from GNU gettext.
81098         * lib/utf16-ucs4.h: New file, from GNU gettext.
81099         * lib/ucs4-utf8.h: New file, from GNU gettext.
81100         * lib/ucs4-utf16.h: New file, from GNU gettext.
81101
81102 2003-04-02  Bruno Haible  <bruno@clisp.org>
81103
81104         * modules/binary-io: New file.
81105         * MODULES.html.sh (func_all_modules): Add it.
81106
81107 2003-04-02  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/binary-io.h: New file, from GNU gettext.
81110
81111 2003-04-01  Bruno Haible  <bruno@clisp.org>
81112
81113         * modules/pathname: New file.
81114         * MODULES.html.sh (func_all_modules): Add it.
81115
81116 2003-04-01  Bruno Haible  <bruno@clisp.org>
81117
81118         * lib/pathname.h: New file, from GNU gettext.
81119         * lib/concatpath.c: New file, from GNU gettext.
81120
81121 2003-03-30  Bruno Haible  <bruno@clisp.org>
81122
81123         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81124
81125 2003-03-30  Bruno Haible  <bruno@clisp.org>
81126
81127         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81128         function chown() doesn't exist.
81129
81130 2003-03-28  Bruno Haible  <bruno@clisp.org>
81131
81132         * modules/copy-file: New file.
81133         * MODULES.html.sh (func_all_modules): Add it.
81134
81135 2003-03-28  Bruno Haible  <bruno@clisp.org>
81136
81137         * m4/copy-file.m4: New file.
81138
81139 2003-03-28  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/copy-file.h: New file, from GNU gettext.
81142         * lib/copy-file.c: New file, from GNU gettext.
81143
81144 2003-03-18  Jim Meyering  <jim@meyering.net>
81145
81146         * lib/quote.c (quote_n): Fix typo in comment.
81147
81148 2003-03-18  Bruno Haible  <bruno@clisp.org>
81149
81150         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81151         checking.
81152         * m4/onceonly_2_57.m4: Likewise.
81153
81154 2003-03-17  Bruno Haible  <bruno@clisp.org>
81155
81156         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81157         (m4_quote): Remove macro.
81158         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81159
81160 2003-03-14  Jim Meyering  <jim@meyering.net>
81161
81162         Merge changes from Coreutils.
81163         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81164         to be const, in order to avoid warnings.
81165         (obstack_room): Likewise.
81166         (obstack_empty_p): Likewise.
81167
81168 2003-03-14  Bruno Haible  <bruno@clisp.org>
81169
81170         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81171         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81172
81173 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81174
81175         Merge changes from Bison.
81176         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81177         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81178         when compiling Bison 1.875's `bitset bset = obstack_alloc
81179         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81180         * lib/hash.c: Include <stdbool.h> unconditionally.
81181
81182 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81183
81184         * m4/onceonly.m4 (m4_quote): New macro.
81185         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81186         Quote AC_FOREACH variable-expansions properly.
81187
81188 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81189
81190         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81191
81192 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81195         Reported by Bruce Becker; see:
81196         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81197
81198 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81199             Bruno Haible  <bruno@clisp.org>
81200
81201         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81202         Reported by John Hughes, see
81203         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81204
81205 2003-02-20  Bruno Haible  <bruno@clisp.org>
81206
81207         * MODULES.html.sh (func_all_modules): Add poll.
81208
81209 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81210
81211         * modules/poll: New file.
81212
81213 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81214
81215         * lib/poll_.h: New file.
81216         * lib/poll.c: New file.
81217
81218 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81219
81220         * m4/poll.m4: New file.
81221
81222 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81223
81224         * modules/mathl: New file.
81225
81226 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81227
81228         * lib/mathl.h: New file.
81229         * lib/acosl.c: New file.
81230         * lib/asinl.c: New file.
81231         * lib/atanl.c: New file.
81232         * lib/ceill.c: New file.
81233         * lib/cosl.c: New file.
81234         * lib/expl.c: New file.
81235         * lib/floorl.c: New file.
81236         * lib/frexpl.c: New file.
81237         * lib/ldexpl.c: New file.
81238         * lib/logl.c: New file.
81239         * lib/sincosl.c: New file.
81240         * lib/sinl.c: New file.
81241         * lib/sqrtl.c: New file.
81242         * lib/tanl.c: New file.
81243         * lib/trigl.c: New file.
81244         * lib/trigl.h: New file.
81245
81246 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81247
81248         * m4/mathl.m4: New file.
81249
81250 2003-02-18  Bruno Haible  <bruno@clisp.org>
81251
81252         * MODULES.html.sh (func_all_modules): Add mathl.
81253
81254 2003-02-17  Bruno Haible  <bruno@clisp.org>
81255
81256         * modules/mkdtemp: New module.
81257         * MODULES.html.sh (func_all_modules): Add it.
81258
81259 2003-02-17  Bruno Haible  <bruno@clisp.org>
81260
81261         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81262
81263 2003-02-17  Bruno Haible  <bruno@clisp.org>
81264
81265         * lib/mkdtemp.h: New file, from GNU gettext.
81266         * lib/mkdtemp.c: New file, from GNU gettext.
81267
81268 2003-02-02  Jim Meyering  <jim@meyering.net>
81269
81270         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81271         e.g. glibc-2.2.93.
81272
81273 2003-01-31  Bruno Haible  <bruno@clisp.org>
81274
81275         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81276         'rpl_rename'.
81277         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81278         'rpl_strnlen'.
81279         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81280         'rpl_strtod'.
81281         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81282         'rpl_utime'.
81283
81284 2003-01-31  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/rename.c: #undef rename before defining rpl_rename.
81287         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81288
81289 2003-01-30  Bruno Haible  <bruno@clisp.org>
81290
81291         * modules/vasnprintf, modules/vasprintf: New modules.
81292         * MODULES.html.sh (func_all_modules): Add them.
81293
81294 2003-01-30  Bruno Haible  <bruno@clisp.org>
81295
81296         * m4/signed.m4: New file, from GNU gettext.
81297         * m4/longdouble.m4: New file, from GNU gettext.
81298         * m4/wchar_t.m4: New file, from GNU gettext.
81299         * m4/wint_t.m4: New file, from GNU gettext.
81300         * m4/vasnprintf.m4: New file.
81301         * m4/vasprintf.m4: New file.
81302
81303 2003-01-30  Bruno Haible  <bruno@clisp.org>
81304
81305         * lib/printf-args.h: New file, from GNU gettext.
81306         * lib/printf-args.c: New file, from GNU gettext.
81307         * lib/printf-parse.h: New file, from GNU gettext.
81308         * lib/printf-parse.c: New file, from GNU gettext.
81309         * lib/vasnprintf.h: New file, from GNU gettext.
81310         * lib/vasnprintf.c: New file, from GNU gettext.
81311         * lib/asnprintf.c: New file, from GNU gettext.
81312         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81313         * lib/vasprintf.c: New file, from GNU gettext.
81314         * lib/asprintf.c: New file, from GNU gettext.
81315
81316 2003-01-29  Bruno Haible  <bruno@clisp.org>
81317
81318         * modules/stpncpy: New module.
81319         * MODULES.html.sh (func_all_modules): Add it.
81320
81321 2003-01-29  Bruno Haible  <bruno@clisp.org>
81322
81323         * m4/stpncpy.m4: New file.
81324
81325 2003-01-29  Bruno Haible  <bruno@clisp.org>
81326
81327         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81328         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81329
81330 2003-01-28  Bruno Haible  <bruno@clisp.org>
81331
81332         * modules/c-ctype: New module.
81333         * MODULES.html.sh (func_all_modules): Add it.
81334
81335 2003-01-28  Bruno Haible  <bruno@clisp.org>
81336
81337         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81338         Paul Eggert.
81339         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81340         Paul Eggert.
81341
81342 2003-01-27  Bruno Haible  <bruno@clisp.org>
81343
81344         * modules/xsetenv: New module.
81345         * MODULES.html.sh (func_all_modules): Add it.
81346
81347 2003-01-27  Bruno Haible  <bruno@clisp.org>
81348
81349         * lib/xsetenv.h: New file, from GNU gettext.
81350         * lib/xsetenv.c: New file, from GNU gettext.
81351
81352 2003-01-23  Jim Meyering  <jim@meyering.net>
81353
81354         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81355         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81356
81357 2003-01-23  Bruno Haible  <bruno@clisp.org>
81358
81359         * modules/minmax: New module.
81360         * MODULES.html.sh (func_all_modules): Add it.
81361
81362 2003-01-23  Bruno Haible  <bruno@clisp.org>
81363
81364         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81365         Eggert.
81366
81367 2003-01-22  Bruno Haible  <bruno@clisp.org>
81368
81369         * modules/exit: New module.
81370         * MODULES.html.sh (func_all_modules): Add it.
81371
81372 2003-01-22  Bruno Haible  <bruno@clisp.org>
81373
81374         * lib/exit.h: New file, from GNU gettext.
81375
81376 2003-01-19  Bruno Haible  <bruno@clisp.org>
81377
81378         * gnulib-tool: Recognize option --extract-maintainer.
81379         (func_get_maintainer): New function.
81380         * modules/*: Add Maintainer entry.
81381
81382 2003-01-16  Jim Meyering  <jim@meyering.net>
81383
81384         * m4/regex.m4: The `regex' struct is both input and output.
81385         Initialize it before each use.  Patch by Tim Waugh.
81386
81387 2003-01-16  Bruno Haible  <bruno@clisp.org>
81388
81389         * MODULES.html.sh: Add a table of contents. Add the module name as
81390         leftmost column. Add hyperlinks.
81391
81392 2003-01-15  Bruno Haible  <bruno@clisp.org>
81393
81394         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81395
81396 2003-01-15  Bruno Haible  <bruno@clisp.org>
81397
81398         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81399         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81400         suffix.
81401
81402 2003-01-15  Bruno Haible  <bruno@clisp.org>
81403
81404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81405
81406 2003-01-15  Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81409         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81410
81411 2003-01-14  Jim Meyering  <jim@meyering.net>
81412
81413         * lib/same.c (same_name): Tweak a comment.
81414
81415 2003-01-14  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81418         when a string comparison is sufficient.
81419
81420 2003-01-14  Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81423         'unsigned int'.
81424
81425 2003-01-14  Bruno Haible  <bruno@clisp.org>
81426
81427         * lib/hash-pjw.c: Add comment about low quality of this function.
81428
81429 2003-01-13  Bruno Haible  <bruno@clisp.org>
81430
81431         * modules/stpcpy: Distribute lib/stpcpy.h.
81432         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81433
81434 2003-01-13  Bruno Haible  <bruno@clisp.org>
81435
81436         * modules/*: Add a description.
81437         * modules/strpbrk: Fix Makefile.am snippet.
81438         * modules/strtoimax: Fix dependencies.
81439         * modules/strtoumax: Likewise.
81440
81441 2003-01-13  Bruno Haible  <bruno@clisp.org>
81442
81443         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81444         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81445         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81446
81447 2003-01-13  Bruno Haible  <bruno@clisp.org>
81448
81449         * gnulib-tool (func_create_testdir): Store config/* files in the main
81450         directory.
81451         * config.rpath: Move to ...
81452         * config/config.rpath: ... here.
81453         * modules/gettext: Contains config/config.rpath, not config.rpath.
81454         * modules/iconv: Likewise.
81455
81456 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81457
81458         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81459         to avoid collisions with libcurses and libreadline.
81460
81461         * m4/getstr.m4: Remove.
81462         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81463
81464 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81465
81466         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81467         to avoid collisions with libcurses and libreadline.
81468
81469         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81470         * lib/getstr.h, getstr.c: Remove.
81471         * lib/getline.c: Include "getline.h", to check interface.
81472         Move body of old getstr.c here: this defines MIN_CHUNK and
81473         declares getdelim2, which is renamed from getstr.
81474         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81475
81476         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81477         All uses changed.
81478         * lib/linebuffer.h: Likewise.
81479         (readline): Remove backward-compatibility macro.
81480
81481 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81482
81483         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81484         to avoid collisions with libcurses and libreadline.
81485         * getstr: Remove.
81486         * MODULES.html.sh: Remove getstr.
81487         * modules/getline: Depend on unlocked-io, not getstr.
81488
81489 2003-01-12  Jim Meyering  <jim@meyering.net>
81490
81491         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81492
81493 2003-01-10  Bruno Haible  <bruno@clisp.org>
81494
81495         * modules/alloca: Change Makefile.am requirements. Simplify Include
81496         requirements. Add lib/alloca_.h to file list.
81497
81498 2003-01-10  Bruno Haible  <bruno@clisp.org>
81499
81500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81501
81502 2003-01-10  Bruno Haible  <bruno@clisp.org>
81503
81504         * lib/alloca_.h: New file.
81505         * lib/getdate.y: Unconditionally include alloca.h.
81506         * lib/makepath.c: Likewise.
81507         * lib/setenv.c: Likewise.
81508         * lib/userspec.c: Likewise.
81509
81510 2003-01-09  Karl Berry  <karl@gnu.org>
81511
81512         * MODULES.html.sh: include `dirname $0` in PATH, to find
81513         gnulib-tool.
81514
81515 2003-01-09  Bruno Haible  <bruno@clisp.org>
81516
81517         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81518         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81519
81520 2003-01-09  Bruno Haible  <bruno@clisp.org>
81521
81522         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81523
81524 2003-01-09  Bruno Haible  <bruno@clisp.org>
81525
81526         * lib/stdbool.h.in: New file.
81527
81528 2003-01-09  Bruno Haible  <bruno@clisp.org>
81529
81530         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81531         * MODULES.html.sh: Likewise.
81532
81533 2003-01-08  Jim Meyering  <jim@meyering.net>
81534
81535         * lib/full-write.c: Undefine and define-away `const' after inclusion
81536         of errno.h, not before.  Suggestion from Bruno Haible.
81537
81538 2003-01-08  Bruno Haible  <bruno@clisp.org>
81539
81540         * modules/full-read: Depend on full-write.
81541
81542 2003-01-08  Bruno Haible  <bruno@clisp.org>
81543
81544         * lib/safe-read.c: Include specification header first, to ensure its
81545         selfcontainedness.
81546         * lib/full-write.c: Likewise.
81547
81548 2003-01-07  Jim Meyering  <jim@meyering.net>
81549
81550         * lib/full-write.c: Rework so that it may serve to define full_read,
81551         too.
81552         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81553
81554 2003-01-07  Bruno Haible  <bruno@clisp.org>
81555
81556         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81557         <inttypes.h>.
81558         * lib/xstrtol.h: Likewise.
81559         * lib/xstrtoimax.c: Likewise.
81560         * lib/xstrtoumax.c: Likewise.
81561         * lib/human.h: Likewise.
81562
81563         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81564         on systems that have <inttypes.h> but not <stdint.h>.
81565
81566 2003-01-07  Bruno Haible  <bruno@clisp.org>
81567
81568         * MODULES.html.sh: Add copyright notice.
81569         (missed_files): Omit CVS directory entries.
81570         (func_module): Make it work with sed-3.02.
81571         * MODULES.txt: Remove file.
81572
81573 2003-01-06  Jim Meyering  <jim@meyering.net>
81574
81575         * lib/version-etc.c: Update year in translatable copyright string.
81576
81577 2003-01-03  Karl Berry  <karl@gnu.org>
81578
81579         * config/config.{guess,sub}: update from prep.
81580
81581 2003-01-02  Karl Berry  <karl@gnu.org>
81582
81583         * doc/COPYING.DOC: belatedly updated to 1.2.
81584
81585 2003-01-01  Karl Berry  <karl@gnu.org>
81586
81587         * gnulib-tool (func_verify_module): report module name $module in
81588         error message, not $1.
81589         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81590         be created, only if it doesn't exist.
81591         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81592
81593 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81594
81595         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81596
81597 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81598
81599         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81600         memcmp if strcoll doesn't work.
81601
81602 2002-12-31  Bruno Haible  <bruno@clisp.org>
81603
81604         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81605         nonempty.
81606
81607 2002-12-31  Bruno Haible  <bruno@clisp.org>
81608
81609         * lib/memcoll.c (STRCOLL): New macro.
81610         (memcoll): Use it.
81611
81612 2002-12-31  Bruno Haible  <bruno@clisp.org>
81613
81614         * lib/localcharset.h: New file.
81615         * lib/localcharset.c: Include it.
81616         * lib/unicodeio.c: Likewise.
81617
81618 2002-12-31  Bruno Haible  <bruno@clisp.org>
81619
81620         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81621         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81622
81623 2002-12-31  Bruno Haible  <bruno@clisp.org>
81624
81625         * lib/getline.h: Include <stddef.h>, for size_t.
81626
81627         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81628         * lib/unicodeio.c: Don't include <stddef.h>.
81629
81630 2002-12-31  Bruno Haible  <bruno@clisp.org>
81631
81632         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81633         HAVE_TM_ZONE.
81634
81635 2002-12-24  Karl Berry  <karl@gnu.org>
81636
81637         * config/config.guess: update from prep.
81638
81639 2002-12-24  Bruno Haible  <bruno@clisp.org>
81640
81641         General infrasructure.
81642         * m4/README: Rewritten.
81643         * m4/onceonly.m4: New file.
81644         * m4/onceonly_2_57.m4: New file.
81645
81646         Module atexit.
81647         * m4/atexit.m4: New file.
81648
81649         Module strtod.
81650         * m4/strtod.m4: New file.
81651
81652         Module strtol.
81653         * m4/strtol.m4: New file.
81654
81655         Module strtoul.
81656         * m4/strtoul.m4: New file.
81657
81658         Module memchr.
81659         * m4/memchr.m4: New file.
81660
81661         Module memcmp.
81662         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81663         (jm_FUNC_MEMCMP): Invoke it.
81664
81665         Module memcpy.
81666         * m4/memcpy.m4: New file.
81667
81668         Module memmove.
81669         * m4/memmove.m4: New file.
81670
81671         Module memset.
81672         * m4/memset.m4: New file.
81673
81674         Module strcspn.
81675         * m4/strcspn.m4: New file.
81676
81677         Module strpbrk.
81678         * m4/strpbrk.m4: New file.
81679
81680         Module strstr.
81681         * m4/strstr.m4: New file.
81682
81683         Module strerror.
81684         * m4/strerror.m4: New file.
81685
81686         Module mktime.
81687         * m4/mktime.m4: Renamed from jm-mktime.m4.
81688         (gl_PREREQ_MKTIME): New macro.
81689         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81690
81691         Module malloc.
81692         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81693         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81694         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81695
81696         Module realloc.
81697         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81698         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81699         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81700
81701         Module strftime.
81702         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81703         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81704         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81705         gl_TM_GMTOFF.
81706         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81707
81708         Module xalloc.
81709         * m4/xalloc.m4: New file.
81710
81711         Module alloca.
81712         * m4/alloca.m4: New file.
81713
81714         Module putenv.
81715         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81716         (jm_FUNC_PUTENV): Invoke it.
81717
81718         Module setenv.
81719         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81720         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81721         when invoked twice.
81722         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81723         gt_FUNC_SETENV.
81724
81725         Module memrchr.
81726         * m4/memrchr.m4: New file.
81727
81728         Module stpcpy.
81729         * m4/stpcpy.m4: New file.
81730
81731         Module strcase.
81732         * m4/strcase.m4: New file.
81733
81734         Module strdup.
81735         * m4/strdup.m4: New file.
81736
81737         Module strnlen.
81738         * m4/strnlen.m4: New file.
81739
81740         Module strndup.
81741         * m4/strndup.m4: New file.
81742
81743         Module xstrtod.
81744         * m4/xstrtod.m4: New file.
81745
81746         Module xstrtol.
81747         * m4/xstrtol.m4: New file.
81748
81749         Module getdate.
81750         * m4/getdate.m4: New file.
81751
81752         Module unlocked-io.
81753         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81754         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81755         * m4/jm-glibc-io.m4n: Remove file.
81756
81757         Module long-options.
81758         * m4/long-options.m4: New file.
81759
81760         Module md5.
81761         * m4/md5.m4: New file.
81762
81763         Module sha.
81764         * m4/sha.m4: New file.
81765
81766         Module getstr.
81767         * m4/getstr.m4: New file.
81768
81769         Module getline.
81770         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81771         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81772         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81773         simply getline. Infoke gl_PREREQ_GETLINE.
81774
81775         Module obstack.
81776         * m4/obstack.m4: New file.
81777
81778         Module hash.
81779         * m4/hash.m4: New file.
81780
81781         Module readtokens.
81782         * m4/readtokens.m4: New file.
81783
81784         Module strverscmp.
81785         * m4/strverscmp.m4: New file.
81786
81787         Module stdbool.
81788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81789         OSF/1.
81790
81791         Module strtoll.
81792         * m4/strtoll.m4: New file.
81793
81794         Module strtoull.
81795         * m4/strtoull.m4: New file.
81796
81797         Module strtoimax.
81798         * m4/strtoimax.m4: New file.
81799
81800         Module strtoumax.
81801         * m4/strtoumax.m4: New file.
81802
81803         Module xstrtoimax.
81804         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81805         jm_AC_PREREQ_XSTRTOIMAX.
81806         Moved the strtol prerequisites to strtol.m4.
81807         Moved the strtoll prerequisites to strtoll.m4.
81808         Moved the strtoimax prerequisites to strtoimax.m4.
81809
81810         Module xstrtoumax.
81811         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81812         jm_AC_PREREQ_XSTRTOUMAX.
81813         Moved the strtoul prerequisites to strtoul.m4.
81814         Moved the strtoull prerequisites to strtoull.m4.
81815         Moved the strtoumax prerequisites to strtoumax.m4.
81816
81817         Module chown.
81818         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81819         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81820
81821         Module dup2.
81822         * m4/dup2.m4: New file.
81823
81824         Module ftruncate.
81825         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81826         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81827
81828         Module getgroups.
81829         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81830         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81831
81832         Module gettimeofday.
81833         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81834         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81835         gl_PREREQ_GETTIMEOFDAY.
81836
81837         Module mkdir.
81838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81839         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81840
81841         Module mkstemp.
81842         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81843         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81844         jm_AC_TYPE_UINTMAX_T.
81845         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81846
81847         Module stat.
81848         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81849         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81850
81851         Module lstat.
81852         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81853         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81854
81855         Module timespec.
81856         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81857         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81858         * m4/st_mtim.m4: Indentation.
81859
81860         Module nanosleep.
81861         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81862         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81863         gl_PREREQ_NANOSLEEP.
81864
81865         Module regex.
81866         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81867         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81868         (gl_REGEX): New macro.
81869
81870         Module rename.
81871         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81872         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81873
81874         Module rmdir.
81875         * m4/rmdir.m4: New file.
81876
81877         Module utime.
81878         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81879         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81880         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81881
81882         Module dirname.
81883         * m4/dirname.m4: New file.
81884
81885         Module getopt.
81886         * m4/getopt.m4: New file.
81887
81888         Module unistd-safer.
81889         * m4/unistd-safer.m4: New file.
81890
81891         Module fnmatch.
81892         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81893         declaration.
81894         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81895         (gl_FUNC_FNMATCH_POSIX): New macro.
81896         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81897         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81898         simply fnmatch.
81899
81900         Module exclude.
81901         * m4/exclude.m4: New file.
81902
81903         Module human.
81904         * m4/human.m4: New file.
81905
81906         Module acl.
81907         * m4/acl.m4: Nop.
81908
81909         Module backupfile.
81910         * m4/backupfile.m4: New file.
81911         * m4/d-ino.m4: Indentation.
81912
81913         Module fsusage.
81914         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81915         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81916         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81917
81918         Module dirfd.
81919         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81920         requirements.
81921
81922         Module euidaccess.
81923         * m4/euidaccess.m4: New file.
81924
81925         Module file-type.
81926         * m4/file-type.m4: New file.
81927
81928         Module fileblocks.
81929         * m4/fileblocks.m4: New file.
81930
81931         Module filemode.
81932         * m4/filemode.m4: New file.
81933
81934         Module isdir.
81935         * m4/isdir.m4: New file.
81936
81937         Module lchown.
81938         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81939         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81940
81941         Module makepath.
81942         * m4/makepath.m4: New file.
81943
81944         Module modechange.
81945         * m4/modechange.m4: New file.
81946
81947         Module mountlist.
81948         * m4/mountlist.m4: New file.
81949         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81950         Indentation.
81951
81952         Module path-concat.
81953         * m4/path-concat.m4: New file.
81954
81955         Module pathmax.
81956         * m4/pathmax.m4: New file.
81957
81958         Module same.
81959         * m4/same.m4: New file.
81960
81961         Module save-cwd.
81962         * m4/save-cwd.m4: New file.
81963
81964         Module savedir.
81965         * m4/savedir.m4: New file.
81966
81967         Module xgetcwd.
81968         * m4/xgetcwd.m4: New file.
81969         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81970
81971         Module xreadlink.
81972         * m4/xreadlink.m4: New file.
81973
81974         Module safe-read.
81975         * m4/safe-read.m4: New file.
81976
81977         Module safe-write.
81978         * m4/safe-write.m4: New file.
81979
81980         Module closeout.
81981         * m4/closeout.m4: New file.
81982
81983         Module stdio-safer.
81984         * m4/stdio-safer.m4: New file.
81985
81986         Module getpass.
81987         * m4/getpass.m4: New file.
81988
81989         Module getugroups.
81990         * m4/getugroups.m4: New file.
81991
81992         Module group-member.
81993         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81994         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81995
81996         Module idcache.
81997         * m4/idcache.m4: New file.
81998
81999         Module userspec.
82000         * m4/userspec.m4: New file.
82001
82002         Module gettime.
82003         * m4/clock_time.m4: New file.
82004         * m4/gettime.m4: New file.
82005
82006         Module settime.
82007         * m4/settime.m4: New file.
82008
82009         Module posixtm.
82010         * m4/posixtm.m4: New file.
82011
82012         Module gethostname.
82013         * m4/gethostname.m4: New file.
82014
82015         Module canon-host.
82016         * m4/canon-host.m4: New file.
82017
82018         Module gettext.
82019         * m4/codeset.m4: New file, from gettext-0.11.5.
82020         * m4/gettext.m4: New file, from gettext-0.11.5.
82021         * m4/glibc21.m4: New file, from gettext-0.11.5.
82022         * m4/iconv.m4: New file, from gettext-0.11.5.
82023         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82024         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82025         * m4/inttypes.m4: New file, from gettext-0.11.5.
82026         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82027         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82028         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82029         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82030         * m4/lib-link.m4: New file, from gettext-0.11.5.
82031         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82032         * m4/progtest.m4: New file, from gettext-0.11.5.
82033         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82034         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82035         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82036
82037         Module localcharset.
82038         * m4/localcharset.m4: New file.
82039
82040         Module hard-locale.
82041         * m4/hard-locale.m4: New file.
82042
82043         Module mbswidth.
82044         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82045         onceonly macros.
82046         * m4/mbrtowc.m4: Add comment.
82047
82048         Module memcasecmp.
82049         * m4/memcasecmp.m4: New file.
82050
82051         Module memcoll.
82052         * m4/memcoll.m4: New file.
82053
82054         Module unicodeio.
82055         * m4/unicodeio.m4: New file.
82056
82057         Module rpmatch.
82058         * m4/rpmatch.m4: New file.
82059
82060         Module yesno.
82061         * m4/yesno.m4: New file.
82062
82063         Module exitfail.
82064         * m4/exitfail.m4: New file.
82065
82066         Module c-stack.
82067         * m4/c-stack.m4 (gl_C_STACK): New macro.
82068         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82069
82070         Module error.
82071         * m4/error.m4 (gl_ERROR): New macro.
82072         (jm_PREREQ_ERROR): Use onceonly macros.
82073
82074         Module fatal.
82075         * m4/fatal.m4: New file.
82076
82077         Module getloadavg.
82078         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82079         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82080
82081         Module getpagesize.
82082         * m4/getpagesize.m4: New file.
82083
82084         Module getusershell.
82085         * m4/getusershell.m4: New file.
82086
82087         Module physmem.
82088         * m4/physmem.m4: New file.
82089
82090         Module posixver.
82091         * m4/posixver.m4: New file.
82092
82093         Module quotearg.
82094         * m4/quotearg.m4: New file.
82095
82096         Module quote.
82097         * m4/quote.m4: New file.
82098
82099         Module readutmp.
82100         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82101
82102         Module sig2str.
82103         * m4/sig2str.m4: New file.
82104
82105         Other.
82106         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82107         ulonglong.m4.
82108         * m4/intmax_t.m4: New file.
82109         * m4/d-type.m4: Indentation.
82110         * m4/jm-macros.m4: Update.
82111         * m4/prereq.m4 (jm_PREREQ): Update.
82112         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82113         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82114         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82115         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82116         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82117         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82118         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82119         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82120         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82121         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82122         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82123         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82124         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82125         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82126         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82127         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82128         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82129         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82130         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82131
82132 2002-12-24  Bruno Haible  <bruno@clisp.org>
82133
82134         * MODULES.txt: Update according to m4/ changes.
82135
82136         Module gettext.
82137         * config.rpath: New file, from gettext-0.11.5.
82138
82139         * modules/*: New module descriptions.
82140         * gnulib-tool: New file.
82141         * MODULES.html.sh: New file.
82142
82143 2002-12-21  Karl Berry  <karl@gnu.org>
82144
82145         * doc/fdl.texi: update to version 1.2.
82146
82147 2002-12-19  Karl Berry  <karl@gnu.org>
82148
82149         * config/config.guess: update from prep.
82150
82151 2002-12-18  Bruno Haible  <bruno@clisp.org>
82152
82153         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82154         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82155
82156 2002-12-17  Bruno Haible  <bruno@clisp.org>
82157
82158         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82159         stdlib.h, string.h.
82160
82161 2002-12-17  Bruno Haible  <bruno@clisp.org>
82162
82163         * lib/canon-host.c (strdup): Remove unused declaration.
82164
82165         * lib/fsusage.c: Include full_read.h.
82166         (get_fs_usage): Use full_read instead of safe_read.
82167
82168         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82169
82170 2002-12-12  Karl Berry  <karl@gnu.org>
82171
82172         * config/config.guess: update from prep.
82173
82174 2002-12-11  Bruno Haible  <bruno@clisp.org>
82175
82176         * m4/setenv.m4: New file, from gettext-0.11.5.
82177
82178 2002-12-11  Bruno Haible  <bruno@clisp.org>
82179
82180         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82181         not unsetenv().
82182         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82183         modifications:
82184
82185         2002-12-11  Bruno Haible  <bruno@clisp.org>
82186
82187                 * setenv.c (alloca): Fall back to malloc.
82188                 (freea): New macro.
82189                 (setenv): Use freea() to free memory allocated with alloca().
82190
82191         2002-11-13  Bruno Haible  <bruno@clisp.org>
82192
82193                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82194                 function declarations.
82195                 * unsetenv.c (unsetenv): Likewise.
82196
82197         2002-03-04  Bruno Haible  <bruno@clisp.org>
82198
82199                 Portability to AIX 4.3.3.
82200                 * unsetenv.c: New file, extracted from setenv.c.
82201                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82202
82203         2001-12-20  Bruno Haible  <bruno@clisp.org>
82204
82205                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82206                 use malloc instead. For SunOS 4.
82207
82208         2001-12-11  Bruno Haible  <bruno@clisp.org>
82209
82210                 * setenv.c: Declare alloca.
82211                 (compar_fn_t): New typedef.
82212                 (KNOWN_VALUE, STORE_VALUE): Use it.
82213
82214         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82215         setenv.h.
82216
82217 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82218
82219         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82220         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82221         Choose values that are less likely to collide with system fnmatch
82222         options.
82223         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82224         defined (e.g., a pure POSIX system).
82225         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82226         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82227
82228 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82229
82230         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82231         a pain in practice to deal with generated m4 files.  This change
82232         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82233
82234         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82235         and jm-glibc-io.m4, as they are no longer a special case.
82236         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82237         kludge and the auto-generation stuff.  Check only whether the
82238         functions are declared, not whether they exist, since older hosts
82239         that don't declare the functions can't use the optimization anyway.
82240
82241 2002-12-06  Jim Meyering  <jim@meyering.net>
82242
82243         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82244
82245         Merge in changes from libc's misc/error.c, in preparation
82246         for the merge of gnulib's changes back into libc.
82247
82248         * lib/error.c (_): Define only if not already defined.
82249         Move definition to follow all #include directives.
82250         Include unlocked-io.h only if !_LIBC.
82251         [_LIBC]: Include <libio/libioP.h>.
82252         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82253         (fflush): Tweak definition to use INTUSE.
82254         (putc): Define.
82255
82256 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/alloca.c [defined emacs]: Include "lisp.h".
82259         (xalloc_die) [defined emacs]: New macro.
82260         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82261         [! defined emacs]: Include <xalloc.h>.
82262         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82263         (pointer): Typedef to POINTER_TYPE *.
82264         (malloc): Remove decl; we now always use xmalloc.
82265         (alloca): Use old-style definition, since Emacs needs this.
82266         Check for arithmetic overflow when computing combined size.
82267
82268 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82269
82270         Do not generate unlocked-io.h automatically, since it's easier to
82271         maintain it by hand.
82272
82273         * lib/unlocked-io.h: New file, from GNU diffutils,
82274         but with proper copyright notice and attribution.
82275         * lib/gen-uio: Remove.
82276         * lib/Makefile.am: Add copyright notice.
82277         (libfetish_a_SOURCES): Add unlocked-io.h.
82278         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82279         (DISTCLEANFILES, io_functions): Remove macros.
82280         (EXTRA_DIST): Remove gen_uio.
82281         (unlocked-io.h): Remove rule.
82282
82283 2002-12-04  Jim Meyering  <jim@meyering.net>
82284
82285         Reflect the fact that stat.c and lstat.c are no longer generated.
82286         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82287         (DISTCLEANFILES): Likewise.
82288         (EXTRA_DIST): Likewise.
82289         (all_local): Don't depend on stat.c or lstat.c.
82290         (stat.c, lstat.c): Remove rules.
82291         (EXTRA_DIST): Remove xstat.in.
82292
82293         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82294         * lib/stat.c: New file.  Contents mostly from xstat.in.
82295         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82296         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82297
82298         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82299         too.
82300         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82301
82302 2002-12-03  Jim Meyering  <jim@meyering.net>
82303
82304         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82305         but not semantics, to minimize the differences between these two files.
82306         (safe_read): Change comment to mention SAFE_READ_ERROR.
82307
82308         * lib/safe-read.c (IS_EINTR): Define.
82309         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82310
82311 2002-12-02  Jim Meyering  <jim@meyering.net>
82312
82313         * lib/safe-read.c (EINTR): Define.
82314         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82315         (INT_MAX): Provide fallback.
82316         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82317
82318         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82319
82320 2002-12-02  Bruno Haible  <bruno@clisp.org>
82321
82322         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82323         Define, taken from safe-read.c.
82324         (INT_MAX): Provide fallback.
82325         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82326         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82327
82328         * lib/safe-read.c (EINTR): Remove definition.
82329         (safe_read): Don't use EINTR if it is absent.
82330
82331 2002-12-01  Jim Meyering  <jim@meyering.net>
82332
82333         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82334         zero.
82335         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82336
82337 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82338
82339         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82340         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82341         with `if (! (value < limit)) abort ();', for readability.
82342
82343 2002-11-26  Karl Berry  <karl@gnu.org>
82344
82345         * lib/strdup.c: copy from libc again, with jim's ok.
82346         * lib/.cppi-disable: re-add strdup.c
82347
82348 2002-11-25  Karl Berry  <karl@gnu.org>
82349
82350         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82351         instead of "strtol.c".
82352
82353 2002-11-25  Karl Berry  <karl@gnu.org>
82354
82355         * config/install-sh: update from automake for variable quoting, $0 in
82356         error msgs, etc.
82357
82358         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82359         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82360         entry.
82361
82362 2002-11-25  Jim Meyering  <jim@meyering.net>
82363
82364         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82365
82366 2002-11-24  Karl Berry  <karl@gnu.org>
82367
82368         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82369         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82370
82371 2002-11-24  Jim Meyering  <jim@meyering.net>
82372
82373         Update from coreutils:
82374
82375         * lib/mktime.c: Merge in changes from libc.
82376
82377         Avoid a link-time failure on some Linux systems.
82378         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82379         (otherwise).
82380         (__mon_yday): Declare with the STATIC attribute.
82381         (__mktime_internal): Likewise.
82382         Based on a report from Greg Schafer.
82383
82384 2002-11-23  Jim Meyering  <jim@meyering.net>
82385
82386         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82387         Use `unsigned', not `int', as type of index.
82388
82389         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82390
82391         * lib/fsusage.c: Remove unneeded parentheses around operands of
82392         `defined'.
82393
82394 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82395
82396         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82397         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82398         so that we can be included first.
82399         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82400         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82401         No need to include stddef.h or sys/types.h any more.
82402         Surround local include files with "", not "<>".
82403         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82404         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82405         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82406         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82407         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82408         (ISPRINT): Remove; no longer needed now that we assume C89.
82409
82410         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82411         Preserve errno.
82412
82413         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82414         quotearg_char): Use SIZE_MAX rather than
82415         (size_t) -1 when we are talking about "infinity".
82416
82417         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82418
82419 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82420
82421         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82422         hint that one should use `if (! x) abort ();' rather than `assert
82423         (x);', and anyway it's one less thing to worry about configuring.
82424         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82425         hash_rehash, hash_insert): Use abort rather than assert.
82426
82427 2002-11-22  Bruno Haible  <bruno@clisp.org>
82428
82429         * lib/safe-read.h: Assume C89. Add comments.
82430         (safe_read): Change return type to size_t.
82431         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82432         byte counts > SSIZE_MAX correctly.
82433         * lib/safe-write.h: New file.
82434         * lib/safe-write.c: New file.
82435         * lib/full-read.h: New file.
82436         * lib/full-read.c: New file.
82437         * lib/full-write.h: Assume C89. Add comments.
82438         * lib/full-write.c: Include safe-write.h.
82439         (full_write): Rewritten to use safe_write.
82440         Suggested by Jim Meyering and Paul Eggert.
82441
82442 2002-11-21  Jim Meyering  <jim@meyering.net>
82443
82444         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82445
82446         Merge in changes from the coreutils.
82447
82448         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82449         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82450         <stdint.h>.
82451         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82452         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82453         int.  Work more efficiently if X is the same width as uintmax_t.
82454         Do not compare X to -1, to avoid bogus compiler warning.
82455         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82456         Don't assume that f_frsize and f_bsize are the same type.
82457
82458         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82459         warning on FreeBSD.
82460
82461         * lib/makepath.c (make_path): Restore umask *before* creating the final
82462         component.
82463         (make_path): Minor reformatting.
82464
82465         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82466         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82467         HAVE_MALLOC/HAVE_REALLOC.
82468
82469         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82470         dummy ones.  At least on GNU/Linux systems, `auto' means something
82471         else.
82472         From Michael Stone.
82473
82474 2002-11-21  Bruno Haible  <bruno@clisp.org>
82475
82476         Remove case insensitive option matching.
82477         * lib/argmatch.h (argcasematch): Remove declaration.
82478         (ARGCASEMATCH): Remove macro.
82479         (__xargmatch_internal): Remove case_sensitive argument.
82480         (XARGMATCH): Update.
82481         (XARGCASEMATCH): Remove macro.
82482         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82483         case_sensitive argument.
82484         (argcasematch): Remove function.
82485         (__xargmatch_internal): Remove case_sensitive argument.
82486         (main): Use XARGMATCH instead of XARGCASEMATCH.
82487
82488         * lib/xmalloc.c: Change compile-time error message. Add comment about
82489         required autoconf version.
82490
82491 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82492
82493         Merge argmatch cleanups from Bison.  Assume C89.
82494
82495         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82496         Include stdlib.h, for EXIT_FAILURE.
82497         Always include <string.h>, since we assume C89.
82498         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82499         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82500         Include <stddef.h> instead, since it's all we need for size_t.
82501         (PARAMS): Remove.  All uses removed.
82502         (ARRAY_CARDINALITY): Do not bother to #undef.
82503         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82504         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82505         Remove unnecessary parentheses.
82506         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82507         Insert necessary parentheses.
82508         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82509         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82510
82511 2002-11-19  Bruno Haible  <bruno@clisp.org>
82512
82513         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82514         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82515
82516         * lib/mbswidth.h (PARAMS): Remove macro.
82517         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82518         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82519
82520         * lib/gcd.h (PARAMS): Remove macro.
82521         (gcd): Use ANSI C function declarations.
82522         * lib/gcd.c (gcd): Likewise.
82523
82524 2002-11-15  Bruno Haible  <bruno@clisp.org>
82525
82526         * lib/strcspn.c: Include <stddef.h>.
82527         (strcspn): Use ANSI C function declaration. Change return type to
82528         size_t. Use NULL.
82529         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82530         (strpbrk): Use NULL.
82531         * lib/strpbrk.h (PARAMS): Remove macro.
82532         (strpbrk): Use ANSI C function declaration.
82533         * lib/strstr.c: Don't include <sys/types.h>.
82534         * lib/strstr.h (PARAMS): Remove macro.
82535         (strstr): Use ANSI C function declarations.
82536
82537 2002-11-14  Karl Berry  <karl@gnu.org>
82538
82539         * config/mkinstalldirs: `do' on separate line, instead of
82540         `for var; do'.
82541
82542 2002-11-06  Bruno Haible  <bruno@clisp.org>
82543
82544         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82545         * lib/gcd.c (gcd): Likewise.
82546
82547 2002-11-05  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/gcd.h: New file, from gettext-0.11.5.
82550         * lib/gcd.c: New file, from gettext-0.11.5.
82551
82552 2002-11-05  Bruno Haible  <bruno@clisp.org>
82553
82554         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82555         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82556         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82557         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82558
82559         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82560         <libintl.h>.
82561         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82562         <libintl.h>.
82563
82564         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82565         * lib/human.c: Include gettext.h instead of <libintl.h>.
82566         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82567         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82568         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82569         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82570         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82571         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82572         (textdomain): Remove definition.
82573         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82574
82575         * lib/long-options.c: Remove include of <libintl.h> and definition of
82576         _.
82577         * lib/same.c: Remove include of <libintl.h> and definition of _.
82578
82579 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82580
82581         * lib/config.charset: A few additions for Solaris.
82582
82583 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82584
82585         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82586         * lib/localcharset.c (locale_charset): Declare as extern "C".
82587
82588 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82589
82590         * lib/config.charset: msdos in uk_UA uses CP1125.
82591
82592 2002-11-04  Bruno Haible  <bruno@clisp.org>
82593
82594         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82595         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82596         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82597         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82598         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82599
82600 2002-11-04  Bruno Haible  <bruno@clisp.org>
82601
82602         * lib/localcharset.c (locale_charset): Don't return an empty string.
82603
82604 2002-11-04  Bruno Haible  <bruno@clisp.org>
82605
82606         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82607         aliases.
82608
82609 2002-11-04  Bruno Haible  <bruno@clisp.org>
82610
82611         * lib/config.charset: Update for newest glibc. Add canonical names
82612         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82613
82614 2002-11-04  Bruno Haible  <bruno@clisp.org>
82615
82616         * lib/config.charset: Add support for NetBSD.
82617
82618 2002-11-04  Bruno Haible  <bruno@clisp.org>
82619
82620         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82621
82622 2002-11-01  Bruno Haible  <bruno@clisp.org>
82623
82624         * configure.in: Add AC_CONFIG_AUX_DIR call.
82625         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82626         test/Makefile.
82627         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82628
82629 2002-09-28  Karl Berry  <karl@gnu.org>
82630
82631         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82632         installed automake until the next release, since changes have been
82633         made.
82634
82635 2002-09-25  Karl Berry  <karl@gnu.org>
82636
82637         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82638         * lib/getopt*: copy from libc/posix.
82639         * lib/gettext.h: copy from gettext.
82640         * lib/.cppi-disable: add strdup.c, gettext.h.
82641
82642 2002-09-25  Karl Berry  <karl@gnu.org>
82643
82644         * config/srclist.txt: enable gettext.h check.
82645         * config/config.{guess,sub}: update from prep.
82646         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82647                 from automake 1.6.3.
82648         See srclist*.
82649
82650 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82651
82652         * regex.c (PATFETCH): Remove the translating fetch.
82653         (PATFETCH_RAW): Rename to PATFETCH.
82654         (set_image_of_range): New fun.
82655         (SET_RANGE_TABLE_WORK_AREA): Use it.
82656         (regex_compile): Don't translate the pattern chars so eagerly.
82657         Only do it when inserting an `exactn' bytecode or when handling
82658         a char-range.
82659         (mutually_exclusive_p): Avoid empty statement.
82660
82661 2002-07-06  Jim Meyering  <meyering@lucent.com>
82662
82663         * m4/README: Don't mention Makefile.am.in.
82664         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82665
82666 2002-07-01  Jim Meyering  <meyering@lucent.com>
82667
82668         * lib/c-stack.c: Include sys/time.h.
82669         From Volker Borchert.
82670
82671 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82672
82673         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82674
82675 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82676
82677         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82678         New macro.  Use it uniformly instead of
82679         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82680         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82681         reported by Vin Shelton.
82682
82683 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82684
82685         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82686         Do not assume SA_SIGINFO behavior.
82687         Bug reported by Jim Meyering on NetBSD 1.5.2.
82688
82689 2002-06-22  Jim Meyering  <meyering@lucent.com>
82690
82691         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82693
82694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82695         now that configure.ac uses AC_GNU_SOURCE.
82696         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82697         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82698
82699         Update to latest tools.  Suggestions from Paul Eggert.
82700         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82701         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82702         * m4/fnmatch.m4: Likewise.
82703         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82704         to AC_HEADER_STDBOOL
82705
82706 2002-06-22  Jim Meyering  <meyering@lucent.com>
82707
82708         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82709         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82710
82711 2002-06-22  Jim Meyering  <meyering@lucent.com>
82712
82713         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82714
82715         * lib/exitfail.c, exitfail.h: Likewise.
82716         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82717
82718         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82719         of fnmatch.h.
82720         (EXTRA_DIST): Add fnmatch_loop.c.
82721         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82722
82723         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82724         * lib/fnmatch.c: Update from diffutils-2.8.2.
82725         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82726         * lib/fnmatch.h: Remove file.
82727
82728 2002-06-21  Jim Meyering  <meyering@lucent.com>
82729
82730         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82731         * m4/mbrtowc.m4: Likewise.
82732
82733         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82734         * m4/mbswidth.m4: Reflect name change:
82735         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82736         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82737
82738         * m4/lib-link.m4: Update from gettext-0.11.2.
82739         * m4/gettext.m4: Likewise.
82740
82741         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82742         From Alfred M. Szmidt.
82743
82744 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82745
82746         * lib/file-type.h: Report an error if neither S_ISREG nor
82747         S_IFREG is defined, instead of using a test specific to glibc
82748         2.2.  This should be safe, since POSIX requires S_ISREG and
82749         Unix Version 7 had S_IFREG.  We don't need to check for
82750         <sys/types.h> since we don't use any symbols that it defines.
82751
82752 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82753
82754         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82755         $@-t, so that each temporary file name is unique and valid in the first
82756         8 characters, for operation under DOS.
82757
82758 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82759
82760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82761
82762 2002-06-15  Jim Meyering  <meyering@lucent.com>
82763
82764         Work even with DJGPP 2.03, which lacks support for symlinks.
82765         From Richard Dawe.
82766         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82767         is defined.
82768         * lib/lchown.c (S_ISLNK): Likewise.
82769
82770 2002-06-15  Jim Meyering  <meyering@lucent.com>
82771
82772         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82773         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82774         have been included before this file.
82775
82776 2002-06-14  Jim Meyering  <meyering@lucent.com>
82777
82778         * lib/file-type.h: Use the version from diffutils-2.8.2.
82779         * lib/file-type.c: Likewise.
82780
82781 2002-06-07  Jim Meyering  <meyering@lucent.com>
82782
82783         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82784         They're needed at least for NetBSD 1.5.2.
82785         ($statxfs_includes): Include those same headers.
82786         ($statxfs_includes): Include sys/vfs.h if available.
82787         ($statxfs_includes): Likewise for sys/statvfs.h.
82788         Check for the following members in both structs statfs and statvfs:
82789         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82790
82791 2002-06-01  Jim Meyering  <meyering@lucent.com>
82792
82793         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82794         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82795
82796 2002-05-28  Jim Meyering  <meyering@lucent.com>
82797
82798         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82799         Reported by Volker Borchert.
82800
82801 2002-05-27  Jim Meyering  <meyering@lucent.com>
82802
82803         Fix a problem seen only on nonconforming systems whereby ls.c's
82804         use of localtime, and then of gettimeofday would cause trouble:
82805         the localtime call used to initialize rpl_gettimeofday's save
82806         mechanism would clobber ls's current local time information so
82807         that in any long listing the first file would always be listed
82808         with date 1970-01-01.  Analysis by Volker Borchert.
82809
82810         * lib/gettimeofday.c (localtime): Undefine.
82811         (rpl_localtime): New function.
82812
82813 2002-05-27  Jim Meyering  <meyering@lucent.com>
82814
82815         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82816         localtime.
82817
82818         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82819         use the replacement function; it wouldn't resolve at link time.
82820         Reported by Volker Borchert.
82821
82822 2002-05-22  Jim Meyering  <meyering@lucent.com>
82823
82824         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82825         file-type.h.
82826         * lib/file-type.h: New file.
82827         * lib/file-type.c (file_type): New file/function.  Extracted from
82828         diffutils.
82829
82830 2002-04-30  Jim Meyering  <meyering@lucent.com>
82831
82832         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82833
82834 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82835
82836         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82837
82838 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82839
82840         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82841         Do not check for alloca.h (no longer used) or stdbool.h (was never
82842         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82843
82844 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82845
82846         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82847
82848 2002-04-29  Jim Meyering  <meyering@lucent.com>
82849
82850         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82851         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82852         Use AC_FUNC_STRNLEN here instead.
82853
82854         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82855         With autoconf-2.53a, it's part of AC_PROG_CC.
82856
82857 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82858
82859         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82861
82862 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82863
82864         * lib/sig2str.h, lib/sig2str.c: New files.
82865         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82866
82867 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82868
82869         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82870         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82871         of 127, since 64 is the largest conceivable number for ancient
82872         nonstandard hosts.
82873         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82874
82875 2002-04-28  Jim Meyering  <meyering@lucent.com>
82876
82877         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82878
82879 2002-04-24  Jim Meyering  <meyering@lucent.com>
82880
82881         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82882         (jm_PREREQ): Use it.
82883
82884         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82885         mach/mach.h fcntl.h.
82886         Check for this function: setlocale.
82887
82888 2002-04-24  Jim Meyering  <meyering@lucent.com>
82889
82890         * lib/gettext.h: New file, from Gettext.
82891         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82892         (libfetish_a_SOURCES): Add gettext.h.
82893
82894 2002-04-16  Jim Meyering  <meyering@lucent.com>
82895
82896         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82897         ut_pid, ut_id, ut_exit.
82898
82899 2002-04-16  Jim Meyering  <meyering@lucent.com>
82900
82901         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82902         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82903         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82904
82905 2002-04-12  Jim Meyering  <meyering@lucent.com>
82906
82907         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82908         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82909         existence of the getmntinfo function.  Needed for Darwin 5.3.
82910
82911         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82912         This is necessary at least on Darwin 5.3.
82913
82914         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82915         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82916         strnlen.o in the library, and that makes some versions of ranlib
82917         object.
82918
82919 2002-04-12  Jim Meyering  <meyering@lucent.com>
82920
82921         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82922
82923 2002-04-09  Jim Meyering  <meyering@lucent.com>
82924
82925         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82926         to be more precise.  Rather than saying we're checking whether the
82927         function `works', say what we're testing.
82928         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82929         Reported by Bruno Haible.
82930
82931 2002-03-10  Jim Meyering  <meyering@lucent.com>
82932
82933         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82934         Suggestion from Santiago Vila.
82935
82936 2002-03-08  Jim Meyering  <meyering@lucent.com>
82937
82938         * lib/rename.c: Mention that this wrapper is needed also on
82939         mips-dec-ultrix4.4 systems.
82940
82941 2002-03-02  Jim Meyering  <meyering@lucent.com>
82942
82943         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82944         not HAVE_CLOCK_SETTIME.
82945
82946 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82947
82948         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82949         Check for clock_settime.
82950
82951 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82952
82953         * lib/nanosleep.h: Rename to....
82954         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82955
82956         * lib/gettime.c: New file.
82957         * lib/settime.c: New file.
82958         * lib/stime.c: Remove.
82959
82960         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82961         timespec.h.  Remove nanosleep.h.
82962
82963 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82964
82965         * m4/acl.m4: New file.
82966         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82967         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82968
82969 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82970
82971         * lib/acl.c, lib/acl.h: New files.
82972         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82973
82974 2002-02-24  Jim Meyering  <meyering@lucent.com>
82975
82976         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82977         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82978         cause trouble.  Reported by Nelson Beebe.
82979
82980 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82981
82982         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82983         compilers that don't know that xalloc_die never returns.
82984
82985 2002-02-20  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/getdate.c: Regenerate using bison-1.33.
82988
82989 2002-02-17  Jim Meyering  <meyering@lucent.com>
82990
82991         * config/config.guess (main): Don't use `head -1'; it's no longer
82992         portable. Use `sed 1q' instead.
82993
82994 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82995
82996         * m4/codeset.m4: Upgrade to gettext-0.11.
82997         * m4/gettext.m4: Upgrade to gettext-0.11.
82998         * m4/glibc21.m4: Upgrade to gettext-0.11.
82999         * m4/iconv.m4: Upgrade to gettext-0.11.
83000         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83001         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83002         * m4/lib-ld.m4: New file, from gettext-0.11.
83003         * m4/lib-link.m4: New file, from gettext-0.11.
83004         * m4/lib-prefix.m4: New file, from gettext-0.11.
83005         * m4/progtest.m4: Upgrade to gettext-0.11.
83006
83007 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83008
83009         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83010         (jm_PREREQ): Use it.
83011
83012 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83013
83014         * lib/posixver.c, lib/posixver.h: New files.
83015         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83016
83017 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83018             Bruno Haible  <bruno@clisp.org>
83019
83020         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83021         (fwrite_success_callback): New declaration.
83022         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83023         print_unicode_char. Call failure callback instead of error.
83024         (fwrite_success_callback): New function.
83025         (exit_failure_callback): New function.
83026         (fallback_failure_callback): New function.
83027         (print_unicode_char): Call unicode_to_mb.
83028
83029 2002-01-26  Jim Meyering  <meyering@lucent.com>
83030
83031         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83032         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83033
83034 2002-01-26  Jim Meyering  <meyering@lucent.com>
83035
83036         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83037
83038 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83039
83040         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83041
83042 2002-01-22  Jim Meyering  <meyering@lucent.com>
83043
83044         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83045         Otherwise, some versions of automake would omit the rule that makes
83046         Makefile from Makefile.in.
83047
83048 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83049
83050         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83051         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83052         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83053         (memcoll): Set errno to zero if there is no error.
83054
83055         * lib/quotearg.c (quotearg_buffer_restyled):
83056         Fix bug with quoting buffers containing NUL when backslashing escapes.
83057         This bug was exposed by the other changes in this patch.
83058         (quotearg_n_options): New arg ARGSIZE.
83059         All callers changed.
83060         (quoting_options_from_style): New function.
83061         (quotearg_n_style): Use it.
83062         (quotearg_n_style_mem): New function.
83063
83064         * lib/quotearg.h (quotearg_n_style_mem): New function.
83065
83066 2002-01-19  Jim Meyering  <meyering@lucent.com>
83067
83068         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83069         Remove useless quotes: DF_PROG="df".
83070         * m4/strnlen.m4: New file.
83071
83072 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83073
83074         * lib/backupfile.c (ISDIGIT): Comment fix.
83075         * lib/getdate.y (ISDIGIT): Likewise.
83076         * lib/posixtm.c (ISDIGIT, year): Likewise.
83077         * lib/strverscmp.c (ISDIGIT): Likewise.
83078         * lib/userspec.c (ISDIGIT): Likewise.
83079
83080 2002-01-16  Jim Meyering  <meyering@lucent.com>
83081
83082         * lib/getdate.y: Add three semicolons, each just before a closing
83083         brace. Bison (as of version 1.31) no longer papers over that mistake.
83084
83085 2002-01-05  Jim Meyering  <meyering@lucent.com>
83086
83087         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83088
83089 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83090
83091         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83092         not silently exit merely because the output buffer happens to
83093         have nothing pending.
83094
83095 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83096
83097         See the big note in ../ChangeLog.
83098         * lib/human.c (suffixes): Prefer K to k for 1024.
83099         (generate_suffix_backwards): New function.
83100         (human_readable_inexact): Use it.
83101         * lib/xstrtol.c (__xstrtol): If there is no number but there
83102         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83103         Accept 'K' as well as 'k'.
83104
83105 2001-12-15  Jim Meyering  <meyering@lucent.com>
83106
83107         * lib/regex.h (__restrict_arr): Update from libc.
83108
83109         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83110         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83111         (STREQ): Define.
83112
83113 2001-12-14  Jim Meyering  <meyering@lucent.com>
83114
83115         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83116         Suggestion from Bruno Haible.
83117
83118 2001-12-10  Jim Meyering  <meyering@lucent.com>
83119
83120         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83121         xrealloc, Instead, include "xalloc.h".
83122         (initbuffer): Don't cast xmalloc return value to char*.
83123         (readline): Reword comment.
83124         Don't cast xrealloc return value to char*
83125         Return NULL, not 0.
83126
83127 2001-12-09  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83130         about `signed and unsigned type in conditional expression'.
83131         * lib/posixtm.c (posix_time_parse): Likewise.
83132
83133         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83134
83135         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83136         to avoid a pedantic warning.
83137
83138         * lib/getstr.c: Don't include assert.h.
83139         (getstr): Remove warning-evoking assertions.
83140         Return -1 if offset parameter is out of bounds.
83141         Change the type of a local from int to size_t.
83142
83143         * lib/strftime.c (my_strftime_localtime_r): Include this function
83144         definition in the `#if ! HAVE_TM_GMTOFF' block.
83145
83146         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83147         Include xalloc.h instead.
83148
83149 2001-12-02  Jim Meyering  <meyering@lucent.com>
83150
83151         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83152         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83153         included.
83154
83155         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83156         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83157
83158 2001-11-30  Akim Demaille  <akim@epita.fr>
83159
83160         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83161         before being defined.
83162
83163 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83164
83165         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83166         First arg is int, not unsigned.
83167         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83168         (SIZE_MAX, UINT_MAX): New macros.
83169         (quotearg_n_options): Abort if N is negative.
83170         Avoid overflow check on hosts where size_t is 64 bits and int
83171         is 32 bits, as overflow is impossible there.
83172         Fix off-by-one typo that caused unnecessary reallocation.
83173
83174 2001-11-27  Jim Meyering  <meyering@lucent.com>
83175
83176         * lib/tempname.c: Merge with version from libc.
83177         * lib/regex.c: Likewise.
83178
83179         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83180         systems for which STDC_HEADERS is 0, it was not included, resulting in
83181         a warning about an integer-to-pointer conversion problem with getenv.
83182         Reported by Volker Borchert.
83183
83184 2001-11-26  Jim Meyering  <meyering@lucent.com>
83185
83186         * lib/gtod.h: Remove file.
83187         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83188         * lib/gettimeofday.c: Don't include gtod.h.
83189         (GTOD_init): Remove function.
83190         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83191         Suggestion from Volker Borchert.
83192
83193 2001-11-23  Jim Meyering  <meyering@lucent.com>
83194
83195         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83196         it.
83197         * lib/hash.c (struct hash_table): Define it here instead.
83198
83199 2001-11-22  Jim Meyering  <meyering@lucent.com>
83200
83201         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83202
83203 2001-11-20  Jim Meyering  <meyering@lucent.com>
83204
83205         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83206         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83207
83208 2001-11-19  Jim Meyering  <meyering@lucent.com>
83209
83210         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83211         directory.  Use "conftestXXXXXX" as the template.
83212         Suggestion from Paul Eggert.
83213
83214         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83215         immediately, so the test doesn't mistakenly hit the max-open-files
83216         limit.
83217
83218 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83219
83220         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83221         (TEMPORARIES): New macro.
83222         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83223         removes an artificial limitation (e.g. HP-UX 10.20, where
83224         TMP_MAX is 17576).
83225
83226 2001-11-18  Jim Meyering  <meyering@lucent.com>
83227
83228         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83229
83230 2001-11-18  Jim Meyering  <meyering@lucent.com>
83231
83232         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83233         on SunOS 4.
83234
83235         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83236         files will be created before anything else.
83237
83238 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83239
83240         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83241         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83242
83243 2001-11-17  Jim Meyering  <meyering@lucent.com>
83244
83245         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83246         Prompted by a report from Bob Proulx.
83247
83248         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83249         Instead, require UTILS_FUNC_MKSTEMP.
83250
83251 2001-11-17  Jim Meyering  <meyering@lucent.com>
83252
83253         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83254         Now, that's done as part of AC_FUNC_STRTOD.
83255
83256 2001-11-17  Jim Meyering  <meyering@lucent.com>
83257
83258         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83259         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83260         rather than group writable.  Patch by Juan F. Codagnone.
83261
83262         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83263         xrealloc, Instead, include "xalloc.h".
83264
83265         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83266         Remove explicit declarations of xmalloc, xrealloc,
83267         and xstrdup.  Instead, include "xalloc.h".
83268
83269         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83270         unlocked-io.h.
83271         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83272         Likewise.
83273         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83274
83275         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83276         Reported by Padraig Brady.
83277
83278         * lib/mkstemp.c: #undef mkstemp.
83279         Include config.h.
83280         (rpl_mkstemp): Rename from mkstemp.
83281         Protoize.
83282
83283 2001-11-16  Jim Meyering  <meyering@lucent.com>
83284
83285         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83286         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83287         determine the amount of total physical memory, use pstat_getstatic.
83288         HPUX-11 doesn't define _SC_PHYS_PAGES.
83289         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83290         If sysconf couldn't be used to determine the amount of available
83291         physical memory, use both pstat_getstatic and pstat_getdynamic.
83292         Based on a patch from Bob Proulx.
83293
83294 2001-11-10  Jim Meyering  <meyering@lucent.com>
83295
83296         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83297         (jm_PREREQ): Use it.
83298
83299 2001-11-09  Jim Meyering  <meyering@lucent.com>
83300
83301         * m4/jm-macros.m4: Require autoconf-2.52f.
83302         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83303         Use these AC_-prefixed names, not the AM_-prefixed ones.
83304
83305         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83306
83307 2001-11-05  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83310
83311 2001-11-04  Jim Meyering  <meyering@lucent.com>
83312
83313         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83314         $DEFS.
83315
83316 2001-11-03  Jim Meyering  <meyering@lucent.com>
83317
83318         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83319         of AC_DEFUN.
83320
83321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83322         know the name of the variable in the macro definition.
83323
83324 2001-11-03  Jim Meyering  <meyering@lucent.com>
83325
83326         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83327         in argmatch_to_argument call.
83328
83329         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83330         argument.
83331
83332         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83333         e.g., a fault due to an attempt to free a NULL pointer.
83334
83335 2001-11-01  Jim Meyering  <meyering@lucent.com>
83336
83337         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83338         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83339
83340 2001-11-01  Jim Meyering  <meyering@lucent.com>
83341
83342         * lib/dirfd.c, lib/dirfd.h: New files.
83343         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83344
83345         * lib/hash.c (hash_print) [TESTING]: Clean up.
83346
83347 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83348
83349         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83350         to avoid a warning if -Wall.
83351
83352 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83353
83354         * README: New file
83355         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83356         (per RMS's instructions, this is now the canonical source)
83357         * lgpl/, gpl/: New directories.
83358
83359 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83360
83361         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83362
83363 2001-10-21  Jim Meyering  <meyering@lucent.com>
83364
83365         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83366         this code would end up calling gettext even in packages built
83367         with --disable-nls.
83368         * lib/getopt.c (_): Likewise.
83369         * lib/regex.c (_): Likewise.
83370
83371 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83372
83373         * m4/error.m4 (jm_PREREQ_ERROR):
83374         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83375         AC_FUNC_STRERROR_R does that.
83376         Check for strerror declaration.
83377
83378         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83379         are supposed to have them these days.
83380         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83381         Merge changes from latest Autoconf CVS.
83382         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83383         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83384         POSIX decided to standardize on the int flavor of strerror_r.
83385
83386 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83387
83388         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83389         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83390         Use strerror_r that is only a macro, even if it is not a function.
83391         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83392         (private_strerror): Use prototypes, not old-style function definition.
83393         (print_errno_message): New function.
83394         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83395         char*-flavored one.
83396         (error_tail, error, error_at_line): Use it.
83397
83398 2001-10-11  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83401         and quote_n (1, ... to avoid clobbering a buffer.
83402
83403 2001-10-05  Jim Meyering  <meyering@lucent.com>
83404
83405         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83406         hash-pjw.h.
83407         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83408         * lib/hash-pjw.h: New file.
83409
83410 2001-09-30  Jim Meyering  <meyering@lucent.com>
83411
83412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83413         `struct fsstat' has the `f_fstypename' member.
83414         Use that to define FS_TYPE, which is now used to make
83415         the getfsstat link test tighter.
83416
83417 2001-09-30  Jim Meyering  <meyering@lucent.com>
83418
83419         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83420         Include <sys/ucred.h>, for Apple Darwin.
83421         Include sys/mount.h and sys/fs_types.h only if available.
83422         (FS_TYPE): Define.
83423         (read_filesystem_list): Use FS_TYPE.
83424
83425 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83426
83427         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83428         a boolean context.
83429
83430 2001-09-29  Jim Meyering  <meyering@lucent.com>
83431
83432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83433         [one-argument getmntent function]): Include stdio.h before mntent.h.
83434         SunOS 4.1.x needs it for the declaration of `FILE'.
83435         Patch by Volker Borchert.
83436
83437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83438         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83439         sys/fs_types.h, and make the link-test for getfsstat guard #include
83440         directives with appropriate #if HAVE_*_H tests so that we can
83441         detect getfsstat on Apple Darwin1.3.7 systems.
83442         Reported by Nelson Beebe.
83443         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83444
83445 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83446
83447         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83448         #defines strtoimax.  Also treat the other strto* functions
83449         like strtoimax.
83450
83451         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83452         Check for strtoul and strtoumax,
83453         as those declarations are made even in the signed case.
83454         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83455         Likewise, for strtol and strtoimax.
83456
83457 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83458
83459         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83460         #defines strtoimax.  Also treat the other strto* functions
83461         like strtoimax.
83462
83463         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83464         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83465         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83466
83467 2001-09-26  Jim Meyering  <meyering@lucent.com>
83468
83469         Most macros in unlocked-io.h had the wrong number of arguments.
83470         * lib/gen-uio: New script.
83471         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83472         * lib/unlocked-io.hin: Remove file.
83473         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83474         rather than trying to embed it here.
83475         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83476         Reported by Padraig Brady.
83477
83478 2001-09-25  Volker Borchert  <bt@teknon.de>
83479
83480         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83481         `result'.
83482
83483 2001-09-24  Jim Meyering  <meyering@lucent.com>
83484
83485         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83486
83487 2001-09-23  Jim Meyering  <meyering@lucent.com>
83488
83489         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83490         instead of the mere test for existence of mntent.h.  The latter
83491         would get a false-positive on AIX 3.4 systems.
83492         In the outer getmntent if-block, don't die if neither of the getmntent
83493         tests succeeds.  Instead, just fall through and continue with the
83494         remaining tests.
83495
83496 2001-09-23  Jim Meyering  <meyering@lucent.com>
83497
83498         * lib/mountlist.c: Remove useless parentheses in #if directives.
83499         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83500         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83501
83502 2001-09-22  Jim Meyering  <meyering@lucent.com>
83503
83504         * m4/gettext.m4: New file.  From gettext.
83505         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83506         * m4/progtest.m4: Likewise
83507         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83508         * m4/glibc21.m4: Likewise.
83509
83510         * m4/libintl.m4: Remove.  No longer used.
83511
83512 2001-09-22  Jim Meyering  <meyering@lucent.com>
83513
83514         * lib/localcharset.c: Update from latest gettext.
83515         * lib/config.charset: Likewise.
83516
83517 2001-09-20  Jim Meyering  <meyering@lucent.com>
83518
83519         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83520         strtoimax.
83521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83522         strtoumax.
83523
83524 2001-09-20  Jim Meyering  <meyering@lucent.com>
83525
83526         * lib/xstrtol.c (strtoimax): Guard declaration with
83527         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83528         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83529         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83530         (strtoumax): Likewise, for completeness (it wasn't necessary).
83531
83532 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83533
83534         * lib/strtoimax.c (HAVE_LONG_LONG):
83535         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83536         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83537         to work around bug in IBM C compiler.
83538
83539 2001-09-17  Jim Meyering  <meyering@lucent.com>
83540
83541         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83542         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83543         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83544         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83545         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83546         whenever the right hand side need not be expanded by the shell.
83547
83548 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83549
83550         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83551         library.  It's not correct, as some older glibcs are buggy.
83552         fnmatch wasn't fixed until glibc 2.2.
83553
83554         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83555         special shell magic here.
83556
83557 2001-09-16  Jim Meyering  <meyering@lucent.com>
83558
83559         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83560         * m4/jm-macros.m4: Require it.
83561
83562 2001-09-16  Jim Meyering  <meyering@lucent.com>
83563
83564         * lib/mkdir.c: New file.
83565
83566 2001-09-15  Jim Meyering  <meyering@lucent.com>
83567
83568         * m4/jm-macros.m4: Check for help2man.
83569
83570 2001-09-11  Jim Meyering  <meyering@lucent.com>
83571
83572         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83573         The body, by Paul Eggert, was moved here from configure.in.
83574         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83575
83576 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83577
83578         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83579         (jm_PREREQ): Use it.
83580
83581 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83582
83583         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83584         Use ssize_t, not int, to store result of readlink.
83585         Check for ssize_t overflow as well as size_t overflow,
83586         as POSIX says the result of readlink is implementation-defined
83587         when ssize_t overflows.
83588         Remove unnecessary cast to char*.
83589         Use free+malloc instead of realloc, as the storage doesn't need
83590         to be preserved and it's clearer and can be more efficient that way.
83591         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83592         * lib/xreadlink.h (xreadlink): Update prototype.
83593
83594 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83595
83596         * lib/xgetcwd.c: Revert some of the previous change; intead,
83597         fix the HAVE_GETCWD_NULL code to behave more like the
83598         !HAVE_GETCWD_NULL code used to.
83599
83600         Include "xalloc.h".
83601         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83602         invoke xalloc_die.
83603
83604 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83605
83606         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83607         sys/param.h, as pathmax.h includes them.
83608
83609 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83610
83611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83612         (jm_PREREQ_XGETCWD): New macro.
83613
83614         * m4/getcwd.m4: New file.
83615
83616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83617
83618         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83619         like the HAVE_GETCWD_NULL code.
83620         Include pathmax.h if not HAVE_GETCWD.
83621         Do not include xalloc.h.
83622         (INITIAL_BUFFER_SIZE): New symbol.
83623         Do not use xmalloc / xrealloc, since the caller is responsible for
83624         handling errors.  Preserve errno around `free' during failure.
83625         Do not overrun buffer when using getwd.
83626
83627 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83628
83629         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83630         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83631         getcwd (NULL, 0).
83632
83633 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83634
83635         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83636         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83637         spotted by Jim Meyering.
83638
83639 2001-09-03  Jim Meyering  <meyering@lucent.com>
83640
83641         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83642         failure.
83643
83644 2001-09-02  Jim Meyering  <meyering@lucent.com>
83645
83646         * lib/error.c: Update from GNU libc.
83647
83648 2001-09-01  Jim Meyering  <meyering@lucent.com>
83649
83650         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83651         Used by df.
83652
83653 2001-09-01  Jim Meyering  <meyering@lucent.com>
83654
83655         * lib/xreadlink.c: New file.
83656         * lib/xreadlink.h: New file.
83657         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83658         xreadlink.h.
83659
83660         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83661         doesn't conflict with sparc Solaris 7's definition in
83662         /usr/include/sys/int_types.h.
83663
83664         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83665         files.
83666         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83667         and strncasecmp as r-values.  Unixware didn't have declarations.
83668
83669 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83670
83671         * lib/xstrtol.h: Add copyright notice.
83672         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83673         LONGINT_INVALID_SUFFIX_CHAR.
83674
83675 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83676
83677         * lib/xstrtol.c (strtoimax): New decl.
83678
83679 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83680
83681         * lib/xgetcwd.c: Don't include pathmax.h.
83682         Include stdlib.h and unistd.h if available.
83683         Include xalloc.h.
83684         (xmalloc, xstrdup, free): Remove decls.
83685         (xgetcwd): Don't assume sizes fit in unsigned.
83686         Check for overflow when computing sizes.
83687         Simplify reallocation code.
83688
83689 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83690
83691         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83692         a directory's st_size can have an arbitrary value, so the old
83693         usage could waste an arbitrary amount of memory.  All uses
83694         changed.
83695         * lib/savedir.h: Update prototype.
83696
83697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83698
83699         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83700
83701         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83702         old strtoimax.c.
83703
83704         Also, make the following further changes to make this file's
83705         configuration more similar to that of strtol.c:
83706         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83707         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83708         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83709         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83710         changed to signed values.
83711
83712         And make the following changes as well:
83713         Fix copyright notice, as 1999 was missing.
83714         (verify): New macro.
83715         (strtoimax): Check sizes at compile-time, not run-time.
83716         Prefer strtol to strtoll if both work.
83717         (main): Remove; it was not that useful and was a pain to maintain.
83718
83719         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83720
83721 2001-08-31  Jim Meyering  <meyering@lucent.com>
83722
83723         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83724         Use an initial, malloc'd, buffer of length 128 rather than
83725         a statically allocated one of length 1024.
83726
83727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83728
83729         Simplify code, partly by assuming autoconf 2.52 semantics.
83730
83731         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83732
83733         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83734         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83735         All uses removed.
83736         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83737         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83738         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83739         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83740         jm_AC_HEADER_INTTYPES_H.
83741         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83742
83743         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83744
83745         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83746         Quote first arg of AC_DEFUN.
83747         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83748         since they are needed to parse the include file even if we need
83749         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83750         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83751         but with opposite signedness.
83752
83753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83754
83755         Merge 'exclude' changes from tar 1.13.22.
83756         This fixes one or two unlikely storage allocation overflow bugs,
83757         but doesn't change user-visible behavior otherwise.
83758
83759 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83760
83761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83762         (jm_PREREQ_EXCLUDE): New macro.
83763
83764 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83765
83766         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83767         tm to be declared.
83768
83769 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83770
83771         * lib/hash.c: Remove '2001' from copyright notice.
83772
83773 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83774
83775         * lib/full-write.h: New file.
83776         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83777         * lib/full-write.c: Correct credits, as cccp.c no longer
83778         exists and anyway it was so heavily changed from the old cccp
83779         code as to be unrecognizable.  Include full-write.h.
83780         (full_write): Return size_t, with short writes meaning failure.
83781         All callers changed.  This fixes a bug with large buffers
83782         on 64-bit hosts.
83783         * lib/utime.c: Include full-write.h.
83784
83785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83786
83787         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83788         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83789         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83790         Include if available.
83791         (<xalloc.h>): Include
83792         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83793         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83794         collide with FNM macros.
83795         (struct patopts): New struct.
83796         (struct exclude): Use it, as exclude patterns now come with options.
83797         (new_exclude): Support above changes.
83798         (new_exclude, add_exclude_file):
83799         Initial size must now be a power of two to simplify overflow checking.
83800         (free_exclude, fnmatch_no_wildcards): New function.
83801         (excluded_filename): No longer requires options arg, as the options
83802         are determined by add_exclude.  Now returns bool, not int.
83803         (excluded_filename, add_exclude):
83804         Add support for the fancy new exclusion options.
83805         (add_exclude, add_exclude_file): Now takes int options arg.
83806         Check for arithmetic overflow when computing sizes.
83807         (add_exclude_file): xrealloc might modify errno, so don't
83808         realloc until after errno might be used.
83809
83810         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83811         New macros.
83812         (free_exclude): New decl.
83813         (add_exclude, add_exclude_file): Now takes int options arg.
83814         (excluded_filename): No longer requires options arg, as the options
83815         are determined by add_exclude.  Now returns bool, not int.
83816
83817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83818
83819         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83820
83821 2001-08-27  Jim Meyering  <meyering@lucent.com>
83822
83823         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83824
83825         * lib/version-etc.c (N_): Remove definition.
83826         Revert most of last change.
83827         Instead, simply don't mark the `Copyright...' string for translation.
83828         Based on advice from Paul Eggert.
83829
83830         * lib/strtoxmax.c: Tweak comment.
83831
83832 2001-08-26  Jim Meyering  <meyering@lucent.com>
83833
83834         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83835
83836         * m4/xstrtoimax.m4: New file.
83837         * m4/xstrtoumax.m4: Add comments explaining why we
83838         AC_REPLACE_FUNCS(strtol).
83839
83840 2001-08-26  Jim Meyering  <meyering@lucent.com>
83841
83842         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83843         of copyright with `%s' so translators don't get an untranslated
83844         message in 2002.
83845         (COPYRIGHT_YEAR): Define.
83846         (version_etc): Use fprintf rather than fputs.
83847         Suggestion from Ulrich Drepper.
83848
83849         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83850
83851         * lib/strtoll.c: New file, from GNU libc.
83852         * lib/xstrtoimax.c: New file.
83853
83854         * lib/xstrtol.h: Add xstrtoimax.
83855         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83856         * lib/strtoimax.c: New file.  Likewise, but first define
83857         STRTOUXMAX_SIGNED.
83858
83859         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83860         ...
83861         * lib/strtoxmax.c: ... then renamed to this.
83862
83863 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83864
83865         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83866         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83867         (jm_AC_TYPE_INTMAX_T): New macro.
83868         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83869
83870         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83871
83872         * m4/longlong.m4: Renamed from ulonglong.m4.
83873         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83874         * m4/uintmax_t.m4: Removed.
83875
83876 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83877
83878         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83879         Port to Solaris 8, where 'sed' requires a space after the 'r'
83880         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83881         Redirect output to $tmp just once.
83882
83883 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83884
83885         * lib/addext.c (<errno.h>): Include.
83886         (errno): Declare if not defined.
83887         (addext): Work correctly when pathconf returns -1 and leaves
83888         errno alone because there is no limit.  Also, work even if
83889         pathconf returns a value greater than SIZE_MAX.
83890
83891 2001-08-12  Jim Meyering  <meyering@lucent.com>
83892
83893         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83894         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83895         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83896         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83897         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83898         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83899         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83900         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83901         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83902         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83903         utime.m4, utimes.m4, xstrtoumax.m4:
83904         Quote the first argument in each use of AC_DEFUN.
83905
83906 2001-08-12  Jim Meyering  <meyering@lucent.com>
83907
83908         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83909         Simply `return getcwd (NULL, 0);'.
83910         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83911         Use 1300 as initial value for length, not PATH_MAX.
83912
83913         * lib/pathmax.h: Clean up cpp syntax.
83914
83915 2001-08-12  Jim Meyering  <meyering@lucent.com>
83916
83917         * lib/gettimeofday.c: New file.
83918         * lib/gtod.h: New file.
83919         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83920
83921 2001-08-05  Jim Meyering  <meyering@lucent.com>
83922
83923         * m4/jm-macros.m4: Require autoconf-2.52.
83924
83925 2001-08-04  Jim Meyering  <meyering@lucent.com>
83926
83927         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83928         stmt, to get in sync with glibc.
83929
83930 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83931
83932         The following changes are from gettext 0.10.39 as maintained by
83933         Bruno Haible.
83934
83935         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83936         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83937         with inverted sense.  All uses changed.
83938
83939         * lib/mbswidth.c: Don't include <limits.h>.
83940         Include <stdlib.h> and <string.h> unconditionally.
83941         (iswcntrl, mbsinit, ISCNTRL): New macros.
83942         (mbsnwidth): Use K&R style function declarations.
83943         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83944         can optimize it when MB_CUR_MAX == 1.
83945         The width of control characters is zero, not 1.
83946
83947 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83948
83949         The following changes are from gettext 0.10.39 as maintained by
83950         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83951
83952         * m4/codeset.m4: Upgrade to serial AM1.
83953         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83954         all uses changed.  Quote first arg of AC_DEFUN.
83955         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83956
83957         * m4/iconv.m4: Upgrade to serial AM2.
83958         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83959         Add --with-libconv-prefix.
83960         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83961         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83962         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83963         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83964         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83965
83966         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83967         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83968         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83969         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83970         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83971         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83972         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83973         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83974         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83975
83976         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83977         string.h any more.
83978
83979         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83980         not the default value.
83981
83982         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83983         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83984         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83985         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83986         Also check for iswcntrl, used for wcwidth fallback.
83987         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83988         to Autoconf 2.13.
83989
83990 2001-08-03  Jim Meyering  <meyering@lucent.com>
83991
83992         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83993         as it was in the original.  Reported by Paul Eggert.
83994
83995 2001-07-16  Jim Meyering  <meyering@lucent.com>
83996
83997         * m4/gettimeofday.m4: New file.
83998         Prompted by a report from Bernhard Baehr.
83999
84000 2001-07-15  Jim Meyering  <meyering@lucent.com>
84001
84002         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84003         stuff. Now it's in ../Makefile.cfg.
84004
84005 2001-07-15  Jim Meyering  <meyering@lucent.com>
84006
84007         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84008         (BUILT_SOURCES): Add unlocked-io.h.
84009         (io_functions): Define.
84010         (unlocked-io.h): New rule.
84011         (DISTCLEANFILES): Add unlocked-io.h.
84012         (all-local): Depend on unlocked-io.h, to ensure it is created.
84013
84014         * lib/unlocked-io.hin: New file
84015
84016         * lib/regex.c: Update from glibc.
84017
84018 2001-07-05  Jim Meyering  <meyering@lucent.com>
84019
84020         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84021         recommendation.
84022         (libfetish_a_SOURCES): Put all .h files here instead.
84023         Remove a thus-exposed (better checks in automake) duplicate and
84024         two unnecessary .h files.
84025
84026 2001-07-04  Jim Meyering  <meyering@lucent.com>
84027
84028         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84029         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84030         distcheck failure.
84031
84032 2001-07-02  Jim Meyering  <meyering@lucent.com>
84033
84034         The following changes were prompted by suggestions from Bruno Haible.
84035
84036         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84037         is now generated.
84038         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84039         definition of EXTRA_DIST.
84040         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84041         ensure that the generated file is created/updated whenever the list
84042         of $(unlocked_functions) is changed.
84043         (jm-glibc-io.m4): New rule.
84044         (unlocked-io.h): New rule -- currently unused.
84045
84046 2001-06-24  Jim Meyering  <meyering@lucent.com>
84047
84048         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84049         unmatched right bracket, rather than kludging it with an extra,
84050         falsely-matching quote in a comment.  Patch by Akim Demaille.
84051
84052 2001-06-11  Jim Meyering  <meyering@lucent.com>
84053
84054         * lib/regex.c: Update from GNU libc.
84055
84056 2001-05-27  Jim Meyering  <meyering@lucent.com>
84057
84058         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84059         Check for ut_type in struct utmp.
84060
84061 2001-05-27  Jim Meyering  <meyering@lucent.com>
84062
84063         * lib/readutmp.h (UT_TYPE): Define.
84064
84065 2001-05-24  Jim Meyering  <meyering@lucent.com>
84066
84067         * lib/argmatch.c: Include "quote.h".
84068         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84069         quote function.  Reported by Göran Uddeborg.
84070
84071 2001-05-22  Jim Meyering  <meyering@lucent.com>
84072
84073         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84074         now that we use the package-supplied version unconditionally.
84075         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84076
84077 2001-05-21  Jim Meyering  <meyering@lucent.com>
84078
84079         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84080         shell syntax errors.
84081
84082 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84083
84084         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84085
84086 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84087
84088         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84089         Don't bother to check library strftime, since
84090         we'll be using our own my_strftime function anyway.
84091         Define my_strftime instead of strftime.
84092
84093 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84094
84095         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84096         which is not yet declared.
84097
84098 2001-05-15  Jim Meyering  <meyering@lucent.com>
84099
84100         * m4/regex.m4: Use proper quoting so brackets appear in the test
84101         program.
84102         Reported by, and with help from, Bruno Haible.
84103
84104 2001-05-13  Jim Meyering  <meyering@lucent.com>
84105
84106         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84107         undefined.
84108
84109 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84110
84111         dirname code cleanup.  base_name now behaves more compatibly
84112         with POSIX basename when given file names that have trailing
84113         slashes, and similarly for dir_name.  Add new primitives
84114         base_len and dir_len.  Put the directory-name-related decls
84115         into dirname.h.
84116
84117         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84118         * lib/backupfile.c (base_name): Likewise.
84119         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84120         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84121         * lib/makepath.c (strip_trailing_slashes): Likewise.
84122         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84123         ISSLASH): Likewise.
84124         * lib/rename.c (strip_trailing_slashes): Likewise.
84125         * lib/same.c (base_name): Likewise.
84126         * lib/stripslash.c (ISSLASH): Likewise.
84127
84128         * lib/addext.c: Include <dirname.h> after size_t is defined.
84129         * lib/backupfile.c: Likewise.
84130
84131         * lib/addext.c (addext): Use base_len to trim redundant
84132         trailing slashes instead of doing it ourselves.
84133         But do not trim the last slash if it is not redundant.
84134
84135         * lib/backupfile.c (find_backup_file_name,
84136         max_backup_version): Use base_len instead of rolling it ourselves.
84137         Handle the case of "" and (on DOS) "C:" correctly.
84138
84139         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84140         needed. Include <string.h>, <dirname.h>.
84141         (base_name): Allow file names ending in slashes, other than names
84142         that are all slashes.  In this case, return the basename followed
84143         by the slashes.  This is more general, and can be used in places
84144         where the original base_name purposely had an assertion failure.
84145         (base_len): New function.
84146
84147         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84148         Do not include <assert.h>; no longer needed.
84149         Include xalloc.h.
84150         (memrchr): Remove decl.
84151         (dir_name_r): Remove.
84152         (dir_len): Renamed from dirlen.  All callers changed.
84153         Rewrite in terms of base_name, for simplicity and consistency.
84154         (dir_name): Never return NULL.  All callers changed.
84155         Do not include <stdlib.h> in test program; no longer needed.
84156         return 0; is fine for test program.
84157
84158         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84159         New macros.
84160         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84161
84162         * lib/path-concat.c (path_concat): Use base_len to compute
84163         base length, not strlen; this means we cannot rely on memcpy
84164         to null-terminate.
84165
84166         * lib/same.c (STREQ): Remove.
84167         (same_name): Handle the case where the basename ends in trailing '/'.
84168
84169         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84170         a slash was stripped.  Do not strip the last slash after a
84171         file system prefix.
84172
84173 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84174
84175         * lib/Makefile.am (libfetish_a_SOURCES):
84176         Add strftime.c, since we now compile it on all hosts.
84177
84178         * lib/strftime.c (my_strftime):
84179         Define to nstrftime if emacs, but only if my_strftime is not defined.
84180         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84181         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84182         Add one more extra argument: a nanoseconds value.
84183         All uses changed.
84184         (ns): New macro.
84185         (my_strftime function): Add %N format.
84186         (emacs_strftimeu): Renamed from emacs_strftime,
84187         with extra ut argument.
84188
84189 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84190
84191         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84192
84193 2001-04-21  Jim Meyering  <meyering@lucent.com>
84194
84195         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84196         doesn't interfere.
84197
84198 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84199
84200         * m4/ftruncate.m4: Check for chsize.
84201         Link with ftruncate.o unconditionally if ftruncate is missing.
84202         This was required when cross-compiling to i586-mingw32msvc.
84203
84204 2001-04-08  Jim Meyering  <meyering@lucent.com>
84205
84206         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84207         recomputed; that's necessary when the offset spans a DST transition.
84208         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84209
84210 2001-04-02  Jim Meyering  <meyering@lucent.com>
84211
84212         * lib/regex.h, regex.c: Update from GNU libc.
84213
84214 2001-03-24  Jim Meyering  <meyering@lucent.com>
84215
84216         * m4/jm-macros.m4: Require autoconf-2.49d.
84217
84218 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84219
84220         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84221
84222 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84223
84224         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84225
84226 2001-03-17  Jim Meyering  <meyering@lucent.com>
84227
84228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84229         now that the version in autoconf is equivalent.
84230         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84231
84232         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84233         Suggestion from Akim Demaille.
84234
84235         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84236         (jm_PREREQ_TEMPNAME): New function.
84237
84238 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84239
84240         * lib/tempname.c (uint64_t): Define to uintmax_t if
84241         not defined, and if UINT64_MAX is not defined.
84242         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84243         Reported by John David Anglin.
84244
84245 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84246
84247         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84248         resolve alias if codeset is empty.
84249         * lib/config.charset (BeOS): Use wildcard syntax.
84250
84251 2001-03-13  Jim Meyering  <meyering@lucent.com>
84252
84253         * lib/path-concat.c (path_concat)
84254         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84255         concatenating e.g., `C:' and `foo'.
84256         From Bruno Haible.
84257
84258 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84259
84260         * lib/localcharset.c (locale_charset): Don't use
84261         setlocale(LC_CTYPE,NULL). Don't return NULL.
84262         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84263
84264 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84265
84266         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84267         support for DOS/DJGPP.
84268
84269 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84270
84271         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84272         lacks mkstemp.  Compile our own tempname.c if we compile our own
84273         mkstemp.c, as mkstemp relies on tempname.
84274
84275 2001-03-01  Jim Meyering  <meyering@lucent.com>
84276
84277         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84278         AH_VERBATIM really does output its argument verbatim.
84279
84280 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84281
84282         * lib/Makefile.am (libfetish_a_SOURCES):
84283         Add dup-safer.c, fopen-safer.c.
84284         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84285
84286         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84287         * lib/unistd-safer.h: New files.
84288
84289 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84290
84291         The mkstemp replacement is taken from glibc 2.2.2, with some
84292         portability fixes for use outside glibc, as follows:
84293
84294         * lib/tempname.c (struct_stat64): New macro.
84295         (direxists, __gen_tempname): Use it.
84296         This avoids a portability problem with Solaris 8.
84297
84298         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84299         (<stddef.h>, <stdint.h>, <string.h>):
84300         Include only if STDC_HEADERS || _LIBC.
84301         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84302         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84303         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84304         (__set_errno): Define this macro if <errno.h> doesn't.
84305         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84306         Define these macros if <stdio.h> doesn't.
84307         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84308         Define these macros if <sys/stat.h>
84309         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84310         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84311         __xstat64): Define if not _LIBC.
84312         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84313         (__gen_tempname): Invoke gettimeofday only if
84314         HAVE_GETTIMEOFDAY || _LIBC;
84315         otherwise, fall back on plain "time".
84316         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84317
84318         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84319
84320         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84321
84322 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84323
84324         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84325
84326 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84327
84328         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84329         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84330         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84331         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84332
84333 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84334
84335         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84336         Remove workaround macros for hosts that have mbrtowc but not
84337         mbstate_t, as we now insist on proper declarations for both
84338         before using mbrtowc.
84339
84340 2001-02-17  Jim Meyering  <meyering@lucent.com>
84341
84342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84343         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84344         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84345         UnixWare 7.1.1.
84346
84347         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84348         rather than AC_CACHE_VAL.
84349
84350 2001-02-17  Jim Meyering  <meyering@lucent.com>
84351
84352         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84353         around included file name.
84354
84355         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84356
84357         * lib/strftime.c: Update from GNU libc (the only changes were to
84358         comments).
84359
84360 2001-02-17  Jim Meyering  <meyering@lucent.com>
84361
84362         * lib/regex.c: Update from libc.
84363
84364 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84365
84366         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84367         clash.
84368
84369 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84370
84371         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84372         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84373         Reported by Mark Hounschell via Paul Eggert.
84374
84375 2001-02-07  Jim Meyering  <meyering@lucent.com>
84376
84377         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84378
84379 2001-02-05  Jim Meyering  <meyering@lucent.com>
84380
84381         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84382         it includes the patch required for `large file' support with at least
84383         HP-UX's 10.20 /bin/cc.
84384
84385 2001-02-03  Jim Meyering  <meyering@lucent.com>
84386
84387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84388         AS_IF, now that it works once again (mysteriously).
84389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84390
84391 2001-01-30  Jim Meyering  <meyering@lucent.com>
84392
84393         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84394         * m4/chown.m4: Rename conftestchown to conftest.chown.
84395         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84396         s/conftestdir2/conftest.d2/.
84397         * m4/utimes.m4: s/conftestdata/conftest.data/
84398         Inspired by Pavel Roskin's change in autoconf.
84399
84400 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84401
84402         * lib/config.charset: Update for FreeBSD 4.2.
84403
84404 2001-01-27  Jim Meyering  <meyering@lucent.com>
84405
84406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84407         a use of AS_IF.
84408         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84409
84410 2001-01-26  Jim Meyering  <meyering@lucent.com>
84411
84412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84413         quotearg.c includes it.
84414
84415 2001-01-26  Jim Meyering  <meyering@lucent.com>
84416
84417         * lib/quotearg.c: Include stddef.h.
84418         * lib/quote.c: Include stddef.h.
84419         Reported by Axel Kittenberger.
84420
84421         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84422         line in double quotes so that it evokes a better diagnostic.
84423         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84424         Reported by Axel Kittenberger.
84425
84426 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84427
84428         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84429         as if it was a `charset'.
84430
84431 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84432
84433         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84434         has const.
84435
84436 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84437
84438         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84439         to avoid a warning.  Add back 'const' to inptr.
84440
84441 2001-01-20  Jim Meyering  <meyering@lucent.com>
84442
84443         Be sure that headers are checked before used in code compiled
84444         for the type checks.
84445         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84446         In place of that, invoke jm_CHECK_ALL_TYPES.
84447         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84448         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84449         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84450         The check for ssize_t was mistakenly run before the test for unistd.h.
84451
84452         The configure-time check for stdbool.h was missing.
84453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84454         (jm_PREREQ_HASH): New function.
84455
84456 2001-01-17  Jim Meyering  <meyering@lucent.com>
84457
84458         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84459         for autoconf-2.49c.
84460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84461
84462 2001-01-16  Jim Meyering  <meyering@lucent.com>
84463
84464         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84465         From Bruno Haible.
84466
84467 2001-01-14  Jim Meyering  <meyering@lucent.com>
84468
84469         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84470         foo and bar.  Create conftestdir/ in the script, not in the C code.
84471         Remove directories in the script, not in the C code.
84472         Remove conftestdir{,2} before trying to create the directory.
84473         Make the entire configure script fail if the mkdir fails.
84474
84475 2001-01-14  Jim Meyering  <meyering@lucent.com>
84476
84477         * lib/rename.c: New file.  From Volker Borchert.
84478         Include stdlib.h, string.h or strings.h, and xalloc.h.
84479         Use strip_trailing_slashes rather than open-coding it.
84480
84481 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84482
84483         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84484
84485 2001-01-03  Jim Meyering  <meyering@lucent.com>
84486
84487         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84488         of local `inptr' to avoid warning with some system declarations of
84489         iconv.
84490
84491 2001-01-02  Volker Borchert  <bt@teknon.de>
84492
84493         * m4/rename.m4: New file.
84494         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84495
84496 2001-01-01  Jim Meyering  <meyering@lucent.com>
84497
84498         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84499         even on systems with utmpx.h.  It's necessary for the declaration of
84500         utmp's ut_user member.  Reported by Andreas Jaeger.
84501
84502         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84503         available. They are required for the declarations of getgrgid and
84504         getpwuid resp.
84505         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84506         Reported by Andreas Jaeger.
84507
84508 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84509
84510         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84511         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84512         so `make install' also works in VPATH builds.
84513
84514 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84515
84516         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84517         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84518         can be used in subdirectories.
84519
84520 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84521
84522         * lib/modechange.c: Do not assume that mode_t uses the
84523         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84524         the other-execute bit of FOO even if S_IXOTH != 1.
84525
84526         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84527         WOTH, XOTH, ALLM): New macros.
84528         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84529          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84530         Use them.
84531         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84532         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84533         (mode_compile):
84534         No need to use uintmax_t; unsigned long is long enough.
84535         Don't bother to get suffix since we don't use it.
84536
84537 2000-12-26  Jim Meyering  <meyering@lucent.com>
84538
84539         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84540         better with autoheader.
84541
84542 2000-12-24  Jim Meyering  <meyering@lucent.com>
84543
84544         * lib/hash.c (is_prime): Return explicit boolean values.
84545         (hash_get_first): Return NULL to appease Irix5.6's 89.
84546         Reported by Nelson Beebe.
84547
84548 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84549
84550         * lib/localcharset.c (locale_charset): Add support for Win32.
84551
84552 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84553
84554         * lib/physmem.h, lib/physmem.c: New files.
84555
84556         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84557         (noinst_HEADERS): Add physmem.h.
84558
84559         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84560         't' for compatibility with Solaris 8 sort.
84561
84562 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84563
84564         * lib/config.charset: Add support for BeOS.
84565
84566 2000-12-17  Jim Meyering  <meyering@lucent.com>
84567
84568         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84569         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84570
84571 2000-12-16  Jim Meyering  <meyering@lucent.com>
84572
84573         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84574         N and M) would have treated it like `chown N:N FILE'.
84575
84576         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84577
84578 2000-12-16  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84581         SHELLS_FILE to a file name that's useful on djgpp systems.
84582         Include stdlib.h.
84583         (ADDITIONAL_DEFAULT_SHELLS): Define.
84584         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84585         Based mostly on a patch from Prashant TR.
84586
84587 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84588
84589         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84590         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84591         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84592
84593 2000-12-08  Andreas Schwab  <schwab@suse.de>
84594
84595         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84596         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84597
84598 2000-12-07  Jim Meyering  <meyering@lucent.com>
84599
84600         * lib/stripslash.c (ISSLASH): Define.
84601         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84602         `/'.
84603         From Prashant TR.
84604
84605         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84606         (dir_name_r): Declare this function as static.
84607         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84608         manifest itself on a name containing a mix of slashes and
84609         backslashes.
84610         Make this function work with names starting with a DOS-style
84611         drive letter and colon prefix.
84612         (dir_name): Append `.' if necessary.
84613         Based mostly on patches from Prashant TR and Eli Zaretskii.
84614
84615         * lib/dirname.h (dir_name_r): Remove prototype.
84616
84617 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84618
84619         * m4/off_t-format.m4: Remove this file.
84620         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84621
84622 2000-12-06  Jim Meyering  <meyering@lucent.com>
84623
84624         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84625         replacement strtoull, we may well need the replacement strtoul, too.
84626         Check for declarations of strtoul and strtoull.
84627         Check for strtol.  Mainly as a cue to cause automake to include
84628         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84629         Check for limits.h -- strtol.c needs it.
84630
84631 2000-12-05  Jim Meyering  <meyering@lucent.com>
84632
84633         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84634
84635 2000-12-04  Jim Meyering  <meyering@lucent.com>
84636
84637         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84638         Also include memory.h, stdlib.h, unistd.h if appropriate.
84639         Reported by Andreas Jaeger (conflicting declaration of malloc).
84640
84641 2000-12-02  Jim Meyering  <meyering@lucent.com>
84642
84643         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84644         * m4/jm-macros.m4 (jm_MACROS): require it.
84645
84646 2000-12-02  Jim Meyering  <meyering@lucent.com>
84647
84648         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84649
84650 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84651
84652         * lib/memrchr.c: Include <config.h> before any system include file.
84653
84654 2000-11-30  Jim Meyering  <meyering@lucent.com>
84655
84656         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84657
84658 2000-11-30  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84661
84662 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84663
84664         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84665
84666 2000-11-26  Jim Meyering  <meyering@lucent.com>
84667
84668         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84669
84670 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84671
84672         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84673         size of (size_t) -1; it's not portable.
84674
84675 2000-11-17  Jim Meyering  <meyering@lucent.com>
84676
84677         * lib/strstr.c: Update from GNU libc.
84678
84679 2000-11-17  Akim Demaille  <akim@epita.fr>
84680
84681         * lib/obstack.h: Formatting changes.
84682         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84683         prevent type checking.
84684         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84685         cast the value to (void *): assigning a `foo *' to a `void *'
84686         variable is valid.
84687         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84688
84689 2000-11-16  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84692
84693 2000-11-11  Jim Meyering  <meyering@lucent.com>
84694
84695         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84696
84697 2000-11-10  Jim Meyering  <meyering@lucent.com>
84698
84699         * lib/obstack.h: Update from GNU libc.
84700         * lib/obstack.c: Likewise.
84701
84702 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84703
84704         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84705
84706 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84707
84708         * lib/getusershell.c (setusershell): Use rewind rather than
84709         fseek/fseeko, to avoid configuration hassles with fseeko.
84710         Don't bother opening SHELLS_FILE if shellstream is NULL;
84711         it's not necessary.
84712
84713 2000-11-05  Jim Meyering  <meyering@lucent.com>
84714
84715         * lib/makepath.h (make_dir): Declare.
84716         * lib/makepath.c (make_dir): Remove `static' attribute.
84717         Tweak a comment.
84718
84719 2000-11-04  Jim Meyering  <meyering@lucent.com>
84720
84721         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84722
84723 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84724
84725         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84726         last one in a bucket, advance to the next bucket.
84727
84728 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84729
84730         * lib/fnmatch.c: Do not comment out all the code if we are using
84731         the GNU C library, because in some cases we are replacing buggy
84732         code in the GNU C library itself.
84733
84734 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84735
84736         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84737         (regex_compile): Catch bogus \(\1\).
84738
84739 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84740
84741         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84742         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84743         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84744
84745 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84746
84747         * lib/error.h, getline.h, modechange.h:
84748         Remove "2000" from Copyright line, as the file hasn't been
84749         changed this year other than in the copyright notice.
84750
84751         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84752         was changed this year.
84753
84754 2000-10-29  Jim Meyering  <meyering@lucent.com>
84755
84756         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84757         renaming.
84758         * m4/ls-mntd-fs.m4: Likewise
84759
84760 2000-10-29  Jim Meyering  <meyering@lucent.com>
84761
84762         * lib/xstat.in: Fix grammar in comment.
84763
84764 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84765
84766         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84767         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84768         doesn't define __restrict_arr.
84769
84770 2000-10-28  Jim Meyering  <meyering@lucent.com>
84771
84772         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84773         (jm_PREREQ_MEMCHR): New function.
84774
84775 2000-10-28  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/memchr.c: Update from libc.
84778         Adjust for portability:
84779         [HAVE_STDLIB_H]: Include stdlib.h.
84780         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84781         Undef __memchr, too.
84782         [!weak_alias]: Define __memchr to memchr.
84783
84784         * lib/regex.c: Update from libc.
84785         * lib/regex.h: Likewise.
84786         * lib/getopt1.c: Likewise.
84787         * lib/memcmp.c: Likewise.
84788
84789         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84790         Avoid using fseek, when possible -- it's broken by design.
84791         Patch by Ulrich Drepper.
84792
84793 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84794
84795         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84796         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84797         Giving in to popular pressure to shut up the compiler with casts.
84798
84799 2000-10-26  Jim Meyering  <meyering@lucent.com>
84800
84801         * lib/strftime.c: Update from libc.
84802
84803 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84804
84805         * regex.c: More `unsigned char' -> `re_char' changes.
84806         Also change several `int' into `re_wchar_t'.
84807         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84808         (PUSH_FAILURE_POINTER): Don't cast any more.
84809         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84810         We want GCC to complain, since this piece of code makes
84811         re_match non-reentrant, which *should* be fixed.
84812         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84813         (EXTEND_BUFFER): Use RETALLOC.
84814         (SET_LIST_BIT): Don't cast.
84815         (re_wchar_t): New type.
84816         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84817         that those two functions will always properly return.
84818         (IMMEDIATE_QUIT_CHECK): Cast to void.
84819         (analyse_first): Use recursion rather than an explicit stack.
84820         (re_compile_fastmap): Can't fail anymore.
84821         (re_search_2): Don't check re_compile_fastmap for failure.
84822         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84823         Now also sets the new value (passed in a new argument).
84824         (re_match_2_internal): Use it.
84825         Also, use a new var `reg' of type size_t when looping through regs
84826         rather than reuse the inappropriate `mcnt'.
84827
84828 2000-10-25  Jim Meyering  <meyering@lucent.com>
84829
84830         * lib/obstack.c: Update from libc.
84831
84832 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84833
84834         * regex.c (regex_compile): Change the way of handling a range from
84835         a char less than 256 to a char not less than 256.
84836
84837 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84838
84839         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84840         NT-Emacs only.
84841         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84842         so that re_search functions only quit when callers expect them to.
84843
84844 2000-10-23  Jim Meyering  <meyering@lucent.com>
84845
84846         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84847         wrong.  That set_locale call must not have any side effects.
84848         From Paul Eggert.
84849
84850 2000-10-22  Jim Meyering  <meyering@lucent.com>
84851
84852         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84853         [CYCLIC]: Remove now-unused definition.
84854
84855         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84856         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84857         Suggestion from Ulrich Drepper.
84858
84859 2000-10-21  Jim Meyering  <meyering@lucent.com>
84860
84861         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84862         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84863         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84864
84865 2000-10-21  Jim Meyering  <meyering@lucent.com>
84866
84867         * lib/dirname.c (memrchr): Declare if necessary.
84868         (dir_name): Remove the restriction that there be no
84869         trailing slashes.  Now, this code skips past them, effectively
84870         ignoring them.
84871         [TEST_DIRNAME] (main): New unit tests.
84872
84873         * lib/memrchr.c: New file from GNU libc.
84874         Undef __memrchr, too.
84875         [!weak_alias]: Define __memrchr to memrchr.
84876         Guard weak_alias use with `#ifdef weak_alias'.
84877
84878 2000-10-21  Jim Meyering  <meyering@lucent.com>
84879
84880         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84881         (dir_name): Use dir_name_r.
84882         * lib/dirname.h (dir_name_r): Declare it.
84883
84884 2000-10-17  Jim Meyering  <meyering@lucent.com>
84885
84886         * lib/quote.h (PARAMS): Define and use.
84887         Reported by Akim Demaille.
84888
84889         * lib/getopt.c: Update from libc.
84890
84891 2000-10-16  Jim Meyering  <meyering@lucent.com>
84892
84893         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84894         setlocale.
84895         From Jan Fedak.
84896
84897 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84898
84899         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84900
84901 2000-09-25  Jim Meyering  <meyering@lucent.com>
84902
84903         * lib/md5.h (rol): Define (from GnuPG).
84904
84905         * lib/sha.c: Give credit (GnuPG) where due.
84906         (M): Use rol rather than open-coding it.
84907         Add a FIXME comment.
84908
84909 2000-09-21  Jim Meyering  <meyering@lucent.com>
84910
84911         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84912         Reported by Michael Stone.
84913
84914 2000-09-20  Jim Meyering  <meyering@lucent.com>
84915
84916         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84917         (noinst_HEADERS): Add sha.h.
84918         Based on code from Scott G. Miller and from GnuPG.
84919
84920 2000-09-18  Jim Meyering  <meyering@lucent.com>
84921
84922         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84923         LIBS. Otherwise, everyone ends up linking with -lelf for some
84924         configurations.
84925         Reported by Mike Stone.
84926
84927 2000-09-15  Jim Meyering  <meyering@lucent.com>
84928
84929         * lib/regex.c: Update from libc.
84930
84931 2000-09-10  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/getopt.c (_getopt_internal): Update from glibc.
84934
84935 2000-09-09  Jim Meyering  <meyering@lucent.com>
84936
84937         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84938         think it should be used as a general replacement for isascii.
84939         * lib/fnmatch.c: Likewise.
84940         * lib/mbswidth.c: Likewise
84941         * lib/regex.c: Likewise.
84942
84943         Don't use atoi.
84944         * lib/userspec.c: Include sys/param.h and limits.h.
84945         Include xstrtol.h.
84946         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84947         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84948         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84949         UID, GID.  Check range.
84950
84951 2000-09-06  Jim Meyering  <meyering@lucent.com>
84952
84953         * lib/getopt.c (_getopt_internal): Update from glibc.
84954
84955 2000-08-30  Jim Meyering  <meyering@lucent.com>
84956
84957         * lib/strftime.c: Merge in changes from GNU libc.
84958
84959 2000-08-26  Jim Meyering  <meyering@lucent.com>
84960
84961         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84962         * m4/fpending.m4: New file.
84963
84964 2000-08-26  Jim Meyering  <meyering@lucent.com>
84965
84966         * lib/closeout.c: Include "__fpending.h".
84967         (close_stdout_status): Return right away if there's nothing to flush.
84968
84969         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84970         * lib/__fpending.c: New file.
84971         * lib/__fpending.h: New file.
84972
84973 2000-08-20  Jim Meyering  <meyering@lucent.com>
84974
84975         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84976         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84977         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84978
84979 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84980
84981         Improve fileutils installation on systems where running
84982         programs (like install) can't be unlinked.
84983         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84984         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84985
84986 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84987
84988         Standardize on "memory exhausted" instead of "Memory exhausted"
84989         or "virtual memory exhausted".
84990         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84991         "virtual memory exhausted".
84992         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84993         our own message.
84994         * lib/userspec.c (parse_user_spec): Likewise.
84995         * lib/bumpalloc.h: comment fix
84996         * lib/same.c, userspec.c: Include xalloc.h.
84997
84998         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84999         not char *const and pointing to a constant array.
85000         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85001         (xrealloc): Comment fix.
85002
85003         * lib/userspec.c (parse_user_spec):
85004         Don't translate a message until just before returning,
85005         to avoid unnecessary translation.
85006
85007 2000-08-07  Jim Meyering  <meyering@lucent.com>
85008
85009         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85010         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85011         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85012         getgroups.c, gethostname.c, getopt.h, group-member.c,
85013         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85014         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85015         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85016         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85017         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85018         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85019         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85020         yesno.c: Back out Copyright date changes for each file with no change
85021         this year.  This eases coordination with other programs using the same
85022         source code modules.  From Paul Eggert.
85023
85024 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85025
85026         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85027         not char, for compatibility with glibc 2.1.3 strftime.c.
85028
85029 2000-08-03  Greg McGary  <greg@mcgary.org>
85030
85031         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85032         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85033         (EXTEND_BUFFER): Use them.
85034
85035 2000-08-01  Jim Meyering  <meyering@lucent.com>
85036
85037         * lib/dirname.c (ISSLASH): Define.
85038         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85039         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85040         both `\' and `/' may be use as path separators.
85041         Based on a patch from Prashant TR.
85042
85043 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85044
85045         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85046         slot vector a constant, since it might get modified.
85047
85048 2000-07-31  Jim Meyering  <meyering@lucent.com>
85049
85050         * lib/xmalloc.c: Use `virtual memory exhausted', not
85051         `Memory exhausted'.
85052         * lib/obstack.c (print_and_abort): Likewise.
85053
85054 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85055
85056         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85057         buffer, so that the caller can always quote one small
85058         component of a "memory exhausted" message in slot 0.
85059         From a suggestion by Jim Meyering.
85060
85061 2000-07-30  Jim Meyering  <meyering@lucent.com>
85062
85063         * lib/makepath.c (make_path): Quote the other instance, too.
85064
85065         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85066         (STATIC_BUF_SIZE): Define.
85067         (quotearg_n_options): Use only statically allocated storage when
85068         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85069         than STATIC_BUF_SIZE.
85070
85071 2000-07-29  Jim Meyering  <meyering@lucent.com>
85072
85073         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85074         * lib/dirname.c (dir_name): Likewise.
85075
85076         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85077         `/'.
85078
85079         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85080         (dir_name): Assert that there are no trailing slashes.
85081
85082 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85083
85084         * lib/mbswidth.h (mbswidth): Add a flags argument.
85085         (mbswidth): New declaration.
85086         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85087         * lib/mbswidth.c (mbswidth): Add a flags argument.
85088         (mbsnwidth): New function.
85089
85090 2000-07-24  Jim Meyering  <meyering@lucent.com>
85091
85092         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85093
85094 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85095
85096         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85097
85098 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85099
85100         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85101         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85102         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85103         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85104         invoke multibyte primitives.
85105
85106 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85107
85108         * lib/quotearg.c:
85109         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85110         so that mbstate_t is always defined.
85111
85112         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85113         be 1 in at least one GCC installation, and this configuration
85114         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85115         performance on hosts that have mbrtowc but have only unibyte
85116         locales, but I assume these hosts are rare.
85117
85118 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85119
85120         * lib/mbswidth.c (_XOPEN_SOURCE):
85121         Don't define; this causes problems on Solaris 7.
85122         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85123
85124 2000-07-23  Jim Meyering  <meyering@lucent.com>
85125
85126         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85127         too: getgrgid, getpwuid, getuid.
85128
85129 2000-07-23  Jim Meyering  <meyering@lucent.com>
85130
85131         * lib/basename.c (base_name): Add an assertion.
85132
85133 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85134
85135         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85136         shadow its mbsinit function.
85137
85138 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85139
85140         * lib/mbswidth.h: New file.
85141         * lib/mbswidth.c: New file.
85142         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85143         (noinst_HEADERS): Add mbswidth.h.
85144
85145 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85146
85147         * lib/config.charset: Add support for FreeBSD. Improve support for
85148         HP-UX and IRIX 6.
85149
85150 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85151
85152         * m4/mbswidth.m4: New file.
85153         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85154
85155 2000-07-15  Jim Meyering  <meyering@lucent.com>
85156
85157         * lib/makepath.c: Include quote.h.
85158         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85159         corresponding argument in a `quote (...)' call.
85160         Give better diagnostics.
85161
85162         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85163         (noinst_HEADERS): Add quote.h.
85164
85165         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85166         from tar's src/misc.c.
85167         * lib/quote.h: New file.  Prototypes for same.
85168
85169 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85170
85171         From a suggestion by Bruno Haible.
85172         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85173         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85174         to decide whether to define the BeOS workaround macro;
85175         this adjusts to the change to AC_MBSTATE_T.
85176
85177 2000-07-14  Jim Meyering  <meyering@lucent.com>
85178
85179         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85180         jm_AC_TYPE_UINTMAX_T.
85181
85182 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85183
85184         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85185
85186         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85187         quotearg_buffer_restyled): Add support for
85188         clocale_quoting_style.  Undo previous change to
85189         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85190         and "{RIGHT QUOTATION MARK}" msgids.
85191
85192 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85193
85194         From a suggestion by Bruno Haible.
85195         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85196         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85197         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85198         and mbstate_t, to a single-part test that simply defines mbstate_t.
85199         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85200         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85201
85202 2000-07-10  Jim Meyering  <meyering@lucent.com>
85203
85204         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85205
85206         * m4/gnu-source.m4: Output to confdefs.h directly.
85207         Suggestion from Akim Demaille.
85208
85209 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85210
85211         The old behavior of quoting `like this' doesn't look good with
85212         newer, ISO-style fonts.  See:
85213         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85214
85215         Instead, quote "like this" by default.  Let the translator
85216         tailor the locale-specific quoting behavior by providing
85217         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85218
85219         * lib/quotearg.c (N_): New macro.
85220         (gettext_default): New function.
85221         (quotearg_buffer_restyled): Use
85222         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85223         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85224
85225 2000-07-09  Jim Meyering  <meyering@lucent.com>
85226
85227         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85228         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85229
85230         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85232
85233 2000-07-09  Jim Meyering  <meyering@lucent.com>
85234
85235         * lib/Most files: Update copyright dates to include 2000.
85236
85237 2000-07-08  Jim Meyering  <meyering@lucent.com>
85238
85239         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85240         if not defined.
85241         (xgethostname): Remove now-unnecessary #ifdef.
85242         Move declaration of `err' into loop where it's used.
85243
85244 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85245         and Bruno Haible  <haible@clisp.cons.org>
85246
85247         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85248         only if the test for an object-type mbstate_t fails.  This
85249         prevents us from mistakenly reporting that mbstate_t is a
85250         system object type after we "#define mbstate_t int" to work
85251         around its lack.
85252
85253 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85254         and Bruno Haible  <haible@clisp.cons.org>
85255
85256         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85257
85258 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85259
85260         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85261         to strerror_r.
85262         Include <ctype.h> for use of isalpha.
85263
85264 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85265
85266         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85267         by allocating a larger buffer. Test the gethostname return value for
85268         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85269         returns an error and ENAMETOOLONG isn't defined.
85270
85271 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85272
85273         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85274         dimension.
85275
85276 2000-07-04  Jim Meyering  <meyering@lucent.com>
85277
85278         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85279         of the deprecated AC_CHECKING.
85280
85281 2000-07-04  Jim Meyering  <meyering@lucent.com>
85282
85283         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85284         Reported by Bruno Haible.
85285
85286 2000-07-04  Jim Meyering  <meyering@lucent.com>
85287
85288         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85289         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85290         lacks mbrtowc.
85291
85292 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85293
85294         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85295         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85296
85297 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85298         and Bruno Haible  <haible@clisp.cons.org>
85299
85300         * lib/quotearg.c (mbrtowc):
85301         Assign to *pwc, and return 1 only if result is nonzero.
85302         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85303
85304 2000-07-03  Jim Meyering  <meyering@lucent.com>
85305
85306         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85307
85308 2000-07-03  Jim Meyering  <meyering@lucent.com>
85309
85310         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85311         This is necessary to get a definition of e.g., UTMP_FILE on
85312         HP-UX 10.20.
85313         From Bob Proulx.
85314
85315 2000-07-02  Jim Meyering  <meyering@lucent.com>
85316
85317         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85318
85319         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85320         AC_LIBOBJ(function_name).
85321         * m4/chown.m4: Likewise.
85322         * m4/fnmatch.m4: Likewise.
85323         * m4/ftruncate.m4: Likewise.
85324         * m4/getgroups.m4: Likewise.
85325         * m4/getline.m4: Likewise.
85326         * m4/group-member.m4: Likewise.
85327         * m4/jm-macros.m4: Likewise.
85328         * m4/lstat.m4: Likewise.
85329         * m4/malloc.m4: Likewise.
85330         * m4/memcmp.m4: Likewise.
85331         * m4/nanosleep.m4: Likewise.
85332         * m4/putenv.m4: Likewise.
85333         * m4/realloc.m4: Likewise.
85334         * m4/regex.m4: Likewise.
85335         * m4/stat.m4: Likewise.
85336         * m4/strftime.m4: Likewise.
85337
85338 2000-07-02  Jim Meyering  <meyering@lucent.com>
85339
85340         * lib/quotearg.c (mbstate_t): Don't define here.
85341
85342 2000-07-02  Jim Meyering  <meyering@lucent.com>
85343
85344         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85345
85346 2000-07-01  Jim Meyering  <meyering@lucent.com>
85347
85348         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85349
85350 2000-07-01  Jim Meyering  <meyering@lucent.com>
85351
85352         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85353         problem.
85354
85355 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85356
85357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85358         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85359
85360 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85361
85362         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85363         per change in ../m4/ls-mntd-fs.m4.
85364         (read_filesystem_list): Ignore symbolic links.
85365
85366 2000-06-29  Jim Meyering  <meyering@lucent.com>
85367
85368         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85369         for declaration of strcmp.
85370
85371         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85372
85373         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85374         Avoid warning by casting result to `char *' to remove `const'.
85375
85376 2000-06-28  Jim Meyering  <meyering@lucent.com>
85377
85378         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85379         included by quotearg.c, for which we perform this test.  From
85380         Bruno Haible.
85381
85382 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85383
85384         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85385         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85386         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85387
85388 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85389
85390         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85391
85392 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85393
85394         savedir now sets errno on failure and invokes xmalloc to get memory.
85395         Fix a couple of other minor bugs while we're at it.
85396
85397         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85398         (NAMLEN): Remove macro.
85399         (malloc, realloc): Remove decls.
85400         (stpcpy): Likewise.
85401         ("xalloc.h"): Include.
85402         (NAME_SIZE_DEFAULT): New macro.
85403         (savedir): Use xmalloc / xrealloc to allocate memory.
85404         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85405         Skip "" directory entries.
85406         Use strlen to calculate directory entry length, since the old method
85407         is rarely used these days and isn't worth supporting.
85408         Don't use a pointer after freeing it.
85409         Check for integer overflow when calculating allocation size.
85410         Use memcpy to copy entries, instead of stpcpy.
85411         Set errno properly when returning NULL.
85412         Check for readdir error.
85413
85414 2000-06-26  Jim Meyering  <meyering@lucent.com>
85415
85416         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85417
85418 2000-06-25  Jim Meyering  <meyering@lucent.com>
85419
85420         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85421         Linux header bug when _XOPEN_SOURCE is defined to 500.
85422
85423 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85424
85425         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85426         deficiency.
85427
85428 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85429
85430         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85431         Include xalloc.h.
85432         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85433
85434 2000-06-24  Jim Meyering  <meyering@lucent.com>
85435
85436         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85437         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85438         for which strerror does return char*, but which lacks a conveniently
85439         accessible declaration of the function.  If the compile-test says
85440         strerror_r doesn't work, then resort to a `run'-test that works on
85441         BeOS and segfaults on DEC Unix.
85442
85443 2000-06-24  Jim Meyering  <meyering@lucent.com>
85444
85445         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85446
85447 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85448
85449         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85450         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85451
85452 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85453
85454         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85455         (mbrtowc, mbstate_t): Define substitutes if
85456         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85457         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85458         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85459
85460 2000-06-23  Jim Meyering  <meyering@lucent.com>
85461
85462         * m4/afs.m4: Add missing AC_MSG_RESULT.
85463         Reported by Bruno Haible.
85464
85465         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85466         Suggestion from Bruno Haible.
85467
85468 2000-06-23  Jim Meyering  <meyering@lucent.com>
85469
85470         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85471
85472 2000-06-21  Jim Meyering  <meyering@lucent.com>
85473
85474         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85475
85476 2000-06-21  Jim Meyering  <meyering@lucent.com>
85477
85478         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85479         (noinst_HEADERS): Add getstr.h.
85480
85481         * lib/getline.c (getstr): Move into a separate file.
85482         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85483         the following changes: new parameter, delim2; both delim[12]
85484         parameters have type `int', not `char'.  The latter would lose
85485         with 8-bit delimiters.
85486         * lib/getstr.h: New file.
85487
85488 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85489
85490         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85491         than 1024, return a memory chunk of least possible size, instead
85492         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85493         Use free/xmalloc instead of xrealloc to avoid copying for very long
85494         paths.
85495
85496 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85497
85498         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85499         the empty string.
85500
85501 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85502
85503         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85504         address, not strdup.  Include <stdlib.h> and don't declare free().
85505
85506 2000-06-19  Jim Meyering  <meyering@lucent.com>
85507
85508         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85509
85510 2000-06-18  Jim Meyering  <meyering@lucent.com>
85511
85512         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85513
85514         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85515         `checking whether...' message to be consistent with that of the
85516         lstat test.
85517
85518 2000-06-18  Jim Meyering  <meyering@lucent.com>
85519
85520         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85521         Besides, these days every porting target provides a mkdir function.
85522
85523         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85524         needed. (this snippet comes from src/system.h).
85525
85526 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85527
85528         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85529
85530 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85531
85532         * lib/human.c (adjust_value): New function.
85533         (human_readable_inexact): Apply rounding style even when
85534         printing approximate values.
85535
85536 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85537
85538         * lib/human.c (human_readable_inexact): Allow an input block
85539         size that is not a multiple of the output block size, and vice versa.
85540         Reported by Piergiorgio Sartor.
85541
85542 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85543
85544         * lib/getdate.y (get_date): Apply relative times after time
85545         zone indicator, not before.  Reported by Todd A. Jacobs.
85546
85547 2000-06-13  Jim Meyering  <meyering@lucent.com>
85548
85549         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85550
85551         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85552
85553 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85554
85555         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85556
85557 2000-06-12  Jim Meyering  <meyering@lucent.com>
85558
85559         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85560         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85561         optional argument.
85562         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85563         the optional argument, `lib'.
85564
85565 2000-06-08  Jim Meyering  <meyering@lucent.com>
85566
85567         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85568
85569 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85570
85571         Rewrite largefile configuration so that we don't need to run
85572         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85573         AC_CANONICAL_HOST in configure.in -- jmm]
85574
85575         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85576         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85577         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85578         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85579         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85580         All uses changed.
85581         Instead of inspecting the output of getconf, try to compile the
85582         test program without and with the macro definition.
85583         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85584         for getconf.  Instead, check for the needed flags by compiling
85585         test programs.
85586
85587 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85588
85589         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85590
85591 2000-06-04  Jim Meyering  <meyering@lucent.com>
85592
85593         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85594         SunOS 4.1.4 for which gid_t is an unsigned type.
85595
85596 2000-06-03  Jim Meyering  <meyering@lucent.com>
85597
85598         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85599         now that autoconf requires that.
85600
85601         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85602         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85603         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85604
85605 2000-06-03  Jim Meyering  <meyering@lucent.com>
85606
85607         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85608
85609 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85610
85611         * m4/glibc21.m4: New file.
85612         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85613
85614 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85615
85616         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85617         newer, don't install charset.alias.
85618         * lib/config.charset: Change the Linux/glibc rules so they become empty
85619         on glibc-2.1 or newer.
85620
85621 2000-06-02  Jim Meyering  <meyering@lucent.com>
85622
85623         * lib/mountlist.c: Back out last change.  Instead, do this...
85624         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85625         me_dummy member using the same `ignore'-testing code.
85626         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85627         fs_type strings.
85628         From Mark D. Roth.
85629
85630 2000-05-29  Jim Meyering  <meyering@lucent.com>
85631
85632         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85633         mounts with the `ignore' attribute.  Based on a patch from
85634         Mark D. Roth.
85635
85636 2000-05-28  Jim Meyering  <meyering@lucent.com>
85637
85638         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85639         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85640         * m4/stat.m4: Likewise.
85641         * m4/lstat.m4: Likewise.
85642         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85643
85644         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85645         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85646
85647 2000-05-26  Jim Meyering  <meyering@lucent.com>
85648
85649         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85650
85651 2000-05-24  Jim Meyering  <meyering@lucent.com>
85652
85653         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85654         autoconf requires that.
85655         * m4/lib-check.m4: Likewise.
85656         * m4/jm-macros.m4: Likewise.
85657         * m4/strftime.m4: Likewise.
85658
85659         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85660         AC_CHECK_DECLS, now that autoconf requires that.
85661
85662 2000-05-22  Jim Meyering  <meyering@lucent.com>
85663
85664         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85665         * m4/lstat.m4: Likewise.
85666
85667 2000-05-22  Jim Meyering  <meyering@lucent.com>
85668
85669         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85670
85671 2000-05-20  Jim Meyering  <meyering@lucent.com>
85672
85673         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85674         (jm_PREREQ): Use it.
85675
85676 2000-05-18  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85679         back, too, since it may have been modified by allocate_entry.
85680         (hash_delete): Rewrite to use neither the assignment operator
85681         nor the comma operator in an if-expression.
85682
85683 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85684
85685         * lib/closeout.c:
85686         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85687         Remove; no longer needed.
85688         "quotearg.h": Add include.
85689         (file_name): Do not bother to explicitly initialize to NULL; it's less
85690         efficient on some hosts.
85691         (close_stdout_status): Remove test as to whether stdout was already
85692         closed; it breaks for the case "echo x | sort >&-".
85693         Quote file name colons.
85694         Do not assume that _("write error") lacks format strings.
85695
85696 2000-05-15  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/version-etc.c (version_etc_copyright): Update the copyright
85699         string used in all --version output.
85700
85701 2000-05-14  Jim Meyering  <meyering@lucent.com>
85702
85703         * lib/closeout.c (close_stdout_set_file_name): New function.
85704         (close_stdout_status): Use new file-scoped global.
85705         Return right away if fstat says the stdout file descriptor is invalid.
85706         * lib/closeout.h (close_stdout_set_file_name): Declare.
85707
85708 2000-05-10  Jim Meyering  <meyering@lucent.com>
85709
85710         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85711         (close_stdout_set_status): New function.
85712         * lib/closeout.h (close_stdout_set_status): Declare.
85713
85714 2000-05-09  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/gettext.m4: Rename this...
85717         * m4/libintl.m4: ...to this.
85718
85719 2000-05-08  Jim Meyering  <meyering@lucent.com>
85720
85721         * lib/long-options.c: Don't include closeout.h.
85722         (parse_long_options): Don't call close_stdout for --version.
85723
85724 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85725
85726         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85727         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85728         2.1.3 bug.  This avoids a clash when files like regex.c define
85729         _GNU_SOURCE.
85730
85731 2000-05-06  Jim Meyering  <meyering@lucent.com>
85732
85733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85734         (AC_REPLACE_FUNCS): Add strnlen.
85735
85736         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85737         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85738
85739         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85740         AC_SEARCH_LIBS call for nanosleep.
85741         (LIB_NANOSLEEP): Set and AC_SUBST.
85742
85743 2000-05-06  Jim Meyering  <meyering@lucent.com>
85744
85745         * lib/strnlen.c: Undefine __strnlen and strnlen.
85746         [!weak_alias]: Define __strnlen to strnlen.
85747
85748         * lib/atexit.c: New file, from libiberty.
85749
85750 2000-05-06  Jim Meyering  <meyering@lucent.com>
85751
85752         * lib/closeout.c (close_stdout_status): Also check for errors on the
85753         stderr stream.
85754
85755 2000-05-05  Jim Meyering  <meyering@lucent.com>
85756
85757         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85758         AC_SEARCH_LIBS call for clock_gettime.
85759         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85760
85761         * m4/search-libs.m4: Update from autoconf.
85762
85763         su doesn't work on Solaris 2.6.
85764         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85765         <shadow.h>.  Reported by Dragos Harabor.
85766
85767 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85768
85769         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85770         memcpy instead of xmalloc, xrealloc, path_concat.
85771         (locale_charset): Treat empty environment variables as absent.
85772         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85773
85774 2000-05-04  Jim Meyering  <meyering@lucent.com>
85775
85776         * lib/getopt.c: Update from glibc.
85777         * lib/obstack.c: Likewise.
85778         * lib/obstack.h: Likewise.
85779         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85780         file
85781
85782         * lib/regex.h: Likewise.
85783         * lib/strndup.c: Likewise.
85784         * lib/strnlen.c: New file, from glibc.
85785
85786 2000-05-03  Jim Meyering  <meyering@lucent.com>
85787
85788         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85789
85790 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85791
85792         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85793         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85794         compile-time test, rather than inspecting host and OS, to
85795         decide whether to define _LARGEFILE_SOURCE.
85796
85797 2000-05-01  Jim Meyering  <meyering@lucent.com>
85798
85799         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85800
85801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85802         Based on a patch from Bruno Haible.
85803
85804 2000-05-01  Jim Meyering  <meyering@lucent.com>
85805
85806         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85807
85808 2000-04-29  Jim Meyering  <meyering@lucent.com>
85809
85810         * lib/path-concat.c: Declare strdup only if it's not defined.
85811         * lib/canon-host.c: Likewise.
85812
85813 2000-04-28  Jim Meyering  <meyering@lucent.com>
85814
85815         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85816         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85817         is included first, then limits.h is included by locale.h by libintl.h.
85818         From John David Anglin.
85819
85820 2000-04-25  Jim Meyering  <meyering@lucent.com>
85821
85822         * lib/makepath.c (S_IRWXUGO): Define.
85823         (make_path): Always perform explicit chmod if MODE specifies any
85824         of the `special' permission bits.  Prompted by a bug report against
85825         install from Mate Wierdl and Joost van Baal.
85826
85827 2000-04-18  Jim Meyering  <meyering@lucent.com>
85828
85829         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85830         (jm_PREREQ): Use it.
85831
85832 2000-04-18  Jim Meyering  <meyering@lucent.com>
85833
85834         * lib/README: New file.
85835
85836         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85837         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85838
85839 2000-04-17  Jim Meyering  <meyering@lucent.com>
85840
85841         Get it right :-)
85842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85843         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85844         Suggestion from Akim Demaille.
85845
85846 2000-04-17  Jim Meyering  <meyering@lucent.com>
85847
85848         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85849         the definition of it to rpl_strftime also defined-away the system's
85850         declaration.
85851
85852 2000-04-15  Jim Meyering  <meyering@lucent.com>
85853
85854         Use `C' to denote so-called `contiguous' files, the same way
85855         that tar does.
85856         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85857         (ftypelet): Use S_ISCTG.
85858         From Michael Deutschmann.
85859
85860 2000-04-14  Jim Meyering  <meyering@lucent.com>
85861
85862         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85863         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85864         clobbered.
85865
85866 2000-04-14  Jim Meyering  <meyering@lucent.com>
85867
85868         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85869
85870 2000-04-13  Jim Meyering  <meyering@lucent.com>
85871
85872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85873         AH_VERBATIM to insert required #ifndef into config.h.in.
85874         Suggestion from Akim Demaille.
85875
85876 2000-04-12  Jim Meyering  <meyering@lucent.com>
85877
85878         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85879         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85880         Christian Krackowizer.
85881
85882         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85883         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85884         (AC_SYS_LARGEFILE): Require.
85885         (AM_C_PROTOTYPES): Require.
85886
85887 2000-04-08  Jim Meyering  <meyering@lucent.com>
85888
85889         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85890         names don't conflict.  Reported by Eli Zaretskii.
85891
85892 2000-04-07  Jim Meyering  <meyering@lucent.com>
85893
85894         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85895         sys/types.h, to work around system header problems on AIX 3.2.5.
85896         From Bruno Haible.
85897
85898 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85899
85900         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85901         bug.  Deal with the different error behavior of Irix iconv.
85902
85903 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85904
85905         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85906         IRIX if the installer said otherwise.
85907
85908 2000-04-05  Jim Meyering  <meyering@lucent.com>
85909
85910         Portability tweaks required for ultrix4.3.
85911         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85912         (jm_CHECK_DECLS): Add getutent to the list of functions.
85913         (_jm_DECL_HEADERS): Add utmpx.h.
85914         From John David Anglin.
85915
85916         * m4/strftime.m4: Back out the 2000-04-02 change.
85917         Instead of that change, simply undefine putenv in the test program.
85918
85919 2000-04-05  Jim Meyering  <meyering@lucent.com>
85920
85921         Portability tweaks required for ultrix4.3.
85922         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85923         getutent.
85924         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85925         * lib/canon-host.c: Declare strdup.
85926         * lib/path-concat.c: Likewise.
85927         From John David Anglin.
85928
85929 2000-04-04  Jim Meyering  <meyering@lucent.com>
85930
85931         Be more DOS 8.3-friendly.
85932         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85933         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85934         * lib/Makefile.am: Reflect renaming.
85935         Reported by Eli Zaretskii.
85936
85937         Use a temporary file name that won't clash with `charset.alias'
85938         in the DOS 8.3 name space.
85939         * lib/Makefile.am (charset_tmp): Define.
85940         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85941         (uninstall-local): Likewise.
85942         Reported by Eli Zaretskii.
85943
85944 2000-04-03  Jim Meyering  <meyering@lucent.com>
85945
85946         * m4/gettext.m4: Fix typo in comment.
85947
85948         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85949         textutils/configure.in).  Suggestion from Paul Eggert.
85950         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85951
85952 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85953
85954         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85955         variable in the shell rather than using putenv, which isn't
85956         portable.  This avoids the configure-time inter-test dependency
85957         on the potentially-renamed putenv function.
85958
85959 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85960
85961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85962         before checking struct stat.st_blksize, so that
85963         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85964
85965 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85966
85967         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85968         since strftime.c uses HAVE_STRFTIME to decide whether to use
85969         the underlying strftime.
85970
85971 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85972
85973         * lib/time/strftime.c (my_strftime): Make sure we call the system
85974         strftime, not ourselves, when invoking the underlying strftime.
85975
85976 2000-03-24  Jim Meyering  <meyering@lucent.com>
85977
85978         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85979         (charset_alias): Define.
85980         (install-exec-local): Factor out common code.
85981         (uninstall-local): Split lines longer than 80.
85982         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85983         (SUFFIXES): Define.
85984         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85985         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85986
85987 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85988
85989         * lib/config.charset: Output a line containing "Packages using this
85990         file".
85991         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85992         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85993         ref-del.sed): New rules.
85994
85995 2000-03-17  Jim Meyering  <meyering@lucent.com>
85996
85997         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85998         Otherwise, include <strings.h>
85999
86000 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86001
86002         * lib/unicodeio.c (utf8_wctomb): New function.
86003         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86004         format instead of in UCS-4 with platform dependent endianness.
86005
86006 2000-03-10  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86009         From Marco Franzen.
86010
86011 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86012
86013         * lib/savedir.c (savedir): Work even if directory size is
86014         negative; this can happen with some screwy NFS configurations.
86015
86016 2000-03-06  Jim Meyering  <meyering@lucent.com>
86017
86018         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86019         if it's NULL (because we ran out of memory).  From Bruno Haible.
86020
86021 2000-03-05  Jim Meyering  <meyering@lucent.com>
86022
86023         * lib/localcharset.c ("path-concat.h"): Include.
86024         (get_charset_aliases): Use path_concat instead of ANSI string
86025         concatenation.
86026
86027         * lib/unicodeio.h (PARAMS): Define.
86028         Use it to guard prototype.
86029
86030 2000-03-04  Jim Meyering  <meyering@lucent.com>
86031
86032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86033         for lib/localcharset.c.
86034
86035 2000-03-04  Jim Meyering  <meyering@lucent.com>
86036
86037         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86038         installing into it.
86039         (uninstall-local): Uncomment this rule so `make distcheck' works
86040         once again.
86041
86042         * lib/unicodeio.c (<errno.h>): Include it.
86043         (errno): Declare if not defined.
86044
86045         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86046
86047         * lib/config.charset: New version, incorporating remarks from a linux
86048         i18n mailing list.  From Bruno Haible.
86049
86050 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86051
86052         * m4/codeset.m4: New file.
86053         * m4/iconv.m4: New file.
86054         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86055
86056 2000-03-03  Jim Meyering  <meyering@lucent.com>
86057
86058         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86059
86060 2000-03-02  Jim Meyering  <meyering@lucent.com>
86061
86062         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86063         the messages come out on separate lines.
86064
86065         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86066         rather than jm_CHECK_DECLARATIONS.
86067         * m4/decl.m4: Remove now-unused file.
86068
86069         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86070         geteuid.
86071
86072 2000-03-02  Jim Meyering  <meyering@lucent.com>
86073
86074         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86075
86076 2000-03-01  Jim Meyering  <meyering@lucent.com>
86077
86078         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86079         * lib/unicodeio.c: Likewise.
86080
86081 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86082
86083         * lib/config.charset: New file.
86084         * lib/localcharset.c: New file.
86085         * lib/unicodeio.h, lib/unicodeio.c: New files.
86086         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86087         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86088         (noinst_HEADERS): Add unicodeio.h.
86089         (all-local, install-exec-local, charset.alias): New targets.
86090
86091 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86092
86093         * lib/quotearg.c (ALERT_CHAR): New macro.
86094         (quotearg_buffer_restyled): Use it.
86095
86096 2000-02-27  Jim Meyering  <meyering@lucent.com>
86097
86098         * m4/check-decl.m4: Add getenv to the list.
86099
86100 2000-02-27  Jim Meyering  <meyering@lucent.com>
86101
86102         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86103         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86104
86105         * lib/backupfile.c: Guard inclusion of stdlib.h with
86106         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86107         Declare malloc if needed.
86108
86109         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86110         `#ifndef HAVE_DECL..'
86111         now that autoconf always defines the HAVE_DECL_ symbols.
86112         * lib/human.c: Likewise.
86113         * lib/same.c: Likewise.
86114         * lib/strtoumax.c: Likewise.
86115
86116         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86117         declaration check was not run.
86118         * lib/hash.c: Likewise.
86119         * lib/human.c: Likewise.
86120         * lib/same.c: Likewise.
86121         * lib/strtoumax.c: Likewise.
86122
86123         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86124         `.', then first look up the entire `.'-containing string as a login
86125         name.
86126
86127 2000-02-23  Jim Meyering  <meyering@lucent.com>
86128
86129         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86130         in place of my hack.
86131
86132 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86133
86134         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86135         (textint): New typedef.
86136         (parser_control): Member year changed from int to textint.
86137         All uses changed.
86138         (YYSTYPE): Removed; replaced by %union with int and textint members.
86139         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86140         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86141         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86142         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86143         (date, number, to_year): Use width of number in digits, not its value,
86144         to determine whether it's a 2-digit year, or a 2-digit time.
86145         (yylex): Store number of digits of numeric tokens.
86146         Reported by John Kendall.
86147
86148         (parser_control): Changed from struct parser_control to typedef (for
86149         consistency).  All uses changed.
86150
86151         (tID): Removed; not used.
86152         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86153
86154 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86155
86156         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86157         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86158
86159 2000-02-12  Jim Meyering  <meyering@lucent.com>
86160
86161         * lib/userspec.c (ISDIGIT): Define it.
86162         (isdigit): Remove definition.
86163         (is_number): Use ISDIGIT, not isdigit.
86164         <libintl.h>: Include.
86165         (_ and N_): Define.
86166         (parse_user_spec): Mark translatable strings.
86167
86168 2000-02-10  Jim Meyering  <meyering@lucent.com>
86169
86170         With these changes, nanosleep.[ch] are finally enough like the other
86171         lib/* replacement files to compile on a few more losing systems.
86172
86173         * lib/nanosleep.h: Don't include config.h.
86174         Remove prototype from declaration of nanosleep.
86175         (PARAMS): Remove now-unneeded definition.
86176         * lib/nanosleep.c: #undef nanosleep.
86177         (rpl_nanosleep): Rename from nanosleep.
86178
86179 2000-02-10  Jim Meyering  <meyering@lucent.com>
86180
86181         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86182         gnu_nanosleep to rpl_nanosleep.
86183
86184 2000-02-09  Jim Meyering  <meyering@lucent.com>
86185
86186         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86187         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86188
86189 2000-02-08  Akim Demaille  <akim@epita.fr>
86190
86191         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86192         `[' and `]' and remove uses of `changequote'.
86193         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86194         (AC_SYS_LARGEFILE): Likewise.
86195         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86196         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86197         of changequote.
86198         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86199         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86200         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86201         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86202
86203 2000-02-05  Jim Meyering  <meyering@lucent.com>
86204
86205         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86206         Remove explicit use of AC_HEADER_TIME.  It is required by
86207         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86208         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86209         in autoconf whereby the expansion of the latter ended up preceding
86210         the expansion of its prerequisite, AC_HEADER_TIME.
86211         Reported by Volker Borchert.
86212
86213 2000-02-03  Jim Meyering  <meyering@lucent.com>
86214
86215         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86216
86217 2000-02-03  Jim Meyering  <meyering@lucent.com>
86218
86219         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86220         rather than with `#if HAVE_UTMPNAME'.
86221
86222 2000-02-02  Jim Meyering  <meyering@lucent.com>
86223
86224         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86225         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86226         Reported by Eli Zaretskii.
86227
86228 2000-02-01  Jim Meyering  <meyering@lucent.com>
86229
86230         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86231
86232 2000-01-31  Jim Meyering  <meyering@lucent.com>
86233
86234         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86235         functions.  Add the time.h and sys/time.h headers along with the
86236         AC_REQUIRE'ment of AC_HEADER_TIME.
86237
86238 2000-01-31  Jim Meyering  <meyering@lucent.com>
86239
86240         * lib/nanosleep.h (nanosleep): Guard declaration with
86241         `#if ! HAVE_DECL_NANOSLEEP'.
86242         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86243         the declaration in that vendor's sys/timers.h.
86244         Reported by Christian Krackowizer.
86245
86246         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86247         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86248         (ISPRINT): Likewise.
86249         Reported by Tom Tromey.
86250
86251 2000-01-30  Jim Meyering  <meyering@lucent.com>
86252
86253         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86254
86255         * m4/prereq.m4 (utmp_includes): Define.
86256         Check for ut_user and ut_name members in both struct utmpx
86257         and struct utmp.
86258
86259 2000-01-30  Jim Meyering  <meyering@lucent.com>
86260
86261         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86262         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86263         header files where only utmpx.ut_user is declared.
86264
86265         * lib/readutmp.h (UT_USER): Define.
86266
86267 2000-01-29  Jim Meyering  <meyering@lucent.com>
86268
86269         * m4/lib-check.m4: New file containing library-related checks from
86270         fileutils and sh-utils (textutils had none).
86271
86272 2000-01-28  Jim Meyering  <meyering@lucent.com>
86273
86274         * m4/perl.m4: Change format of warning message to look more like that
86275         from the missing script.  Suggestion from François Pinard.
86276
86277 2000-01-25  Jim Meyering  <meyering@lucent.com>
86278
86279         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86280         well as time.h in the compile check.
86281         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86282         Fix typo in cross-compiling case: s/yes/no/.
86283
86284 2000-01-23  Jim Meyering  <meyering@lucent.com>
86285
86286         * m4/jm-macros.m4: Move df-related tests here from
86287         fileutils/configure.in
86288
86289         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86290         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86291
86292         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86293         s/space/ac_fsusage_space/.
86294         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86295
86296         * m4/ftruncate.m4: New file (derived from part of
86297         fileutils/configure.in).
86298         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86299         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86300
86301         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86302         AC_SUBST these here, rather than just in sh-util/configure.in, so
86303         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86304         all the same.
86305         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86306         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86307         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86308         (AC_SUBST(POW_LIBM)): Likewise.
86309         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86310
86311 2000-01-23  Jim Meyering  <meyering@lucent.com>
86312
86313         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86314         obstack.c.
86315
86316 2000-01-22  Jim Meyering  <meyering@lucent.com>
86317
86318         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86319
86320         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86321
86322         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86323         configure.in
86324         (AC_CHECK_HEADERS): Likewise for sh-utils.
86325         (AC_CHECK_HEADERS): Likewise for textutils.
86326         Merge the three lists of headers.
86327
86328         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86329         from fileutils' configure.in.
86330
86331         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86332         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86333         check-decl.m4.
86334
86335         * m4/check-decl.m4: Use #if rather than #ifdef.
86336         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86337         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86338         (_jm_DECL_HEADERS): Define new function.
86339         (jm_CHECK_DECLARATIONS): Require it.
86340
86341 2000-01-22  Jim Meyering  <meyering@lucent.com>
86342
86343         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86344         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86345         Required for some AIX systems.  Reported by Christian Krackowizer.
86346         [TESTING] (main): New function.
86347
86348         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86349         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86350         letters.
86351
86352         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86353         iswprint.
86354
86355         * lib/strverscmp.c (ISDIGIT): Define.
86356         (strverscmp): Use ISDIGIT, not isdigit.
86357
86358 2000-01-19  Jim Meyering  <meyering@lucent.com>
86359
86360         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86361         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86362         defines `struct timespec' in <sys/time.h>
86363
86364         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86365         Thanks to Akim for explaining.
86366
86367 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86368
86369         * lib/nanosleep.c (nanosleep):
86370         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86371         POSIX.1 doesn't require SA_INTERRUPT and some systems
86372         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86373         it's been part of POSIX.1 since day 1 (in 1988).
86374
86375 2000-01-17  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/interlock: Remove unused file.  Reported by François Pinard.
86378
86379 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86380
86381         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86382         alert, backslash, formfeed, and vertical tab unnecessarily in
86383         shell quoting style.
86384
86385 2000-01-16  Jim Meyering  <meyering@lucent.com>
86386
86387         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86388         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86389         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86390         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86391
86392 2000-01-16  Jim Meyering  <meyering@lucent.com>
86393
86394         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86395         because the latter didn't work.
86396
86397 2000-01-15  Jim Meyering  <meyering@lucent.com>
86398
86399         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86400         (AC_REPLACE_FUNCS): Add memcpy and memset.
86401         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86402         Add strpbrk.
86403         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86404
86405 2000-01-12  Jim Meyering  <meyering@lucent.com>
86406
86407         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86408         (jm_PREREQ): Use it.
86409         (jm_PREREQ_READUTMP): New macro.
86410         (jm_PREREQ): Use it.
86411
86412 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86413
86414         Quote multibyte characters correctly.
86415         * m4/c-bs-a.m4: New file.
86416         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86417         (jm_PREREQ): Use it.
86418
86419 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86420
86421         * m4/uintmax_t.m4: Port to autoconf 2.13.
86422
86423 2000-01-08  Jim Meyering  <meyering@ascend.com>
86424
86425         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86426         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86427
86428 2000-01-04  Jim Meyering  <meyering@ascend.com>
86429
86430         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86431         jm_STRUCT_DIRENT_D_TYPE.
86432         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86433         jm_STRUCT_DIRENT_D_INO.
86434         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86435         jm_STRUCT_UTIMBUF.
86436         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86437         renamings.
86438         * m4/utime.m4: Likewise.
86439
86440         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86441         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86442
86443 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86444
86445         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86446         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86447
86448 2000-01-02  Jim Meyering  <meyering@ascend.com>
86449
86450         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86451         remember if this is necessary.
86452
86453 1999-12-26  Jim Meyering  <meyering@ascend.com>
86454
86455         * m4/jm-macros.m4: Use it here.
86456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86457
86458 1999-12-23  Jim Meyering  <meyering@ascend.com>
86459
86460         * m4/jm-macros.m4: Check for clock_gettime (moved from
86461         fileutils/configure.in)
86462         Check for gettimeofday.
86463
86464 1999-12-20  Jim Meyering  <meyering@ascend.com>
86465
86466         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86467         autoconf-2.14a-1999-12-20.
86468
86469 1999-12-19  Jim Meyering  <meyering@ascend.com>
86470
86471         * m4/lstat-slash.m4: New file.
86472         * m4/jm-macros.m4: Use the new macro:
86473         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86474
86475 1999-12-07  Jim Meyering  <meyering@ascend.com>
86476
86477         * m4/perl.m4: Require that File::Compare be available, too.
86478         Too many systems seem to lack it.
86479
86480         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86481         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86482
86483 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86484
86485         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86486         problem with the QNX 4.25 shell, which doesn't propagate exit
86487         status of failed commands inside shell assignments.
86488
86489 1999-11-17  Jim Meyering  <meyering@ascend.com>
86490
86491         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86492
86493 1999-11-07  Jim Meyering  <meyering@ascend.com>
86494
86495         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86496
86497 1999-11-06  Jim Meyering  <meyering@ascend.com>
86498
86499         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86500         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86501
86502 1999-11-05  Jim Meyering  <meyering@ascend.com>
86503
86504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86505         configure.in of textutils, fileutils, and sh-utils into this one
86506         (shared between those packages) file.
86507         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86508         AC_STRUCT_ST_BLKSIZE.
86509
86510 1999-11-03  Jim Meyering  <meyering@ascend.com>
86511
86512         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86513         of AC_CHECK_TYPE checks includes unistd.h.
86514         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86515         Suggestion from Akim Demaille.
86516
86517 1999-10-30  Jim Meyering  <meyering@ascend.com>
86518
86519         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86520         m4-quoted string.
86521         * m4/ls-mntd-fs.m4: Likewise.
86522         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86523         * m4/jm-winsz1.m4: Likewise.
86524
86525         * m4/const.m4: Remove file, since the fix made it into the experimental
86526         version of autoconf.
86527         * m4/mktime.m4: Likewise.
86528
86529         * m4/check-type.m4: Remove file, now that the latest version of
86530         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86531
86532         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86533         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86534         AC_CHECK_TYPE.
86535
86536 1999-10-04  Jim Meyering  <meyering@ascend.com>
86537
86538         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86539
86540 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86541
86542         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86543         2.95.1 bug with HP-UX 10.20.
86544
86545 1999-09-17  Jim Meyering  <meyering@ascend.com>
86546
86547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86548         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86549         due to missing strdup (against sh-utils-2.0).
86550
86551 1999-08-29  Jim Meyering  <meyering@ascend.com>
86552
86553         * m4/jm-macros.m4: Require jm_BISON.
86554         * m4/bison.m4: New file.
86555
86556 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86557
86558         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86559         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86560
86561 1999-08-05  Jim Meyering  <meyering@ascend.com>
86562
86563         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86564         to avoid conflicts with `conftest' on 8+3 filesystems.
86565         Suggestion from Eli Zaretskii.
86566
86567 1999-08-04  Jim Meyering  <meyering@ascend.com>
86568
86569         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86570         fileutils and sh-utils (textutils's getline test was inadequate).
86571         (AM_FUNC_GETLINE): Run this test.
86572         (AC_CHECK_FUNCS): Check for getdelim.
86573         Reported by Bob Proulx.
86574
86575 1999-08-02  Jim Meyering  <meyering@ascend.com>
86576
86577         * m4/jm-macros.m4: Add a comment.
86578
86579 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86580
86581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86582         <inttypes.h> defines strtoumax as a macro (and not as a
86583         function).
86584
86585 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86586
86587         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86588         that we can shift, multiply and divide unsigned long long
86589         values; Ultrix cc can't do it.
86590
86591 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86592
86593         * m4/mktime.m4: New file, which is a preview of what should appear
86594         in the next public autoconf release.
86595
86596 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86597
86598         * m4/lfs.m4: Remove this file.
86599         * m4/largefile.m4: New file.  It contains the old contents of
86600         lfs.m4, except that all names with prefix AC_LFS have been
86601         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86602         compatible with future autoconf versions.  Also, some minor m4
86603         quoting problems have been fixed.
86604
86605 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86606
86607         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86608         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86609         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86610         and simplify the shell code.
86611
86612 1999-08-01  Jim Meyering  <meyering@ascend.com>
86613
86614         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86615         m4.
86616
86617 1999-07-20  Jim Meyering  <meyering@ascend.com>
86618
86619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86620
86621 1999-07-15  Jim Meyering  <meyering@ascend.com>
86622
86623         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86624
86625 1999-05-22  Jim Meyering  <meyering@ascend.com>
86626
86627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86628
86629 1999-05-20  Jim Meyering  <meyering@ascend.com>
86630
86631         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86632         Add a colon after each `then' in case $4 is empty.
86633
86634 1999-05-16  Jim Meyering  <meyering@ascend.com>
86635
86636         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86637
86638 1999-05-10  Jim Meyering  <meyering@ascend.com>
86639
86640         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86641
86642         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86643         AC_FUNC_MKTIME.
86644
86645 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86646
86647         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86648
86649 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86650
86651         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86652         not CPPFLAGS, so that linking works correctly in IRIX.
86653
86654 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86655
86656         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86657
86658 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86659
86660         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86661         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86663         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86664         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86665
86666         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86667
86668 1999-04-20  Jim Meyering  <meyering@ascend.com>
86669
86670         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86671         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86672         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86673
86674 1999-04-18  Jim Meyering  <meyering@ascend.com>
86675
86676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86677         * m4/jm-macros.m4: Use it.
86678
86679 1999-04-06  Jim Meyering  <meyering@ascend.com>
86680
86681         * m4/strftime.m4: Remove test for %f.
86682
86683 1999-03-29  Jim Meyering  <meyering@ascend.com>
86684
86685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86686         superset of the AC_TYPE_* checks in the textutils, fileutils,
86687         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86688         AC_TYPE_PID_T.
86689
86690 1999-03-28  Jim Meyering  <meyering@ascend.com>
86691
86692         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86693         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86694         replaced e.g., in the *.sh files of the sh-utils.
86695
86696 1999-03-20  Jim Meyering  <meyering@ascend.com>
86697
86698         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86699         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86700         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86701
86702 1999-03-19  Jim Meyering  <meyering@ascend.com>
86703
86704         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86705
86706 1999-03-12  Jim Meyering  <meyering@ascend.com>
86707
86708         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86709
86710 1999-03-07  Jim Meyering  <meyering@ascend.com>
86711
86712         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86713         declared.
86714
86715 1999-02-17  Jim Meyering  <meyering@ascend.com>
86716
86717         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86718         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86719
86720 1999-02-07  Jim Meyering  <meyering@ascend.com>
86721
86722         * m4/group-member.m4: New file -- extracted from sh-utils'
86723         configure.in.
86724
86725         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86726         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86727
86728 1999-02-06  Jim Meyering  <meyering@ascend.com>
86729
86730         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86731         * m4/fnmatch.m4: Likewise.
86732         * m4/getgroups.m4: Likewise.
86733         * m4/lstat.m4: Likewise.
86734         * m4/malloc.m4: Likewise.
86735         * m4/putenv.m4: Likewise.
86736         * m4/realloc.m4: Likewise.
86737         * m4/regex.m4: Likewise.
86738         * m4/stat.m4: Likewise.
86739         * m4/strftime.m4: Likewise.
86740         Suggestion from Alain Magloire.
86741
86742         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86743         * m4/fnmatch.m4: Likewise.
86744         * m4/getgroups.m4: Likewise.
86745         * m4/getline.m4: Likewise.
86746         * m4/lstat.m4: Likewise.
86747         * m4/malloc.m4: Likewise.
86748         * m4/memcmp.m4: Likewise.
86749         * m4/putenv.m4: Likewise.
86750         * m4/realloc.m4: Likewise.
86751         * m4/regex.m4: Likewise.
86752         * m4/stat.m4: Likewise.
86753         * m4/strftime.m4: Likewise.
86754         Suggestion from Alain Magloire.
86755
86756         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86757         an argument.
86758
86759         * m4/regex.m4: Add a run-time Test for proper operation of
86760         re_compile_pattern.
86761
86762 1999-01-31  Jim Meyering  <meyering@ascend.com>
86763
86764         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86765
86766 1999-01-30  Jim Meyering  <meyering@ascend.com>
86767
86768         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86769
86770         * m4/jm-mktime.m4: Make this a wrapper around the official
86771         AM_FUNC_MKTIME rather than my private copy, now that the official one
86772         is up to date.
86773         * m4/mktime.m4: Remove file.
86774
86775         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86776         * m4/uptime.m4: Likewise.
86777         * m4/uintmax_t.m4: Likewise.
86778
86779 1999-01-28  Jim Meyering  <meyering@ascend.com>
86780
86781         * m4/jm-macros.m4: Use jm_AFS.
86782         * m4/afs.m4: New file (from fileutils' configure.in).
86783
86784         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86785         * m4/chown.m4: Likewise.
86786         * m4/d-ino.m4: Likewise.
86787         * m4/d-type.m4: Likewise.
86788         * m4/fnmatch.m4: Likewise.
86789         * m4/getgroups.m4: Likewise.
86790         * m4/gettext.m4: Likewise.
86791         * m4/jm-mktime.m4: Likewise.
86792         * m4/jm-winsz2.m4: Likewise.
86793         * m4/lcmessage.m4: Likewise.
86794         * m4/ls-mntd-fs.m4: Likewise.
86795         * m4/malloc.m4: Likewise.
86796         * m4/memcmp.m4: Likewise.
86797         * m4/putenv.m4: Likewise.
86798         * m4/realloc.m4: Likewise.
86799         * m4/st_mtim.m4: Likewise.
86800         * m4/strftime.m4: Likewise.
86801
86802 1999-01-16  Jim Meyering  <meyering@ascend.com>
86803
86804         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86805         (ARGMATCH_DIE_DECL): Define.
86806
86807 1999-01-12  Jim Meyering  <meyering@ascend.com>
86808
86809         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86810         Reported by Lars Hecking.
86811
86812 1999-01-10  Jim Meyering  <meyering@ascend.com>
86813
86814         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86815         gross kludge.
86816         * m4/inttypes_h.m4: Likewise.
86817         * m4/lstat.m4: Likewise.
86818         * m4/malloc.m4: Likewise.
86819         * m4/readdir.m4: Likewise.
86820         * m4/realloc.m4: Likewise.
86821         * m4/st_dm_mode.m4: Likewise.
86822         * m4/stat.m4: Likewise.
86823         * m4/utimbuf.m4: Likewise.
86824         * m4/utimes.m4: Likewise.
86825
86826         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86827         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86828         comments in config.h.in are meaningful.
86829
86830         * m4/jm-macros.m4: Require autoconf-2.13 here.
86831
86832         * m4/regex.m4: By default, don't use the included regex.c on systems
86833         with glibc 2.  Suggestion from Uli Drepper.
86834
86835 1999-01-02  Jim Meyering  <meyering@ascend.com>
86836
86837         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86838
86839 1998-12-18  Jim Meyering  <meyering@ascend.com>
86840
86841         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86842         Based on a suggestion from Lars Hecking.
86843
86844 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86845
86846         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86847
86848 1998-11-16  Jim Meyering  <meyering@ascend.com>
86849
86850         * m4/lfs.m4: Double-quote the `uname...` expression.
86851
86852 1998-11-14  Jim Meyering  <meyering@ascend.com>
86853
86854         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86855         * m4/stat.m4: Likewise.
86856
86857 1998-11-03  Jim Meyering  <meyering@ascend.com>
86858
86859         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86860         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86861
86862 1998-10-18  Jim Meyering  <meyering@ascend.com>
86863
86864         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86865
86866 1998-10-17  Jim Meyering  <meyering@ascend.com>
86867
86868         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86869         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86870         calls for those previously hard-coded headers.  Instead, take a new
86871         parameter.
86872         (jm_CHECK_DECLARATIONS): Reflect interface change.
86873         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86874         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86875
86876         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86877
86878 1998-10-14  Jim Meyering  <meyering@ascend.com>
86879
86880         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86881         instead of "TZ=America/Vancouver".  From Paul Eggert.
86882
86883 1998-10-11  Jim Meyering  <meyering@ascend.com>
86884
86885         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86886         This adds a test for a recently added compatibility fix for mktime.c.
86887         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86888
86889 1998-09-27  Jim Meyering  <meyering@ascend.com>
86890
86891         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86892
86893         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86894         ../configure.in, including a change from Gordon Matzigkeit to allow
86895         cross-compiling for the Hurd.
86896
86897         * m4/glibc.m4: New file/macro to test for the GNU C Library
86898         versions 1 and 2.  From Gordon Matzigkeit.
86899         Indent.
86900
86901 1998-09-21  Jim Meyering  <meyering@ascend.com>
86902
86903         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86904
86905 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86906
86907         Port nanosecond-resolution times to UnixWare 2.1.2 and
86908         pedantic Solaris 2.6.
86909
86910         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86911         AC_STRUCT_ST_MTIM.
86912         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86913         Generate name of ns member, instead of just 1 or undef.
86914         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86915
86916 1998-08-15  Jim Meyering  <meyering@ascend.com>
86917
86918         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86919         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86920         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86921         instead of jm_TYPE_SSIZE_T.
86922
86923 1998-08-12  Jim Meyering  <meyering@ascend.com>
86924
86925         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86926
86927 1998-08-02  Jim Meyering  <meyering@ascend.com>
86928
86929         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86930         in acconfig.h manually.
86931
86932 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86933
86934         * m4/st_mtim.m4: New file.
86935
86936 1998-07-28  Jim Meyering  <meyering@ascend.com>
86937
86938         * m4/utimes.m4: Undef stat.
86939
86940 1998-07-25  Jim Meyering  <meyering@ascend.com>
86941
86942         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86943         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86944
86945 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86946
86947         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86948         uid and gid actually remain unchanged.
86949
86950 1998-07-07  Jim Meyering  <meyering@ascend.com>
86951
86952         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86953
86954 1998-07-04  Jim Meyering  <meyering@ascend.com>
86955
86956         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86957         to prove that this macro can be used in packages without regex.c.
86958
86959 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86960
86961         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86962         is to be used.
86963
86964 1998-07-03  Jim Meyering  <meyering@ascend.com>
86965
86966         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86967
86968         * m4/gettext.m4: New file -- from gettext-0.10.35.
86969         * m4/lcmessage.m4: Likewise.
86970         * m4/progtest.m4: Likewise.
86971
86972         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86973         * m4/jm-macros.m4: Require the new macro.
86974
86975 1998-06-29  Jim Meyering  <meyering@ascend.com>
86976
86977         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86978         for the definition of NGROUPS (used in a system header included
86979         by sys/mount.h).
86980
86981 1998-06-28  Jim Meyering  <meyering@ascend.com>
86982
86983         * m4/ls-mntd-fs.m4: New file.
86984         * m4/fstypename.m4: New file.
86985
86986         * m4/jm-macros.m4: Require the new macro.
86987         * m4/jm-glibc-io.m4: New file.
86988
86989 1998-05-19  Jim Meyering  <meyering@ascend.com>
86990
86991         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86992         * m4/lchown.m4: New file.
86993
86994         * m4/Makefile.am.in: New file.
86995         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86996
86997 1998-05-14  Jim Meyering  <meyering@ascend.com>
86998
86999         * m4/Makefile.am (EXTRA_DIST): Add them.
87000         * m4/jm-macros.m4: New file.
87001         * m4/utimbuf.m4: New file.
87002
87003 1998-05-12  Jim Meyering  <meyering@ascend.com>
87004
87005         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87006
87007 1998-05-11  Jim Meyering  <meyering@ascend.com>
87008
87009         * m4/isc-posix.m4: New file.
87010
87011 1998-05-10  Jim Meyering  <meyering@ascend.com>
87012
87013         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87014
87015 1998-05-09  Jim Meyering  <meyering@ascend.com>
87016
87017         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87018         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87019         with automake.
87020
87021         * m4/ssize_t.m4: New file.
87022         * m4/mktime.m4: Remove file -- the new automake has this now.
87023
87024 1998-04-26  Jim Meyering  <meyering@ascend.com>
87025
87026         * m4/assert.m4: New file.
87027         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87028
87029 1998-04-05  Jim Meyering  <meyering@ascend.com>
87030
87031         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87032         (jm_PREREQ): Use it here.
87033
87034 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87035
87036         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87037         in acconfig.h.
87038
87039 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87040
87041         * m4/prereq.m4: New file.
87042         * m4/error.m4: New file.
87043         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87044
87045 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87046
87047         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87048         cache-check for the same variable -- that defeated the purpose of
87049         the test; the test program was never run.  This was a problem only
87050         on systems with losing getline functions -- HP-UX 10.20 is one.
87051         Reported by Bjorn Helgaas.
87052
87053 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87054
87055         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87056
87057 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87058
87059         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87060
87061         * m4/const.m4: New file.  Use an initializer in this declaration
87062         typedef int charset[2]; const charset x;
87063         Reported by Bob Glickstein.
87064
87065 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87066
87067         * m4/chown.m4: Fix reversed types on -1 args to chown.
87068         From Kaveh Ghazi.
87069
87070 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87071
87072         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87073         Add lseek and memchr.
87074
87075         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87076         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87077         have a 20-character limit on names.
87078
87079 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87080
87081         * m4/inttypes_h.m4: New file.
87082         * m4/uintmax_t.m4: New file.
87083         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87084
87085
87086         -----
87087
87088         Local Variables:
87089         coding: utf-8
87090         End:
87091
87092         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87093
87094         Copying and distribution of this file, with or without
87095         modification, are permitted provided the copyright notice
87096         and this notice are preserved.